diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-25 10:59:28 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-25 10:59:28 +0300 |
commit | c80331992585bfee3d65a7ba24f3a4b640c48735 (patch) | |
tree | 5eaa85a0a3a1c46bdca7cccfae0e7349e22f6d13 /src/ui/mobile.h | |
parent | 562a0d2d38c0621a296e8343270f3f1efc268156 (diff) | |
parent | 242e8231ea61278fe482020658be86c2dec0ae53 (diff) |
Merge branch 'work/v1.7' into dev
Diffstat (limited to 'src/ui/mobile.h')
-rw-r--r-- | src/ui/mobile.h | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/src/ui/mobile.h b/src/ui/mobile.h index 44134389..9d7ac8e4 100644 --- a/src/ui/mobile.h +++ b/src/ui/mobile.h | |||
@@ -22,11 +22,36 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
22 | 22 | ||
23 | #pragma once | 23 | #pragma once |
24 | 24 | ||
25 | #include <the_Foundation/defs.h> | 25 | #include <the_Foundation/rect.h> |
26 | 26 | ||
27 | iDeclareType(Widget) | 27 | iDeclareType(Widget) |
28 | 28 | iDeclareType(MenuItem) | |
29 | void setupMenuTransition_Mobile (iWidget *menu, iBool isIncoming); | 29 | |
30 | void setupSheetTransition_Mobile (iWidget *sheet, iBool isIncoming); | 30 | iBool isUsingPanelLayout_Mobile (void); |
31 | 31 | iWidget * makePanels_Mobile (const char *id, | |
32 | void finalizeSheet_Mobile (iWidget *sheet); | 32 | const iMenuItem *itemsNullTerminated, |
33 | const iMenuItem *actions, size_t numActions); | ||
34 | iWidget * makePanelsParent_Mobile (iWidget *parent, | ||
35 | const char *id, | ||
36 | const iMenuItem *itemsNullTerminated, | ||
37 | const iMenuItem *actions, size_t numActions); | ||
38 | void initPanels_Mobile (iWidget *panels, iWidget *parentWidget, | ||
39 | const iMenuItem *itemsNullTerminated, | ||
40 | const iMenuItem *actions, size_t numActions); | ||
41 | |||
42 | size_t currentPanelIndex_Mobile (const iWidget *panels); | ||
43 | |||
44 | enum iTransitionFlags { | ||
45 | incoming_TransitionFlag = iBit(1), | ||
46 | dirMask_TransitionFlag = iBit(2) | iBit(3), | ||
47 | }; | ||
48 | |||
49 | enum iTransitionDir { | ||
50 | right_TransitionDir = 0, | ||
51 | bottom_TransitionDir = 2, | ||
52 | left_TransitionDir = 4, | ||
53 | top_TransitionDir = 6, | ||
54 | }; | ||
55 | |||
56 | void setupMenuTransition_Mobile (iWidget *menu, iBool isIncoming); | ||
57 | void setupSheetTransition_Mobile (iWidget *sheet, int flags); | ||