summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c4
-rw-r--r--src/ui/window.h1
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
1058uint32_t id_Window(const iWindow *d) {
1059 return d && d->win ? SDL_GetWindowID(d->win) : 0;
1060}
1061
1058iInt2 rootSize_Window(const iWindow *d) { 1062iInt2 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);
60void setFreezeDraw_Window (iWindow *, iBool freezeDraw); 60void setFreezeDraw_Window (iWindow *, iBool freezeDraw);
61void setCursor_Window (iWindow *, int cursor); 61void setCursor_Window (iWindow *, int cursor);
62 62
63uint32_t id_Window (const iWindow *);
63iInt2 rootSize_Window (const iWindow *); 64iInt2 rootSize_Window (const iWindow *);
64float uiScale_Window (const iWindow *); 65float uiScale_Window (const iWindow *);
65iInt2 coord_Window (const iWindow *, int x, int y); 66iInt2 coord_Window (const iWindow *, int x, int y);