From 379c1f8befcc30b72f0b50dcbd653704348e4761 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 27 Apr 2021 13:25:44 +0300 Subject: UI root sizing is independent of window sizing --- src/ui/root.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui/root.h') 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 @@ #include "widget.h" #include +#include iDeclareType(Root) @@ -30,3 +31,9 @@ void updateMetrics_Root (iRoot *); void updatePadding_Root (iRoot *); /* TODO: is part of metrics? */ void dismissPortraitPhoneSidebars_Root (iRoot *); void showToolbars_Root (iRoot *, iBool show); + +iInt2 size_Root (const iRoot *); +iRect rect_Root (const iRoot *); +iRect safeRect_Root (const iRoot *); +iInt2 visibleSize_Root (const iRoot *); /* may be obstructed by software keyboard */ +iBool isNarrow_Root (const iRoot *); -- cgit v1.2.3