model_server/gala/src/view.cxx
/* This method moves the location of the view.  It first checks to see if there is
   a viewtree branch associated with this pane, in which case it will resize the
   children to the new size.  It then removes the branch, because from this point on
   the children will only need to respond to normal resizing events.  It was needed
   in this case to force the children to adjust to the new size when they were moved
   from some other view.  
  
   The method will then set its border, leaving room for a border if the view has a
   border, is not unsplitable, and has actual width and height.  Finally, it will
   move the subwin, if there is one associated with it, to match the location of the
   pane.  */
This method moves the location of the view.  It first checks to see if there is
a viewtree branch associated with this pane, in which case it will resize the
children to the new size.  It then removes the branch, because from this point on
the children will only need to respond to normal resizing events.  It was needed
in this case to force the children to adjust to the new size when they were moved
from some other view.

The method will then set its border, leaving room for a border if the view has a
border, is not unsplitable, and has actual width and height.  Finally, it will
move the subwin, if there is one associated with it, to match the location of the
pane.
This method moves the location of the view . It first checks to see if there is a viewtree branch associated with this pane in which case it will resize the children to the new size . It then removes the branch because from this point on the children will only need to respond to normal resizing events . It was needed in this case to force the children to adjust to the new size when they were moved from some other view . The method will then set its border leaving room for a border if the view has a border is not unsplitable and has actual width and height . Finally it will move the subwin if there is one associated with it to match the location of the pane .
void Pane::SetLocation(int x, int y, int w, int h)
{
    if (childViewTree_)  {   
        childViewTree_->MoveView(0, 0, w, h);
    }
    invalRect_.Set(x,y,w,h);
    int borderSize = 0;
    if ((myOwner->hasBorder_) && w && h && !myOwner->Unsplitable_)
        borderSize = BORDER;
    vrect myRect = *(GetRect());
    myRect.Set(x + borderSize, y + borderSize,  
               w - 2*borderSize, h - 2*borderSize);   
    SetRect(&myRect);
    if (window_)  {
        vrect windowRect = *(window_->GetRect());
        windowRect.Set(myOwner->GetAbsoluteX() + borderSize,
                       myOwner->GetAbsoluteY() + borderSize,
                       GetWidth(), GetHeight());
        window_->SetRect(&windowRect);
    }
}
void Pane :: SetLocation ( int x , int y , int w , int h ) { if ( childViewTree_ ) { childViewTree_ -> MoveView ( 0 , 0 , w , h ) ; } invalRect_ . Set ( x , y , w , h ) ; int borderSize = 0 ; if ( ( myOwner -> hasBorder_ ) && w && h && ! myOwner -> Unsplitable_ ) borderSize = BORDER ; vrect myRect = * ( GetRect ( ) ) ; myRect . Set ( x + borderSize , y + borderSize , w - 2 * borderSize , h - 2 * borderSize ) ; SetRect ( & myRect ) ; if ( window_ ) { vrect windowRect = * ( window_ -> GetRect ( ) ) ; windowRect . Set ( myOwner -> GetAbsoluteX ( ) + borderSize , myOwner -> GetAbsoluteY ( ) + borderSize , GetWidth ( ) , GetHeight ( ) ) ; window_ -> SetRect ( & windowRect ) ; } }
This method moves the location of the view.
This method moves the location of the view .
// Change to internal coordinates. // Save the full rectangle as the area to invalidate. // Inset draw-able area by the border. // Inset the rectangle to hold the border on each side. // x,y are inset by the border. // have border on each side.