aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/drawable_control.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu/drawable_control.hpp')
-rw-r--r--src/menu/drawable_control.hpp12
1 files changed, 12 insertions, 0 deletions
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 <SDL/SDL.h>
+#include <boost/thread/mutex.hpp>
#include <log4cpp/Category.hh>
#include "drawable.hpp"
#include "control.hpp"
+#include "utils/point.hpp"
namespace usdx
{
@@ -42,6 +44,9 @@ namespace usdx
private:
static log4cpp::Category& log;
+ Point<int> position;
+
+ boost::mutex position_mutex;
protected:
Container* parent;
@@ -61,6 +66,13 @@ namespace usdx
virtual ~DrawableControl();
void repaint(void);
+
+ void set_position(const Point<int>& position);
+ void set_position(int left, int top);
+
+ const Point<int>& get_position(void) const;
+ int get_left(void) const;
+ int get_top(void) const;
};
};