diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-27 13:25:44 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-27 13:25:44 +0300 |
commit | 379c1f8befcc30b72f0b50dcbd653704348e4761 (patch) | |
tree | a43c0d30f39e592237bf7f3b9c8fca26434128d0 /src/ui/root.h | |
parent | 3846778c99d9efca609b7cb216cb71c675f036b0 (diff) |
UI root sizing is independent of window sizing
Diffstat (limited to 'src/ui/root.h')
-rw-r--r-- | src/ui/root.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/root.h b/src/ui/root.h index 4b14b942..65da8d85 100644 --- a/src/ui/root.h +++ b/src/ui/root.h | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | #include "widget.h" | 3 | #include "widget.h" |
4 | #include <the_Foundation/ptrset.h> | 4 | #include <the_Foundation/ptrset.h> |
5 | #include <the_Foundation/vec2.h> | ||
5 | 6 | ||
6 | iDeclareType(Root) | 7 | iDeclareType(Root) |
7 | 8 | ||
@@ -30,3 +31,9 @@ void updateMetrics_Root (iRoot *); | |||
30 | void updatePadding_Root (iRoot *); /* TODO: is part of metrics? */ | 31 | void updatePadding_Root (iRoot *); /* TODO: is part of metrics? */ |
31 | void dismissPortraitPhoneSidebars_Root (iRoot *); | 32 | void dismissPortraitPhoneSidebars_Root (iRoot *); |
32 | void showToolbars_Root (iRoot *, iBool show); | 33 | void showToolbars_Root (iRoot *, iBool show); |
34 | |||
35 | iInt2 size_Root (const iRoot *); | ||
36 | iRect rect_Root (const iRoot *); | ||
37 | iRect safeRect_Root (const iRoot *); | ||
38 | iInt2 visibleSize_Root (const iRoot *); /* may be obstructed by software keyboard */ | ||
39 | iBool isNarrow_Root (const iRoot *); | ||