diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-28 17:48:38 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-28 17:48:38 +0300 |
commit | 87b5dbd9c0393e787d2499d796486d3293f17214 (patch) | |
tree | 556f0b6b6a0188fdf9bd02275f796656ef428e86 /src/ui/window.h | |
parent | 408597bd4f71a13a511b6af33601dff0be2ed317 (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.h | 3 |
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); | |||
93 | void setTitle_Window (iWindow *, const iString *title); | 94 | void setTitle_Window (iWindow *, const iString *title); |
94 | void setUiScale_Window (iWindow *, float uiScale); | 95 | void setUiScale_Window (iWindow *, float uiScale); |
95 | void setFreezeDraw_Window (iWindow *, iBool freezeDraw); | 96 | void setFreezeDraw_Window (iWindow *, iBool freezeDraw); |
97 | iBool setKeyRoot_Window (iWindow *, iRoot *root); | ||
96 | void setCursor_Window (iWindow *, int cursor); | 98 | void setCursor_Window (iWindow *, int cursor); |
97 | void setSnap_Window (iWindow *, int snapMode); | 99 | void setSnap_Window (iWindow *, int snapMode); |
98 | void setKeyboardHeight_Window(iWindow *, int height); | 100 | void setKeyboardHeight_Window(iWindow *, int height); |
@@ -111,6 +113,7 @@ SDL_Renderer *renderer_Window (const iWindow *); | |||
111 | int snap_Window (const iWindow *); | 113 | int snap_Window (const iWindow *); |
112 | iBool isFullscreen_Window (const iWindow *); | 114 | iBool isFullscreen_Window (const iWindow *); |
113 | iRoot * findRoot_Window (const iWindow *, const iWidget *widget); | 115 | iRoot * findRoot_Window (const iWindow *, const iWidget *widget); |
116 | iRoot * otherRoot_Window (const iWindow *, iRoot *root); | ||
114 | 117 | ||
115 | iWindow * get_Window (void); | 118 | iWindow * get_Window (void); |
116 | 119 | ||