diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-09 18:33:45 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | 09eacc82176c37fdc12c903061ffa3ff960ac4cf (patch) | |
tree | 91b8c9eab484a838504cebc4c0a9eda4d7fe4b01 /src/menu/drawable_control.hpp | |
parent | de10bbae4602917aae0ed648824f75c3f674eb4a (diff) | |
download | usdx-09eacc82176c37fdc12c903061ffa3ff960ac4cf.tar.gz usdx-09eacc82176c37fdc12c903061ffa3ff960ac4cf.tar.xz usdx-09eacc82176c37fdc12c903061ffa3ff960ac4cf.zip |
menu/container: calculate window coordinates
the container have to keep the current window coordinates of its left,
bottom corner, therefor they have to be recalculated on every
size/position change (need virtual functions in DrawableControl)
Diffstat (limited to 'src/menu/drawable_control.hpp')
-rw-r--r-- | src/menu/drawable_control.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index 7f353a5a..261f0514 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -77,8 +77,8 @@ namespace usdx void repaint(void); - void set_position(const Point<int>& position); - void set_position(int left, int top); + virtual void set_position(const Point<int>& position); + virtual void set_position(int left, int top); const Point<int>& get_position(void) const; int get_left(void) const; |