From 3ee941b5196cd9328f8e6d5de8fb0aeeae9e39f1 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 18 Jan 2013 19:40:54 +0100 Subject: menu: add get_component_at to get component This is the basis for mouse focus handling. --- src/menu/drawable_control.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/menu/drawable_control.hpp') 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 get_absolut_rect(void) const; + virtual DrawableControl* get_component_at(const Point& p); }; }; -- cgit v1.2.3