model_server/gala/src/subwin.cxx
/*
 * Set Rect
 *
 * Gets rid of all contents and even free's the space occupied by this
 * object, if not static
 */
Set Rect
Gets rid of all contents and even free's the space occupied by this
object, if not static
Set Rect Gets rid of all contents and even free ' s the space occupied by this object if not static
void subwin::SetRect(const vrect *my_rect)
{
    vdialogItem::SetRect(my_rect);
    if (this->IsOpen())
    {
        vrect xrect;
        vdialogItemList *my_itemList = this->GetItemListIn();
	my_itemList->TransformRect(my_rect, &xrect);
	vwindow *window = this->DetermineWindow();
	xrect.y = window->GetHeight() - (xrect.y + xrect.h);
#ifndef _WIN32
	XMoveResizeWindow(this->display, this->xwindow,
			  xrect.x, xrect.y,
			  xrect.w, xrect.h);
    ui_resize_window (this->display, this->xwindow);
#endif
    }
}
void subwin :: SetRect ( const vrect * my_rect ) { vdialogItem :: SetRect ( my_rect ) ; if ( this -> IsOpen ( ) ) { vrect xrect ; vdialogItemList * my_itemList = this -> GetItemListIn ( ) ; my_itemList -> TransformRect ( my_rect , & xrect ) ; vwindow * window = this -> DetermineWindow ( ) ; xrect . y = window -> GetHeight ( ) - ( xrect . y + xrect . h ) ; #ifndef _WIN32 XMoveResizeWindow ( this -> display , this -> xwindow , xrect . x , xrect . y , xrect . w , xrect . h ) ; ui_resize_window ( this -> display , this -> xwindow ) ; #endif } }
Set Rect
 Gets rid of all contents and even free's the space occupied by this
 object, if not static
Set Rect Gets rid of all contents and even free ' s the space occupied by this object if not static
//printf ("Subwin SetRect called\n"); // !!! must handle subcontainers - do full transform // Transform our rect to the parent X Window's coordinate system // !!! doesn't handle containers yet