summaryrefslogtreecommitdiff
path: root/src/ui/root.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-27 13:25:44 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-27 13:25:44 +0300
commit379c1f8befcc30b72f0b50dcbd653704348e4761 (patch)
treea43c0d30f39e592237bf7f3b9c8fca26434128d0 /src/ui/root.h
parent3846778c99d9efca609b7cb216cb71c675f036b0 (diff)
UI root sizing is independent of window sizing
Diffstat (limited to 'src/ui/root.h')
-rw-r--r--src/ui/root.h7
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
6iDeclareType(Root) 7iDeclareType(Root)
7 8
@@ -30,3 +31,9 @@ void updateMetrics_Root (iRoot *);
30void updatePadding_Root (iRoot *); /* TODO: is part of metrics? */ 31void updatePadding_Root (iRoot *); /* TODO: is part of metrics? */
31void dismissPortraitPhoneSidebars_Root (iRoot *); 32void dismissPortraitPhoneSidebars_Root (iRoot *);
32void showToolbars_Root (iRoot *, iBool show); 33void showToolbars_Root (iRoot *, iBool show);
34
35iInt2 size_Root (const iRoot *);
36iRect rect_Root (const iRoot *);
37iRect safeRect_Root (const iRoot *);
38iInt2 visibleSize_Root (const iRoot *); /* may be obstructed by software keyboard */
39iBool isNarrow_Root (const iRoot *);