summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-20 11:37:23 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-20 11:37:23 +0300
commit2d81addf78d6a8b0fb2f2959b04a385c4adffdf2 (patch)
tree5e0f45b9c945499bc6a6669563de13c5203981a6 /src/ui/widget.h
parent201021092d204680b353c82ce9e9beb76f3044e8 (diff)
Experimenting with independent popup windows
Toe dipping into multiple window support by allowing popup menu widgets to be displayed in independent windows. This is not a 100% replacement for native menus, but it gets pretty close.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 7491cb79..0eab69c1 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -34,7 +34,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
34#include <the_Foundation/string.h> 34#include <the_Foundation/string.h>
35#include <SDL_events.h> 35#include <SDL_events.h>
36 36
37iDeclareType(Root) /* each widget is associated with a Root */ 37iDeclareType(Root) /* each widget is associated with a Root */
38iDeclareType(Window) /* each Root is inside a Window */
38 39
39#define iDeclareWidgetClass(className) \ 40#define iDeclareWidgetClass(className) \
40 iDeclareType(className); \ 41 iDeclareType(className); \
@@ -185,6 +186,7 @@ void releaseChildren_Widget (iWidget *);
185 - inner: 0,0 is at the top left corner of the widget */ 186 - inner: 0,0 is at the top left corner of the widget */
186 187
187iWidget * root_Widget (const iWidget *); 188iWidget * root_Widget (const iWidget *);
189iWindow * window_Widget (const iAnyObject *);
188const iString * id_Widget (const iWidget *); 190const iString * id_Widget (const iWidget *);
189int64_t flags_Widget (const iWidget *); 191int64_t flags_Widget (const iWidget *);
190iRect bounds_Widget (const iWidget *); /* outer bounds */ 192iRect bounds_Widget (const iWidget *); /* outer bounds */