summaryrefslogtreecommitdiff
path: root/src/ui/root.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-04 19:08:36 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-04 19:08:36 +0200
commit8c0ce575d06e10ac9f2ec60c0816443005533d53 (patch)
treed94dff7346fcb6ce30616f7d68265357d275ee4f /src/ui/root.h
parent63d39ae7a8f2c10bb2304edefee8dd1034b96693 (diff)
iOS: Position system input controls during animation
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 851d927d..2419b599 100644
--- a/src/ui/root.h
+++ b/src/ui/root.h
@@ -2,11 +2,15 @@
2 2
3#include "widget.h" 3#include "widget.h"
4#include "color.h" 4#include "color.h"
5#include <the_Foundation/audience.h>
5#include <the_Foundation/ptrset.h> 6#include <the_Foundation/ptrset.h>
6#include <the_Foundation/vec2.h> 7#include <the_Foundation/vec2.h>
7 8
8iDeclareType(Root) 9iDeclareType(Root)
9 10
11iDeclareNotifyFunc(Root, VisualOffsetsChanged)
12iDeclareAudienceGetter(Root, visualOffsetsChanged)
13
10struct Impl_Root { 14struct Impl_Root {
11 iWidget * widget; 15 iWidget * widget;
12 iWindow * window; 16 iWindow * window;
@@ -14,6 +18,8 @@ struct Impl_Root {
14 iPtrSet * pendingDestruction; 18 iPtrSet * pendingDestruction;
15 iBool pendingArrange; 19 iBool pendingArrange;
16 int loadAnimTimer; 20 int loadAnimTimer;
21 iBool didAnimateVisualOffsets;
22 iAudience *visualOffsetsChanged; /* called after running tickers */
17 iColor tmPalette[tmMax_ColorId]; /* theme-specific palette */ 23 iColor tmPalette[tmMax_ColorId]; /* theme-specific palette */
18}; 24};
19 25
@@ -36,6 +42,7 @@ void updatePadding_Root (iRoot *); /* TODO: is part of m
36void dismissPortraitPhoneSidebars_Root (iRoot *); 42void dismissPortraitPhoneSidebars_Root (iRoot *);
37void showToolbar_Root (iRoot *, iBool show); 43void showToolbar_Root (iRoot *, iBool show);
38void updateToolbarColors_Root (iRoot *); 44void updateToolbarColors_Root (iRoot *);
45void notifyVisualOffsetChange_Root (iRoot *);
39 46
40iInt2 size_Root (const iRoot *); 47iInt2 size_Root (const iRoot *);
41iRect rect_Root (const iRoot *); 48iRect rect_Root (const iRoot *);