model_server/gala/src/view.cxx
// SetRight - Resizes the view to have the right side at the given location.
//    If the new right is beyond the old left,
//        This view's size is reduced to zero.
//        See if the left neighbor's right side needs to be adjusted.
Resizes the view to have the right side at the given location.
If the new right is beyond the old left,
This view's size is reduced to zero.
See if the left neighbor's right side needs to be adjusted.
Resizes the view to have the right side at the given location . If the new right is beyond the old left This view ' s size is reduced to zero . See if the left neighbor ' s right side needs to be adjusted .
void View::SetRight (const int newRight)
{
    if (newRight < myRect.x) {
        if (ParentView &&
            (ParentView->view_type == HorizontalGroupView) &&
            LeftView && LeftView->GetSash() ) {
            LeftView->SetRight(newRight - SASH_SIZE + ParentView->GetAbsoluteX());
        }
        MoveView(newRight, myRect.y, 0, myRect.h);
    } else {
        int newWidth = newRight - myRect.x;
        MoveView(myRect.x, myRect.y, newWidth, myRect.h);
    }
}
void View :: SetRight ( const int newRight ) { if ( newRight < myRect . x ) { if ( ParentView && ( ParentView -> view_type == HorizontalGroupView ) && LeftView && LeftView -> GetSash ( ) ) { LeftView -> SetRight ( newRight - SASH_SIZE + ParentView -> GetAbsoluteX ( ) ) ; } MoveView ( newRight , myRect . y , 0 , myRect . h ) ; } else { int newWidth = newRight - myRect . x ; MoveView ( myRect . x , myRect . y , newWidth , myRect . h ) ; } }
SetRight - Resizes the view to have the right side at the given location.
SetRight - Resizes the view to have the right side at the given location .
// If the new X is beyond the old left side, ... // ... Set width to Zero and see if our left neighber needs to move. // If this is a Horizontal Group and ... //  ... the left neighbor has a sash, adjust his right side. // Move to new location with a Zero width. // Else, move the view.