summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-17 18:43:20 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-17 18:43:20 +0200
commit7e393a4fda482d01252bd1a6e84ca8149bcc278e (patch)
tree3f4d5be987f7c2fd5fd3fcd8a2d97d7fb3cae8db /src/ui/widget.h
parentdb264802503606fd2d8a02fd761ad0914c28818a (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.h1
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 */
146iRect innerBounds_Widget (const iWidget *); 146iRect innerBounds_Widget (const iWidget *);
147iInt2 localCoord_Widget (const iWidget *, iInt2 coord); 147iInt2 localCoord_Widget (const iWidget *, iInt2 coord);
148iBool contains_Widget (const iWidget *, iInt2 coord); 148iBool contains_Widget (const iWidget *, iInt2 coord);
149iAny * hitChild_Widget (const iWidget *, iInt2 coord);
149iAny * findChild_Widget (const iWidget *, const char *id); 150iAny * findChild_Widget (const iWidget *, const char *id);
150iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class); 151iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class);
151iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); 152iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir);