summaryrefslogtreecommitdiff
path: root/src/ui/mobile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/mobile.h')
-rw-r--r--src/ui/mobile.h37
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
27iDeclareType(Widget) 27iDeclareType(Widget)
28 28iDeclareType(MenuItem)
29void setupMenuTransition_Mobile (iWidget *menu, iBool isIncoming); 29
30void setupSheetTransition_Mobile (iWidget *sheet, iBool isIncoming); 30iBool isUsingPanelLayout_Mobile (void);
31 31iWidget * makePanels_Mobile (const char *id,
32void finalizeSheet_Mobile (iWidget *sheet); 32 const iMenuItem *itemsNullTerminated,
33 const iMenuItem *actions, size_t numActions);
34iWidget * makePanelsParent_Mobile (iWidget *parent,
35 const char *id,
36 const iMenuItem *itemsNullTerminated,
37 const iMenuItem *actions, size_t numActions);
38void initPanels_Mobile (iWidget *panels, iWidget *parentWidget,
39 const iMenuItem *itemsNullTerminated,
40 const iMenuItem *actions, size_t numActions);
41
42size_t currentPanelIndex_Mobile (const iWidget *panels);
43
44enum iTransitionFlags {
45 incoming_TransitionFlag = iBit(1),
46 dirMask_TransitionFlag = iBit(2) | iBit(3),
47};
48
49enum iTransitionDir {
50 right_TransitionDir = 0,
51 bottom_TransitionDir = 2,
52 left_TransitionDir = 4,
53 top_TransitionDir = 6,
54};
55
56void setupMenuTransition_Mobile (iWidget *menu, iBool isIncoming);
57void setupSheetTransition_Mobile (iWidget *sheet, int flags);