diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-04 19:08:36 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-04 19:08:36 +0200 |
commit | 8c0ce575d06e10ac9f2ec60c0816443005533d53 (patch) | |
tree | d94dff7346fcb6ce30616f7d68265357d275ee4f /src/ui/root.h | |
parent | 63d39ae7a8f2c10bb2304edefee8dd1034b96693 (diff) |
iOS: Position system input controls during animation
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 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 | ||
8 | iDeclareType(Root) | 9 | iDeclareType(Root) |
9 | 10 | ||
11 | iDeclareNotifyFunc(Root, VisualOffsetsChanged) | ||
12 | iDeclareAudienceGetter(Root, visualOffsetsChanged) | ||
13 | |||
10 | struct Impl_Root { | 14 | struct 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 | |||
36 | void dismissPortraitPhoneSidebars_Root (iRoot *); | 42 | void dismissPortraitPhoneSidebars_Root (iRoot *); |
37 | void showToolbar_Root (iRoot *, iBool show); | 43 | void showToolbar_Root (iRoot *, iBool show); |
38 | void updateToolbarColors_Root (iRoot *); | 44 | void updateToolbarColors_Root (iRoot *); |
45 | void notifyVisualOffsetChange_Root (iRoot *); | ||
39 | 46 | ||
40 | iInt2 size_Root (const iRoot *); | 47 | iInt2 size_Root (const iRoot *); |
41 | iRect rect_Root (const iRoot *); | 48 | iRect rect_Root (const iRoot *); |