model_server/gra/src/graWindow.h.cxx
// returns true if canvas size is returned
returns true if canvas size is returned
returns true if canvas size is returned
boolean graWindow::size (int& width, int& height)
{
    Initialize(graWindow::size);
    iv3(Canvas)* canvas = GetCanvas();
    if(canvas) {
	width = canvas->pwidth();
	height = canvas->pheight();
	return true;
    } else {
	iv3(Shape)* shape = GetShape();
	if(shape) {
	    width = shape->width;
	    height = shape->height;
	} else {
	    width = 0;
	    height = 0;
	}
	return false;
    }
}
boolean graWindow :: size ( int & width , int & height ) { Initialize ( graWindow :: size ) ; iv3 ( Canvas ) * canvas = GetCanvas ( ) ; if ( canvas ) { width = canvas -> pwidth ( ) ; height = canvas -> pheight ( ) ; return true ; } else { iv3 ( Shape ) * shape = GetShape ( ) ; if ( shape ) { width = shape -> width ; height = shape -> height ; } else { width = 0 ; height = 0 ; } return false ; } }
returns true if canvas size is returned
returns true if canvas size is returned