diff options
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index 77a84c2..ada1f5b 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h @@ -38,8 +38,9 @@ public: EventListItemClicked = 2, EventListViewChanged = 3, EventSliderChanged = 4, - EventWindowShow = 5, - EventWindowHide = 6 + EventScrollBarChanged = 5, + EventWindowShow = 6, + EventWindowHide = 7 }; /// create a new widget @@ -287,7 +288,7 @@ public: } protected: - + /// find the widget that has input focus virtual Widget *find_input_focus(); @@ -295,6 +296,9 @@ protected: /** @param cursor mouse cursor position relative to this widget's location */ Widget *find_mouse_focus(const math::Vector2f & cursor); + + /// find a visible widget + Widget *find_visible_child(const Widget *widget); /// list widget content size_t list(const size_t indent, const bool visible_only = false) const; |