diff options
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); | ||