diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-17 18:43:20 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-17 18:43:20 +0200 |
commit | 7e393a4fda482d01252bd1a6e84ca8149bcc278e (patch) | |
tree | 3f4d5be987f7c2fd5fd3fcd8a2d97d7fb3cae8db /src/ui/widget.h | |
parent | db264802503606fd2d8a02fd761ad0914c28818a (diff) |
Improved menu button behavior
Clicking a menu button while the menu is open should just close the menu.
Menus should not close if the mouse pointer leaves the window.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index f06a6607..e40b333b 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -146,6 +146,7 @@ iRect bounds_Widget (const iWidget *); /* outer bounds */ | |||
146 | iRect innerBounds_Widget (const iWidget *); | 146 | iRect innerBounds_Widget (const iWidget *); |
147 | iInt2 localCoord_Widget (const iWidget *, iInt2 coord); | 147 | iInt2 localCoord_Widget (const iWidget *, iInt2 coord); |
148 | iBool contains_Widget (const iWidget *, iInt2 coord); | 148 | iBool contains_Widget (const iWidget *, iInt2 coord); |
149 | iAny * hitChild_Widget (const iWidget *, iInt2 coord); | ||
149 | iAny * findChild_Widget (const iWidget *, const char *id); | 150 | iAny * findChild_Widget (const iWidget *, const char *id); |
150 | iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class); | 151 | iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class); |
151 | iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); | 152 | iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); |