summaryrefslogtreecommitdiff
path: root/src/ui/mobile.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-25 10:59:28 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-25 10:59:28 +0300
commitc80331992585bfee3d65a7ba24f3a4b640c48735 (patch)
tree5eaa85a0a3a1c46bdca7cccfae0e7349e22f6d13 /src/ui/mobile.h
parent562a0d2d38c0621a296e8343270f3f1efc268156 (diff)
parent242e8231ea61278fe482020658be86c2dec0ae53 (diff)
Merge branch 'work/v1.7' into dev
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);