raylib-bindings 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +16 -0
- data/README.md +1 -1
- data/examples/template.rb +14 -20
- data/lib/config.rb +0 -1
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.dylib +0 -0
- data/lib/libraylib.x86_64.so +0 -0
- data/lib/physac.aarch64.so +0 -0
- data/lib/physac.dll +0 -0
- data/lib/physac.x86_64.so +0 -0
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.dylib +0 -0
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raygui_main.rb +57 -39
- data/lib/raylib_helper.rb +79 -14
- data/lib/raylib_main.rb +94 -41
- data/lib/raymath.rb +14 -0
- data/lib/rlgl.rb +14 -11
- metadata +2 -3
- data/lib/raygui.rb +0 -854
data/lib/raygui.rb
DELETED
@@ -1,854 +0,0 @@
|
|
1
|
-
# Yet another raylib wrapper for Ruby
|
2
|
-
#
|
3
|
-
# * https://github.com/vaiorabbit/raylib-bindings
|
4
|
-
#
|
5
|
-
# [NOTICE] Autogenerated. Do not edit.
|
6
|
-
|
7
|
-
require 'ffi'
|
8
|
-
|
9
|
-
module Raylib
|
10
|
-
extend FFI::Library
|
11
|
-
|
12
|
-
# Define/Macro
|
13
|
-
|
14
|
-
RAYGUI_VERSION_MAJOR = 4
|
15
|
-
RAYGUI_VERSION_MINOR = 0
|
16
|
-
RAYGUI_VERSION_PATCH = 0
|
17
|
-
RAYGUI_VERSION = "4.0-dev"
|
18
|
-
SCROLLBAR_LEFT_SIDE = 0
|
19
|
-
SCROLLBAR_RIGHT_SIDE = 1
|
20
|
-
|
21
|
-
# Enum
|
22
|
-
|
23
|
-
# enum GuiState
|
24
|
-
# Gui control state
|
25
|
-
STATE_NORMAL = 0
|
26
|
-
STATE_FOCUSED = 1
|
27
|
-
STATE_PRESSED = 2
|
28
|
-
STATE_DISABLED = 3
|
29
|
-
|
30
|
-
# enum GuiTextAlignment
|
31
|
-
# Gui control text alignment
|
32
|
-
TEXT_ALIGN_LEFT = 0
|
33
|
-
TEXT_ALIGN_CENTER = 1
|
34
|
-
TEXT_ALIGN_RIGHT = 2
|
35
|
-
|
36
|
-
# enum GuiControl
|
37
|
-
# Gui controls
|
38
|
-
DEFAULT = 0
|
39
|
-
LABEL = 1 # Used also for: LABELBUTTON
|
40
|
-
BUTTON = 2
|
41
|
-
TOGGLE = 3 # Used also for: TOGGLEGROUP
|
42
|
-
SLIDER = 4 # Used also for: SLIDERBAR
|
43
|
-
PROGRESSBAR = 5
|
44
|
-
CHECKBOX = 6
|
45
|
-
COMBOBOX = 7
|
46
|
-
DROPDOWNBOX = 8
|
47
|
-
TEXTBOX = 9 # Used also for: TEXTBOXMULTI
|
48
|
-
VALUEBOX = 10
|
49
|
-
SPINNER = 11 # Uses: BUTTON, VALUEBOX
|
50
|
-
LISTVIEW = 12
|
51
|
-
COLORPICKER = 13
|
52
|
-
SCROLLBAR = 14
|
53
|
-
STATUSBAR = 15
|
54
|
-
|
55
|
-
# enum GuiControlProperty
|
56
|
-
# Gui base properties for every control
|
57
|
-
BORDER_COLOR_NORMAL = 0
|
58
|
-
BASE_COLOR_NORMAL = 1
|
59
|
-
TEXT_COLOR_NORMAL = 2
|
60
|
-
BORDER_COLOR_FOCUSED = 3
|
61
|
-
BASE_COLOR_FOCUSED = 4
|
62
|
-
TEXT_COLOR_FOCUSED = 5
|
63
|
-
BORDER_COLOR_PRESSED = 6
|
64
|
-
BASE_COLOR_PRESSED = 7
|
65
|
-
TEXT_COLOR_PRESSED = 8
|
66
|
-
BORDER_COLOR_DISABLED = 9
|
67
|
-
BASE_COLOR_DISABLED = 10
|
68
|
-
TEXT_COLOR_DISABLED = 11
|
69
|
-
BORDER_WIDTH = 12
|
70
|
-
TEXT_PADDING = 13
|
71
|
-
TEXT_ALIGNMENT = 14
|
72
|
-
RESERVED = 15
|
73
|
-
|
74
|
-
# enum GuiDefaultProperty
|
75
|
-
# DEFAULT extended properties
|
76
|
-
TEXT_SIZE = 16 # Text size (glyphs max height)
|
77
|
-
TEXT_SPACING = 17 # Text spacing between glyphs
|
78
|
-
LINE_COLOR = 18 # Line control color
|
79
|
-
BACKGROUND_COLOR = 19 # Background color
|
80
|
-
|
81
|
-
# enum GuiToggleProperty
|
82
|
-
# Toggle/ToggleGroup
|
83
|
-
GROUP_PADDING = 16 # ToggleGroup separation between toggles
|
84
|
-
|
85
|
-
# enum GuiSliderProperty
|
86
|
-
# Slider/SliderBar
|
87
|
-
SLIDER_WIDTH = 16 # Slider size of internal bar
|
88
|
-
SLIDER_PADDING = 17 # Slider/SliderBar internal bar padding
|
89
|
-
|
90
|
-
# enum GuiProgressBarProperty
|
91
|
-
# ProgressBar
|
92
|
-
PROGRESS_PADDING = 16 # ProgressBar internal padding
|
93
|
-
|
94
|
-
# enum GuiScrollBarProperty
|
95
|
-
# ScrollBar
|
96
|
-
ARROWS_SIZE = 16
|
97
|
-
ARROWS_VISIBLE = 17
|
98
|
-
SCROLL_SLIDER_PADDING = 18 # (SLIDERBAR, SLIDER_PADDING)
|
99
|
-
SCROLL_SLIDER_SIZE = 19
|
100
|
-
SCROLL_PADDING = 20
|
101
|
-
SCROLL_SPEED = 21
|
102
|
-
|
103
|
-
# enum GuiCheckBoxProperty
|
104
|
-
# CheckBox
|
105
|
-
CHECK_PADDING = 16 # CheckBox internal check padding
|
106
|
-
|
107
|
-
# enum GuiComboBoxProperty
|
108
|
-
# ComboBox
|
109
|
-
COMBO_BUTTON_WIDTH = 16 # ComboBox right button width
|
110
|
-
COMBO_BUTTON_SPACING = 17 # ComboBox button separation
|
111
|
-
|
112
|
-
# enum GuiDropdownBoxProperty
|
113
|
-
# DropdownBox
|
114
|
-
ARROW_PADDING = 16 # DropdownBox arrow separation from border and items
|
115
|
-
DROPDOWN_ITEMS_SPACING = 17 # DropdownBox items separation
|
116
|
-
|
117
|
-
# enum GuiTextBoxProperty
|
118
|
-
# TextBox/TextBoxMulti/ValueBox/Spinner
|
119
|
-
TEXT_INNER_PADDING = 16 # TextBox/TextBoxMulti/ValueBox/Spinner inner text padding
|
120
|
-
TEXT_LINES_SPACING = 17 # TextBoxMulti lines separation
|
121
|
-
TEXT_ALIGNMENT_VERTICAL = 18 # TextBoxMulti vertical alignment: 0-CENTERED, 1-UP, 2-DOWN
|
122
|
-
TEXT_MULTILINE = 19 # TextBox supports multiple lines
|
123
|
-
TEXT_WRAP_MODE = 20 # TextBox wrap mode for multiline: 0-NO_WRAP, 1-CHAR_WRAP, 2-WORD_WRAP
|
124
|
-
|
125
|
-
# enum GuiSpinnerProperty
|
126
|
-
# Spinner
|
127
|
-
SPIN_BUTTON_WIDTH = 16 # Spinner left/right buttons width
|
128
|
-
SPIN_BUTTON_SPACING = 17 # Spinner buttons separation
|
129
|
-
|
130
|
-
# enum GuiListViewProperty
|
131
|
-
# ListView
|
132
|
-
LIST_ITEMS_HEIGHT = 16 # ListView items height
|
133
|
-
LIST_ITEMS_SPACING = 17 # ListView items separation
|
134
|
-
SCROLLBAR_WIDTH = 18 # ListView scrollbar size (usually width)
|
135
|
-
SCROLLBAR_SIDE = 19 # ListView scrollbar side (0-left, 1-right)
|
136
|
-
|
137
|
-
# enum GuiColorPickerProperty
|
138
|
-
# ColorPicker
|
139
|
-
COLOR_SELECTOR_SIZE = 16
|
140
|
-
HUEBAR_WIDTH = 17 # ColorPicker right hue bar width
|
141
|
-
HUEBAR_PADDING = 18 # ColorPicker right hue bar separation from panel
|
142
|
-
HUEBAR_SELECTOR_HEIGHT = 19 # ColorPicker right hue bar selector height
|
143
|
-
HUEBAR_SELECTOR_OVERFLOW = 20 # ColorPicker right hue bar selector overflow
|
144
|
-
|
145
|
-
# enum GuiIconName
|
146
|
-
#
|
147
|
-
ICON_NONE = 0
|
148
|
-
ICON_FOLDER_FILE_OPEN = 1
|
149
|
-
ICON_FILE_SAVE_CLASSIC = 2
|
150
|
-
ICON_FOLDER_OPEN = 3
|
151
|
-
ICON_FOLDER_SAVE = 4
|
152
|
-
ICON_FILE_OPEN = 5
|
153
|
-
ICON_FILE_SAVE = 6
|
154
|
-
ICON_FILE_EXPORT = 7
|
155
|
-
ICON_FILE_ADD = 8
|
156
|
-
ICON_FILE_DELETE = 9
|
157
|
-
ICON_FILETYPE_TEXT = 10
|
158
|
-
ICON_FILETYPE_AUDIO = 11
|
159
|
-
ICON_FILETYPE_IMAGE = 12
|
160
|
-
ICON_FILETYPE_PLAY = 13
|
161
|
-
ICON_FILETYPE_VIDEO = 14
|
162
|
-
ICON_FILETYPE_INFO = 15
|
163
|
-
ICON_FILE_COPY = 16
|
164
|
-
ICON_FILE_CUT = 17
|
165
|
-
ICON_FILE_PASTE = 18
|
166
|
-
ICON_CURSOR_HAND = 19
|
167
|
-
ICON_CURSOR_POINTER = 20
|
168
|
-
ICON_CURSOR_CLASSIC = 21
|
169
|
-
ICON_PENCIL = 22
|
170
|
-
ICON_PENCIL_BIG = 23
|
171
|
-
ICON_BRUSH_CLASSIC = 24
|
172
|
-
ICON_BRUSH_PAINTER = 25
|
173
|
-
ICON_WATER_DROP = 26
|
174
|
-
ICON_COLOR_PICKER = 27
|
175
|
-
ICON_RUBBER = 28
|
176
|
-
ICON_COLOR_BUCKET = 29
|
177
|
-
ICON_TEXT_T = 30
|
178
|
-
ICON_TEXT_A = 31
|
179
|
-
ICON_SCALE = 32
|
180
|
-
ICON_RESIZE = 33
|
181
|
-
ICON_FILTER_POINT = 34
|
182
|
-
ICON_FILTER_BILINEAR = 35
|
183
|
-
ICON_CROP = 36
|
184
|
-
ICON_CROP_ALPHA = 37
|
185
|
-
ICON_SQUARE_TOGGLE = 38
|
186
|
-
ICON_SYMMETRY = 39
|
187
|
-
ICON_SYMMETRY_HORIZONTAL = 40
|
188
|
-
ICON_SYMMETRY_VERTICAL = 41
|
189
|
-
ICON_LENS = 42
|
190
|
-
ICON_LENS_BIG = 43
|
191
|
-
ICON_EYE_ON = 44
|
192
|
-
ICON_EYE_OFF = 45
|
193
|
-
ICON_FILTER_TOP = 46
|
194
|
-
ICON_FILTER = 47
|
195
|
-
ICON_TARGET_POINT = 48
|
196
|
-
ICON_TARGET_SMALL = 49
|
197
|
-
ICON_TARGET_BIG = 50
|
198
|
-
ICON_TARGET_MOVE = 51
|
199
|
-
ICON_CURSOR_MOVE = 52
|
200
|
-
ICON_CURSOR_SCALE = 53
|
201
|
-
ICON_CURSOR_SCALE_RIGHT = 54
|
202
|
-
ICON_CURSOR_SCALE_LEFT = 55
|
203
|
-
ICON_UNDO = 56
|
204
|
-
ICON_REDO = 57
|
205
|
-
ICON_REREDO = 58
|
206
|
-
ICON_MUTATE = 59
|
207
|
-
ICON_ROTATE = 60
|
208
|
-
ICON_REPEAT = 61
|
209
|
-
ICON_SHUFFLE = 62
|
210
|
-
ICON_EMPTYBOX = 63
|
211
|
-
ICON_TARGET = 64
|
212
|
-
ICON_TARGET_SMALL_FILL = 65
|
213
|
-
ICON_TARGET_BIG_FILL = 66
|
214
|
-
ICON_TARGET_MOVE_FILL = 67
|
215
|
-
ICON_CURSOR_MOVE_FILL = 68
|
216
|
-
ICON_CURSOR_SCALE_FILL = 69
|
217
|
-
ICON_CURSOR_SCALE_RIGHT_FILL = 70
|
218
|
-
ICON_CURSOR_SCALE_LEFT_FILL = 71
|
219
|
-
ICON_UNDO_FILL = 72
|
220
|
-
ICON_REDO_FILL = 73
|
221
|
-
ICON_REREDO_FILL = 74
|
222
|
-
ICON_MUTATE_FILL = 75
|
223
|
-
ICON_ROTATE_FILL = 76
|
224
|
-
ICON_REPEAT_FILL = 77
|
225
|
-
ICON_SHUFFLE_FILL = 78
|
226
|
-
ICON_EMPTYBOX_SMALL = 79
|
227
|
-
ICON_BOX = 80
|
228
|
-
ICON_BOX_TOP = 81
|
229
|
-
ICON_BOX_TOP_RIGHT = 82
|
230
|
-
ICON_BOX_RIGHT = 83
|
231
|
-
ICON_BOX_BOTTOM_RIGHT = 84
|
232
|
-
ICON_BOX_BOTTOM = 85
|
233
|
-
ICON_BOX_BOTTOM_LEFT = 86
|
234
|
-
ICON_BOX_LEFT = 87
|
235
|
-
ICON_BOX_TOP_LEFT = 88
|
236
|
-
ICON_BOX_CENTER = 89
|
237
|
-
ICON_BOX_CIRCLE_MASK = 90
|
238
|
-
ICON_POT = 91
|
239
|
-
ICON_ALPHA_MULTIPLY = 92
|
240
|
-
ICON_ALPHA_CLEAR = 93
|
241
|
-
ICON_DITHERING = 94
|
242
|
-
ICON_MIPMAPS = 95
|
243
|
-
ICON_BOX_GRID = 96
|
244
|
-
ICON_GRID = 97
|
245
|
-
ICON_BOX_CORNERS_SMALL = 98
|
246
|
-
ICON_BOX_CORNERS_BIG = 99
|
247
|
-
ICON_FOUR_BOXES = 100
|
248
|
-
ICON_GRID_FILL = 101
|
249
|
-
ICON_BOX_MULTISIZE = 102
|
250
|
-
ICON_ZOOM_SMALL = 103
|
251
|
-
ICON_ZOOM_MEDIUM = 104
|
252
|
-
ICON_ZOOM_BIG = 105
|
253
|
-
ICON_ZOOM_ALL = 106
|
254
|
-
ICON_ZOOM_CENTER = 107
|
255
|
-
ICON_BOX_DOTS_SMALL = 108
|
256
|
-
ICON_BOX_DOTS_BIG = 109
|
257
|
-
ICON_BOX_CONCENTRIC = 110
|
258
|
-
ICON_BOX_GRID_BIG = 111
|
259
|
-
ICON_OK_TICK = 112
|
260
|
-
ICON_CROSS = 113
|
261
|
-
ICON_ARROW_LEFT = 114
|
262
|
-
ICON_ARROW_RIGHT = 115
|
263
|
-
ICON_ARROW_DOWN = 116
|
264
|
-
ICON_ARROW_UP = 117
|
265
|
-
ICON_ARROW_LEFT_FILL = 118
|
266
|
-
ICON_ARROW_RIGHT_FILL = 119
|
267
|
-
ICON_ARROW_DOWN_FILL = 120
|
268
|
-
ICON_ARROW_UP_FILL = 121
|
269
|
-
ICON_AUDIO = 122
|
270
|
-
ICON_FX = 123
|
271
|
-
ICON_WAVE = 124
|
272
|
-
ICON_WAVE_SINUS = 125
|
273
|
-
ICON_WAVE_SQUARE = 126
|
274
|
-
ICON_WAVE_TRIANGULAR = 127
|
275
|
-
ICON_CROSS_SMALL = 128
|
276
|
-
ICON_PLAYER_PREVIOUS = 129
|
277
|
-
ICON_PLAYER_PLAY_BACK = 130
|
278
|
-
ICON_PLAYER_PLAY = 131
|
279
|
-
ICON_PLAYER_PAUSE = 132
|
280
|
-
ICON_PLAYER_STOP = 133
|
281
|
-
ICON_PLAYER_NEXT = 134
|
282
|
-
ICON_PLAYER_RECORD = 135
|
283
|
-
ICON_MAGNET = 136
|
284
|
-
ICON_LOCK_CLOSE = 137
|
285
|
-
ICON_LOCK_OPEN = 138
|
286
|
-
ICON_CLOCK = 139
|
287
|
-
ICON_TOOLS = 140
|
288
|
-
ICON_GEAR = 141
|
289
|
-
ICON_GEAR_BIG = 142
|
290
|
-
ICON_BIN = 143
|
291
|
-
ICON_HAND_POINTER = 144
|
292
|
-
ICON_LASER = 145
|
293
|
-
ICON_COIN = 146
|
294
|
-
ICON_EXPLOSION = 147
|
295
|
-
ICON_1UP = 148
|
296
|
-
ICON_PLAYER = 149
|
297
|
-
ICON_PLAYER_JUMP = 150
|
298
|
-
ICON_KEY = 151
|
299
|
-
ICON_DEMON = 152
|
300
|
-
ICON_TEXT_POPUP = 153
|
301
|
-
ICON_GEAR_EX = 154
|
302
|
-
ICON_CRACK = 155
|
303
|
-
ICON_CRACK_POINTS = 156
|
304
|
-
ICON_STAR = 157
|
305
|
-
ICON_DOOR = 158
|
306
|
-
ICON_EXIT = 159
|
307
|
-
ICON_MODE_2D = 160
|
308
|
-
ICON_MODE_3D = 161
|
309
|
-
ICON_CUBE = 162
|
310
|
-
ICON_CUBE_FACE_TOP = 163
|
311
|
-
ICON_CUBE_FACE_LEFT = 164
|
312
|
-
ICON_CUBE_FACE_FRONT = 165
|
313
|
-
ICON_CUBE_FACE_BOTTOM = 166
|
314
|
-
ICON_CUBE_FACE_RIGHT = 167
|
315
|
-
ICON_CUBE_FACE_BACK = 168
|
316
|
-
ICON_CAMERA = 169
|
317
|
-
ICON_SPECIAL = 170
|
318
|
-
ICON_LINK_NET = 171
|
319
|
-
ICON_LINK_BOXES = 172
|
320
|
-
ICON_LINK_MULTI = 173
|
321
|
-
ICON_LINK = 174
|
322
|
-
ICON_LINK_BROKE = 175
|
323
|
-
ICON_TEXT_NOTES = 176
|
324
|
-
ICON_NOTEBOOK = 177
|
325
|
-
ICON_SUITCASE = 178
|
326
|
-
ICON_SUITCASE_ZIP = 179
|
327
|
-
ICON_MAILBOX = 180
|
328
|
-
ICON_MONITOR = 181
|
329
|
-
ICON_PRINTER = 182
|
330
|
-
ICON_PHOTO_CAMERA = 183
|
331
|
-
ICON_PHOTO_CAMERA_FLASH = 184
|
332
|
-
ICON_HOUSE = 185
|
333
|
-
ICON_HEART = 186
|
334
|
-
ICON_CORNER = 187
|
335
|
-
ICON_VERTICAL_BARS = 188
|
336
|
-
ICON_VERTICAL_BARS_FILL = 189
|
337
|
-
ICON_LIFE_BARS = 190
|
338
|
-
ICON_INFO = 191
|
339
|
-
ICON_CROSSLINE = 192
|
340
|
-
ICON_HELP = 193
|
341
|
-
ICON_FILETYPE_ALPHA = 194
|
342
|
-
ICON_FILETYPE_HOME = 195
|
343
|
-
ICON_LAYERS_VISIBLE = 196
|
344
|
-
ICON_LAYERS = 197
|
345
|
-
ICON_WINDOW = 198
|
346
|
-
ICON_HIDPI = 199
|
347
|
-
ICON_FILETYPE_BINARY = 200
|
348
|
-
ICON_HEX = 201
|
349
|
-
ICON_SHIELD = 202
|
350
|
-
ICON_FILE_NEW = 203
|
351
|
-
ICON_FOLDER_ADD = 204
|
352
|
-
ICON_ALARM = 205
|
353
|
-
ICON_CPU = 206
|
354
|
-
ICON_ROM = 207
|
355
|
-
ICON_STEP_OVER = 208
|
356
|
-
ICON_STEP_INTO = 209
|
357
|
-
ICON_STEP_OUT = 210
|
358
|
-
ICON_RESTART = 211
|
359
|
-
ICON_BREAKPOINT_ON = 212
|
360
|
-
ICON_BREAKPOINT_OFF = 213
|
361
|
-
ICON_BURGER_MENU = 214
|
362
|
-
ICON_CASE_SENSITIVE = 215
|
363
|
-
ICON_REG_EXP = 216
|
364
|
-
ICON_FOLDER = 217
|
365
|
-
ICON_FILE = 218
|
366
|
-
ICON_SAND_TIMER = 219
|
367
|
-
ICON_220 = 220
|
368
|
-
ICON_221 = 221
|
369
|
-
ICON_222 = 222
|
370
|
-
ICON_223 = 223
|
371
|
-
ICON_224 = 224
|
372
|
-
ICON_225 = 225
|
373
|
-
ICON_226 = 226
|
374
|
-
ICON_227 = 227
|
375
|
-
ICON_228 = 228
|
376
|
-
ICON_229 = 229
|
377
|
-
ICON_230 = 230
|
378
|
-
ICON_231 = 231
|
379
|
-
ICON_232 = 232
|
380
|
-
ICON_233 = 233
|
381
|
-
ICON_234 = 234
|
382
|
-
ICON_235 = 235
|
383
|
-
ICON_236 = 236
|
384
|
-
ICON_237 = 237
|
385
|
-
ICON_238 = 238
|
386
|
-
ICON_239 = 239
|
387
|
-
ICON_240 = 240
|
388
|
-
ICON_241 = 241
|
389
|
-
ICON_242 = 242
|
390
|
-
ICON_243 = 243
|
391
|
-
ICON_244 = 244
|
392
|
-
ICON_245 = 245
|
393
|
-
ICON_246 = 246
|
394
|
-
ICON_247 = 247
|
395
|
-
ICON_248 = 248
|
396
|
-
ICON_249 = 249
|
397
|
-
ICON_250 = 250
|
398
|
-
ICON_251 = 251
|
399
|
-
ICON_252 = 252
|
400
|
-
ICON_253 = 253
|
401
|
-
ICON_254 = 254
|
402
|
-
ICON_255 = 255
|
403
|
-
|
404
|
-
|
405
|
-
# Typedef
|
406
|
-
|
407
|
-
typedef :int, :GuiState
|
408
|
-
typedef :int, :GuiTextAlignment
|
409
|
-
typedef :int, :GuiControl
|
410
|
-
typedef :int, :GuiControlProperty
|
411
|
-
typedef :int, :GuiDefaultProperty
|
412
|
-
typedef :int, :GuiToggleProperty
|
413
|
-
typedef :int, :GuiSliderProperty
|
414
|
-
typedef :int, :GuiProgressBarProperty
|
415
|
-
typedef :int, :GuiScrollBarProperty
|
416
|
-
typedef :int, :GuiCheckBoxProperty
|
417
|
-
typedef :int, :GuiComboBoxProperty
|
418
|
-
typedef :int, :GuiDropdownBoxProperty
|
419
|
-
typedef :int, :GuiTextBoxProperty
|
420
|
-
typedef :int, :GuiSpinnerProperty
|
421
|
-
typedef :int, :GuiListViewProperty
|
422
|
-
typedef :int, :GuiColorPickerProperty
|
423
|
-
typedef :int, :GuiIconName
|
424
|
-
|
425
|
-
# Struct
|
426
|
-
|
427
|
-
# Style property
|
428
|
-
class GuiStyleProp < FFI::Struct
|
429
|
-
layout(
|
430
|
-
:controlId, :ushort,
|
431
|
-
:propertyId, :ushort,
|
432
|
-
:propertyValue, :uint,
|
433
|
-
)
|
434
|
-
def controlId = self[:controlId]
|
435
|
-
def controlId=(v) self[:controlId] = v end
|
436
|
-
def propertyId = self[:propertyId]
|
437
|
-
def propertyId=(v) self[:propertyId] = v end
|
438
|
-
def propertyValue = self[:propertyValue]
|
439
|
-
def propertyValue=(v) self[:propertyValue] = v end
|
440
|
-
end
|
441
|
-
|
442
|
-
|
443
|
-
# Function
|
444
|
-
|
445
|
-
def self.setup_raygui_symbols
|
446
|
-
entries = [
|
447
|
-
|
448
|
-
# @!method GuiEnable()
|
449
|
-
# GuiEnable : Enable gui controls (global state)
|
450
|
-
# @return [void]
|
451
|
-
[:GuiEnable, :GuiEnable, [], :void],
|
452
|
-
|
453
|
-
# @!method GuiDisable()
|
454
|
-
# GuiDisable : Disable gui controls (global state)
|
455
|
-
# @return [void]
|
456
|
-
[:GuiDisable, :GuiDisable, [], :void],
|
457
|
-
|
458
|
-
# @!method GuiLock()
|
459
|
-
# GuiLock : Lock gui controls (global state)
|
460
|
-
# @return [void]
|
461
|
-
[:GuiLock, :GuiLock, [], :void],
|
462
|
-
|
463
|
-
# @!method GuiUnlock()
|
464
|
-
# GuiUnlock : Unlock gui controls (global state)
|
465
|
-
# @return [void]
|
466
|
-
[:GuiUnlock, :GuiUnlock, [], :void],
|
467
|
-
|
468
|
-
# @!method GuiIsLocked()
|
469
|
-
# GuiIsLocked : Check if gui is locked (global state)
|
470
|
-
# @return [bool]
|
471
|
-
[:GuiIsLocked, :GuiIsLocked, [], :bool],
|
472
|
-
|
473
|
-
# @!method GuiFade(alpha)
|
474
|
-
# GuiFade : Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
|
475
|
-
# @param alpha [float]
|
476
|
-
# @return [void]
|
477
|
-
[:GuiFade, :GuiFade, [:float], :void],
|
478
|
-
|
479
|
-
# @!method GuiSetState(state)
|
480
|
-
# GuiSetState : Set gui state (global state)
|
481
|
-
# @param state [int]
|
482
|
-
# @return [void]
|
483
|
-
[:GuiSetState, :GuiSetState, [:int], :void],
|
484
|
-
|
485
|
-
# @!method GuiGetState()
|
486
|
-
# GuiGetState : Get gui state (global state)
|
487
|
-
# @return [int]
|
488
|
-
[:GuiGetState, :GuiGetState, [], :int],
|
489
|
-
|
490
|
-
# @!method GuiSetFont(font)
|
491
|
-
# GuiSetFont : Set gui custom font (global state)
|
492
|
-
# @param font [Font]
|
493
|
-
# @return [void]
|
494
|
-
[:GuiSetFont, :GuiSetFont, [Font.by_value], :void],
|
495
|
-
|
496
|
-
# @!method GuiGetFont()
|
497
|
-
# GuiGetFont : Get gui custom font (global state)
|
498
|
-
# @return [Font]
|
499
|
-
[:GuiGetFont, :GuiGetFont, [], Font.by_value],
|
500
|
-
|
501
|
-
# @!method GuiSetStyle(control, property, value)
|
502
|
-
# GuiSetStyle : Set one style property
|
503
|
-
# @param control [int]
|
504
|
-
# @param property [int]
|
505
|
-
# @param value [int]
|
506
|
-
# @return [void]
|
507
|
-
[:GuiSetStyle, :GuiSetStyle, [:int, :int, :int], :void],
|
508
|
-
|
509
|
-
# @!method GuiGetStyle(control, property)
|
510
|
-
# GuiGetStyle : Get one style property
|
511
|
-
# @param control [int]
|
512
|
-
# @param property [int]
|
513
|
-
# @return [int]
|
514
|
-
[:GuiGetStyle, :GuiGetStyle, [:int, :int], :int],
|
515
|
-
|
516
|
-
# @!method GuiLoadStyle(fileName)
|
517
|
-
# GuiLoadStyle : Load style file over global style variable (.rgs)
|
518
|
-
# @param fileName [const char *]
|
519
|
-
# @return [void]
|
520
|
-
[:GuiLoadStyle, :GuiLoadStyle, [:pointer], :void],
|
521
|
-
|
522
|
-
# @!method GuiLoadStyleDefault()
|
523
|
-
# GuiLoadStyleDefault : Load style default over global style
|
524
|
-
# @return [void]
|
525
|
-
[:GuiLoadStyleDefault, :GuiLoadStyleDefault, [], :void],
|
526
|
-
|
527
|
-
# @!method GuiEnableTooltip()
|
528
|
-
# GuiEnableTooltip : Enable gui tooltips (global state)
|
529
|
-
# @return [void]
|
530
|
-
[:GuiEnableTooltip, :GuiEnableTooltip, [], :void],
|
531
|
-
|
532
|
-
# @!method GuiDisableTooltip()
|
533
|
-
# GuiDisableTooltip : Disable gui tooltips (global state)
|
534
|
-
# @return [void]
|
535
|
-
[:GuiDisableTooltip, :GuiDisableTooltip, [], :void],
|
536
|
-
|
537
|
-
# @!method GuiSetTooltip(tooltip)
|
538
|
-
# GuiSetTooltip : Set tooltip string
|
539
|
-
# @param tooltip [const char *]
|
540
|
-
# @return [void]
|
541
|
-
[:GuiSetTooltip, :GuiSetTooltip, [:pointer], :void],
|
542
|
-
|
543
|
-
# @!method GuiIconText(iconId, text)
|
544
|
-
# GuiIconText : Get text with icon id prepended (if supported)
|
545
|
-
# @param iconId [int]
|
546
|
-
# @param text [const char *]
|
547
|
-
# @return [const char *]
|
548
|
-
[:GuiIconText, :GuiIconText, [:int, :pointer], :pointer],
|
549
|
-
|
550
|
-
# @!method GuiSetIconScale(scale)
|
551
|
-
# GuiSetIconScale : Set default icon drawing size
|
552
|
-
# @param scale [int]
|
553
|
-
# @return [void]
|
554
|
-
[:GuiSetIconScale, :GuiSetIconScale, [:int], :void],
|
555
|
-
|
556
|
-
# @!method GuiGetIcons()
|
557
|
-
# GuiGetIcons : Get raygui icons data pointer
|
558
|
-
# @return [unsigned int *]
|
559
|
-
[:GuiGetIcons, :GuiGetIcons, [], :pointer],
|
560
|
-
|
561
|
-
# @!method GuiLoadIcons(fileName, loadIconsName)
|
562
|
-
# GuiLoadIcons : Load raygui icons file (.rgi) into internal icons data
|
563
|
-
# @param fileName [const char *]
|
564
|
-
# @param loadIconsName [bool]
|
565
|
-
# @return [char **]
|
566
|
-
[:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],
|
567
|
-
|
568
|
-
# @!method GuiDrawIcon(iconId, posX, posY, pixelSize, color)
|
569
|
-
# GuiDrawIcon : Draw icon using pixel size at specified position
|
570
|
-
# @param iconId [int]
|
571
|
-
# @param posX [int]
|
572
|
-
# @param posY [int]
|
573
|
-
# @param pixelSize [int]
|
574
|
-
# @param color [Color]
|
575
|
-
# @return [void]
|
576
|
-
[:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],
|
577
|
-
|
578
|
-
# @!method GuiWindowBox(bounds, title)
|
579
|
-
# GuiWindowBox : Window Box control, shows a window that can be closed
|
580
|
-
# @param bounds [Rectangle]
|
581
|
-
# @param title [const char *]
|
582
|
-
# @return [int]
|
583
|
-
[:GuiWindowBox, :GuiWindowBox, [Rectangle.by_value, :pointer], :int],
|
584
|
-
|
585
|
-
# @!method GuiGroupBox(bounds, text)
|
586
|
-
# GuiGroupBox : Group Box control with text name
|
587
|
-
# @param bounds [Rectangle]
|
588
|
-
# @param text [const char *]
|
589
|
-
# @return [int]
|
590
|
-
[:GuiGroupBox, :GuiGroupBox, [Rectangle.by_value, :pointer], :int],
|
591
|
-
|
592
|
-
# @!method GuiLine(bounds, text)
|
593
|
-
# GuiLine : Line separator control, could contain text
|
594
|
-
# @param bounds [Rectangle]
|
595
|
-
# @param text [const char *]
|
596
|
-
# @return [int]
|
597
|
-
[:GuiLine, :GuiLine, [Rectangle.by_value, :pointer], :int],
|
598
|
-
|
599
|
-
# @!method GuiPanel(bounds, text)
|
600
|
-
# GuiPanel : Panel control, useful to group controls
|
601
|
-
# @param bounds [Rectangle]
|
602
|
-
# @param text [const char *]
|
603
|
-
# @return [int]
|
604
|
-
[:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :int],
|
605
|
-
|
606
|
-
# @!method GuiTabBar(bounds, text, count, active)
|
607
|
-
# GuiTabBar : Tab Bar control, returns TAB to be closed or -1
|
608
|
-
# @param bounds [Rectangle]
|
609
|
-
# @param text [const char **]
|
610
|
-
# @param count [int]
|
611
|
-
# @param active [int *]
|
612
|
-
# @return [int]
|
613
|
-
[:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :int, :pointer], :int],
|
614
|
-
|
615
|
-
# @!method GuiScrollPanel(bounds, text, content, scroll, view)
|
616
|
-
# GuiScrollPanel : Scroll Panel control
|
617
|
-
# @param bounds [Rectangle]
|
618
|
-
# @param text [const char *]
|
619
|
-
# @param content [Rectangle]
|
620
|
-
# @param scroll [Vector2 *]
|
621
|
-
# @param view [Rectangle *]
|
622
|
-
# @return [int]
|
623
|
-
[:GuiScrollPanel, :GuiScrollPanel, [Rectangle.by_value, :pointer, Rectangle.by_value, :pointer, :pointer], :int],
|
624
|
-
|
625
|
-
# @!method GuiLabel(bounds, text)
|
626
|
-
# GuiLabel : Label control, shows text
|
627
|
-
# @param bounds [Rectangle]
|
628
|
-
# @param text [const char *]
|
629
|
-
# @return [int]
|
630
|
-
[:GuiLabel, :GuiLabel, [Rectangle.by_value, :pointer], :int],
|
631
|
-
|
632
|
-
# @!method GuiButton(bounds, text)
|
633
|
-
# GuiButton : Button control, returns true when clicked
|
634
|
-
# @param bounds [Rectangle]
|
635
|
-
# @param text [const char *]
|
636
|
-
# @return [int]
|
637
|
-
[:GuiButton, :GuiButton, [Rectangle.by_value, :pointer], :int],
|
638
|
-
|
639
|
-
# @!method GuiLabelButton(bounds, text)
|
640
|
-
# GuiLabelButton : Label button control, show true when clicked
|
641
|
-
# @param bounds [Rectangle]
|
642
|
-
# @param text [const char *]
|
643
|
-
# @return [int]
|
644
|
-
[:GuiLabelButton, :GuiLabelButton, [Rectangle.by_value, :pointer], :int],
|
645
|
-
|
646
|
-
# @!method GuiToggle(bounds, text, active)
|
647
|
-
# GuiToggle : Toggle Button control, returns true when active
|
648
|
-
# @param bounds [Rectangle]
|
649
|
-
# @param text [const char *]
|
650
|
-
# @param active [bool *]
|
651
|
-
# @return [int]
|
652
|
-
[:GuiToggle, :GuiToggle, [Rectangle.by_value, :pointer, :pointer], :int],
|
653
|
-
|
654
|
-
# @!method GuiToggleGroup(bounds, text, active)
|
655
|
-
# GuiToggleGroup : Toggle Group control, returns active toggle index
|
656
|
-
# @param bounds [Rectangle]
|
657
|
-
# @param text [const char *]
|
658
|
-
# @param active [int *]
|
659
|
-
# @return [int]
|
660
|
-
[:GuiToggleGroup, :GuiToggleGroup, [Rectangle.by_value, :pointer, :pointer], :int],
|
661
|
-
|
662
|
-
# @!method GuiCheckBox(bounds, text, checked)
|
663
|
-
# GuiCheckBox : Check Box control, returns true when active
|
664
|
-
# @param bounds [Rectangle]
|
665
|
-
# @param text [const char *]
|
666
|
-
# @param checked [bool *]
|
667
|
-
# @return [int]
|
668
|
-
[:GuiCheckBox, :GuiCheckBox, [Rectangle.by_value, :pointer, :pointer], :int],
|
669
|
-
|
670
|
-
# @!method GuiComboBox(bounds, text, active)
|
671
|
-
# GuiComboBox : Combo Box control, returns selected item index
|
672
|
-
# @param bounds [Rectangle]
|
673
|
-
# @param text [const char *]
|
674
|
-
# @param active [int *]
|
675
|
-
# @return [int]
|
676
|
-
[:GuiComboBox, :GuiComboBox, [Rectangle.by_value, :pointer, :pointer], :int],
|
677
|
-
|
678
|
-
# @!method GuiDropdownBox(bounds, text, active, editMode)
|
679
|
-
# GuiDropdownBox : Dropdown Box control, returns selected item
|
680
|
-
# @param bounds [Rectangle]
|
681
|
-
# @param text [const char *]
|
682
|
-
# @param active [int *]
|
683
|
-
# @param editMode [bool]
|
684
|
-
# @return [int]
|
685
|
-
[:GuiDropdownBox, :GuiDropdownBox, [Rectangle.by_value, :pointer, :pointer, :bool], :int],
|
686
|
-
|
687
|
-
# @!method GuiSpinner(bounds, text, value, minValue, maxValue, editMode)
|
688
|
-
# GuiSpinner : Spinner control, returns selected value
|
689
|
-
# @param bounds [Rectangle]
|
690
|
-
# @param text [const char *]
|
691
|
-
# @param value [int *]
|
692
|
-
# @param minValue [int]
|
693
|
-
# @param maxValue [int]
|
694
|
-
# @param editMode [bool]
|
695
|
-
# @return [int]
|
696
|
-
[:GuiSpinner, :GuiSpinner, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :int],
|
697
|
-
|
698
|
-
# @!method GuiValueBox(bounds, text, value, minValue, maxValue, editMode)
|
699
|
-
# GuiValueBox : Value Box control, updates input text with numbers
|
700
|
-
# @param bounds [Rectangle]
|
701
|
-
# @param text [const char *]
|
702
|
-
# @param value [int *]
|
703
|
-
# @param minValue [int]
|
704
|
-
# @param maxValue [int]
|
705
|
-
# @param editMode [bool]
|
706
|
-
# @return [int]
|
707
|
-
[:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :int],
|
708
|
-
|
709
|
-
# @!method GuiTextBox(bounds, text, textSize, editMode)
|
710
|
-
# GuiTextBox : Text Box control, updates input text
|
711
|
-
# @param bounds [Rectangle]
|
712
|
-
# @param text [char *]
|
713
|
-
# @param textSize [int]
|
714
|
-
# @param editMode [bool]
|
715
|
-
# @return [int]
|
716
|
-
[:GuiTextBox, :GuiTextBox, [Rectangle.by_value, :pointer, :int, :bool], :int],
|
717
|
-
|
718
|
-
# @!method GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue)
|
719
|
-
# GuiSlider : Slider control, returns selected value
|
720
|
-
# @param bounds [Rectangle]
|
721
|
-
# @param textLeft [const char *]
|
722
|
-
# @param textRight [const char *]
|
723
|
-
# @param value [float *]
|
724
|
-
# @param minValue [float]
|
725
|
-
# @param maxValue [float]
|
726
|
-
# @return [int]
|
727
|
-
[:GuiSlider, :GuiSlider, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
|
728
|
-
|
729
|
-
# @!method GuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
730
|
-
# GuiSliderBar : Slider Bar control, returns selected value
|
731
|
-
# @param bounds [Rectangle]
|
732
|
-
# @param textLeft [const char *]
|
733
|
-
# @param textRight [const char *]
|
734
|
-
# @param value [float *]
|
735
|
-
# @param minValue [float]
|
736
|
-
# @param maxValue [float]
|
737
|
-
# @return [int]
|
738
|
-
[:GuiSliderBar, :GuiSliderBar, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
|
739
|
-
|
740
|
-
# @!method GuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
741
|
-
# GuiProgressBar : Progress Bar control, shows current progress value
|
742
|
-
# @param bounds [Rectangle]
|
743
|
-
# @param textLeft [const char *]
|
744
|
-
# @param textRight [const char *]
|
745
|
-
# @param value [float *]
|
746
|
-
# @param minValue [float]
|
747
|
-
# @param maxValue [float]
|
748
|
-
# @return [int]
|
749
|
-
[:GuiProgressBar, :GuiProgressBar, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
|
750
|
-
|
751
|
-
# @!method GuiStatusBar(bounds, text)
|
752
|
-
# GuiStatusBar : Status Bar control, shows info text
|
753
|
-
# @param bounds [Rectangle]
|
754
|
-
# @param text [const char *]
|
755
|
-
# @return [int]
|
756
|
-
[:GuiStatusBar, :GuiStatusBar, [Rectangle.by_value, :pointer], :int],
|
757
|
-
|
758
|
-
# @!method GuiDummyRec(bounds, text)
|
759
|
-
# GuiDummyRec : Dummy control for placeholders
|
760
|
-
# @param bounds [Rectangle]
|
761
|
-
# @param text [const char *]
|
762
|
-
# @return [int]
|
763
|
-
[:GuiDummyRec, :GuiDummyRec, [Rectangle.by_value, :pointer], :int],
|
764
|
-
|
765
|
-
# @!method GuiGrid(bounds, text, spacing, subdivs, mouseCell)
|
766
|
-
# GuiGrid : Grid control, returns mouse cell position
|
767
|
-
# @param bounds [Rectangle]
|
768
|
-
# @param text [const char *]
|
769
|
-
# @param spacing [float]
|
770
|
-
# @param subdivs [int]
|
771
|
-
# @param mouseCell [Vector2 *]
|
772
|
-
# @return [int]
|
773
|
-
[:GuiGrid, :GuiGrid, [Rectangle.by_value, :pointer, :float, :int, :pointer], :int],
|
774
|
-
|
775
|
-
# @!method GuiListView(bounds, text, scrollIndex, active)
|
776
|
-
# GuiListView : List View control, returns selected list item index
|
777
|
-
# @param bounds [Rectangle]
|
778
|
-
# @param text [const char *]
|
779
|
-
# @param scrollIndex [int *]
|
780
|
-
# @param active [int *]
|
781
|
-
# @return [int]
|
782
|
-
[:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
|
783
|
-
|
784
|
-
# @!method GuiListViewEx(bounds, text, count, scrollIndex, active, focus)
|
785
|
-
# GuiListViewEx : List View with extended parameters
|
786
|
-
# @param bounds [Rectangle]
|
787
|
-
# @param text [const char **]
|
788
|
-
# @param count [int]
|
789
|
-
# @param scrollIndex [int *]
|
790
|
-
# @param active [int *]
|
791
|
-
# @param focus [int *]
|
792
|
-
# @return [int]
|
793
|
-
[:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
|
794
|
-
|
795
|
-
# @!method GuiMessageBox(bounds, title, message, buttons)
|
796
|
-
# GuiMessageBox : Message Box control, displays a message
|
797
|
-
# @param bounds [Rectangle]
|
798
|
-
# @param title [const char *]
|
799
|
-
# @param message [const char *]
|
800
|
-
# @param buttons [const char *]
|
801
|
-
# @return [int]
|
802
|
-
[:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
|
803
|
-
|
804
|
-
# @!method GuiTextInputBox(bounds, title, message, buttons, text, textMaxSize, secretViewActive)
|
805
|
-
# GuiTextInputBox : Text Input Box control, ask for text, supports secret
|
806
|
-
# @param bounds [Rectangle]
|
807
|
-
# @param title [const char *]
|
808
|
-
# @param message [const char *]
|
809
|
-
# @param buttons [const char *]
|
810
|
-
# @param text [char *]
|
811
|
-
# @param textMaxSize [int]
|
812
|
-
# @param secretViewActive [bool *]
|
813
|
-
# @return [int]
|
814
|
-
[:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],
|
815
|
-
|
816
|
-
# @!method GuiColorPicker(bounds, text, color)
|
817
|
-
# GuiColorPicker : Color Picker control (multiple color controls)
|
818
|
-
# @param bounds [Rectangle]
|
819
|
-
# @param text [const char *]
|
820
|
-
# @param color [Color *]
|
821
|
-
# @return [int]
|
822
|
-
[:GuiColorPicker, :GuiColorPicker, [Rectangle.by_value, :pointer, :pointer], :int],
|
823
|
-
|
824
|
-
# @!method GuiColorPanel(bounds, text, color)
|
825
|
-
# GuiColorPanel : Color Panel control
|
826
|
-
# @param bounds [Rectangle]
|
827
|
-
# @param text [const char *]
|
828
|
-
# @param color [Color *]
|
829
|
-
# @return [int]
|
830
|
-
[:GuiColorPanel, :GuiColorPanel, [Rectangle.by_value, :pointer, :pointer], :int],
|
831
|
-
|
832
|
-
# @!method GuiColorBarAlpha(bounds, text, alpha)
|
833
|
-
# GuiColorBarAlpha : Color Bar Alpha control
|
834
|
-
# @param bounds [Rectangle]
|
835
|
-
# @param text [const char *]
|
836
|
-
# @param alpha [float *]
|
837
|
-
# @return [int]
|
838
|
-
[:GuiColorBarAlpha, :GuiColorBarAlpha, [Rectangle.by_value, :pointer, :pointer], :int],
|
839
|
-
|
840
|
-
# @!method GuiColorBarHue(bounds, text, value)
|
841
|
-
# GuiColorBarHue : Color Bar Hue control
|
842
|
-
# @param bounds [Rectangle]
|
843
|
-
# @param text [const char *]
|
844
|
-
# @param value [float *]
|
845
|
-
# @return [int]
|
846
|
-
[:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :pointer], :int],
|
847
|
-
]
|
848
|
-
entries.each do |entry|
|
849
|
-
attach_function entry[0], entry[1], entry[2], entry[3]
|
850
|
-
rescue FFI::NotFoundError => e
|
851
|
-
warn "[Warning] Failed to import #{entry[0]} (#{e})."
|
852
|
-
end
|
853
|
-
end
|
854
|
-
end
|