diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-18 19:40:54 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-18 19:40:54 +0100 |
commit | 3ee941b5196cd9328f8e6d5de8fb0aeeae9e39f1 (patch) | |
tree | 263486c62c9fc1751ec5a35e97fc6fc0b7a6dfb5 /src/menu/drawable_control.hpp | |
parent | e6ab9e205cee131f75ba2435b52c68ae765360b9 (diff) | |
download | usdx-3ee941b5196cd9328f8e6d5de8fb0aeeae9e39f1.tar.gz usdx-3ee941b5196cd9328f8e6d5de8fb0aeeae9e39f1.tar.xz usdx-3ee941b5196cd9328f8e6d5de8fb0aeeae9e39f1.zip |
menu: add get_component_at to get component
This is the basis for mouse focus handling.
Diffstat (limited to 'src/menu/drawable_control.hpp')
-rw-r--r-- | src/menu/drawable_control.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index cd1f45e0..9e15966e 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -33,6 +33,7 @@ #include "control.hpp" #include "utils/point.hpp" #include "utils/dimension.hpp" +#include "utils/rectangle.hpp" #include "background.hpp" namespace usdx @@ -131,6 +132,9 @@ namespace usdx void set_background(Background*); const Background* get_background(void) const; + + const Rectangle<int> get_absolut_rect(void) const; + virtual DrawableControl* get_component_at(const Point<int>& p); }; }; |