libui 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libui/ffi.rb +3 -0
- data/lib/libui/version.rb +1 -1
- data/lib/libui.rb +168 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c60340ec43dace0a242ef186a57ef756931f286350555b97c39baff6d072d6cb
|
4
|
+
data.tar.gz: fbf6e4dbd6ae9018fc6227c17f9250326b6b0850e764bb04d13780a764b8d777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d5618424d35ed377ae722b925dc5b2c808317e8b1d6657b0108db0d4e2cd9a8d65acc338e708eaad53bfa5733a6d6488e58a58ff428e94ffbae0d8c4db7a6f0
|
7
|
+
data.tar.gz: '095d839f03a9e511d2912c8c7310c02143f2a2968af301237b1f31184b0f85592ce0fb8a379768b0a79837ed7a3789f01c5280a20829690400807bd1d5c2b82d'
|
data/lib/libui/ffi.rb
CHANGED
@@ -34,6 +34,9 @@ module LibUI
|
|
34
34
|
'size_t Size'
|
35
35
|
]
|
36
36
|
|
37
|
+
# https://github.com/andlabs/libui/blob/master/ui.h
|
38
|
+
# keep same order
|
39
|
+
|
37
40
|
try_extern 'const char *uiInit(uiInitOptions *options)'
|
38
41
|
try_extern 'void uiUninit(void)'
|
39
42
|
try_extern 'void uiFreeInitError(const char *err)'
|
data/lib/libui/version.rb
CHANGED
data/lib/libui.rb
CHANGED
@@ -32,4 +32,172 @@ module LibUI
|
|
32
32
|
warn UI.free_init_error(init)
|
33
33
|
end
|
34
34
|
end
|
35
|
+
|
36
|
+
# UI_ENUM
|
37
|
+
# https://github.com/andlabs/libui/blob/master/ui.h
|
38
|
+
|
39
|
+
# ForEach
|
40
|
+
ForEachContinue = 0
|
41
|
+
ForEachStop = 1
|
42
|
+
|
43
|
+
# WindowResizeEdge
|
44
|
+
WindowResizeEdgeLeft = 0
|
45
|
+
WindowResizeEdgeTop = 1
|
46
|
+
WindowResizeEdgeRight = 2
|
47
|
+
WindowResizeEdgeBottom = 3
|
48
|
+
WindowResizeEdgeTopLeft = 4
|
49
|
+
WindowResizeEdgeTopRight = 5
|
50
|
+
WindowResizeEdgeBottomLeft = 6
|
51
|
+
WindowResizeEdgeBottomRight = 7
|
52
|
+
|
53
|
+
# DrawBrushType
|
54
|
+
DrawBrushTypeSolid = 0
|
55
|
+
DrawBrushTypeLinearGradient = 1
|
56
|
+
DrawBrushTypeRadialGradient = 2
|
57
|
+
DrawBrushTypeImage = 3
|
58
|
+
|
59
|
+
# DrawLineCap
|
60
|
+
DrawLineCapFlat = 0
|
61
|
+
DrawLineCapRound = 1
|
62
|
+
DrawLineCapSquare = 2
|
63
|
+
|
64
|
+
# DrawLineJoin
|
65
|
+
DrawLineJoinMiter = 0
|
66
|
+
DrawLineJoinRound = 1
|
67
|
+
DrawLineJoinBevel = 2
|
68
|
+
|
69
|
+
DrawDefaultMiterLimit = 10.0
|
70
|
+
|
71
|
+
# DrawFillMode
|
72
|
+
DrawFillModeWinding = 0
|
73
|
+
DrawFillModeAlternate = 1
|
74
|
+
|
75
|
+
# AttributeType
|
76
|
+
AttributeTypeFamily = 0
|
77
|
+
AttributeTypeSize = 1
|
78
|
+
AttributeTypeWeight = 2
|
79
|
+
AttributeTypeItalic = 3
|
80
|
+
AttributeTypeStretch = 4
|
81
|
+
AttributeTypeColor = 5
|
82
|
+
AttributeTypeBackground = 6
|
83
|
+
AttributeTypeUnderline = 7
|
84
|
+
AttributeTypeUnderlineColor = 8
|
85
|
+
AttributeTypeFeatures = 9
|
86
|
+
|
87
|
+
# TextWeight
|
88
|
+
TextWeightMinimum = 0
|
89
|
+
TextWeightThin = 100
|
90
|
+
TextWeightUltraLight = 200
|
91
|
+
TextWeightLight = 300
|
92
|
+
TextWeightBook = 350
|
93
|
+
TextWeightNormal = 400
|
94
|
+
TextWeightMedium = 500
|
95
|
+
TextWeightSemiBold = 600
|
96
|
+
TextWeightBold = 700
|
97
|
+
TextWeightUltraBold = 800
|
98
|
+
TextWeightHeavy = 900
|
99
|
+
TextWeightUltraHeavy = 950
|
100
|
+
TextWeightMaximum = 1000
|
101
|
+
|
102
|
+
# TextItalic
|
103
|
+
TextItalicNormal = 0
|
104
|
+
TextItalicOblique = 1
|
105
|
+
TextItalicItalic = 2
|
106
|
+
|
107
|
+
# TextStretch
|
108
|
+
TextStretchUltraCondensed = 0
|
109
|
+
TextStretchExtraCondensed = 1
|
110
|
+
TextStretchCondensed = 2
|
111
|
+
TextStretchSemiCondensed = 3
|
112
|
+
TextStretchNormal = 4
|
113
|
+
TextStretchSemiExpanded = 5
|
114
|
+
TextStretchExpanded = 6
|
115
|
+
TextStretchExtraExpanded = 7
|
116
|
+
TextStretchUltraExpanded = 8
|
117
|
+
|
118
|
+
# Underline
|
119
|
+
UnderlineNone = 0
|
120
|
+
UnderlineSingle = 1
|
121
|
+
UnderlineDouble = 2
|
122
|
+
UnderlineSuggestion = 3
|
123
|
+
|
124
|
+
# UnderlineColor
|
125
|
+
UnderlineColorCustom = 0
|
126
|
+
UnderlineColorSpelling = 1
|
127
|
+
UnderlineColorGrammar = 2
|
128
|
+
UnderlineColorAuxiliary = 3
|
129
|
+
|
130
|
+
# DrawTextAlign
|
131
|
+
DrawTextAlignLeft = 0
|
132
|
+
DrawTextAlignCenter = 1
|
133
|
+
DrawTextAlignRight = 2
|
134
|
+
|
135
|
+
# Modifiers
|
136
|
+
ModifierCtrl = (1 << 0)
|
137
|
+
ModifierAlt = (1 << 1)
|
138
|
+
ModifierShift = (1 << 2)
|
139
|
+
ModifierSuper = (1 << 3)
|
140
|
+
|
141
|
+
# ExtKey
|
142
|
+
ExtKeyEscape = 1
|
143
|
+
ExtKeyInsert = 2
|
144
|
+
ExtKeyDelete = 3
|
145
|
+
ExtKeyHome = 4
|
146
|
+
ExtKeyEnd = 5
|
147
|
+
ExtKeyPageUp = 6
|
148
|
+
ExtKeyPageDown = 7
|
149
|
+
ExtKeyUp = 8
|
150
|
+
ExtKeyDown = 9
|
151
|
+
ExtKeyLeft = 10
|
152
|
+
ExtKeyRight = 11
|
153
|
+
ExtKeyF1 = 12
|
154
|
+
ExtKeyF2 = 13
|
155
|
+
ExtKeyF3 = 14
|
156
|
+
ExtKeyF4 = 15
|
157
|
+
ExtKeyF5 = 16
|
158
|
+
ExtKeyF6 = 17
|
159
|
+
ExtKeyF7 = 18
|
160
|
+
ExtKeyF8 = 19
|
161
|
+
ExtKeyF9 = 20
|
162
|
+
ExtKeyF10 = 21
|
163
|
+
ExtKeyF11 = 22
|
164
|
+
ExtKeyF12 = 23
|
165
|
+
ExtKeyN0 = 24
|
166
|
+
ExtKeyN1 = 25
|
167
|
+
ExtKeyN2 = 26
|
168
|
+
ExtKeyN3 = 27
|
169
|
+
ExtKeyN4 = 28
|
170
|
+
ExtKeyN5 = 29
|
171
|
+
ExtKeyN6 = 30
|
172
|
+
ExtKeyN7 = 31
|
173
|
+
ExtKeyN8 = 32
|
174
|
+
ExtKeyN9 = 33
|
175
|
+
ExtKeyNDot = 34
|
176
|
+
ExtKeyNEnter = 35
|
177
|
+
ExtKeyNAdd = 36
|
178
|
+
ExtKeyNSubtract = 37
|
179
|
+
ExtKeyNMultiply = 38
|
180
|
+
ExtKeyNDivide = 39
|
181
|
+
|
182
|
+
# Align
|
183
|
+
AlignFill = 0
|
184
|
+
AlignStart = 1
|
185
|
+
AlignCenter = 2
|
186
|
+
AlignEnd = 3
|
187
|
+
|
188
|
+
# At
|
189
|
+
AtLeading = 0
|
190
|
+
AtTop = 1
|
191
|
+
AtTrailing = 2
|
192
|
+
AtBottom = 3
|
193
|
+
|
194
|
+
# TableValueType
|
195
|
+
TableValueTypeString = 0
|
196
|
+
TableValueTypeImage = 1
|
197
|
+
TableValueTypeInt = 2
|
198
|
+
TableValueTypeColor = 3
|
199
|
+
|
200
|
+
# editable
|
201
|
+
TableModelColumnNeverEditable = -1
|
202
|
+
TableModelColumnAlwaysEditable = -2
|
35
203
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|