diff options
Diffstat (limited to '')
-rw-r--r-- | src/menu/drawable_control.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index cd1f45e0..bac1ccfb 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -33,7 +33,9 @@ #include "control.hpp" #include "utils/point.hpp" #include "utils/dimension.hpp" +#include "utils/rectangle.hpp" #include "background.hpp" +#include "static.hpp" namespace usdx { @@ -71,6 +73,11 @@ namespace usdx */ Background* background; + /** + * Optional box around the control. Used for debugging. + */ + Static* debug_box; + mutable boost::shared_mutex position_mutex; mutable boost::shared_mutex size_mutex; mutable boost::shared_mutex clipping_required_mutex; @@ -131,6 +138,18 @@ 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); + + virtual void mouse_move(const Point<int>& p); + virtual void mouse_down(uint8_t button, const Point<int>& p); + virtual void mouse_up(uint8_t button, const Point<int>& p); + virtual void mouse_enter(void); + virtual void mouse_leave(void); + + virtual void mouse_click(uint8_t button, const Point<int>& p); + virtual void mouse_dbl_click(uint8_t button, const Point<int>& p); }; }; |