summaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-28 17:48:38 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-28 17:48:38 +0300
commit87b5dbd9c0393e787d2499d796486d3293f17214 (patch)
tree556f0b6b6a0188fdf9bd02275f796656ef428e86 /src/ui/window.h
parent408597bd4f71a13a511b6af33601dff0be2ed317 (diff)
Working on multiple UI roots
Root focus switching and opening links in the other root.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index de0133b1..b2b22e90 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -68,6 +68,7 @@ struct Impl_Window {
68 SDL_Renderer *render; 68 SDL_Renderer *render;
69 iInt2 size; 69 iInt2 size;
70 iRoot * roots[2]; /* root widget and UI state; second one is for split mode */ 70 iRoot * roots[2]; /* root widget and UI state; second one is for split mode */
71 iRoot * keyRoot; /* root that has the current keyboard input focus */
71 iWidget * hover; 72 iWidget * hover;
72 iWidget * mouseGrab; 73 iWidget * mouseGrab;
73 iWidget * focus; 74 iWidget * focus;
@@ -93,6 +94,7 @@ void resize_Window (iWindow *, int w, int h);
93void setTitle_Window (iWindow *, const iString *title); 94void setTitle_Window (iWindow *, const iString *title);
94void setUiScale_Window (iWindow *, float uiScale); 95void setUiScale_Window (iWindow *, float uiScale);
95void setFreezeDraw_Window (iWindow *, iBool freezeDraw); 96void setFreezeDraw_Window (iWindow *, iBool freezeDraw);
97iBool setKeyRoot_Window (iWindow *, iRoot *root);
96void setCursor_Window (iWindow *, int cursor); 98void setCursor_Window (iWindow *, int cursor);
97void setSnap_Window (iWindow *, int snapMode); 99void setSnap_Window (iWindow *, int snapMode);
98void setKeyboardHeight_Window(iWindow *, int height); 100void setKeyboardHeight_Window(iWindow *, int height);
@@ -111,6 +113,7 @@ SDL_Renderer *renderer_Window (const iWindow *);
111int snap_Window (const iWindow *); 113int snap_Window (const iWindow *);
112iBool isFullscreen_Window (const iWindow *); 114iBool isFullscreen_Window (const iWindow *);
113iRoot * findRoot_Window (const iWindow *, const iWidget *widget); 115iRoot * findRoot_Window (const iWindow *, const iWidget *widget);
116iRoot * otherRoot_Window (const iWindow *, iRoot *root);
114 117
115iWindow * get_Window (void); 118iWindow * get_Window (void);
116 119