From 07d92f276cac12da7708e283422bb99be5297909 Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 17 Nov 2005 08:08:30 +0000 Subject: [PATCH] no message --- src/GLViewer/GLViewer_Geom.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- 2.39.2