summaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 18:56:01 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 18:56:01 +0300
commit69ea47be1cee7298b65db8104f1c88e51554ba48 (patch)
treebf4cf799be4d9ceacec548edcd1eff30db92d757 /src/ui/window.h
parent6d8bf2508f5e2af36b61cca42ed68cad26c41d56 (diff)
Added Pure Black and Pure White themes
Font changes cause window redrawing to pause so document layout doesn’t get an intermediate update with a different width. Sheets are mouse-modal.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index 6f4e01ce..d6eed841 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -12,7 +12,7 @@ iDeclareTypeConstructionArgs(Window, iRect rect)
12 12
13struct Impl_Window { 13struct Impl_Window {
14 SDL_Window * win; 14 SDL_Window * win;
15 iBool isBlank; /* avoids premature draws while restoring window state */ 15 iBool isDrawFrozen; /* avoids premature draws while restoring window state */
16 SDL_Renderer *render; 16 SDL_Renderer *render;
17 iWidget * root; 17 iWidget * root;
18 float pixelRatio; 18 float pixelRatio;
@@ -26,6 +26,7 @@ void draw_Window (iWindow *);
26void resize_Window (iWindow *, int w, int h); 26void resize_Window (iWindow *, int w, int h);
27void setTitle_Window (iWindow *, const iString *title); 27void setTitle_Window (iWindow *, const iString *title);
28void setUiScale_Window (iWindow *, float uiScale); 28void setUiScale_Window (iWindow *, float uiScale);
29void setFreezeDraw_Window (iWindow *, iBool freezeDraw);
29 30
30iInt2 rootSize_Window (const iWindow *); 31iInt2 rootSize_Window (const iWindow *);
31float uiScale_Window (const iWindow *); 32float uiScale_Window (const iWindow *);