-
Notifications
You must be signed in to change notification settings - Fork 6
/
enums.go
82 lines (73 loc) · 1.35 KB
/
enums.go
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
80
81
82
package microui
const (
MU_CLIP_PART = 1 + iota
MU_CLIP_ALL
)
const (
MU_COMMAND_JUMP = 1 + iota
MU_COMMAND_CLIP
MU_COMMAND_RECT
MU_COMMAND_TEXT
MU_COMMAND_ICON
MU_COMMAND_MAX
)
const (
MU_COLOR_TEXT = iota
MU_COLOR_BORDER
MU_COLOR_WINDOWBG
MU_COLOR_TITLEBG
MU_COLOR_TITLETEXT
MU_COLOR_PANELBG
MU_COLOR_BUTTON
MU_COLOR_BUTTONHOVER
MU_COLOR_BUTTONFOCUS
MU_COLOR_BASE
MU_COLOR_BASEHOVER
MU_COLOR_BASEFOCUS
MU_COLOR_SCROLLBASE
MU_COLOR_SCROLLTHUMB
MU_COLOR_MAX
)
const (
MU_ICON_CLOSE = 1 + iota
MU_ICON_CHECK
MU_ICON_COLLAPSED
MU_ICON_EXPANDED
MU_ICON_MAX
)
const (
MU_RES_ACTIVE = (1 << 0)
MU_RES_SUBMIT = (1 << 1)
MU_RES_CHANGE = (1 << 2)
)
const (
MU_OPT_ALIGNCENTER = (1 << 0)
MU_OPT_ALIGNRIGHT = (1 << 1)
MU_OPT_NOINTERACT = (1 << 2)
MU_OPT_NOFRAME = (1 << 3)
MU_OPT_NORESIZE = (1 << 4)
MU_OPT_NOSCROLL = (1 << 5)
MU_OPT_NOCLOSE = (1 << 6)
MU_OPT_NOTITLE = (1 << 7)
MU_OPT_HOLDFOCUS = (1 << 8)
MU_OPT_AUTOSIZE = (1 << 9)
MU_OPT_POPUP = (1 << 10)
MU_OPT_CLOSED = (1 << 11)
MU_OPT_EXPANDED = (1 << 12)
)
const (
MU_MOUSE_LEFT = (1 << 0)
MU_MOUSE_RIGHT = (1 << 1)
MU_MOUSE_MIDDLE = (1 << 2)
)
const (
MU_KEY_SHIFT = (1 << 0)
MU_KEY_CTRL = (1 << 1)
MU_KEY_ALT = (1 << 2)
MU_KEY_BACKSPACE = (1 << 3)
MU_KEY_RETURN = (1 << 4)
)
const (
RELATIVE = 1 + iota
ABSOLUTE
)