-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.lua
126 lines (114 loc) · 3.41 KB
/
constants.lua
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
-- @define SHEETS_EVENT_MOUSE_DOWN 0
-- @define SHEETS_EVENT_MOUSE_UP 1
-- @define SHEETS_EVENT_MOUSE_CLICK 2
-- @define SHEETS_EVENT_MOUSE_HOLD 3
-- @define SHEETS_EVENT_MOUSE_DRAG 4
-- @define SHEETS_EVENT_MOUSE_SCROLL 5
-- @define SHEETS_EVENT_MOUSE_PING 6
-- @define SHEETS_EVENT_KEY_DOWN 7
-- @define SHEETS_EVENT_KEY_UP 8
-- @define SHEETS_EVENT_TEXT 9
-- @define SHEETS_EVENT_VOICE 10
-- @define SHEETS_EVENT_PASTE 11
-- @define ALIGNMENT_LEFT 0
-- @define ALIGNMENT_CENTRE 1
-- @define ALIGNMENT_CENTER ALIGNMENT_CENTRE
-- @define ALIGNMENT_RIGHT 2
-- @define ALIGNMENT_TOP 3
-- @define ALIGNMENT_BOTTOM 4
-- @define GRAPHICS_AREA_BOX 0
-- @define GRAPHICS_AREA_CIRCLE 1
-- @define GRAPHICS_AREA_LINE 2
-- @define GRAPHICS_AREA_VLINE 3
-- @define GRAPHICS_AREA_HLINE 4
-- @define GRAPHICS_AREA_FILL 5
-- @define GRAPHICS_AREA_POINT 6
-- @define GRAPHICS_AREA_CCIRCLE 7
-- @define TRANSPARENT 0
-- @define WHITE 1
-- @define ORANGE 2
-- @define MAGENTA 4
-- @define LIGHTBLUE 8
-- @define YELLOW 16
-- @define LIME 32
-- @define PINK 64
-- @define GREY 128
-- @define LIGHTGREY 256
-- @define CYAN 512
-- @define PURPLE 1024
-- @define BLUE 2048
-- @define BROWN 4096
-- @define GREEN 8192
-- @define RED 16384
-- @define BLACK 32768
-- @define TOKEN_EOF "eof"
-- @define TOKEN_STRING "string"
-- @define TOKEN_FLOAT "float"
-- @define TOKEN_BOOLEAN "float"
-- @define TOKEN_INTEGER "int"
-- @define TOKEN_IDENTIFIER "identifier"
-- @define TOKEN_KEYWORD "float"
-- @define TOKEN_NEWLINE "newline"
-- @define TOKEN_WHITESPACE "whitespace"
-- @define TOKEN_SYMBOL "symbol"
-- @define QUERY_ANY "any"
-- @define QUERY_ID "id"
-- @define QUERY_TAG "tag"
-- @define QUERY_CLASS "class"
-- @define QUERY_ATTRIBUTES "attributes"
-- @define QUERY_NEGATE "negate"
-- @define QUERY_OPERATOR "operator"
-- @define DVALUE_SELF "self"
-- @define DVALUE_APPLICATION "application"
-- @define DVALUE_PARENT "parent"
-- @define DVALUE_IDENTIFIER "identifier"
-- @define DVALUE_INTEGER "integer"
-- @define DVALUE_FLOAT "float"
-- @define DVALUE_BOOLEAN "boolean"
-- @define DVALUE_STRING "string"
-- @define DVALUE_PERCENTAGE "percentage"
-- @define DVALUE_QUERY "query"
-- @define DVALUE_DQUERY "dynamic query"
-- @define DVALUE_DOTINDEX "dotindex"
-- @define DVALUE_CALL "call"
-- @define DVALUE_INDEX "index"
-- @define DVALUE_UNEXPR "unary operator expression"
-- @define DVALUE_BINEXPR "binary operator expression"
-- @if SHEETS_LOWRES
-- @define BLANK_PIXEL { WHITE, WHITE, " " }
-- @else
-- @define BLANK_PIXEL WHITE
-- @endif
-- @if SHEETS_LOWRES
-- @define CIRCLE_CORRECTION 1.5
-- @else
-- @define CIRCLE_CORRECTION 1
-- @endif
-- @if SHEETS_CORE_ELEMENTS
-- @define SHEETS_BUTTON
-- @define SHEETS_CHECKBOX
-- @define SHEETS_COLOURSELECTOR
-- @define SHEETS_CONTAINER
-- @define SHEETS_DRAGGABLE
-- @define SHEETS_IMAGE
-- @define SHEETS_KEYHANDLER
-- @define SHEETS_LABEL
-- @define SHEETS_MENU
-- @define SHEETS_PANEL
-- @define SHEETS_RADIOBUTTON
-- @define SHEETS_SCROLLCONTAINER
-- @define SHEETS_TABS
-- @define SHEETS_TERMINAL
-- @define SHEETS_TEXT
-- @define SHEETS_TEXTINPUT
-- @define SHEETS_TOGGLE
-- @define SHEETS_WINDOW
-- @endif
-- @if SHEETS_LOWRES
-- @define GRAPHICS_NO_TEXT false
-- @else
-- @define GRAPHICS_NO_TEXT true
-- @endif
-- @ifn SHEETS_LOWRES
-- @define GRAPHICS_DEFAULT_FONT _graphics_default_font
-- @endif