model_server/gala/src/view.cxx
// MoveView - Moves the view to the new location.
//    It also adjusts the sizes of its children.
Moves the view to the new location.
It also adjusts the sizes of its children.
Moves the view to the new location . It also adjusts the sizes of its children .
void View::MoveView(int x, int y, int w, int h)
{
    myRect.x = x;
    myRect.y = y;
    myRect.h = h;
    myRect.w = w;
    if (ParentView) {
        percentX_ = ((float)myRect.w * (float)100.0) / (float)ParentView->myRect.w;
        percentY_ = ((float)myRect.h * (float)100.0) / (float)ParentView->myRect.h;
    } else {
        percentX_ = (float)100.0;
        percentY_ = (float)100.0;
    }
    in_resize = vTRUE;  
    UpdatePane();
    in_resize = vFALSE;
    if (ChildView) {
        if (view_type == HorizontalGroupView)
            ResizeChildrenHorz();
        else
            ResizeChildrenVert();
    }
}
void View :: MoveView ( int x , int y , int w , int h ) { myRect . x = x ; myRect . y = y ; myRect . h = h ; myRect . w = w ; if ( ParentView ) { percentX_ = ( ( float ) myRect . w * ( float ) 100.0 ) / ( float ) ParentView -> myRect . w ; percentY_ = ( ( float ) myRect . h * ( float ) 100.0 ) / ( float ) ParentView -> myRect . h ; } else { percentX_ = ( float ) 100.0 ; percentY_ = ( float ) 100.0 ; } in_resize = vTRUE ; UpdatePane ( ) ; in_resize = vFALSE ; if ( ChildView ) { if ( view_type == HorizontalGroupView ) ResizeChildrenHorz ( ) ; else ResizeChildrenVert ( ) ; } }
MoveView - Moves the view to the new location.
MoveView - Moves the view to the new location .
// Adjust the View's rectangle. // Update the X and Y percentages. // Update the view's Pane. // Update the view's children.