diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-19 16:04:24 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-19 16:04:24 +0300 |
commit | 36f6b98f6835ed2a93d29f4937ac4d9cfd87a485 (patch) | |
tree | bbf3f497e96505214836eaaa1da0364300c7b8f7 /src/ui/window.h | |
parent | 904a84bdbef5143763a6585cf17b35667801fa9f (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.h | 2 |
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 | ||
24 | iBool processEvent_Window (iWindow *, const SDL_Event *); | 25 | iBool processEvent_Window (iWindow *, const SDL_Event *); |
@@ -27,6 +28,7 @@ void resize_Window (iWindow *, int w, int h); | |||
27 | void setTitle_Window (iWindow *, const iString *title); | 28 | void setTitle_Window (iWindow *, const iString *title); |
28 | void setUiScale_Window (iWindow *, float uiScale); | 29 | void setUiScale_Window (iWindow *, float uiScale); |
29 | void setFreezeDraw_Window (iWindow *, iBool freezeDraw); | 30 | void setFreezeDraw_Window (iWindow *, iBool freezeDraw); |
31 | void setCursor_Window (iWindow *, int cursor); | ||
30 | 32 | ||
31 | iInt2 rootSize_Window (const iWindow *); | 33 | iInt2 rootSize_Window (const iWindow *); |
32 | float uiScale_Window (const iWindow *); | 34 | float uiScale_Window (const iWindow *); |