aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/container.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-22 22:52:59 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:51 +0100
commitfb7542a5e7d390a20eefc946cc5054dc79d74180 (patch)
tree164c6640dfbb0be0b260cd6fb709477e6d753f58 /src/menu/container.hpp
parentb44ac46e4e54f228fd9c25c042da2efd2ab45b64 (diff)
downloadusdx-fb7542a5e7d390a20eefc946cc5054dc79d74180.tar.gz
usdx-fb7542a5e7d390a20eefc946cc5054dc79d74180.tar.xz
usdx-fb7542a5e7d390a20eefc946cc5054dc79d74180.zip
menu/container: clipping requires window coordinates
glScissor only work with window coordinates. to calculate that a control has to know it position on the window and therefor the parent container have to track the position in the window
Diffstat (limited to '')
-rw-r--r--src/menu/container.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/menu/container.hpp b/src/menu/container.hpp
index 9b30b117..147a0d92 100644
--- a/src/menu/container.hpp
+++ b/src/menu/container.hpp
@@ -31,6 +31,7 @@
#include <log4cpp/Category.hh>
#include "drawable_control.hpp"
+#include "utils/point.hpp"
namespace usdx
{
@@ -48,6 +49,7 @@ namespace usdx
Container(Container*, const ContainerHelper&);
virtual void draw(void);
+ Point<int> window_coords;
public:
Container(Container*);
@@ -58,6 +60,8 @@ namespace usdx
virtual void setFrame(Frame*);
virtual void removeFrame(void);
+
+ const Point<int>& get_window_coords(void) const;
};
};