diff options
author | Stijn Buys <ingar@osirion.org> | 2012-01-29 13:51:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-01-29 13:51:31 +0000 |
commit | 398f3df8af02047a76ab7172c69d93313250260c (patch) | |
tree | 0a4925510726d74b23d84115c56de0ca4042643e /src/ui/widget.h | |
parent | f320ee25c74b6f24db58d97c0129de6e94db3345 (diff) |
FS#80 Have mouse focus stick to the widget when the mouse button is down.
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; |