summaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-19 16:04:24 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-19 16:04:24 +0300
commit36f6b98f6835ed2a93d29f4937ac4d9cfd87a485 (patch)
treebbf3f497e96505214836eaaa1da0364300c7b8f7 /src/ui/window.h
parent904a84bdbef5143763a6585cf17b35667801fa9f (diff)
Manage mouse cursors at window level
The modal sheets switch mouse cursor to the default arrow.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index d6eed841..98c8b590 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -19,6 +19,7 @@ struct Impl_Window {
19 float uiScale; 19 float uiScale;
20 uint32_t frameTime; 20 uint32_t frameTime;
21 double presentTime; 21 double presentTime;
22 SDL_Cursor * cursors[SDL_NUM_SYSTEM_CURSORS];
22}; 23};
23 24
24iBool processEvent_Window (iWindow *, const SDL_Event *); 25iBool processEvent_Window (iWindow *, const SDL_Event *);
@@ -27,6 +28,7 @@ void resize_Window (iWindow *, int w, int h);
27void setTitle_Window (iWindow *, const iString *title); 28void setTitle_Window (iWindow *, const iString *title);
28void setUiScale_Window (iWindow *, float uiScale); 29void setUiScale_Window (iWindow *, float uiScale);
29void setFreezeDraw_Window (iWindow *, iBool freezeDraw); 30void setFreezeDraw_Window (iWindow *, iBool freezeDraw);
31void setCursor_Window (iWindow *, int cursor);
30 32
31iInt2 rootSize_Window (const iWindow *); 33iInt2 rootSize_Window (const iWindow *);
32float uiScale_Window (const iWindow *); 34float uiScale_Window (const iWindow *);