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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5856ad97384408635e170c1ea252dc3dbdfa1ba3955bfc8b8c1ac2c29585ac1
4
- data.tar.gz: 67a9b78e39b61805afca932fc80365b59e068493f2da937c57b03e1500a2adf5
3
+ metadata.gz: c60340ec43dace0a242ef186a57ef756931f286350555b97c39baff6d072d6cb
4
+ data.tar.gz: fbf6e4dbd6ae9018fc6227c17f9250326b6b0850e764bb04d13780a764b8d777
5
5
  SHA512:
6
- metadata.gz: 5204e35c1c0f4b0c5f8acd69a4a1d76b6482a1fb298376c99ce29632a202c1340a39e017b68c563b4539a74e721b1611cd3a732b4a9983ef2a0fb3eef7a80b3c
7
- data.tar.gz: 8fb83fe3d145646bacb598dc88413364d534493f275c2e0ef637e9718908fe895796a1cb95cdb56f6c6d24b216f23ed68a7812a0c0978a5c700a014ecd0d1573
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LibUI
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.11'
5
5
  end
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.10
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-09-26 00:00:00.000000000 Z
11
+ date: 2021-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler