diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-20 11:37:23 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-20 11:37:23 +0300 |
commit | 2d81addf78d6a8b0fb2f2959b04a385c4adffdf2 (patch) | |
tree | 5e0f45b9c945499bc6a6669563de13c5203981a6 /src/ui/widget.h | |
parent | 201021092d204680b353c82ce9e9beb76f3044e8 (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.h | 4 |
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 | ||
37 | iDeclareType(Root) /* each widget is associated with a Root */ | 37 | iDeclareType(Root) /* each widget is associated with a Root */ |
38 | iDeclareType(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 | ||
187 | iWidget * root_Widget (const iWidget *); | 188 | iWidget * root_Widget (const iWidget *); |
189 | iWindow * window_Widget (const iAnyObject *); | ||
188 | const iString * id_Widget (const iWidget *); | 190 | const iString * id_Widget (const iWidget *); |
189 | int64_t flags_Widget (const iWidget *); | 191 | int64_t flags_Widget (const iWidget *); |
190 | iRect bounds_Widget (const iWidget *); /* outer bounds */ | 192 | iRect bounds_Widget (const iWidget *); /* outer bounds */ |