-
Notifications
You must be signed in to change notification settings - Fork 0
/
uifw_priv.h
79 lines (67 loc) · 2.15 KB
/
uifw_priv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef UIFW_PRIV_H
#define UIFW_PRIV_H
#ifndef LIBUI
#define LIBUI(ret, name) JNIEXPORT ret JNICALL Java_libui_LibUI_##name
#endif
struct UILibAndroidEnv {
jclass class;
jmethodID form_m;
jmethodID tab_layout_m;
jmethodID form_add_m;
jmethodID add_tab_m;
jmethodID add_runnable_m;
};
extern struct UILibAndroidEnv libui;
#define uiAreaSignature 0x41726561
#define uiBoxSignature 0x426F784C
#define uiButtonSignature 0x42746F6E
#define uiCheckboxSignature 0x43686B62
#define uiColorButtonSignature 0x436F6C42
#define uiComboboxSignature 0x436F6D62
#define uiDateTimePickerSignature 0x44545069
#define uiEditableComboboxSignature 0x45644362
#define uiEntrySignature 0x456E7472
#define uiFontButtonSignature 0x466F6E42
#define uiFormSignature 0x466F726D
#define uiGridSignature 0x47726964
#define uiGroupSignature 0x47727062
#define uiLabelSignature 0x4C61626C
#define uiMultilineEntrySignature 0x4D6C6E45
#define uiProgressBarSignature 0x50426172
#define uiRadioButtonsSignature 0x5264696F
#define uiSeparatorSignature 0x53657061
#define uiSliderSignature 0x536C6964
#define uiSpinboxSignature 0x5370696E
#define uiTabSignature 0x54616273
#define uiTableSignature 0x5461626C
#define uiWindowSignature 0x57696E64
#define uiScrollSignature 0x1234567
struct uiAndroidControl {
uiControl c;
jobject o;
short request_width;
short request_height;
char is_activity;
};
typedef struct uiAndroidControl uiAndroidControl;
struct uiButton { struct uiAndroidControl c; };
struct uiLabel { struct uiAndroidControl c; };
struct uiWindow { struct uiAndroidControl c; };
struct uiBox { struct uiAndroidControl c; };
struct uiTab { struct uiAndroidControl c; };
struct uiProgressBar { struct uiAndroidControl c; };
struct uiSeparator { struct uiAndroidControl c; };
struct uiMultilineEntry { struct uiAndroidControl c; };
struct uiEntry { struct uiAndroidControl c; };
struct uiForm { struct uiAndroidControl c; };
struct uiScroll { struct uiAndroidControl c; };
struct CallbackData {
uintptr_t fn_ptr;
uintptr_t arg1;
uintptr_t arg2;
};
static uiControl *uiControlFromView(jobject obj) {
// ...
return NULL;
}
#endif