model_server/gala/src/sash.cxx
/*The draw functions dictate what the dragged implemetation of the Sash will 
  look like as it is dragged across the screen.  Temporarely it is a rectangle,
  but in the future, it will be changed to just a line.  The function, saves the
  graphics state, draws the rect, with the color that is set, and then restores 
  the graphics state, and since it is done so fast, it looks like it is being 
  draw into the current graphics state (but if it actually was drawn into the 
  current graphics state, then it would leave ghosts wherever it went*/
The draw functions dictate what the dragged implemetation of the Sash will
look like as it is dragged across the screen.  Temporarely it is a rectangle,
but in the future, it will be changed to just a line.  The function, saves the
graphics state, draws the rect, with the color that is set, and then restores
the graphics state, and since it is done so fast, it looks like it is being
draw into the current graphics state (but if it actually was drawn into the
current graphics state, then it would leave ghosts wherever it went
The draw functions dictate what the dragged implemetation of the Sash will look like as it is dragged across the screen . Temporarely it is a rectangle but in the future it will be changed to just a line . The function saves the graphics state draws the rect with the color that is set and then restores the graphics state and since it is done so fast it looks like it is being draw into the current graphics state ( but if it actually was drawn into the current graphics state then it would leave ghosts wherever it went
void SashDragVert::Draw(vrect *rect) 
{
    gInit (SashDragVert::Draw);
    vdraw::GSave();
    vdraw::SetLineWidth(1);
    vdraw::MoveTo (rect->GetX(), rect->GetY()+1);
    vdraw::LineTo (rect->GetX()+rect->GetWidth(), rect->GetY()+1);
	vdraw::Stroke();
	vdraw::MoveTo (rect->GetX(), rect->GetY()+5);
   	vdraw::LineTo (rect->GetX()+rect->GetWidth(), rect->GetY()+5);
	vdraw::Stroke();  
    vdraw::GRestore(); 
}
void SashDragVert :: Draw ( vrect * rect ) { gInit ( SashDragVert :: Draw ) ; vdraw :: GSave ( ) ; vdraw :: SetLineWidth ( 1 ) ; vdraw :: MoveTo ( rect -> GetX ( ) , rect -> GetY ( ) + 1 ) ; vdraw :: LineTo ( rect -> GetX ( ) + rect -> GetWidth ( ) , rect -> GetY ( ) + 1 ) ; vdraw :: Stroke ( ) ; vdraw :: MoveTo ( rect -> GetX ( ) , rect -> GetY ( ) + 5 ) ; vdraw :: LineTo ( rect -> GetX ( ) + rect -> GetWidth ( ) , rect -> GetY ( ) + 5 ) ; vdraw :: Stroke ( ) ; vdraw :: GRestore ( ) ; }
The draw functions dictate what the dragged implemetation of the Sash will
look like as it is dragged across the screen.
The draw functions dictate what the dragged implemetation of the Sash will look like as it is dragged across the screen .