Logo Search packages:      
Sourcecode: yzis version File versions  Download package

void YView::recalcScreen (  ) 

recalcScreen refresh the screen and recalculate cursor position

Definition at line 173 of file view.cpp.

References YViewCursor::buffer(), getLocalBooleanOption(), getLocalIntegerOption(), gotoxy(), mainCursor, YViewCursor::reset(), sendRefreshEvent(), and tabstop.

Referenced by setVisibleArea().

{
    tabstop = getLocalIntegerOption( "tabstop" );
    wrap = getLocalBooleanOption( "wrap" );
    rightleft = getLocalBooleanOption( "rightleft" );

    YCursor old_pos = scrollCursor.buffer();
    scrollCursor.reset();
    if ( wrap ) old_pos.setX( 0 );
    gotoxy( &scrollCursor, old_pos, false );

    old_pos = mainCursor.buffer();
    mainCursor.reset();
    gotoxy( &mainCursor, old_pos );

    sendRefreshEvent();
}


Generated by  Doxygen 1.6.0   Back to index