From 3d6a2c963c24212a0650f6dce5c1a47899f0e387 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 22 Mar 2012 22:33:22 +0100 Subject: menu/drawable_control: added position, glTransform to position before drawing software_mouse_pointer does not need an own position anymore and simply draw it without position change --- src/menu/drawable_control.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/menu/drawable_control.hpp') diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index de3881c5..e954f291 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -28,10 +28,12 @@ #define DRAWABLE_CONTROL_HPP #include +#include #include #include "drawable.hpp" #include "control.hpp" +#include "utils/point.hpp" namespace usdx { @@ -42,6 +44,9 @@ namespace usdx private: static log4cpp::Category& log; + Point position; + + boost::mutex position_mutex; protected: Container* parent; @@ -61,6 +66,13 @@ namespace usdx virtual ~DrawableControl(); void repaint(void); + + void set_position(const Point& position); + void set_position(int left, int top); + + const Point& get_position(void) const; + int get_left(void) const; + int get_top(void) const; }; }; -- cgit v1.2.3