diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 4 | ||||
-rw-r--r-- | src/ui/window.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index f9e58acb..2062a3bb 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1055,6 +1055,10 @@ void setCursor_Window(iWindow *d, int cursor) { | |||
1055 | d->pendingCursor = d->cursors[cursor]; | 1055 | d->pendingCursor = d->cursors[cursor]; |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | uint32_t id_Window(const iWindow *d) { | ||
1059 | return d && d->win ? SDL_GetWindowID(d->win) : 0; | ||
1060 | } | ||
1061 | |||
1058 | iInt2 rootSize_Window(const iWindow *d) { | 1062 | iInt2 rootSize_Window(const iWindow *d) { |
1059 | return d->root->rect.size; | 1063 | return d->root->rect.size; |
1060 | } | 1064 | } |
diff --git a/src/ui/window.h b/src/ui/window.h index 9e3f16bc..25d81e6f 100644 --- a/src/ui/window.h +++ b/src/ui/window.h | |||
@@ -60,6 +60,7 @@ void setUiScale_Window (iWindow *, float uiScale); | |||
60 | void setFreezeDraw_Window (iWindow *, iBool freezeDraw); | 60 | void setFreezeDraw_Window (iWindow *, iBool freezeDraw); |
61 | void setCursor_Window (iWindow *, int cursor); | 61 | void setCursor_Window (iWindow *, int cursor); |
62 | 62 | ||
63 | uint32_t id_Window (const iWindow *); | ||
63 | iInt2 rootSize_Window (const iWindow *); | 64 | iInt2 rootSize_Window (const iWindow *); |
64 | float uiScale_Window (const iWindow *); | 65 | float uiScale_Window (const iWindow *); |
65 | iInt2 coord_Window (const iWindow *, int x, int y); | 66 | iInt2 coord_Window (const iWindow *, int x, int y); |