1 #ifndef GUI_MBOX_H
2 #define GUI_MBOX_H
3
4
5
6
7
8
9
10 #define MBOX_BTN_MASK 0x00FF
11 #define MBOX_BTN_OK 0x0001
12 #define MBOX_BTN_YES 0x0002
13 #define MBOX_BTN_NO 0x0004
14 #define MBOX_BTN_CANCEL 0x0008
15 #define MBOX_BTN_YES_NO 0x0006
16
17 #define MBOX_TEXT_MASK 0x0300
18 #define MBOX_TEXT_LEFT 0x0000
19 #define MBOX_TEXT_CENTER 0x0100
20 #define MBOX_TEXT_RIGHT 0x0200
21
22 #define MBOX_FUNC_MASK 0x0C00
23 #define MBOX_FUNC_RESTORE 0x0400
24
25 #define MBOX_DEF_MASK 0x3000
26 #define MBOX_DEF_BTN1 0x0000
27 #define MBOX_DEF_BTN2 0x1000
28 #define MBOX_DEF_BTN3 0x2000
29
30
31
32 extern void gui_mbox_init(int title, int msg, const unsigned int flags, void (*on_select)(unsigned int btn));
33 extern void gui_browser_progress_show(const char* msg, const unsigned int perc);
34
35
36 #endif