From: abd Date: Thu, 17 Nov 2005 08:08:30 +0000 (+0000) Subject: no message X-Git-Tag: V3_1_0a3~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07d92f276cac12da7708e283422bb99be5297909;p=modules%2Fgui.git no message --- diff --git a/src/GLViewer/GLViewer_Geom.h b/src/GLViewer/GLViewer_Geom.h index ccd3bab19..759daef1a 100644 --- a/src/GLViewer/GLViewer_Geom.h +++ b/src/GLViewer/GLViewer_Geom.h @@ -110,7 +110,15 @@ public: bool contains( GLViewer_Pnt pnt ) { return ( pnt.x() > left() && pnt.x() < right() && pnt.y() > bottom() && - pnt.y() < top() ); } + pnt.y() < top() ); } + + void move( const float x, const float y ) + { + myLeft += x; + myRight += x; + myTop += y; + myBottom += y; + } protected: float myLeft;