gir_ffi-pretty_printer 0.0.6 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3816 +0,0 @@
1
- module GObject
2
- # XXX: Don't know how to print callback
3
- # XXX: Don't know how to print callback
4
- class GObject::Binding < GObject::Object
5
-
6
- def get_flags
7
- _v1 = GObject::Lib.g_binding_get_flags(self)
8
- return _v1
9
- end
10
- def get_source
11
- _v1 = GObject::Lib.g_binding_get_source(self)
12
- _v2 = GObject::Object.wrap(_v1).tap { |it| it and it.ref }
13
- return _v2
14
- end
15
- def get_source_property
16
- _v1 = GObject::Lib.g_binding_get_source_property(self)
17
- _v2 = _v1.to_utf8
18
- return _v2
19
- end
20
- def get_target
21
- _v1 = GObject::Lib.g_binding_get_target(self)
22
- _v2 = GObject::Object.wrap(_v1).tap { |it| it and it.ref }
23
- return _v2
24
- end
25
- def get_target_property
26
- _v1 = GObject::Lib.g_binding_get_target_property(self)
27
- _v2 = _v1.to_utf8
28
- return _v2
29
- end
30
- def source_property
31
- _v1 = get_property("source-property")
32
- _v1
33
- end
34
- def target_property
35
- _v1 = get_property("target-property")
36
- _v1
37
- end
38
- def unbind
39
- GObject::Lib.g_binding_unbind(self)
40
- end
41
- end
42
- # XXX: Don't know how to print flags
43
- # XXX: Don't know how to print callback
44
- # XXX: Don't know how to print callback
45
- # XXX: Don't know how to print callback
46
- class GObject::CClosure < GirFFI::StructBase
47
- def self.marshal_BOOLEAN__BOXED_BOXED(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
48
- _v1 = GObject::Closure.from(closure)
49
- _v2 = GObject::Value.from(return_value)
50
- _v3 = n_param_values
51
- _v4 = GObject::Value.from(param_values)
52
- _v5 = invocation_hint
53
- _v6 = marshal_data
54
- GObject::Lib.g_cclosure_marshal_BOOLEAN__BOXED_BOXED(_v1, _v2, _v3, _v4, _v5, _v6)
55
- end
56
- def self.marshal_BOOLEAN__FLAGS(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
57
- _v1 = GObject::Closure.from(closure)
58
- _v2 = GObject::Value.from(return_value)
59
- _v3 = n_param_values
60
- _v4 = GObject::Value.from(param_values)
61
- _v5 = invocation_hint
62
- _v6 = marshal_data
63
- GObject::Lib.g_cclosure_marshal_BOOLEAN__FLAGS(_v1, _v2, _v3, _v4, _v5, _v6)
64
- end
65
- def self.marshal_STRING__OBJECT_POINTER(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
66
- _v1 = GObject::Closure.from(closure)
67
- _v2 = GObject::Value.from(return_value)
68
- _v3 = n_param_values
69
- _v4 = GObject::Value.from(param_values)
70
- _v5 = invocation_hint
71
- _v6 = marshal_data
72
- GObject::Lib.g_cclosure_marshal_STRING__OBJECT_POINTER(_v1, _v2, _v3, _v4, _v5, _v6)
73
- end
74
- def self.marshal_VOID__BOOLEAN(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
75
- _v1 = GObject::Closure.from(closure)
76
- _v2 = GObject::Value.from(return_value)
77
- _v3 = n_param_values
78
- _v4 = GObject::Value.from(param_values)
79
- _v5 = invocation_hint
80
- _v6 = marshal_data
81
- GObject::Lib.g_cclosure_marshal_VOID__BOOLEAN(_v1, _v2, _v3, _v4, _v5, _v6)
82
- end
83
- def self.marshal_VOID__BOXED(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
84
- _v1 = GObject::Closure.from(closure)
85
- _v2 = GObject::Value.from(return_value)
86
- _v3 = n_param_values
87
- _v4 = GObject::Value.from(param_values)
88
- _v5 = invocation_hint
89
- _v6 = marshal_data
90
- GObject::Lib.g_cclosure_marshal_VOID__BOXED(_v1, _v2, _v3, _v4, _v5, _v6)
91
- end
92
- def self.marshal_VOID__CHAR(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
93
- _v1 = GObject::Closure.from(closure)
94
- _v2 = GObject::Value.from(return_value)
95
- _v3 = n_param_values
96
- _v4 = GObject::Value.from(param_values)
97
- _v5 = invocation_hint
98
- _v6 = marshal_data
99
- GObject::Lib.g_cclosure_marshal_VOID__CHAR(_v1, _v2, _v3, _v4, _v5, _v6)
100
- end
101
- def self.marshal_VOID__DOUBLE(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
102
- _v1 = GObject::Closure.from(closure)
103
- _v2 = GObject::Value.from(return_value)
104
- _v3 = n_param_values
105
- _v4 = GObject::Value.from(param_values)
106
- _v5 = invocation_hint
107
- _v6 = marshal_data
108
- GObject::Lib.g_cclosure_marshal_VOID__DOUBLE(_v1, _v2, _v3, _v4, _v5, _v6)
109
- end
110
- def self.marshal_VOID__ENUM(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
111
- _v1 = GObject::Closure.from(closure)
112
- _v2 = GObject::Value.from(return_value)
113
- _v3 = n_param_values
114
- _v4 = GObject::Value.from(param_values)
115
- _v5 = invocation_hint
116
- _v6 = marshal_data
117
- GObject::Lib.g_cclosure_marshal_VOID__ENUM(_v1, _v2, _v3, _v4, _v5, _v6)
118
- end
119
- def self.marshal_VOID__FLAGS(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
120
- _v1 = GObject::Closure.from(closure)
121
- _v2 = GObject::Value.from(return_value)
122
- _v3 = n_param_values
123
- _v4 = GObject::Value.from(param_values)
124
- _v5 = invocation_hint
125
- _v6 = marshal_data
126
- GObject::Lib.g_cclosure_marshal_VOID__FLAGS(_v1, _v2, _v3, _v4, _v5, _v6)
127
- end
128
- def self.marshal_VOID__FLOAT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
129
- _v1 = GObject::Closure.from(closure)
130
- _v2 = GObject::Value.from(return_value)
131
- _v3 = n_param_values
132
- _v4 = GObject::Value.from(param_values)
133
- _v5 = invocation_hint
134
- _v6 = marshal_data
135
- GObject::Lib.g_cclosure_marshal_VOID__FLOAT(_v1, _v2, _v3, _v4, _v5, _v6)
136
- end
137
- def self.marshal_VOID__INT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
138
- _v1 = GObject::Closure.from(closure)
139
- _v2 = GObject::Value.from(return_value)
140
- _v3 = n_param_values
141
- _v4 = GObject::Value.from(param_values)
142
- _v5 = invocation_hint
143
- _v6 = marshal_data
144
- GObject::Lib.g_cclosure_marshal_VOID__INT(_v1, _v2, _v3, _v4, _v5, _v6)
145
- end
146
- def self.marshal_VOID__LONG(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
147
- _v1 = GObject::Closure.from(closure)
148
- _v2 = GObject::Value.from(return_value)
149
- _v3 = n_param_values
150
- _v4 = GObject::Value.from(param_values)
151
- _v5 = invocation_hint
152
- _v6 = marshal_data
153
- GObject::Lib.g_cclosure_marshal_VOID__LONG(_v1, _v2, _v3, _v4, _v5, _v6)
154
- end
155
- def self.marshal_VOID__OBJECT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
156
- _v1 = GObject::Closure.from(closure)
157
- _v2 = GObject::Value.from(return_value)
158
- _v3 = n_param_values
159
- _v4 = GObject::Value.from(param_values)
160
- _v5 = invocation_hint
161
- _v6 = marshal_data
162
- GObject::Lib.g_cclosure_marshal_VOID__OBJECT(_v1, _v2, _v3, _v4, _v5, _v6)
163
- end
164
- def self.marshal_VOID__PARAM(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
165
- _v1 = GObject::Closure.from(closure)
166
- _v2 = GObject::Value.from(return_value)
167
- _v3 = n_param_values
168
- _v4 = GObject::Value.from(param_values)
169
- _v5 = invocation_hint
170
- _v6 = marshal_data
171
- GObject::Lib.g_cclosure_marshal_VOID__PARAM(_v1, _v2, _v3, _v4, _v5, _v6)
172
- end
173
- def self.marshal_VOID__POINTER(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
174
- _v1 = GObject::Closure.from(closure)
175
- _v2 = GObject::Value.from(return_value)
176
- _v3 = n_param_values
177
- _v4 = GObject::Value.from(param_values)
178
- _v5 = invocation_hint
179
- _v6 = marshal_data
180
- GObject::Lib.g_cclosure_marshal_VOID__POINTER(_v1, _v2, _v3, _v4, _v5, _v6)
181
- end
182
- def self.marshal_VOID__STRING(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
183
- _v1 = GObject::Closure.from(closure)
184
- _v2 = GObject::Value.from(return_value)
185
- _v3 = n_param_values
186
- _v4 = GObject::Value.from(param_values)
187
- _v5 = invocation_hint
188
- _v6 = marshal_data
189
- GObject::Lib.g_cclosure_marshal_VOID__STRING(_v1, _v2, _v3, _v4, _v5, _v6)
190
- end
191
- def self.marshal_VOID__UCHAR(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
192
- _v1 = GObject::Closure.from(closure)
193
- _v2 = GObject::Value.from(return_value)
194
- _v3 = n_param_values
195
- _v4 = GObject::Value.from(param_values)
196
- _v5 = invocation_hint
197
- _v6 = marshal_data
198
- GObject::Lib.g_cclosure_marshal_VOID__UCHAR(_v1, _v2, _v3, _v4, _v5, _v6)
199
- end
200
- def self.marshal_VOID__UINT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
201
- _v1 = GObject::Closure.from(closure)
202
- _v2 = GObject::Value.from(return_value)
203
- _v3 = n_param_values
204
- _v4 = GObject::Value.from(param_values)
205
- _v5 = invocation_hint
206
- _v6 = marshal_data
207
- GObject::Lib.g_cclosure_marshal_VOID__UINT(_v1, _v2, _v3, _v4, _v5, _v6)
208
- end
209
- def self.marshal_VOID__UINT_POINTER(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
210
- _v1 = GObject::Closure.from(closure)
211
- _v2 = GObject::Value.from(return_value)
212
- _v3 = n_param_values
213
- _v4 = GObject::Value.from(param_values)
214
- _v5 = invocation_hint
215
- _v6 = marshal_data
216
- GObject::Lib.g_cclosure_marshal_VOID__UINT_POINTER(_v1, _v2, _v3, _v4, _v5, _v6)
217
- end
218
- def self.marshal_VOID__ULONG(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
219
- _v1 = GObject::Closure.from(closure)
220
- _v2 = GObject::Value.from(return_value)
221
- _v3 = n_param_values
222
- _v4 = GObject::Value.from(param_values)
223
- _v5 = invocation_hint
224
- _v6 = marshal_data
225
- GObject::Lib.g_cclosure_marshal_VOID__ULONG(_v1, _v2, _v3, _v4, _v5, _v6)
226
- end
227
- def self.marshal_VOID__VARIANT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
228
- _v1 = GObject::Closure.from(closure)
229
- _v2 = GObject::Value.from(return_value)
230
- _v3 = n_param_values
231
- _v4 = GObject::Value.from(param_values)
232
- _v5 = invocation_hint
233
- _v6 = marshal_data
234
- GObject::Lib.g_cclosure_marshal_VOID__VARIANT(_v1, _v2, _v3, _v4, _v5, _v6)
235
- end
236
- def self.marshal_VOID__VOID(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
237
- _v1 = GObject::Closure.from(closure)
238
- _v2 = GObject::Value.from(return_value)
239
- _v3 = n_param_values
240
- _v4 = GObject::Value.from(param_values)
241
- _v5 = invocation_hint
242
- _v6 = marshal_data
243
- GObject::Lib.g_cclosure_marshal_VOID__VOID(_v1, _v2, _v3, _v4, _v5, _v6)
244
- end
245
- def self.marshal_generic(closure, return_gvalue, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
246
- _v1 = GObject::Closure.from(closure)
247
- _v2 = GObject::Value.from(return_gvalue)
248
- _v3 = n_param_values
249
- _v4 = GObject::Value.from(param_values)
250
- _v5 = invocation_hint
251
- _v6 = marshal_data
252
- GObject::Lib.g_cclosure_marshal_generic(_v1, _v2, _v3, _v4, _v5, _v6)
253
- end
254
- def callback
255
- _v1 = (@struct.to_ptr + 64)
256
- _v2 = _v1.get_pointer(0)
257
- _v2
258
- end
259
- def callback=(value)
260
- _v1 = (@struct.to_ptr + 64)
261
- _v2 = value
262
- _v1.put_pointer(0, _v2)
263
- end
264
- def closure
265
- _v1 = (@struct.to_ptr + 0)
266
- _v2 = GObject::Closure.get_value_from_pointer(_v1, 0)
267
- _v3 = GObject::Closure.wrap(_v2)
268
- _v3
269
- end
270
- def closure=(value)
271
- _v1 = (@struct.to_ptr + 0)
272
- _v2 = GObject::Closure.copy_from(value)
273
- GObject::Closure.copy_value_to_pointer(_v2, _v1)
274
- end
275
- end
276
- # XXX: Don't know how to print callback
277
- # XXX: Don't know how to print callback
278
- # XXX: Don't know how to print callback
279
- class GObject::Closure < GirFFI::BoxedBase
280
- def self.new_object(*args, &block)
281
- raise(NoMethodError) unless (self == GObject::Closure)
282
- obj = allocate
283
- obj.__send__(:initialize_object, *args, &block)
284
- obj
285
- end
286
- def self.new_simple(*args, &block)
287
- raise(NoMethodError) unless (self == GObject::Closure)
288
- obj = allocate
289
- obj.__send__(:initialize_simple, *args, &block)
290
- obj
291
- end
292
- def data
293
- _v1 = (@struct.to_ptr + 48)
294
- _v2 = _v1.get_pointer(0)
295
- _v2
296
- end
297
- def derivative_flag
298
- _v1 = (@struct.to_ptr + 28)
299
- _v2 = _v1.get_uint32(0)
300
- _v2
301
- end
302
- def floating
303
- _v1 = (@struct.to_ptr + 24)
304
- _v2 = _v1.get_uint32(0)
305
- _v2
306
- end
307
- def in_inotify
308
- _v1 = (@struct.to_ptr + 20)
309
- _v2 = _v1.get_uint32(0)
310
- _v2
311
- end
312
- def in_marshal
313
- _v1 = (@struct.to_ptr + 32)
314
- _v2 = _v1.get_uint32(0)
315
- _v2
316
- end
317
- def in_marshal=(value)
318
- _v1 = (@struct.to_ptr + 32)
319
- _v2 = value
320
- _v1.put_uint32(0, _v2)
321
- end
322
- def initialize_object(sizeof_closure, object)
323
- _v1 = sizeof_closure
324
- _v2 = GObject::Object.from(object)
325
- _v3 = GObject::Lib.g_closure_new_object(_v1, _v2)
326
- store_pointer(_v3)
327
- @struct.owned = true
328
- end
329
- def initialize_simple(sizeof_closure, data = nil)
330
- _v1 = sizeof_closure
331
- _v2 = data
332
- _v3 = GObject::Lib.g_closure_new_simple(_v1, _v2)
333
- store_pointer(_v3)
334
- @struct.owned = true
335
- end
336
- def invalidate
337
- GObject::Lib.g_closure_invalidate(self)
338
- end
339
- # @override
340
- #
341
- # This override of invoke ensures the return value location can be passed
342
- # in as the first argument, which is needed to ensure the GValue is
343
- # initialized with the proper type.
344
- #
345
- # @param [GObject::Value] return_value The GValue to store the return
346
- # value, or nil if no return value is expected.
347
- # @param [Array] param_values the closure parameters.
348
- def invoke(return_value, param_values)
349
- rval = Value.from(return_value)
350
- n_params = param_values.length
351
- params = GirFFI::SizedArray.from(Value, -1, param_values)
352
- Lib.g_closure_invoke(self, rval, n_params, params, nil)
353
- rval.get_value
354
- end
355
- def is_invalid
356
- _v1 = (@struct.to_ptr + 36)
357
- _v2 = _v1.get_uint32(0)
358
- _v2
359
- end
360
- def is_invalid=(value)
361
- _v1 = (@struct.to_ptr + 36)
362
- _v2 = value
363
- _v1.put_uint32(0, _v2)
364
- end
365
- def marshal
366
- _v1 = (@struct.to_ptr + 40)
367
- _v2 = GObject::Marshal.get_value_from_pointer(_v1, 0)
368
- _v2
369
- end
370
- def meta_marshal_nouse
371
- _v1 = (@struct.to_ptr + 4)
372
- _v2 = _v1.get_uint32(0)
373
- _v2
374
- end
375
- def n_fnotifiers
376
- _v1 = (@struct.to_ptr + 12)
377
- _v2 = _v1.get_uint32(0)
378
- _v2
379
- end
380
- def n_guards
381
- _v1 = (@struct.to_ptr + 8)
382
- _v2 = _v1.get_uint32(0)
383
- _v2
384
- end
385
- def n_inotifiers
386
- _v1 = (@struct.to_ptr + 16)
387
- _v2 = _v1.get_uint32(0)
388
- _v2
389
- end
390
- def notifiers
391
- _v1 = (@struct.to_ptr + 56)
392
- _v2 = _v1.get_pointer(0)
393
- _v3 = GObject::ClosureNotifyData.wrap(_v2)
394
- _v3
395
- end
396
- def ref
397
- _v1 = GObject::Lib.g_closure_ref(self)
398
- _v2 = GObject::Closure.wrap_copy(_v1)
399
- return _v2
400
- end
401
- def ref_count
402
- _v1 = (@struct.to_ptr + 0)
403
- _v2 = _v1.get_uint32(0)
404
- _v2
405
- end
406
- # @override
407
- #
408
- # @param [Proc] marshal The marshaller to use for this closure object
409
- def set_marshal(marshal)
410
- callback = ClosureMarshal.from(marshal)
411
- Lib.g_closure_set_marshal(self, callback)
412
- end
413
- def sink
414
- GObject::Lib.g_closure_sink(self)
415
- end
416
- def store_pointer(ptr)
417
- Lib.g_closure_ref(ptr)
418
- Lib.g_closure_sink(ptr)
419
- super
420
- end
421
- def unref
422
- GObject::Lib.g_closure_unref(self)
423
- end
424
- end
425
- # XXX: Don't know how to print callback
426
- # XXX: Don't know how to print callback
427
- class GObject::ClosureNotifyData < GirFFI::StructBase
428
-
429
- def data
430
- _v1 = (@struct.to_ptr + 0)
431
- _v2 = _v1.get_pointer(0)
432
- _v2
433
- end
434
- def data=(value)
435
- _v1 = (@struct.to_ptr + 0)
436
- _v2 = value
437
- _v1.put_pointer(0, _v2)
438
- end
439
- def notify
440
- _v1 = (@struct.to_ptr + 8)
441
- _v2 = GObject::ClosureNotify.get_value_from_pointer(_v1, 0)
442
- _v2
443
- end
444
- def notify=(value)
445
- _v1 = (@struct.to_ptr + 8)
446
- _v2 = GObject::ClosureNotify.from(value)
447
- GObject::ClosureNotify.copy_value_to_pointer(_v2, _v1)
448
- end
449
- end
450
- # XXX: Don't know how to print flags
451
- class GObject::EnumClass < GirFFI::StructBase
452
-
453
- def g_type_class
454
- _v1 = (@struct.to_ptr + 0)
455
- _v2 = GObject::TypeClass.get_value_from_pointer(_v1, 0)
456
- _v3 = GObject::TypeClass.wrap(_v2)
457
- _v3
458
- end
459
- def g_type_class=(value)
460
- _v1 = (@struct.to_ptr + 0)
461
- _v2 = GObject::TypeClass.copy_from(value)
462
- GObject::TypeClass.copy_value_to_pointer(_v2, _v1)
463
- end
464
- def maximum
465
- _v1 = (@struct.to_ptr + 12)
466
- _v2 = _v1.get_int32(0)
467
- _v2
468
- end
469
- def maximum=(value)
470
- _v1 = (@struct.to_ptr + 12)
471
- _v2 = value
472
- _v1.put_int32(0, _v2)
473
- end
474
- def minimum
475
- _v1 = (@struct.to_ptr + 8)
476
- _v2 = _v1.get_int32(0)
477
- _v2
478
- end
479
- def minimum=(value)
480
- _v1 = (@struct.to_ptr + 8)
481
- _v2 = value
482
- _v1.put_int32(0, _v2)
483
- end
484
- def n_values
485
- _v1 = (@struct.to_ptr + 16)
486
- _v2 = _v1.get_uint32(0)
487
- _v2
488
- end
489
- def n_values=(value)
490
- _v1 = (@struct.to_ptr + 16)
491
- _v2 = value
492
- _v1.put_uint32(0, _v2)
493
- end
494
- def values
495
- _v1 = (@struct.to_ptr + 24)
496
- _v2 = _v1.get_pointer(0)
497
- _v3 = GObject::EnumValue.wrap(_v2)
498
- _v3
499
- end
500
- def values=(value)
501
- _v1 = (@struct.to_ptr + 24)
502
- _v2 = GObject::EnumValue.copy_from(value)
503
- _v1.put_pointer(0, _v2)
504
- end
505
- end
506
- class GObject::EnumValue < GirFFI::StructBase
507
-
508
- def value
509
- _v1 = (@struct.to_ptr + 0)
510
- _v2 = _v1.get_int32(0)
511
- _v2
512
- end
513
- def value=(value)
514
- _v1 = (@struct.to_ptr + 0)
515
- _v2 = value
516
- _v1.put_int32(0, _v2)
517
- end
518
- def value_name
519
- _v1 = (@struct.to_ptr + 8)
520
- _v2 = _v1.get_pointer(0)
521
- _v3 = _v2.to_utf8
522
- _v3
523
- end
524
- def value_name=(value)
525
- _v1 = (@struct.to_ptr + 8)
526
- _v2 = GirFFI::InPointer.from_utf8(value)
527
- _v1.put_pointer(0, _v2)
528
- end
529
- def value_nick
530
- _v1 = (@struct.to_ptr + 16)
531
- _v2 = _v1.get_pointer(0)
532
- _v3 = _v2.to_utf8
533
- _v3
534
- end
535
- def value_nick=(value)
536
- _v1 = (@struct.to_ptr + 16)
537
- _v2 = GirFFI::InPointer.from_utf8(value)
538
- _v1.put_pointer(0, _v2)
539
- end
540
- end
541
- class GObject::FlagsClass < GirFFI::StructBase
542
-
543
- def g_type_class
544
- _v1 = (@struct.to_ptr + 0)
545
- _v2 = GObject::TypeClass.get_value_from_pointer(_v1, 0)
546
- _v3 = GObject::TypeClass.wrap(_v2)
547
- _v3
548
- end
549
- def g_type_class=(value)
550
- _v1 = (@struct.to_ptr + 0)
551
- _v2 = GObject::TypeClass.copy_from(value)
552
- GObject::TypeClass.copy_value_to_pointer(_v2, _v1)
553
- end
554
- def mask
555
- _v1 = (@struct.to_ptr + 8)
556
- _v2 = _v1.get_uint32(0)
557
- _v2
558
- end
559
- def mask=(value)
560
- _v1 = (@struct.to_ptr + 8)
561
- _v2 = value
562
- _v1.put_uint32(0, _v2)
563
- end
564
- def n_values
565
- _v1 = (@struct.to_ptr + 12)
566
- _v2 = _v1.get_uint32(0)
567
- _v2
568
- end
569
- def n_values=(value)
570
- _v1 = (@struct.to_ptr + 12)
571
- _v2 = value
572
- _v1.put_uint32(0, _v2)
573
- end
574
- def values
575
- _v1 = (@struct.to_ptr + 16)
576
- _v2 = _v1.get_pointer(0)
577
- _v3 = GObject::FlagsValue.wrap(_v2)
578
- _v3
579
- end
580
- def values=(value)
581
- _v1 = (@struct.to_ptr + 16)
582
- _v2 = GObject::FlagsValue.copy_from(value)
583
- _v1.put_pointer(0, _v2)
584
- end
585
- end
586
- class GObject::FlagsValue < GirFFI::StructBase
587
-
588
- def value
589
- _v1 = (@struct.to_ptr + 0)
590
- _v2 = _v1.get_uint32(0)
591
- _v2
592
- end
593
- def value=(value)
594
- _v1 = (@struct.to_ptr + 0)
595
- _v2 = value
596
- _v1.put_uint32(0, _v2)
597
- end
598
- def value_name
599
- _v1 = (@struct.to_ptr + 8)
600
- _v2 = _v1.get_pointer(0)
601
- _v3 = _v2.to_utf8
602
- _v3
603
- end
604
- def value_name=(value)
605
- _v1 = (@struct.to_ptr + 8)
606
- _v2 = GirFFI::InPointer.from_utf8(value)
607
- _v1.put_pointer(0, _v2)
608
- end
609
- def value_nick
610
- _v1 = (@struct.to_ptr + 16)
611
- _v2 = _v1.get_pointer(0)
612
- _v3 = _v2.to_utf8
613
- _v3
614
- end
615
- def value_nick=(value)
616
- _v1 = (@struct.to_ptr + 16)
617
- _v2 = GirFFI::InPointer.from_utf8(value)
618
- _v1.put_pointer(0, _v2)
619
- end
620
- end
621
- class GObject::InitiallyUnowned < GObject::Object
622
-
623
- def g_type_instance
624
- _v1 = (@struct.to_ptr + 0)
625
- _v2 = GObject::TypeInstance.get_value_from_pointer(_v1, 0)
626
- _v3 = GObject::TypeInstance.wrap(_v2)
627
- _v3
628
- end
629
- def ref_count
630
- _v1 = (@struct.to_ptr + 8)
631
- _v2 = _v1.get_uint32(0)
632
- _v2
633
- end
634
- # Initializing method used in constructors. For InitiallyUnowned and
635
- # descendants, this needs to sink the object's floating reference.
636
- def store_pointer(ptr)
637
- super
638
- ::GObject::Lib.g_object_ref_sink(ptr)
639
- end
640
- end
641
- class GObject::InitiallyUnownedClass < GObject::ObjectClass
642
-
643
- def construct_properties
644
- _v1 = (@struct.to_ptr + 8)
645
- _v2 = _v1.get_pointer(0)
646
- _v3 = GLib::SList.wrap([:pointer, :void], _v2)
647
- _v3
648
- end
649
- def constructed
650
- _v1 = (@struct.to_ptr + 72)
651
- _v2 = GObject::Constructed.get_value_from_pointer(_v1, 0)
652
- _v2
653
- end
654
- def constructor
655
- _v1 = (@struct.to_ptr + 16)
656
- _v2 = _v1.get_pointer(0)
657
- _v2
658
- end
659
- def dispatch_properties_changed
660
- _v1 = (@struct.to_ptr + 56)
661
- _v2 = GObject::Dispatch_properties_changed.get_value_from_pointer(_v1, 0)
662
- _v2
663
- end
664
- def dispose
665
- _v1 = (@struct.to_ptr + 40)
666
- _v2 = GObject::Dispose.get_value_from_pointer(_v1, 0)
667
- _v2
668
- end
669
- def finalize
670
- _v1 = (@struct.to_ptr + 48)
671
- _v2 = GObject::Finalize.get_value_from_pointer(_v1, 0)
672
- _v2
673
- end
674
- def flags
675
- _v1 = (@struct.to_ptr + 80)
676
- _v2 = _v1.get_uint64(0)
677
- _v2
678
- end
679
- def g_type_class
680
- _v1 = (@struct.to_ptr + 0)
681
- _v2 = GObject::TypeClass.get_value_from_pointer(_v1, 0)
682
- _v3 = GObject::TypeClass.wrap(_v2)
683
- _v3
684
- end
685
- def get_property
686
- _v1 = (@struct.to_ptr + 32)
687
- _v2 = GObject::Get_property.get_value_from_pointer(_v1, 0)
688
- _v2
689
- end
690
- def notify
691
- _v1 = (@struct.to_ptr + 64)
692
- _v2 = GObject::Notify.get_value_from_pointer(_v1, 0)
693
- _v2
694
- end
695
- def pdummy
696
- _v1 = (@struct.to_ptr + 88)
697
- _v2 = GirFFI::SizedArray.get_value_from_pointer(_v1, 0)
698
- _v3 = GirFFI::SizedArray.wrap([:pointer, :void], 6, _v2)
699
- _v3
700
- end
701
- def set_property
702
- _v1 = (@struct.to_ptr + 24)
703
- _v2 = GObject::Set_property.get_value_from_pointer(_v1, 0)
704
- _v2
705
- end
706
- end
707
- # XXX: Don't know how to print callback
708
- # XXX: Don't know how to print callback
709
- class GObject::InterfaceInfo < GirFFI::StructBase
710
-
711
- def interface_data
712
- _v1 = (@struct.to_ptr + 16)
713
- _v2 = _v1.get_pointer(0)
714
- _v2
715
- end
716
- def interface_data=(value)
717
- _v1 = (@struct.to_ptr + 16)
718
- _v2 = value
719
- _v1.put_pointer(0, _v2)
720
- end
721
- def interface_finalize
722
- _v1 = (@struct.to_ptr + 8)
723
- _v2 = GObject::InterfaceFinalizeFunc.get_value_from_pointer(_v1, 0)
724
- _v2
725
- end
726
- def interface_finalize=(value)
727
- _v1 = (@struct.to_ptr + 8)
728
- _v2 = GObject::InterfaceFinalizeFunc.from(value)
729
- GObject::InterfaceFinalizeFunc.copy_value_to_pointer(_v2, _v1)
730
- end
731
- def interface_init
732
- _v1 = (@struct.to_ptr + 0)
733
- _v2 = GObject::InterfaceInitFunc.get_value_from_pointer(_v1, 0)
734
- _v2
735
- end
736
- def interface_init=(value)
737
- _v1 = (@struct.to_ptr + 0)
738
- _v2 = GObject::InterfaceInitFunc.from(value)
739
- GObject::InterfaceInitFunc.copy_value_to_pointer(_v2, _v1)
740
- end
741
- end
742
- # XXX: Don't know how to print callback
743
- class GObject::Object < GirFFI::ObjectBase
744
- def self.compat_control(what, data = nil)
745
- _v1 = what
746
- _v2 = data
747
- _v3 = GObject::Lib.g_object_compat_control(_v1, _v2)
748
- return _v3
749
- end
750
- def self.interface_find_property(g_iface, property_name)
751
- _v1 = GObject::TypeInterface.from(g_iface)
752
- _v2 = GirFFI::InPointer.from_utf8(property_name)
753
- _v3 = GObject::Lib.g_object_interface_find_property(_v1, _v2)
754
- _v4 = GObject::ParamSpec.wrap(_v3).tap { |it| it and it.ref }
755
- return _v4
756
- end
757
- def self.interface_install_property(g_iface, pspec)
758
- _v1 = GObject::TypeInterface.from(g_iface)
759
- _v2 = GObject::ParamSpec.from(pspec)
760
- GObject::Lib.g_object_interface_install_property(_v1, _v2)
761
- end
762
- def self.interface_list_properties(g_iface)
763
- _v1 = GObject::TypeInterface.from(g_iface)
764
- _v2 = FFI::MemoryPointer.new(:uint32)
765
- _v3 = GObject::Lib.g_object_interface_list_properties(_v1, _v2)
766
- _v4 = _v2.get_uint32(0)
767
- _v5 = GirFFI::SizedArray.wrap([:pointer, GObject::ParamSpec], _v4, _v3)
768
- return _v5
769
- end
770
- def self.make_finalizer(ptr)
771
- proc do
772
- rc = GObject::Object::Struct.new(ptr)[:ref_count]
773
- if rc.zero? then
774
- warn("not unreffing #{name}:#{ptr} (#{rc})")
775
- else
776
- GObject::Lib.g_object_unref(ptr)
777
- end
778
- end
779
- end
780
- def self.new(*args, &block)
781
- obj = allocate
782
- obj.__send__(:initialize, *args, &block)
783
- obj
784
- end
785
- def self.newv(*args, &block)
786
- raise(NoMethodError) unless (self == GObject::Object)
787
- obj = allocate
788
- obj.__send__(:initializev, *args, &block)
789
- obj
790
- end
791
- def bind_property(source_property, target, target_property, flags)
792
- _v1 = GirFFI::InPointer.from_utf8(source_property)
793
- _v2 = GObject::Object.from(target)
794
- _v3 = GirFFI::InPointer.from_utf8(target_property)
795
- _v4 = flags
796
- _v5 = GObject::Lib.g_object_bind_property(self, _v1, _v2, _v3, _v4)
797
- _v6 = GObject::Binding.wrap(_v5).tap { |it| it and it.ref }
798
- return _v6
799
- end
800
- def bind_property_full(source_property, target, target_property, flags, transform_to, transform_from)
801
- _v1 = GirFFI::InPointer.from_utf8(source_property)
802
- _v2 = GObject::Object.from(target)
803
- _v3 = GirFFI::InPointer.from_utf8(target_property)
804
- _v4 = flags
805
- _v5 = GObject::Closure.from(transform_to)
806
- _v6 = GObject::Closure.from(transform_from)
807
- _v7 = GObject::Lib.g_object_bind_property_with_closures(self, _v1, _v2, _v3, _v4, _v5, _v6)
808
- _v8 = GObject::Binding.wrap(_v7).tap { |it| it and it.ref }
809
- return _v8
810
- end
811
- def force_floating
812
- GObject::Lib.g_object_force_floating(self)
813
- end
814
- def freeze_notify
815
- GObject::Lib.g_object_freeze_notify(self)
816
- end
817
- def g_type_instance
818
- _v1 = (@struct.to_ptr + 0)
819
- _v2 = GObject::TypeInstance.get_value_from_pointer(_v1, 0)
820
- _v3 = GObject::TypeInstance.wrap(_v2)
821
- _v3
822
- end
823
- def get_data(key)
824
- _v1 = GirFFI::InPointer.from_utf8(key)
825
- _v2 = GObject::Lib.g_object_get_data(self, _v1)
826
- return _v2
827
- end
828
- def get_property_extended(property_name)
829
- value = get_property(property_name)
830
- type_info = get_property_type(property_name)
831
- property_value_post_conversion(value, type_info)
832
- end
833
- def get_property_with_override(property_name)
834
- gvalue = gvalue_for_property(property_name)
835
- get_property_without_override(property_name, gvalue)
836
- gvalue.get_value
837
- end
838
- def get_qdata(quark)
839
- _v1 = quark
840
- _v2 = GObject::Lib.g_object_get_qdata(self, _v1)
841
- return _v2
842
- end
843
- def getv(names, values)
844
- n_properties = values.nil? ? (0) : (values.length)
845
- _v1 = n_properties
846
- _v2 = GirFFI::SizedArray.from(:utf8, -1, names)
847
- _v3 = GirFFI::SizedArray.from(GObject::Value, -1, values)
848
- GObject::Lib.g_object_getv(self, _v1, _v2, _v3)
849
- end
850
- def initializev(object_type, parameters)
851
- _v1 = object_type
852
- n_parameters = parameters.nil? ? (0) : (parameters.length)
853
- _v2 = n_parameters
854
- _v3 = GirFFI::SizedArray.from(GObject::Parameter, -1, parameters)
855
- _v4 = GObject::Lib.g_object_newv(_v1, _v2, _v3)
856
- store_pointer(_v4)
857
- end
858
- def is_floating
859
- _v1 = GObject::Lib.g_object_is_floating(self)
860
- return _v1
861
- end
862
- # TODO: Generate accessor methods from GIR at class definition time
863
- def method_missing(method, *args)
864
- getter_name = "get_#{method}"
865
- return send(getter_name, *args) if respond_to?(getter_name)
866
- if method.to_s =~ /(.*)=$/ then
867
- setter_name = "set_#{Regexp.last_match[1]}"
868
- return send(setter_name, *args) if respond_to?(setter_name)
869
- end
870
- super
871
- end
872
- def notify(property_name)
873
- _v1 = GirFFI::InPointer.from_utf8(property_name)
874
- GObject::Lib.g_object_notify(self, _v1)
875
- end
876
- def notify_by_pspec(pspec)
877
- _v1 = GObject::ParamSpec.from(pspec)
878
- GObject::Lib.g_object_notify_by_pspec(self, _v1)
879
- end
880
- def ref
881
- Lib.g_object_ref(self)
882
- self
883
- end
884
- def ref_count
885
- _v1 = (@struct.to_ptr + 8)
886
- _v2 = _v1.get_uint32(0)
887
- _v2
888
- end
889
- def ref_sink
890
- _v1 = GObject::Lib.g_object_ref_sink(self)
891
- _v2 = GObject::Object.wrap(_v1).tap { |it| it and it.ref }
892
- return _v2
893
- end
894
- def run_dispose
895
- GObject::Lib.g_object_run_dispose(self)
896
- end
897
- def set_data(key, data = nil)
898
- _v1 = GirFFI::InPointer.from_utf8(key)
899
- _v2 = data
900
- GObject::Lib.g_object_set_data(self, _v1, _v2)
901
- end
902
- def set_property_extended(property_name, value)
903
- type_info = get_property_type(property_name)
904
- adjusted_value = property_value_pre_conversion(value, type_info)
905
- set_property(property_name, adjusted_value)
906
- end
907
- def set_property_with_override(property_name, value)
908
- gvalue = gvalue_for_property(property_name)
909
- gvalue.set_value(value)
910
- set_property_without_override(property_name, gvalue)
911
- end
912
- def signal_connect(event, data = nil, &block)
913
- GObject.signal_connect(self, event, data, &block)
914
- end
915
- def signal_connect_after(event, data = nil, &block)
916
- GObject.signal_connect_after(self, event, data, &block)
917
- end
918
- def steal_data(key)
919
- _v1 = GirFFI::InPointer.from_utf8(key)
920
- _v2 = GObject::Lib.g_object_steal_data(self, _v1)
921
- return _v2
922
- end
923
- def steal_qdata(quark)
924
- _v1 = quark
925
- _v2 = GObject::Lib.g_object_steal_qdata(self, _v1)
926
- return _v2
927
- end
928
- def store_pointer(ptr)
929
- super
930
- ObjectSpace.define_finalizer(self, self.class.make_finalizer(ptr))
931
- end
932
- def thaw_notify
933
- GObject::Lib.g_object_thaw_notify(self)
934
- end
935
- def unref
936
- GObject::Lib.g_object_unref(self)
937
- end
938
- def watch_closure(closure)
939
- _v1 = GObject::Closure.from(closure)
940
- GObject::Lib.g_object_watch_closure(self, _v1)
941
- end
942
- alias_method 'floating?', 'is_floating'
943
- alias_method 'get_property', 'get_property_with_override'
944
- alias_method 'get_property_without_override', 'get_property'
945
- alias_method 'set_property', 'set_property_with_override'
946
- alias_method 'set_property_without_override', 'set_property'
947
- end
948
- class GObject::ObjectClass < GObject::TypeClass
949
-
950
- def construct_properties
951
- _v1 = (@struct.to_ptr + 8)
952
- _v2 = _v1.get_pointer(0)
953
- _v3 = GLib::SList.wrap([:pointer, :void], _v2)
954
- _v3
955
- end
956
- def constructed
957
- _v1 = (@struct.to_ptr + 72)
958
- _v2 = GObject::Constructed.get_value_from_pointer(_v1, 0)
959
- _v2
960
- end
961
- def constructor
962
- _v1 = (@struct.to_ptr + 16)
963
- _v2 = _v1.get_pointer(0)
964
- _v2
965
- end
966
- def dispatch_properties_changed
967
- _v1 = (@struct.to_ptr + 56)
968
- _v2 = GObject::Dispatch_properties_changed.get_value_from_pointer(_v1, 0)
969
- _v2
970
- end
971
- def dispose
972
- _v1 = (@struct.to_ptr + 40)
973
- _v2 = GObject::Dispose.get_value_from_pointer(_v1, 0)
974
- _v2
975
- end
976
- def finalize
977
- _v1 = (@struct.to_ptr + 48)
978
- _v2 = GObject::Finalize.get_value_from_pointer(_v1, 0)
979
- _v2
980
- end
981
- def find_property(property_name)
982
- _v1 = GirFFI::InPointer.from_utf8(property_name)
983
- _v2 = GObject::Lib.g_object_class_find_property(self, _v1)
984
- _v3 = GObject::ParamSpec.wrap(_v2).tap { |it| it and it.ref }
985
- return _v3
986
- end
987
- def flags
988
- _v1 = (@struct.to_ptr + 80)
989
- _v2 = _v1.get_uint64(0)
990
- _v2
991
- end
992
- def g_type_class
993
- _v1 = (@struct.to_ptr + 0)
994
- _v2 = GObject::TypeClass.get_value_from_pointer(_v1, 0)
995
- _v3 = GObject::TypeClass.wrap(_v2)
996
- _v3
997
- end
998
- def get_property
999
- _v1 = (@struct.to_ptr + 32)
1000
- _v2 = GObject::Get_property.get_value_from_pointer(_v1, 0)
1001
- _v2
1002
- end
1003
- def get_property=(callback)
1004
- @struct[:get_property] = GObject::ObjectGetPropertyFunc.from(callback)
1005
- end
1006
- def gtype
1007
- to_ptr.get_gtype(0)
1008
- end
1009
- def install_properties(pspecs)
1010
- n_pspecs = pspecs.nil? ? (0) : (pspecs.length)
1011
- _v1 = n_pspecs
1012
- _v2 = GirFFI::SizedArray.from([:pointer, GObject::ParamSpec], -1, pspecs)
1013
- GObject::Lib.g_object_class_install_properties(self, _v1, _v2)
1014
- end
1015
- def install_property(property_id, pspec)
1016
- _v1 = property_id
1017
- _v2 = GObject::ParamSpec.from(pspec)
1018
- GObject::Lib.g_object_class_install_property(self, _v1, _v2)
1019
- end
1020
- def list_properties
1021
- _v1 = FFI::MemoryPointer.new(:uint32)
1022
- _v2 = GObject::Lib.g_object_class_list_properties(self, _v1)
1023
- _v3 = _v1.get_uint32(0)
1024
- _v4 = GirFFI::SizedArray.wrap([:pointer, GObject::ParamSpec], _v3, _v2)
1025
- return _v4
1026
- end
1027
- def notify
1028
- _v1 = (@struct.to_ptr + 64)
1029
- _v2 = GObject::Notify.get_value_from_pointer(_v1, 0)
1030
- _v2
1031
- end
1032
- def override_property(property_id, name)
1033
- _v1 = property_id
1034
- _v2 = GirFFI::InPointer.from_utf8(name)
1035
- GObject::Lib.g_object_class_override_property(self, _v1, _v2)
1036
- end
1037
- def pdummy
1038
- _v1 = (@struct.to_ptr + 88)
1039
- _v2 = GirFFI::SizedArray.get_value_from_pointer(_v1, 0)
1040
- _v3 = GirFFI::SizedArray.wrap([:pointer, :void], 6, _v2)
1041
- _v3
1042
- end
1043
- def set_property
1044
- _v1 = (@struct.to_ptr + 24)
1045
- _v2 = GObject::Set_property.get_value_from_pointer(_v1, 0)
1046
- _v2
1047
- end
1048
- def set_property=(callback)
1049
- @struct[:set_property] = GObject::ObjectSetPropertyFunc.from(callback)
1050
- end
1051
- end
1052
- class GObject::ObjectConstructParam < GirFFI::StructBase
1053
-
1054
- def pspec
1055
- _v1 = (@struct.to_ptr + 0)
1056
- _v2 = _v1.get_pointer(0)
1057
- _v3 = GObject::ParamSpec.wrap(_v2)
1058
- _v3
1059
- end
1060
- def pspec=(value)
1061
- _v1 = (@struct.to_ptr + 0)
1062
- _v2 = GObject::ParamSpec.from((value and value.ref))
1063
- _v1.put_pointer(0, _v2)
1064
- end
1065
- def value
1066
- _v1 = (@struct.to_ptr + 8)
1067
- _v2 = _v1.get_pointer(0)
1068
- _v3 = GObject::Value.wrap(_v2)
1069
- _v3
1070
- end
1071
- def value=(value)
1072
- _v1 = (@struct.to_ptr + 8)
1073
- _v2 = GObject::Value.copy_from(value)
1074
- _v1.put_pointer(0, _v2)
1075
- end
1076
- end
1077
- # XXX: Don't know how to print callback
1078
- # XXX: Don't know how to print callback
1079
- # XXX: Don't know how to print callback
1080
- PARAM_MASK = 255
1081
- PARAM_STATIC_STRINGS = 224
1082
- PARAM_USER_SHIFT = 8
1083
- # XXX: Don't know how to print flags
1084
- class GObject::ParamSpec < GirFFI::ObjectBase
1085
-
1086
- def _blurb
1087
- _v1 = (@struct.to_ptr + 48)
1088
- _v2 = _v1.get_pointer(0)
1089
- _v3 = _v2.to_utf8
1090
- _v3
1091
- end
1092
- def _nick
1093
- _v1 = (@struct.to_ptr + 40)
1094
- _v2 = _v1.get_pointer(0)
1095
- _v3 = _v2.to_utf8
1096
- _v3
1097
- end
1098
- def accessor_name
1099
- get_name.tr("-", "_")
1100
- end
1101
- def flags
1102
- _v1 = (@struct.to_ptr + 16)
1103
- _v2 = GObject::ParamFlags.get_value_from_pointer(_v1, 0)
1104
- _v2
1105
- end
1106
- def g_type_instance
1107
- _v1 = (@struct.to_ptr + 0)
1108
- _v2 = GObject::TypeInstance.get_value_from_pointer(_v1, 0)
1109
- _v3 = GObject::TypeInstance.wrap(_v2)
1110
- _v3
1111
- end
1112
- def get_blurb
1113
- _v1 = GObject::Lib.g_param_spec_get_blurb(self)
1114
- _v2 = _v1.to_utf8
1115
- return _v2
1116
- end
1117
- def get_default_value
1118
- _v1 = GObject::Lib.g_param_spec_get_default_value(self)
1119
- _v2 = GObject::Value.wrap(_v1).get_value
1120
- return _v2
1121
- end
1122
- def get_name
1123
- _v1 = GObject::Lib.g_param_spec_get_name(self)
1124
- _v2 = _v1.to_utf8
1125
- return _v2
1126
- end
1127
- def get_name_quark
1128
- _v1 = GObject::Lib.g_param_spec_get_name_quark(self)
1129
- return _v1
1130
- end
1131
- def get_nick
1132
- _v1 = GObject::Lib.g_param_spec_get_nick(self)
1133
- _v2 = _v1.to_utf8
1134
- return _v2
1135
- end
1136
- def get_qdata(quark)
1137
- _v1 = quark
1138
- _v2 = GObject::Lib.g_param_spec_get_qdata(self, _v1)
1139
- return _v2
1140
- end
1141
- def get_redirect_target
1142
- _v1 = GObject::Lib.g_param_spec_get_redirect_target(self)
1143
- _v2 = GObject::ParamSpec.wrap(_v1).tap { |it| it and it.ref }
1144
- return _v2
1145
- end
1146
- def owner_type
1147
- _v1 = (@struct.to_ptr + 32)
1148
- _v2 = _v1.get_uint64(0)
1149
- _v2
1150
- end
1151
- def param_id
1152
- _v1 = (@struct.to_ptr + 68)
1153
- _v2 = _v1.get_uint32(0)
1154
- _v2
1155
- end
1156
- def ref
1157
- Lib.g_param_spec_ref(self)
1158
- self
1159
- end
1160
- def ref_count
1161
- _v1 = (@struct.to_ptr + 64)
1162
- _v2 = _v1.get_uint32(0)
1163
- _v2
1164
- end
1165
- def set_qdata(quark, data = nil)
1166
- _v1 = quark
1167
- _v2 = data
1168
- GObject::Lib.g_param_spec_set_qdata(self, _v1, _v2)
1169
- end
1170
- def sink
1171
- GObject::Lib.g_param_spec_sink(self)
1172
- end
1173
- def steal_qdata(quark)
1174
- _v1 = quark
1175
- _v2 = GObject::Lib.g_param_spec_steal_qdata(self, _v1)
1176
- return _v2
1177
- end
1178
- def value_type
1179
- _v1 = (@struct.to_ptr + 24)
1180
- _v2 = _v1.get_uint64(0)
1181
- _v2
1182
- end
1183
- end
1184
- class GObject::ParamSpecBoolean < GObject::ParamSpec
1185
-
1186
- def default_value
1187
- _v1 = (@struct.to_ptr + 72)
1188
- _v2 = GirFFI::Boolean.get_value_from_pointer(_v1, 0)
1189
- _v2
1190
- end
1191
- end
1192
- class GObject::ParamSpecBoxed < GObject::ParamSpec
1193
-
1194
-
1195
- end
1196
- class GObject::ParamSpecChar < GObject::ParamSpec
1197
-
1198
- def default_value
1199
- _v1 = (@struct.to_ptr + 74)
1200
- _v2 = _v1.get_int8(0)
1201
- _v2
1202
- end
1203
- def maximum
1204
- _v1 = (@struct.to_ptr + 73)
1205
- _v2 = _v1.get_int8(0)
1206
- _v2
1207
- end
1208
- def minimum
1209
- _v1 = (@struct.to_ptr + 72)
1210
- _v2 = _v1.get_int8(0)
1211
- _v2
1212
- end
1213
- end
1214
- class GObject::ParamSpecClass < GObject::TypeClass
1215
-
1216
- def dummy
1217
- _v1 = (@struct.to_ptr + 48)
1218
- _v2 = GirFFI::SizedArray.get_value_from_pointer(_v1, 0)
1219
- _v3 = GirFFI::SizedArray.wrap([:pointer, :void], 4, _v2)
1220
- _v3
1221
- end
1222
- def finalize
1223
- _v1 = (@struct.to_ptr + 16)
1224
- _v2 = GObject::Finalize.get_value_from_pointer(_v1, 0)
1225
- _v2
1226
- end
1227
- def g_type_class
1228
- _v1 = (@struct.to_ptr + 0)
1229
- _v2 = GObject::TypeClass.get_value_from_pointer(_v1, 0)
1230
- _v3 = GObject::TypeClass.wrap(_v2)
1231
- _v3
1232
- end
1233
- def value_set_default
1234
- _v1 = (@struct.to_ptr + 24)
1235
- _v2 = GObject::Value_set_default.get_value_from_pointer(_v1, 0)
1236
- _v2
1237
- end
1238
- def value_type
1239
- _v1 = (@struct.to_ptr + 8)
1240
- _v2 = _v1.get_uint64(0)
1241
- _v2
1242
- end
1243
- def value_validate
1244
- _v1 = (@struct.to_ptr + 32)
1245
- _v2 = GObject::Value_validate.get_value_from_pointer(_v1, 0)
1246
- _v2
1247
- end
1248
- def values_cmp
1249
- _v1 = (@struct.to_ptr + 40)
1250
- _v2 = GObject::Values_cmp.get_value_from_pointer(_v1, 0)
1251
- _v2
1252
- end
1253
- end
1254
- class GObject::ParamSpecDouble < GObject::ParamSpec
1255
-
1256
- def default_value
1257
- _v1 = (@struct.to_ptr + 88)
1258
- _v2 = _v1.get_double(0)
1259
- _v2
1260
- end
1261
- def epsilon
1262
- _v1 = (@struct.to_ptr + 96)
1263
- _v2 = _v1.get_double(0)
1264
- _v2
1265
- end
1266
- def maximum
1267
- _v1 = (@struct.to_ptr + 80)
1268
- _v2 = _v1.get_double(0)
1269
- _v2
1270
- end
1271
- def minimum
1272
- _v1 = (@struct.to_ptr + 72)
1273
- _v2 = _v1.get_double(0)
1274
- _v2
1275
- end
1276
- end
1277
- class GObject::ParamSpecEnum < GObject::ParamSpec
1278
-
1279
- def default_value
1280
- _v1 = (@struct.to_ptr + 80)
1281
- _v2 = _v1.get_int32(0)
1282
- _v2
1283
- end
1284
- def enum_class
1285
- _v1 = (@struct.to_ptr + 72)
1286
- _v2 = _v1.get_pointer(0)
1287
- _v3 = GObject::EnumClass.wrap(_v2)
1288
- _v3
1289
- end
1290
- end
1291
- class GObject::ParamSpecFlags < GObject::ParamSpec
1292
-
1293
- def default_value
1294
- _v1 = (@struct.to_ptr + 80)
1295
- _v2 = _v1.get_uint32(0)
1296
- _v2
1297
- end
1298
- def flags_class
1299
- _v1 = (@struct.to_ptr + 72)
1300
- _v2 = _v1.get_pointer(0)
1301
- _v3 = GObject::FlagsClass.wrap(_v2)
1302
- _v3
1303
- end
1304
- end
1305
- class GObject::ParamSpecFloat < GObject::ParamSpec
1306
-
1307
- def default_value
1308
- _v1 = (@struct.to_ptr + 80)
1309
- _v2 = _v1.get_float(0)
1310
- _v2
1311
- end
1312
- def epsilon
1313
- _v1 = (@struct.to_ptr + 84)
1314
- _v2 = _v1.get_float(0)
1315
- _v2
1316
- end
1317
- def maximum
1318
- _v1 = (@struct.to_ptr + 76)
1319
- _v2 = _v1.get_float(0)
1320
- _v2
1321
- end
1322
- def minimum
1323
- _v1 = (@struct.to_ptr + 72)
1324
- _v2 = _v1.get_float(0)
1325
- _v2
1326
- end
1327
- end
1328
- class GObject::ParamSpecGType < GObject::ParamSpec
1329
-
1330
- def is_a_type
1331
- _v1 = (@struct.to_ptr + 72)
1332
- _v2 = _v1.get_uint64(0)
1333
- _v2
1334
- end
1335
- end
1336
- class GObject::ParamSpecInt < GObject::ParamSpec
1337
-
1338
- def default_value
1339
- _v1 = (@struct.to_ptr + 80)
1340
- _v2 = _v1.get_int32(0)
1341
- _v2
1342
- end
1343
- def maximum
1344
- _v1 = (@struct.to_ptr + 76)
1345
- _v2 = _v1.get_int32(0)
1346
- _v2
1347
- end
1348
- def minimum
1349
- _v1 = (@struct.to_ptr + 72)
1350
- _v2 = _v1.get_int32(0)
1351
- _v2
1352
- end
1353
- end
1354
- class GObject::ParamSpecInt64 < GObject::ParamSpec
1355
-
1356
- def default_value
1357
- _v1 = (@struct.to_ptr + 88)
1358
- _v2 = _v1.get_int64(0)
1359
- _v2
1360
- end
1361
- def maximum
1362
- _v1 = (@struct.to_ptr + 80)
1363
- _v2 = _v1.get_int64(0)
1364
- _v2
1365
- end
1366
- def minimum
1367
- _v1 = (@struct.to_ptr + 72)
1368
- _v2 = _v1.get_int64(0)
1369
- _v2
1370
- end
1371
- end
1372
- class GObject::ParamSpecLong < GObject::ParamSpec
1373
-
1374
- def default_value
1375
- _v1 = (@struct.to_ptr + 88)
1376
- _v2 = _v1.get_int64(0)
1377
- _v2
1378
- end
1379
- def maximum
1380
- _v1 = (@struct.to_ptr + 80)
1381
- _v2 = _v1.get_int64(0)
1382
- _v2
1383
- end
1384
- def minimum
1385
- _v1 = (@struct.to_ptr + 72)
1386
- _v2 = _v1.get_int64(0)
1387
- _v2
1388
- end
1389
- end
1390
- class GObject::ParamSpecObject < GObject::ParamSpec
1391
-
1392
-
1393
- end
1394
- class GObject::ParamSpecOverride < GObject::ParamSpec
1395
-
1396
- def overridden
1397
- _v1 = (@struct.to_ptr + 72)
1398
- _v2 = _v1.get_pointer(0)
1399
- _v3 = GObject::ParamSpec.wrap(_v2)
1400
- _v3
1401
- end
1402
- end
1403
- class GObject::ParamSpecParam < GObject::ParamSpec
1404
-
1405
-
1406
- end
1407
- class GObject::ParamSpecPointer < GObject::ParamSpec
1408
-
1409
-
1410
- end
1411
- class GObject::ParamSpecPool < GirFFI::StructBase
1412
- def self.new(type_prefixing)
1413
- _v1 = type_prefixing
1414
- _v2 = GObject::Lib.g_param_spec_pool_new(_v1)
1415
- _v3 = GObject::ParamSpecPool.wrap_copy(_v2)
1416
- return _v3
1417
- end
1418
- def insert(pspec, owner_type)
1419
- _v1 = GObject::ParamSpec.from(pspec)
1420
- _v2 = owner_type
1421
- GObject::Lib.g_param_spec_pool_insert(self, _v1, _v2)
1422
- end
1423
- def list(owner_type)
1424
- _v1 = owner_type
1425
- _v2 = FFI::MemoryPointer.new(:uint32)
1426
- _v3 = GObject::Lib.g_param_spec_pool_list(self, _v1, _v2)
1427
- _v4 = _v2.get_uint32(0)
1428
- _v5 = GirFFI::SizedArray.wrap([:pointer, GObject::ParamSpec], _v4, _v3)
1429
- return _v5
1430
- end
1431
- def list_owned(owner_type)
1432
- _v1 = owner_type
1433
- _v2 = GObject::Lib.g_param_spec_pool_list_owned(self, _v1)
1434
- _v3 = GLib::List.wrap(GObject::ParamSpec, _v2)
1435
- return _v3
1436
- end
1437
- def lookup(param_name, owner_type, walk_ancestors)
1438
- _v1 = GirFFI::InPointer.from_utf8(param_name)
1439
- _v2 = owner_type
1440
- _v3 = walk_ancestors
1441
- _v4 = GObject::Lib.g_param_spec_pool_lookup(self, _v1, _v2, _v3)
1442
- _v5 = GObject::ParamSpec.wrap(_v4).tap { |it| it and it.ref }
1443
- return _v5
1444
- end
1445
- def remove(pspec)
1446
- _v1 = GObject::ParamSpec.from(pspec)
1447
- GObject::Lib.g_param_spec_pool_remove(self, _v1)
1448
- end
1449
- end
1450
- class GObject::ParamSpecString < GObject::ParamSpec
1451
-
1452
- def cset_first
1453
- _v1 = (@struct.to_ptr + 80)
1454
- _v2 = _v1.get_pointer(0)
1455
- _v3 = _v2.to_utf8
1456
- _v3
1457
- end
1458
- def cset_nth
1459
- _v1 = (@struct.to_ptr + 88)
1460
- _v2 = _v1.get_pointer(0)
1461
- _v3 = _v2.to_utf8
1462
- _v3
1463
- end
1464
- def default_value
1465
- _v1 = (@struct.to_ptr + 72)
1466
- _v2 = _v1.get_pointer(0)
1467
- _v3 = _v2.to_utf8
1468
- _v3
1469
- end
1470
- def ensure_non_null
1471
- _v1 = (@struct.to_ptr + 104)
1472
- _v2 = _v1.get_uint32(0)
1473
- _v2
1474
- end
1475
- def null_fold_if_empty
1476
- _v1 = (@struct.to_ptr + 100)
1477
- _v2 = _v1.get_uint32(0)
1478
- _v2
1479
- end
1480
- def substitutor
1481
- _v1 = (@struct.to_ptr + 96)
1482
- _v2 = _v1.get_int8(0)
1483
- _v2
1484
- end
1485
- end
1486
- class GObject::ParamSpecTypeInfo < GirFFI::StructBase
1487
-
1488
- def finalize
1489
- _v1 = (@struct.to_ptr + 24)
1490
- _v2 = GObject::Finalize.get_value_from_pointer(_v1, 0)
1491
- _v2
1492
- end
1493
- def instance_init
1494
- _v1 = (@struct.to_ptr + 8)
1495
- _v2 = GObject::Instance_init.get_value_from_pointer(_v1, 0)
1496
- _v2
1497
- end
1498
- def instance_size
1499
- _v1 = (@struct.to_ptr + 0)
1500
- _v2 = _v1.get_uint16(0)
1501
- _v2
1502
- end
1503
- def instance_size=(value)
1504
- _v1 = (@struct.to_ptr + 0)
1505
- _v2 = value
1506
- _v1.put_uint16(0, _v2)
1507
- end
1508
- def n_preallocs
1509
- _v1 = (@struct.to_ptr + 2)
1510
- _v2 = _v1.get_uint16(0)
1511
- _v2
1512
- end
1513
- def n_preallocs=(value)
1514
- _v1 = (@struct.to_ptr + 2)
1515
- _v2 = value
1516
- _v1.put_uint16(0, _v2)
1517
- end
1518
- def value_set_default
1519
- _v1 = (@struct.to_ptr + 32)
1520
- _v2 = GObject::Value_set_default.get_value_from_pointer(_v1, 0)
1521
- _v2
1522
- end
1523
- def value_type
1524
- _v1 = (@struct.to_ptr + 16)
1525
- _v2 = _v1.get_uint64(0)
1526
- _v2
1527
- end
1528
- def value_type=(value)
1529
- _v1 = (@struct.to_ptr + 16)
1530
- _v2 = value
1531
- _v1.put_uint64(0, _v2)
1532
- end
1533
- def value_validate
1534
- _v1 = (@struct.to_ptr + 40)
1535
- _v2 = GObject::Value_validate.get_value_from_pointer(_v1, 0)
1536
- _v2
1537
- end
1538
- def values_cmp
1539
- _v1 = (@struct.to_ptr + 48)
1540
- _v2 = GObject::Values_cmp.get_value_from_pointer(_v1, 0)
1541
- _v2
1542
- end
1543
- end
1544
- class GObject::ParamSpecUChar < GObject::ParamSpec
1545
-
1546
- def default_value
1547
- _v1 = (@struct.to_ptr + 74)
1548
- _v2 = _v1.get_uint8(0)
1549
- _v2
1550
- end
1551
- def maximum
1552
- _v1 = (@struct.to_ptr + 73)
1553
- _v2 = _v1.get_uint8(0)
1554
- _v2
1555
- end
1556
- def minimum
1557
- _v1 = (@struct.to_ptr + 72)
1558
- _v2 = _v1.get_uint8(0)
1559
- _v2
1560
- end
1561
- end
1562
- class GObject::ParamSpecUInt < GObject::ParamSpec
1563
-
1564
- def default_value
1565
- _v1 = (@struct.to_ptr + 80)
1566
- _v2 = _v1.get_uint32(0)
1567
- _v2
1568
- end
1569
- def maximum
1570
- _v1 = (@struct.to_ptr + 76)
1571
- _v2 = _v1.get_uint32(0)
1572
- _v2
1573
- end
1574
- def minimum
1575
- _v1 = (@struct.to_ptr + 72)
1576
- _v2 = _v1.get_uint32(0)
1577
- _v2
1578
- end
1579
- end
1580
- class GObject::ParamSpecUInt64 < GObject::ParamSpec
1581
-
1582
- def default_value
1583
- _v1 = (@struct.to_ptr + 88)
1584
- _v2 = _v1.get_uint64(0)
1585
- _v2
1586
- end
1587
- def maximum
1588
- _v1 = (@struct.to_ptr + 80)
1589
- _v2 = _v1.get_uint64(0)
1590
- _v2
1591
- end
1592
- def minimum
1593
- _v1 = (@struct.to_ptr + 72)
1594
- _v2 = _v1.get_uint64(0)
1595
- _v2
1596
- end
1597
- end
1598
- class GObject::ParamSpecULong < GObject::ParamSpec
1599
-
1600
- def default_value
1601
- _v1 = (@struct.to_ptr + 88)
1602
- _v2 = _v1.get_uint64(0)
1603
- _v2
1604
- end
1605
- def maximum
1606
- _v1 = (@struct.to_ptr + 80)
1607
- _v2 = _v1.get_uint64(0)
1608
- _v2
1609
- end
1610
- def minimum
1611
- _v1 = (@struct.to_ptr + 72)
1612
- _v2 = _v1.get_uint64(0)
1613
- _v2
1614
- end
1615
- end
1616
- class GObject::ParamSpecUnichar < GObject::ParamSpec
1617
-
1618
- def default_value
1619
- _v1 = (@struct.to_ptr + 72)
1620
- _v2 = _v1.get_uint32(0)
1621
- _v2
1622
- end
1623
- end
1624
- class GObject::ParamSpecValueArray < GObject::ParamSpec
1625
-
1626
- def element_spec
1627
- _v1 = (@struct.to_ptr + 72)
1628
- _v2 = _v1.get_pointer(0)
1629
- _v3 = GObject::ParamSpec.wrap(_v2)
1630
- _v3
1631
- end
1632
- def fixed_n_elements
1633
- _v1 = (@struct.to_ptr + 80)
1634
- _v2 = _v1.get_uint32(0)
1635
- _v2
1636
- end
1637
- end
1638
- class GObject::ParamSpecVariant < GObject::ParamSpec
1639
-
1640
- def padding
1641
- _v1 = (@struct.to_ptr + 88)
1642
- _v2 = GirFFI::SizedArray.get_value_from_pointer(_v1, 0)
1643
- _v3 = GirFFI::SizedArray.wrap([:pointer, :void], 4, _v2)
1644
- _v3
1645
- end
1646
- end
1647
- class GObject::Parameter < GirFFI::StructBase
1648
-
1649
- def name
1650
- _v1 = (@struct.to_ptr + 0)
1651
- _v2 = _v1.get_pointer(0)
1652
- _v3 = _v2.to_utf8
1653
- _v3
1654
- end
1655
- def name=(value)
1656
- _v1 = (@struct.to_ptr + 0)
1657
- _v2 = GirFFI::InPointer.from_utf8(value)
1658
- _v1.put_pointer(0, _v2)
1659
- end
1660
- def value
1661
- _v1 = (@struct.to_ptr + 8)
1662
- _v2 = GObject::Value.get_value_from_pointer(_v1, 0)
1663
- _v3 = GObject::Value.wrap(_v2)
1664
- _v3
1665
- end
1666
- def value=(value)
1667
- _v1 = (@struct.to_ptr + 8)
1668
- _v2 = GObject::Value.copy_from(value)
1669
- GObject::Value.copy_value_to_pointer(_v2, _v1)
1670
- end
1671
- end
1672
- SIGNAL_FLAGS_MASK = 511
1673
- SIGNAL_MATCH_MASK = 63
1674
- # XXX: Don't know how to print callback
1675
- # XXX: Don't know how to print callback
1676
- # XXX: Don't know how to print flags
1677
- class GObject::SignalInvocationHint < GirFFI::StructBase
1678
-
1679
- def detail
1680
- _v1 = (@struct.to_ptr + 4)
1681
- _v2 = _v1.get_uint32(0)
1682
- _v2
1683
- end
1684
- def detail=(value)
1685
- _v1 = (@struct.to_ptr + 4)
1686
- _v2 = value
1687
- _v1.put_uint32(0, _v2)
1688
- end
1689
- def run_type
1690
- _v1 = (@struct.to_ptr + 8)
1691
- _v2 = GObject::SignalFlags.get_value_from_pointer(_v1, 0)
1692
- _v2
1693
- end
1694
- def run_type=(value)
1695
- _v1 = (@struct.to_ptr + 8)
1696
- _v2 = value
1697
- GObject::SignalFlags.copy_value_to_pointer(_v2, _v1)
1698
- end
1699
- def signal_id
1700
- _v1 = (@struct.to_ptr + 0)
1701
- _v2 = _v1.get_uint32(0)
1702
- _v2
1703
- end
1704
- def signal_id=(value)
1705
- _v1 = (@struct.to_ptr + 0)
1706
- _v2 = value
1707
- _v1.put_uint32(0, _v2)
1708
- end
1709
- end
1710
- # XXX: Don't know how to print flags
1711
- class GObject::SignalQuery < GirFFI::StructBase
1712
-
1713
- def itype
1714
- _v1 = (@struct.to_ptr + 16)
1715
- _v2 = _v1.get_uint64(0)
1716
- _v2
1717
- end
1718
- def itype=(value)
1719
- _v1 = (@struct.to_ptr + 16)
1720
- _v2 = value
1721
- _v1.put_uint64(0, _v2)
1722
- end
1723
- def n_params
1724
- _v1 = (@struct.to_ptr + 40)
1725
- _v2 = _v1.get_uint32(0)
1726
- _v2
1727
- end
1728
- def n_params=(value)
1729
- _v1 = (@struct.to_ptr + 40)
1730
- _v2 = value
1731
- _v1.put_uint32(0, _v2)
1732
- end
1733
- def param_types
1734
- _v1 = (@struct.to_ptr + 40)
1735
- _v2 = _v1.get_uint32(0)
1736
- _v3 = (@struct.to_ptr + 48)
1737
- _v4 = _v3.get_pointer(0)
1738
- _v5 = GirFFI::SizedArray.wrap(:GType, _v2, _v4)
1739
- _v5
1740
- end
1741
- def param_types=(value)
1742
- _v1 = (@struct.to_ptr + 48)
1743
- _v2 = GirFFI::SizedArray.copy_from(:GType, -1, value)
1744
- _v1.put_pointer(0, _v2)
1745
- end
1746
- def return_type
1747
- _v1 = (@struct.to_ptr + 32)
1748
- _v2 = _v1.get_uint64(0)
1749
- _v2
1750
- end
1751
- def return_type=(value)
1752
- _v1 = (@struct.to_ptr + 32)
1753
- _v2 = value
1754
- _v1.put_uint64(0, _v2)
1755
- end
1756
- def signal_flags
1757
- _v1 = (@struct.to_ptr + 24)
1758
- _v2 = GObject::SignalFlags.get_value_from_pointer(_v1, 0)
1759
- _v2
1760
- end
1761
- def signal_flags=(value)
1762
- _v1 = (@struct.to_ptr + 24)
1763
- _v2 = value
1764
- GObject::SignalFlags.copy_value_to_pointer(_v2, _v1)
1765
- end
1766
- def signal_id
1767
- _v1 = (@struct.to_ptr + 0)
1768
- _v2 = _v1.get_uint32(0)
1769
- _v2
1770
- end
1771
- def signal_id=(value)
1772
- _v1 = (@struct.to_ptr + 0)
1773
- _v2 = value
1774
- _v1.put_uint32(0, _v2)
1775
- end
1776
- def signal_name
1777
- _v1 = (@struct.to_ptr + 8)
1778
- _v2 = _v1.get_pointer(0)
1779
- _v3 = _v2.to_utf8
1780
- _v3
1781
- end
1782
- def signal_name=(value)
1783
- _v1 = (@struct.to_ptr + 8)
1784
- _v2 = GirFFI::InPointer.from_utf8(value)
1785
- _v1.put_pointer(0, _v2)
1786
- end
1787
- end
1788
- TYPE_FLAG_RESERVED_ID_BIT = 1
1789
- TYPE_FUNDAMENTAL_MAX = 255
1790
- TYPE_FUNDAMENTAL_SHIFT = 2
1791
- TYPE_RESERVED_BSE_FIRST = 32
1792
- TYPE_RESERVED_BSE_LAST = 48
1793
- TYPE_RESERVED_GLIB_FIRST = 22
1794
- TYPE_RESERVED_GLIB_LAST = 31
1795
- TYPE_RESERVED_USER_FIRST = 49
1796
- # XXX: Don't know how to print callback
1797
- # XXX: Don't know how to print union
1798
- class GObject::TypeClass < GirFFI::StructBase
1799
- def self.adjust_private_offset(g_class, private_size_or_offset)
1800
- _v1 = g_class
1801
- _v2 = private_size_or_offset
1802
- GObject::Lib.g_type_class_adjust_private_offset(_v1, _v2)
1803
- end
1804
- def self.peek(type)
1805
- _v1 = type
1806
- _v2 = GObject::Lib.g_type_class_peek(_v1)
1807
- _v3 = GObject::TypeClass.wrap_copy(_v2)
1808
- return _v3
1809
- end
1810
- def self.peek_static(type)
1811
- _v1 = type
1812
- _v2 = GObject::Lib.g_type_class_peek_static(_v1)
1813
- _v3 = GObject::TypeClass.wrap_copy(_v2)
1814
- return _v3
1815
- end
1816
- def self.ref(type)
1817
- _v1 = type
1818
- _v2 = GObject::Lib.g_type_class_ref(_v1)
1819
- _v3 = GObject::TypeClass.wrap_copy(_v2)
1820
- return _v3
1821
- end
1822
- def add_private(private_size)
1823
- _v1 = private_size
1824
- GObject::Lib.g_type_class_add_private(self, _v1)
1825
- end
1826
- def g_type
1827
- _v1 = (@struct.to_ptr + 0)
1828
- _v2 = _v1.get_uint64(0)
1829
- _v2
1830
- end
1831
- def get_private(private_type)
1832
- _v1 = private_type
1833
- _v2 = GObject::Lib.g_type_class_get_private(self, _v1)
1834
- return _v2
1835
- end
1836
- def peek_parent
1837
- _v1 = GObject::Lib.g_type_class_peek_parent(self)
1838
- _v2 = GObject::TypeClass.wrap_copy(_v1)
1839
- return _v2
1840
- end
1841
- def unref
1842
- GObject::Lib.g_type_class_unref(self)
1843
- end
1844
- end
1845
- # XXX: Don't know how to print callback
1846
- # XXX: Don't know how to print flags
1847
- # XXX: Don't know how to print flags
1848
- # XXX: Don't know how to print flags
1849
- class GObject::TypeFundamentalInfo < GirFFI::StructBase
1850
-
1851
- def type_flags
1852
- _v1 = (@struct.to_ptr + 0)
1853
- _v2 = GObject::TypeFundamentalFlags.get_value_from_pointer(_v1, 0)
1854
- _v2
1855
- end
1856
- def type_flags=(value)
1857
- _v1 = (@struct.to_ptr + 0)
1858
- _v2 = value
1859
- GObject::TypeFundamentalFlags.copy_value_to_pointer(_v2, _v1)
1860
- end
1861
- end
1862
- class GObject::TypeInfo < GirFFI::StructBase
1863
-
1864
- def base_finalize
1865
- _v1 = (@struct.to_ptr + 16)
1866
- _v2 = GObject::BaseFinalizeFunc.get_value_from_pointer(_v1, 0)
1867
- _v2
1868
- end
1869
- def base_finalize=(value)
1870
- _v1 = (@struct.to_ptr + 16)
1871
- _v2 = GObject::BaseFinalizeFunc.from(value)
1872
- GObject::BaseFinalizeFunc.copy_value_to_pointer(_v2, _v1)
1873
- end
1874
- def base_init
1875
- _v1 = (@struct.to_ptr + 8)
1876
- _v2 = GObject::BaseInitFunc.get_value_from_pointer(_v1, 0)
1877
- _v2
1878
- end
1879
- def base_init=(value)
1880
- _v1 = (@struct.to_ptr + 8)
1881
- _v2 = GObject::BaseInitFunc.from(value)
1882
- GObject::BaseInitFunc.copy_value_to_pointer(_v2, _v1)
1883
- end
1884
- def class_data
1885
- _v1 = (@struct.to_ptr + 40)
1886
- _v2 = _v1.get_pointer(0)
1887
- _v2
1888
- end
1889
- def class_data=(value)
1890
- _v1 = (@struct.to_ptr + 40)
1891
- _v2 = value
1892
- _v1.put_pointer(0, _v2)
1893
- end
1894
- def class_finalize
1895
- _v1 = (@struct.to_ptr + 32)
1896
- _v2 = GObject::ClassFinalizeFunc.get_value_from_pointer(_v1, 0)
1897
- _v2
1898
- end
1899
- def class_finalize=(value)
1900
- _v1 = (@struct.to_ptr + 32)
1901
- _v2 = GObject::ClassFinalizeFunc.from(value)
1902
- GObject::ClassFinalizeFunc.copy_value_to_pointer(_v2, _v1)
1903
- end
1904
- def class_init
1905
- _v1 = (@struct.to_ptr + 24)
1906
- _v2 = GObject::ClassInitFunc.get_value_from_pointer(_v1, 0)
1907
- _v2
1908
- end
1909
- def class_init=(value)
1910
- _v1 = (@struct.to_ptr + 24)
1911
- _v2 = GObject::ClassInitFunc.from(value)
1912
- GObject::ClassInitFunc.copy_value_to_pointer(_v2, _v1)
1913
- end
1914
- def class_size
1915
- _v1 = (@struct.to_ptr + 0)
1916
- _v2 = _v1.get_uint16(0)
1917
- _v2
1918
- end
1919
- def class_size=(value)
1920
- _v1 = (@struct.to_ptr + 0)
1921
- _v2 = value
1922
- _v1.put_uint16(0, _v2)
1923
- end
1924
- def instance_init
1925
- _v1 = (@struct.to_ptr + 56)
1926
- _v2 = GObject::InstanceInitFunc.get_value_from_pointer(_v1, 0)
1927
- _v2
1928
- end
1929
- def instance_init=(value)
1930
- _v1 = (@struct.to_ptr + 56)
1931
- _v2 = GObject::InstanceInitFunc.from(value)
1932
- GObject::InstanceInitFunc.copy_value_to_pointer(_v2, _v1)
1933
- end
1934
- def instance_size
1935
- _v1 = (@struct.to_ptr + 48)
1936
- _v2 = _v1.get_uint16(0)
1937
- _v2
1938
- end
1939
- def instance_size=(value)
1940
- _v1 = (@struct.to_ptr + 48)
1941
- _v2 = value
1942
- _v1.put_uint16(0, _v2)
1943
- end
1944
- def n_preallocs
1945
- _v1 = (@struct.to_ptr + 50)
1946
- _v2 = _v1.get_uint16(0)
1947
- _v2
1948
- end
1949
- def n_preallocs=(value)
1950
- _v1 = (@struct.to_ptr + 50)
1951
- _v2 = value
1952
- _v1.put_uint16(0, _v2)
1953
- end
1954
- def value_table
1955
- _v1 = (@struct.to_ptr + 64)
1956
- _v2 = _v1.get_pointer(0)
1957
- _v3 = GObject::TypeValueTable.wrap(_v2)
1958
- _v3
1959
- end
1960
- def value_table=(value)
1961
- _v1 = (@struct.to_ptr + 64)
1962
- _v2 = GObject::TypeValueTable.copy_from(value)
1963
- _v1.put_pointer(0, _v2)
1964
- end
1965
- end
1966
- class GObject::TypeInstance < GirFFI::StructBase
1967
-
1968
- def g_class
1969
- _v1 = (@struct.to_ptr + 0)
1970
- _v2 = _v1.get_pointer(0)
1971
- _v3 = GObject::TypeClass.wrap(_v2)
1972
- _v3
1973
- end
1974
- def get_private(private_type)
1975
- _v1 = private_type
1976
- _v2 = GObject::Lib.g_type_instance_get_private(self, _v1)
1977
- return _v2
1978
- end
1979
- end
1980
- class GObject::TypeInterface < GirFFI::StructBase
1981
- def self.add_prerequisite(interface_type, prerequisite_type)
1982
- _v1 = interface_type
1983
- _v2 = prerequisite_type
1984
- GObject::Lib.g_type_interface_add_prerequisite(_v1, _v2)
1985
- end
1986
- def self.get_plugin(instance_type, interface_type)
1987
- _v1 = instance_type
1988
- _v2 = interface_type
1989
- _v3 = GObject::Lib.g_type_interface_get_plugin(_v1, _v2)
1990
- _v4 = GObject::TypePlugin.wrap(_v3)
1991
- return _v4
1992
- end
1993
- def self.peek(instance_class, iface_type)
1994
- _v1 = GObject::TypeClass.from(instance_class)
1995
- _v2 = iface_type
1996
- _v3 = GObject::Lib.g_type_interface_peek(_v1, _v2)
1997
- _v4 = GObject::TypeInterface.wrap_copy(_v3)
1998
- return _v4
1999
- end
2000
- def self.prerequisites(interface_type)
2001
- _v1 = interface_type
2002
- _v2 = FFI::MemoryPointer.new(:uint32)
2003
- _v3 = GObject::Lib.g_type_interface_prerequisites(_v1, _v2)
2004
- _v4 = _v2.get_uint32(0)
2005
- _v5 = GirFFI::SizedArray.wrap(:GType, _v4, _v3)
2006
- return _v5
2007
- end
2008
- def g_instance_type
2009
- _v1 = (@struct.to_ptr + 8)
2010
- _v2 = _v1.get_uint64(0)
2011
- _v2
2012
- end
2013
- def g_type
2014
- _v1 = (@struct.to_ptr + 0)
2015
- _v2 = _v1.get_uint64(0)
2016
- _v2
2017
- end
2018
- def peek_parent
2019
- _v1 = GObject::Lib.g_type_interface_peek_parent(self)
2020
- _v2 = GObject::TypeInterface.wrap_copy(_v1)
2021
- return _v2
2022
- end
2023
- end
2024
- # XXX: Don't know how to print callback
2025
- class GObject::TypeModule < GObject::Object
2026
-
2027
- def add_interface(instance_type, interface_type, interface_info)
2028
- _v1 = instance_type
2029
- _v2 = interface_type
2030
- _v3 = GObject::InterfaceInfo.from(interface_info)
2031
- GObject::Lib.g_type_module_add_interface(self, _v1, _v2, _v3)
2032
- end
2033
- def interface_infos
2034
- _v1 = (@struct.to_ptr + 40)
2035
- _v2 = _v1.get_pointer(0)
2036
- _v3 = GLib::SList.wrap([:pointer, :void], _v2)
2037
- _v3
2038
- end
2039
- def name
2040
- _v1 = (@struct.to_ptr + 48)
2041
- _v2 = _v1.get_pointer(0)
2042
- _v3 = _v2.to_utf8
2043
- _v3
2044
- end
2045
- def register_enum(name, const_static_values)
2046
- _v1 = GirFFI::InPointer.from_utf8(name)
2047
- _v2 = GObject::EnumValue.from(const_static_values)
2048
- _v3 = GObject::Lib.g_type_module_register_enum(self, _v1, _v2)
2049
- return _v3
2050
- end
2051
- def register_flags(name, const_static_values)
2052
- _v1 = GirFFI::InPointer.from_utf8(name)
2053
- _v2 = GObject::FlagsValue.from(const_static_values)
2054
- _v3 = GObject::Lib.g_type_module_register_flags(self, _v1, _v2)
2055
- return _v3
2056
- end
2057
- def register_type(parent_type, type_name, type_info, flags)
2058
- _v1 = parent_type
2059
- _v2 = GirFFI::InPointer.from_utf8(type_name)
2060
- _v3 = GObject::TypeInfo.from(type_info)
2061
- _v4 = flags
2062
- _v5 = GObject::Lib.g_type_module_register_type(self, _v1, _v2, _v3, _v4)
2063
- return _v5
2064
- end
2065
- def set_name(name)
2066
- _v1 = GirFFI::InPointer.from_utf8(name)
2067
- GObject::Lib.g_type_module_set_name(self, _v1)
2068
- end
2069
- def type_infos
2070
- _v1 = (@struct.to_ptr + 32)
2071
- _v2 = _v1.get_pointer(0)
2072
- _v3 = GLib::SList.wrap([:pointer, :void], _v2)
2073
- _v3
2074
- end
2075
- def unuse
2076
- GObject::Lib.g_type_module_unuse(self)
2077
- end
2078
- def use
2079
- _v1 = GObject::Lib.g_type_module_use(self)
2080
- return _v1
2081
- end
2082
- def use_count
2083
- _v1 = (@struct.to_ptr + 24)
2084
- _v2 = _v1.get_uint32(0)
2085
- _v2
2086
- end
2087
- end
2088
- class GObject::TypeModuleClass < GObject::ObjectClass
2089
-
2090
- def load
2091
- _v1 = (@struct.to_ptr + 136)
2092
- _v2 = GObject::Load.get_value_from_pointer(_v1, 0)
2093
- _v2
2094
- end
2095
- def parent_class
2096
- _v1 = (@struct.to_ptr + 0)
2097
- _v2 = GObject::ObjectClass.get_value_from_pointer(_v1, 0)
2098
- _v3 = GObject::ObjectClass.wrap(_v2)
2099
- _v3
2100
- end
2101
- def reserved1
2102
- _v1 = (@struct.to_ptr + 152)
2103
- _v2 = GObject::Reserved1.get_value_from_pointer(_v1, 0)
2104
- _v2
2105
- end
2106
- def reserved2
2107
- _v1 = (@struct.to_ptr + 160)
2108
- _v2 = GObject::Reserved2.get_value_from_pointer(_v1, 0)
2109
- _v2
2110
- end
2111
- def reserved3
2112
- _v1 = (@struct.to_ptr + 168)
2113
- _v2 = GObject::Reserved3.get_value_from_pointer(_v1, 0)
2114
- _v2
2115
- end
2116
- def reserved4
2117
- _v1 = (@struct.to_ptr + 176)
2118
- _v2 = GObject::Reserved4.get_value_from_pointer(_v1, 0)
2119
- _v2
2120
- end
2121
- def unload
2122
- _v1 = (@struct.to_ptr + 144)
2123
- _v2 = GObject::Unload.get_value_from_pointer(_v1, 0)
2124
- _v2
2125
- end
2126
- end
2127
- # XXX: Don't know how to print interface
2128
- class GObject::TypePluginClass < GirFFI::StructBase
2129
-
2130
- def base_iface
2131
- _v1 = (@struct.to_ptr + 0)
2132
- _v2 = GObject::TypeInterface.get_value_from_pointer(_v1, 0)
2133
- _v3 = GObject::TypeInterface.wrap(_v2)
2134
- _v3
2135
- end
2136
- def complete_interface_info
2137
- _v1 = (@struct.to_ptr + 40)
2138
- _v2 = GObject::TypePluginCompleteInterfaceInfo.get_value_from_pointer(_v1, 0)
2139
- _v2
2140
- end
2141
- def complete_interface_info=(value)
2142
- _v1 = (@struct.to_ptr + 40)
2143
- _v2 = GObject::TypePluginCompleteInterfaceInfo.from(value)
2144
- GObject::TypePluginCompleteInterfaceInfo.copy_value_to_pointer(_v2, _v1)
2145
- end
2146
- def complete_type_info
2147
- _v1 = (@struct.to_ptr + 32)
2148
- _v2 = GObject::TypePluginCompleteTypeInfo.get_value_from_pointer(_v1, 0)
2149
- _v2
2150
- end
2151
- def complete_type_info=(value)
2152
- _v1 = (@struct.to_ptr + 32)
2153
- _v2 = GObject::TypePluginCompleteTypeInfo.from(value)
2154
- GObject::TypePluginCompleteTypeInfo.copy_value_to_pointer(_v2, _v1)
2155
- end
2156
- def unuse_plugin
2157
- _v1 = (@struct.to_ptr + 24)
2158
- _v2 = GObject::TypePluginUnuse.get_value_from_pointer(_v1, 0)
2159
- _v2
2160
- end
2161
- def unuse_plugin=(value)
2162
- _v1 = (@struct.to_ptr + 24)
2163
- _v2 = GObject::TypePluginUnuse.from(value)
2164
- GObject::TypePluginUnuse.copy_value_to_pointer(_v2, _v1)
2165
- end
2166
- def use_plugin
2167
- _v1 = (@struct.to_ptr + 16)
2168
- _v2 = GObject::TypePluginUse.get_value_from_pointer(_v1, 0)
2169
- _v2
2170
- end
2171
- def use_plugin=(value)
2172
- _v1 = (@struct.to_ptr + 16)
2173
- _v2 = GObject::TypePluginUse.from(value)
2174
- GObject::TypePluginUse.copy_value_to_pointer(_v2, _v1)
2175
- end
2176
- end
2177
- # XXX: Don't know how to print callback
2178
- # XXX: Don't know how to print callback
2179
- # XXX: Don't know how to print callback
2180
- # XXX: Don't know how to print callback
2181
- class GObject::TypeQuery < GirFFI::StructBase
2182
-
2183
- def class_size
2184
- _v1 = (@struct.to_ptr + 16)
2185
- _v2 = _v1.get_uint32(0)
2186
- _v2
2187
- end
2188
- def class_size=(value)
2189
- _v1 = (@struct.to_ptr + 16)
2190
- _v2 = value
2191
- _v1.put_uint32(0, _v2)
2192
- end
2193
- def instance_size
2194
- _v1 = (@struct.to_ptr + 20)
2195
- _v2 = _v1.get_uint32(0)
2196
- _v2
2197
- end
2198
- def instance_size=(value)
2199
- _v1 = (@struct.to_ptr + 20)
2200
- _v2 = value
2201
- _v1.put_uint32(0, _v2)
2202
- end
2203
- def type
2204
- _v1 = (@struct.to_ptr + 0)
2205
- _v2 = _v1.get_uint64(0)
2206
- _v2
2207
- end
2208
- def type=(value)
2209
- _v1 = (@struct.to_ptr + 0)
2210
- _v2 = value
2211
- _v1.put_uint64(0, _v2)
2212
- end
2213
- def type_name
2214
- _v1 = (@struct.to_ptr + 8)
2215
- _v2 = _v1.get_pointer(0)
2216
- _v3 = _v2.to_utf8
2217
- _v3
2218
- end
2219
- def type_name=(value)
2220
- _v1 = (@struct.to_ptr + 8)
2221
- _v2 = GirFFI::InPointer.from_utf8(value)
2222
- _v1.put_pointer(0, _v2)
2223
- end
2224
- end
2225
- class GObject::TypeValueTable < GirFFI::StructBase
2226
-
2227
- def collect_format
2228
- _v1 = (@struct.to_ptr + 32)
2229
- _v2 = _v1.get_pointer(0)
2230
- _v3 = _v2.to_utf8
2231
- _v3
2232
- end
2233
- def collect_format=(value)
2234
- _v1 = (@struct.to_ptr + 32)
2235
- _v2 = GirFFI::InPointer.from_utf8(value)
2236
- _v1.put_pointer(0, _v2)
2237
- end
2238
- def collect_value
2239
- _v1 = (@struct.to_ptr + 40)
2240
- _v2 = GObject::Collect_value.get_value_from_pointer(_v1, 0)
2241
- _v2
2242
- end
2243
- def lcopy_format
2244
- _v1 = (@struct.to_ptr + 48)
2245
- _v2 = _v1.get_pointer(0)
2246
- _v3 = _v2.to_utf8
2247
- _v3
2248
- end
2249
- def lcopy_format=(value)
2250
- _v1 = (@struct.to_ptr + 48)
2251
- _v2 = GirFFI::InPointer.from_utf8(value)
2252
- _v1.put_pointer(0, _v2)
2253
- end
2254
- def lcopy_value
2255
- _v1 = (@struct.to_ptr + 56)
2256
- _v2 = GObject::Lcopy_value.get_value_from_pointer(_v1, 0)
2257
- _v2
2258
- end
2259
- def value_copy
2260
- _v1 = (@struct.to_ptr + 16)
2261
- _v2 = GObject::Value_copy.get_value_from_pointer(_v1, 0)
2262
- _v2
2263
- end
2264
- def value_free
2265
- _v1 = (@struct.to_ptr + 8)
2266
- _v2 = GObject::Value_free.get_value_from_pointer(_v1, 0)
2267
- _v2
2268
- end
2269
- def value_init
2270
- _v1 = (@struct.to_ptr + 0)
2271
- _v2 = GObject::Value_init.get_value_from_pointer(_v1, 0)
2272
- _v2
2273
- end
2274
- def value_peek_pointer
2275
- _v1 = (@struct.to_ptr + 24)
2276
- _v2 = GObject::Value_peek_pointer.get_value_from_pointer(_v1, 0)
2277
- _v2
2278
- end
2279
- end
2280
- VALUE_COLLECT_FORMAT_MAX_LENGTH = 8
2281
- VALUE_NOCOPY_CONTENTS = 134217728
2282
- class GObject::Value < GirFFI::BoxedBase
2283
- def self.copy_value_to_pointer(value, pointer, offset = 0)
2284
- target = wrap((pointer + offset))
2285
- target.init(value.current_gtype)
2286
- Lib.g_value_copy(value, target) unless value.uninitialized?
2287
- end
2288
- def self.for_gtype(gtype)
2289
- new.tap { |it| it.init(gtype) }
2290
- end
2291
- def self.from(val)
2292
- case val
2293
- when self then
2294
- val
2295
- else
2296
- wrap_ruby_value(val)
2297
- end
2298
- end
2299
- def self.make_finalizer(struct)
2300
- proc do
2301
- if struct.owned? then
2302
- ptr = struct.to_ptr
2303
- Lib.g_value_unset(ptr) unless (struct[:g_type] == TYPE_INVALID)
2304
- GObject.boxed_free(gtype, ptr)
2305
- end
2306
- end
2307
- end
2308
- def self.type_compatible(src_type, dest_type)
2309
- _v1 = src_type
2310
- _v2 = dest_type
2311
- _v3 = GObject::Lib.g_value_type_compatible(_v1, _v2)
2312
- return _v3
2313
- end
2314
- def self.type_transformable(src_type, dest_type)
2315
- _v1 = src_type
2316
- _v2 = dest_type
2317
- _v3 = GObject::Lib.g_value_type_transformable(_v1, _v2)
2318
- return _v3
2319
- end
2320
- def self.wrap_instance(instance)
2321
- new.tap do |it|
2322
- it.init(GObject.type_from_instance(instance))
2323
- it.set_instance(instance)
2324
- end
2325
- end
2326
- def self.wrap_ruby_value(val)
2327
- new.tap { |gv| gv.__send__(:set_ruby_value, val) }
2328
- end
2329
- def copy(dest_value)
2330
- _v1 = GObject::Value.from(dest_value)
2331
- GObject::Lib.g_value_copy(self, _v1)
2332
- end
2333
- def current_fundamental_type
2334
- GObject.type_fundamental(current_gtype)
2335
- end
2336
- def current_gtype
2337
- @struct[:g_type]
2338
- end
2339
- def current_gtype_name
2340
- GObject.type_name(current_gtype)
2341
- end
2342
- def data
2343
- _v1 = (@struct.to_ptr + 8)
2344
- _v2 = GirFFI::SizedArray.get_value_from_pointer(_v1, 0)
2345
- _v3 = GirFFI::SizedArray.wrap(GObject::Private___Value__data__union, 2, _v2)
2346
- _v3
2347
- end
2348
- def data=(value)
2349
- _v1 = (@struct.to_ptr + 8)
2350
- GirFFI::ArgHelper.check_fixed_array_size(2, value, "value")
2351
- _v2 = GirFFI::SizedArray.copy_from(GObject::Private___Value__data__union, 2, value)
2352
- GirFFI::SizedArray.copy_value_to_pointer(_v2, _v1)
2353
- end
2354
- def dup_object
2355
- _v1 = GObject::Lib.g_value_dup_object(self)
2356
- _v2 = GObject::Object.wrap(_v1)
2357
- return _v2
2358
- end
2359
- def dup_string
2360
- _v1 = GObject::Lib.g_value_dup_string(self)
2361
- _v2 = GirFFI::AllocationHelper.free_after(_v1, &:to_utf8)
2362
- return _v2
2363
- end
2364
- def dup_variant
2365
- _v1 = GObject::Lib.g_value_dup_variant(self)
2366
- _v2 = GLib::Variant.wrap_own(_v1)
2367
- return _v2
2368
- end
2369
- def fits_pointer
2370
- _v1 = GObject::Lib.g_value_fits_pointer(self)
2371
- return _v1
2372
- end
2373
- def g_type
2374
- _v1 = (@struct.to_ptr + 0)
2375
- _v2 = _v1.get_uint64(0)
2376
- _v2
2377
- end
2378
- def get_boolean
2379
- _v1 = GObject::Lib.g_value_get_boolean(self)
2380
- return _v1
2381
- end
2382
- def get_boxed
2383
- _v1 = GObject::Lib.g_value_get_boxed(self)
2384
- return _v1
2385
- end
2386
- def get_char
2387
- _v1 = GObject::Lib.g_value_get_char(self)
2388
- return _v1
2389
- end
2390
- def get_double
2391
- _v1 = GObject::Lib.g_value_get_double(self)
2392
- return _v1
2393
- end
2394
- def get_enum
2395
- _v1 = GObject::Lib.g_value_get_enum(self)
2396
- return _v1
2397
- end
2398
- def get_flags
2399
- _v1 = GObject::Lib.g_value_get_flags(self)
2400
- return _v1
2401
- end
2402
- def get_float
2403
- _v1 = GObject::Lib.g_value_get_float(self)
2404
- return _v1
2405
- end
2406
- def get_gtype
2407
- _v1 = GObject::Lib.g_value_get_gtype(self)
2408
- return _v1
2409
- end
2410
- def get_int
2411
- _v1 = GObject::Lib.g_value_get_int(self)
2412
- return _v1
2413
- end
2414
- def get_int64
2415
- _v1 = GObject::Lib.g_value_get_int64(self)
2416
- return _v1
2417
- end
2418
- def get_long
2419
- _v1 = GObject::Lib.g_value_get_long(self)
2420
- return _v1
2421
- end
2422
- def get_object
2423
- _v1 = GObject::Lib.g_value_get_object(self)
2424
- _v2 = GObject::Object.wrap(_v1).tap { |it| it and it.ref }
2425
- return _v2
2426
- end
2427
- def get_param
2428
- _v1 = GObject::Lib.g_value_get_param(self)
2429
- _v2 = GObject::ParamSpec.wrap(_v1).tap { |it| it and it.ref }
2430
- return _v2
2431
- end
2432
- def get_pointer
2433
- _v1 = GObject::Lib.g_value_get_pointer(self)
2434
- return _v1
2435
- end
2436
- def get_schar
2437
- _v1 = GObject::Lib.g_value_get_schar(self)
2438
- return _v1
2439
- end
2440
- def get_string
2441
- _v1 = GObject::Lib.g_value_get_string(self)
2442
- _v2 = _v1.to_utf8
2443
- return _v2
2444
- end
2445
- def get_uchar
2446
- _v1 = GObject::Lib.g_value_get_uchar(self)
2447
- return _v1
2448
- end
2449
- def get_uint
2450
- _v1 = GObject::Lib.g_value_get_uint(self)
2451
- return _v1
2452
- end
2453
- def get_uint64
2454
- _v1 = GObject::Lib.g_value_get_uint64(self)
2455
- return _v1
2456
- end
2457
- def get_ulong
2458
- _v1 = GObject::Lib.g_value_get_ulong(self)
2459
- return _v1
2460
- end
2461
- def get_value
2462
- value = get_value_plain
2463
- (current_fundamental_type == TYPE_BOXED) ? (wrap_boxed(value)) : (value)
2464
- end
2465
- def get_value_plain
2466
- send(get_method)
2467
- end
2468
- def get_variant
2469
- _v1 = GObject::Lib.g_value_get_variant(self)
2470
- _v2 = GLib::Variant.wrap_own(_v1)
2471
- return _v2
2472
- end
2473
- def init(type)
2474
- unless [TYPE_NONE, TYPE_INVALID].include?(type) then
2475
- Lib.g_value_init(self, type)
2476
- end
2477
- self
2478
- end
2479
- def init_from_instance(instance)
2480
- _v1 = GObject::TypeInstance.from(instance)
2481
- GObject::Lib.g_value_init_from_instance(self, _v1)
2482
- end
2483
- def peek_pointer
2484
- _v1 = GObject::Lib.g_value_peek_pointer(self)
2485
- return _v1
2486
- end
2487
- def reset
2488
- _v1 = GObject::Lib.g_value_reset(self)
2489
- _v2 = GObject::Value.wrap(_v1).get_value
2490
- return _v2
2491
- end
2492
- def set_boolean(v_boolean)
2493
- _v1 = v_boolean
2494
- GObject::Lib.g_value_set_boolean(self, _v1)
2495
- end
2496
- def set_boxed(v_boxed = nil)
2497
- _v1 = v_boxed
2498
- GObject::Lib.g_value_set_boxed(self, _v1)
2499
- end
2500
- def set_boxed_take_ownership(v_boxed = nil)
2501
- _v1 = v_boxed
2502
- GObject::Lib.g_value_set_boxed_take_ownership(self, _v1)
2503
- end
2504
- def set_char(v_char)
2505
- _v1 = v_char
2506
- GObject::Lib.g_value_set_char(self, _v1)
2507
- end
2508
- def set_double(v_double)
2509
- _v1 = v_double
2510
- GObject::Lib.g_value_set_double(self, _v1)
2511
- end
2512
- def set_enum(v_enum)
2513
- _v1 = v_enum
2514
- GObject::Lib.g_value_set_enum(self, _v1)
2515
- end
2516
- def set_flags(v_flags)
2517
- _v1 = v_flags
2518
- GObject::Lib.g_value_set_flags(self, _v1)
2519
- end
2520
- def set_float(v_float)
2521
- _v1 = v_float
2522
- GObject::Lib.g_value_set_float(self, _v1)
2523
- end
2524
- def set_gtype(v_gtype)
2525
- _v1 = v_gtype
2526
- GObject::Lib.g_value_set_gtype(self, _v1)
2527
- end
2528
- def set_instance(instance = nil)
2529
- _v1 = instance
2530
- GObject::Lib.g_value_set_instance(self, _v1)
2531
- end
2532
- def set_int(v_int)
2533
- _v1 = v_int
2534
- GObject::Lib.g_value_set_int(self, _v1)
2535
- end
2536
- def set_int64(v_int64)
2537
- _v1 = v_int64
2538
- GObject::Lib.g_value_set_int64(self, _v1)
2539
- end
2540
- def set_long(v_long)
2541
- _v1 = v_long
2542
- GObject::Lib.g_value_set_long(self, _v1)
2543
- end
2544
- def set_object(v_object = nil)
2545
- _v1 = GObject::Object.from(v_object)
2546
- GObject::Lib.g_value_set_object(self, _v1)
2547
- end
2548
- def set_param(param = nil)
2549
- _v1 = GObject::ParamSpec.from(param)
2550
- GObject::Lib.g_value_set_param(self, _v1)
2551
- end
2552
- def set_pointer(v_pointer = nil)
2553
- _v1 = v_pointer
2554
- GObject::Lib.g_value_set_pointer(self, _v1)
2555
- end
2556
- def set_schar(v_char)
2557
- _v1 = v_char
2558
- GObject::Lib.g_value_set_schar(self, _v1)
2559
- end
2560
- def set_static_boxed(v_boxed = nil)
2561
- _v1 = v_boxed
2562
- GObject::Lib.g_value_set_static_boxed(self, _v1)
2563
- end
2564
- def set_static_string(v_string = nil)
2565
- _v1 = GirFFI::InPointer.from_utf8(v_string)
2566
- GObject::Lib.g_value_set_static_string(self, _v1)
2567
- end
2568
- def set_string(v_string = nil)
2569
- _v1 = GirFFI::InPointer.from_utf8(v_string)
2570
- GObject::Lib.g_value_set_string(self, _v1)
2571
- end
2572
- def set_string_take_ownership(v_string = nil)
2573
- _v1 = GirFFI::InPointer.from_utf8(v_string)
2574
- GObject::Lib.g_value_set_string_take_ownership(self, _v1)
2575
- end
2576
- def set_uchar(v_uchar)
2577
- _v1 = v_uchar
2578
- GObject::Lib.g_value_set_uchar(self, _v1)
2579
- end
2580
- def set_uint(v_uint)
2581
- _v1 = v_uint
2582
- GObject::Lib.g_value_set_uint(self, _v1)
2583
- end
2584
- def set_uint64(v_uint64)
2585
- _v1 = v_uint64
2586
- GObject::Lib.g_value_set_uint64(self, _v1)
2587
- end
2588
- def set_ulong(v_ulong)
2589
- _v1 = v_ulong
2590
- GObject::Lib.g_value_set_ulong(self, _v1)
2591
- end
2592
- # TYPE_NONE is skipped
2593
- def set_value(val)
2594
- send(set_method, val)
2595
- end
2596
- def set_variant(variant = nil)
2597
- _v1 = GLib::Variant.from(variant)
2598
- GObject::Lib.g_value_set_variant(self, _v1)
2599
- end
2600
- def take_boxed(v_boxed = nil)
2601
- _v1 = v_boxed
2602
- GObject::Lib.g_value_take_boxed(self, _v1)
2603
- end
2604
- def take_string(v_string = nil)
2605
- _v1 = GirFFI::InPointer.from_utf8(v_string)
2606
- GObject::Lib.g_value_take_string(self, _v1)
2607
- end
2608
- def take_variant(variant = nil)
2609
- _v1 = GLib::Variant.copy_from(variant)
2610
- GObject::Lib.g_value_take_variant(self, _v1)
2611
- end
2612
- def transform(dest_value)
2613
- _v1 = GObject::Value.from(dest_value)
2614
- _v2 = GObject::Lib.g_value_transform(self, _v1)
2615
- return _v2
2616
- end
2617
- def uninitialized?
2618
- (current_gtype == TYPE_INVALID)
2619
- end
2620
- def unset
2621
- GObject::Lib.g_value_unset(self)
2622
- end
2623
- alias_method 'value=', 'set_value'
2624
- end
2625
- class GObject::ValueArray < GirFFI::BoxedBase
2626
- def self.new(*args, &block)
2627
- obj = allocate
2628
- obj.__send__(:initialize, *args, &block)
2629
- obj
2630
- end
2631
- def append(value = nil)
2632
- _v1 = GObject::Value.from(value)
2633
- _v2 = GObject::Lib.g_value_array_append(self, _v1)
2634
- _v3 = GObject::ValueArray.wrap_copy(_v2)
2635
- return _v3
2636
- end
2637
- def copy
2638
- _v1 = GObject::Lib.g_value_array_copy(self)
2639
- _v2 = GObject::ValueArray.wrap_own(_v1)
2640
- return _v2
2641
- end
2642
- def get_nth(index_)
2643
- _v1 = index_
2644
- _v2 = GObject::Lib.g_value_array_get_nth(self, _v1)
2645
- _v3 = GObject::Value.wrap(_v2).get_value
2646
- return _v3
2647
- end
2648
- def insert(index_, value = nil)
2649
- _v1 = index_
2650
- _v2 = GObject::Value.from(value)
2651
- _v3 = GObject::Lib.g_value_array_insert(self, _v1, _v2)
2652
- _v4 = GObject::ValueArray.wrap_copy(_v3)
2653
- return _v4
2654
- end
2655
- def n_prealloced
2656
- _v1 = (@struct.to_ptr + 16)
2657
- _v2 = _v1.get_uint32(0)
2658
- _v2
2659
- end
2660
- def n_values
2661
- _v1 = (@struct.to_ptr + 0)
2662
- _v2 = _v1.get_uint32(0)
2663
- _v2
2664
- end
2665
- def n_values=(value)
2666
- _v1 = (@struct.to_ptr + 0)
2667
- _v2 = value
2668
- _v1.put_uint32(0, _v2)
2669
- end
2670
- def prepend(value = nil)
2671
- _v1 = GObject::Value.from(value)
2672
- _v2 = GObject::Lib.g_value_array_prepend(self, _v1)
2673
- _v3 = GObject::ValueArray.wrap_copy(_v2)
2674
- return _v3
2675
- end
2676
- def remove(index_)
2677
- _v1 = index_
2678
- _v2 = GObject::Lib.g_value_array_remove(self, _v1)
2679
- _v3 = GObject::ValueArray.wrap_copy(_v2)
2680
- return _v3
2681
- end
2682
- def sort(&compare_func)
2683
- _v1 = GLib::CompareDataFunc.from(compare_func)
2684
- _v2 = GirFFI::ArgHelper.store(_v1)
2685
- _v3 = GObject::Lib.g_value_array_sort_with_data(self, _v1, _v2)
2686
- _v4 = GObject::ValueArray.wrap_copy(_v3)
2687
- return _v4
2688
- end
2689
- def values
2690
- _v1 = (@struct.to_ptr + 8)
2691
- _v2 = _v1.get_pointer(0)
2692
- _v3 = GObject::Value.wrap(_v2)
2693
- _v3
2694
- end
2695
- def values=(value)
2696
- _v1 = (@struct.to_ptr + 8)
2697
- _v2 = GObject::Value.copy_from(value)
2698
- _v1.put_pointer(0, _v2)
2699
- end
2700
- end
2701
- # XXX: Don't know how to print callback
2702
- # XXX: Don't know how to print callback
2703
- class GObject::WeakRef < GirFFI::StructBase
2704
-
2705
-
2706
- end
2707
- # XXX: Don't know how to print union
2708
- def self.boxed_copy(boxed_type, src_boxed)
2709
- _v1 = boxed_type
2710
- _v2 = src_boxed
2711
- _v3 = GObject::Lib.g_boxed_copy(_v1, _v2)
2712
- return _v3
2713
- end
2714
- def self.boxed_free(boxed_type, boxed)
2715
- _v1 = boxed_type
2716
- _v2 = boxed
2717
- GObject::Lib.g_boxed_free(_v1, _v2)
2718
- end
2719
- def self.cclosure_marshal_BOOLEAN__BOXED_BOXED(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2720
- _v1 = GObject::Closure.from(closure)
2721
- _v2 = GObject::Value.from(return_value)
2722
- _v3 = n_param_values
2723
- _v4 = GObject::Value.from(param_values)
2724
- _v5 = invocation_hint
2725
- _v6 = marshal_data
2726
- GObject::Lib.g_cclosure_marshal_BOOLEAN__BOXED_BOXED(_v1, _v2, _v3, _v4, _v5, _v6)
2727
- end
2728
- def self.cclosure_marshal_BOOLEAN__FLAGS(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2729
- _v1 = GObject::Closure.from(closure)
2730
- _v2 = GObject::Value.from(return_value)
2731
- _v3 = n_param_values
2732
- _v4 = GObject::Value.from(param_values)
2733
- _v5 = invocation_hint
2734
- _v6 = marshal_data
2735
- GObject::Lib.g_cclosure_marshal_BOOLEAN__FLAGS(_v1, _v2, _v3, _v4, _v5, _v6)
2736
- end
2737
- def self.cclosure_marshal_STRING__OBJECT_POINTER(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2738
- _v1 = GObject::Closure.from(closure)
2739
- _v2 = GObject::Value.from(return_value)
2740
- _v3 = n_param_values
2741
- _v4 = GObject::Value.from(param_values)
2742
- _v5 = invocation_hint
2743
- _v6 = marshal_data
2744
- GObject::Lib.g_cclosure_marshal_STRING__OBJECT_POINTER(_v1, _v2, _v3, _v4, _v5, _v6)
2745
- end
2746
- def self.cclosure_marshal_VOID__BOOLEAN(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2747
- _v1 = GObject::Closure.from(closure)
2748
- _v2 = GObject::Value.from(return_value)
2749
- _v3 = n_param_values
2750
- _v4 = GObject::Value.from(param_values)
2751
- _v5 = invocation_hint
2752
- _v6 = marshal_data
2753
- GObject::Lib.g_cclosure_marshal_VOID__BOOLEAN(_v1, _v2, _v3, _v4, _v5, _v6)
2754
- end
2755
- def self.cclosure_marshal_VOID__BOXED(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2756
- _v1 = GObject::Closure.from(closure)
2757
- _v2 = GObject::Value.from(return_value)
2758
- _v3 = n_param_values
2759
- _v4 = GObject::Value.from(param_values)
2760
- _v5 = invocation_hint
2761
- _v6 = marshal_data
2762
- GObject::Lib.g_cclosure_marshal_VOID__BOXED(_v1, _v2, _v3, _v4, _v5, _v6)
2763
- end
2764
- def self.cclosure_marshal_VOID__CHAR(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2765
- _v1 = GObject::Closure.from(closure)
2766
- _v2 = GObject::Value.from(return_value)
2767
- _v3 = n_param_values
2768
- _v4 = GObject::Value.from(param_values)
2769
- _v5 = invocation_hint
2770
- _v6 = marshal_data
2771
- GObject::Lib.g_cclosure_marshal_VOID__CHAR(_v1, _v2, _v3, _v4, _v5, _v6)
2772
- end
2773
- def self.cclosure_marshal_VOID__DOUBLE(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2774
- _v1 = GObject::Closure.from(closure)
2775
- _v2 = GObject::Value.from(return_value)
2776
- _v3 = n_param_values
2777
- _v4 = GObject::Value.from(param_values)
2778
- _v5 = invocation_hint
2779
- _v6 = marshal_data
2780
- GObject::Lib.g_cclosure_marshal_VOID__DOUBLE(_v1, _v2, _v3, _v4, _v5, _v6)
2781
- end
2782
- def self.cclosure_marshal_VOID__ENUM(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2783
- _v1 = GObject::Closure.from(closure)
2784
- _v2 = GObject::Value.from(return_value)
2785
- _v3 = n_param_values
2786
- _v4 = GObject::Value.from(param_values)
2787
- _v5 = invocation_hint
2788
- _v6 = marshal_data
2789
- GObject::Lib.g_cclosure_marshal_VOID__ENUM(_v1, _v2, _v3, _v4, _v5, _v6)
2790
- end
2791
- def self.cclosure_marshal_VOID__FLAGS(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2792
- _v1 = GObject::Closure.from(closure)
2793
- _v2 = GObject::Value.from(return_value)
2794
- _v3 = n_param_values
2795
- _v4 = GObject::Value.from(param_values)
2796
- _v5 = invocation_hint
2797
- _v6 = marshal_data
2798
- GObject::Lib.g_cclosure_marshal_VOID__FLAGS(_v1, _v2, _v3, _v4, _v5, _v6)
2799
- end
2800
- def self.cclosure_marshal_VOID__FLOAT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2801
- _v1 = GObject::Closure.from(closure)
2802
- _v2 = GObject::Value.from(return_value)
2803
- _v3 = n_param_values
2804
- _v4 = GObject::Value.from(param_values)
2805
- _v5 = invocation_hint
2806
- _v6 = marshal_data
2807
- GObject::Lib.g_cclosure_marshal_VOID__FLOAT(_v1, _v2, _v3, _v4, _v5, _v6)
2808
- end
2809
- def self.cclosure_marshal_VOID__INT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2810
- _v1 = GObject::Closure.from(closure)
2811
- _v2 = GObject::Value.from(return_value)
2812
- _v3 = n_param_values
2813
- _v4 = GObject::Value.from(param_values)
2814
- _v5 = invocation_hint
2815
- _v6 = marshal_data
2816
- GObject::Lib.g_cclosure_marshal_VOID__INT(_v1, _v2, _v3, _v4, _v5, _v6)
2817
- end
2818
- def self.cclosure_marshal_VOID__LONG(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2819
- _v1 = GObject::Closure.from(closure)
2820
- _v2 = GObject::Value.from(return_value)
2821
- _v3 = n_param_values
2822
- _v4 = GObject::Value.from(param_values)
2823
- _v5 = invocation_hint
2824
- _v6 = marshal_data
2825
- GObject::Lib.g_cclosure_marshal_VOID__LONG(_v1, _v2, _v3, _v4, _v5, _v6)
2826
- end
2827
- def self.cclosure_marshal_VOID__OBJECT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2828
- _v1 = GObject::Closure.from(closure)
2829
- _v2 = GObject::Value.from(return_value)
2830
- _v3 = n_param_values
2831
- _v4 = GObject::Value.from(param_values)
2832
- _v5 = invocation_hint
2833
- _v6 = marshal_data
2834
- GObject::Lib.g_cclosure_marshal_VOID__OBJECT(_v1, _v2, _v3, _v4, _v5, _v6)
2835
- end
2836
- def self.cclosure_marshal_VOID__PARAM(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2837
- _v1 = GObject::Closure.from(closure)
2838
- _v2 = GObject::Value.from(return_value)
2839
- _v3 = n_param_values
2840
- _v4 = GObject::Value.from(param_values)
2841
- _v5 = invocation_hint
2842
- _v6 = marshal_data
2843
- GObject::Lib.g_cclosure_marshal_VOID__PARAM(_v1, _v2, _v3, _v4, _v5, _v6)
2844
- end
2845
- def self.cclosure_marshal_VOID__POINTER(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2846
- _v1 = GObject::Closure.from(closure)
2847
- _v2 = GObject::Value.from(return_value)
2848
- _v3 = n_param_values
2849
- _v4 = GObject::Value.from(param_values)
2850
- _v5 = invocation_hint
2851
- _v6 = marshal_data
2852
- GObject::Lib.g_cclosure_marshal_VOID__POINTER(_v1, _v2, _v3, _v4, _v5, _v6)
2853
- end
2854
- def self.cclosure_marshal_VOID__STRING(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2855
- _v1 = GObject::Closure.from(closure)
2856
- _v2 = GObject::Value.from(return_value)
2857
- _v3 = n_param_values
2858
- _v4 = GObject::Value.from(param_values)
2859
- _v5 = invocation_hint
2860
- _v6 = marshal_data
2861
- GObject::Lib.g_cclosure_marshal_VOID__STRING(_v1, _v2, _v3, _v4, _v5, _v6)
2862
- end
2863
- def self.cclosure_marshal_VOID__UCHAR(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2864
- _v1 = GObject::Closure.from(closure)
2865
- _v2 = GObject::Value.from(return_value)
2866
- _v3 = n_param_values
2867
- _v4 = GObject::Value.from(param_values)
2868
- _v5 = invocation_hint
2869
- _v6 = marshal_data
2870
- GObject::Lib.g_cclosure_marshal_VOID__UCHAR(_v1, _v2, _v3, _v4, _v5, _v6)
2871
- end
2872
- def self.cclosure_marshal_VOID__UINT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2873
- _v1 = GObject::Closure.from(closure)
2874
- _v2 = GObject::Value.from(return_value)
2875
- _v3 = n_param_values
2876
- _v4 = GObject::Value.from(param_values)
2877
- _v5 = invocation_hint
2878
- _v6 = marshal_data
2879
- GObject::Lib.g_cclosure_marshal_VOID__UINT(_v1, _v2, _v3, _v4, _v5, _v6)
2880
- end
2881
- def self.cclosure_marshal_VOID__UINT_POINTER(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2882
- _v1 = GObject::Closure.from(closure)
2883
- _v2 = GObject::Value.from(return_value)
2884
- _v3 = n_param_values
2885
- _v4 = GObject::Value.from(param_values)
2886
- _v5 = invocation_hint
2887
- _v6 = marshal_data
2888
- GObject::Lib.g_cclosure_marshal_VOID__UINT_POINTER(_v1, _v2, _v3, _v4, _v5, _v6)
2889
- end
2890
- def self.cclosure_marshal_VOID__ULONG(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2891
- _v1 = GObject::Closure.from(closure)
2892
- _v2 = GObject::Value.from(return_value)
2893
- _v3 = n_param_values
2894
- _v4 = GObject::Value.from(param_values)
2895
- _v5 = invocation_hint
2896
- _v6 = marshal_data
2897
- GObject::Lib.g_cclosure_marshal_VOID__ULONG(_v1, _v2, _v3, _v4, _v5, _v6)
2898
- end
2899
- def self.cclosure_marshal_VOID__VARIANT(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2900
- _v1 = GObject::Closure.from(closure)
2901
- _v2 = GObject::Value.from(return_value)
2902
- _v3 = n_param_values
2903
- _v4 = GObject::Value.from(param_values)
2904
- _v5 = invocation_hint
2905
- _v6 = marshal_data
2906
- GObject::Lib.g_cclosure_marshal_VOID__VARIANT(_v1, _v2, _v3, _v4, _v5, _v6)
2907
- end
2908
- def self.cclosure_marshal_VOID__VOID(closure, return_value, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2909
- _v1 = GObject::Closure.from(closure)
2910
- _v2 = GObject::Value.from(return_value)
2911
- _v3 = n_param_values
2912
- _v4 = GObject::Value.from(param_values)
2913
- _v5 = invocation_hint
2914
- _v6 = marshal_data
2915
- GObject::Lib.g_cclosure_marshal_VOID__VOID(_v1, _v2, _v3, _v4, _v5, _v6)
2916
- end
2917
- def self.cclosure_marshal_generic(closure, return_gvalue, n_param_values, param_values, invocation_hint = nil, marshal_data = nil)
2918
- _v1 = GObject::Closure.from(closure)
2919
- _v2 = GObject::Value.from(return_gvalue)
2920
- _v3 = n_param_values
2921
- _v4 = GObject::Value.from(param_values)
2922
- _v5 = invocation_hint
2923
- _v6 = marshal_data
2924
- GObject::Lib.g_cclosure_marshal_generic(_v1, _v2, _v3, _v4, _v5, _v6)
2925
- end
2926
- def self.enum_complete_type_info(g_enum_type, const_values)
2927
- _v1 = g_enum_type
2928
- _v2 = FFI::MemoryPointer.new(GObject::TypeInfo)
2929
- _v3 = GObject::EnumValue.from(const_values)
2930
- GObject::Lib.g_enum_complete_type_info(_v1, _v2, _v3)
2931
- _v4 = GObject::TypeInfo.wrap_own(GObject::TypeInfo.get_value_from_pointer(_v2, 0))
2932
- return _v4
2933
- end
2934
- def self.enum_get_value(enum_class, value)
2935
- _v1 = GObject::EnumClass.from(enum_class)
2936
- _v2 = value
2937
- _v3 = GObject::Lib.g_enum_get_value(_v1, _v2)
2938
- _v4 = GObject::EnumValue.wrap_copy(_v3)
2939
- return _v4
2940
- end
2941
- def self.enum_get_value_by_name(enum_class, name)
2942
- _v1 = GObject::EnumClass.from(enum_class)
2943
- _v2 = GirFFI::InPointer.from_utf8(name)
2944
- _v3 = GObject::Lib.g_enum_get_value_by_name(_v1, _v2)
2945
- _v4 = GObject::EnumValue.wrap_copy(_v3)
2946
- return _v4
2947
- end
2948
- def self.enum_get_value_by_nick(enum_class, nick)
2949
- _v1 = GObject::EnumClass.from(enum_class)
2950
- _v2 = GirFFI::InPointer.from_utf8(nick)
2951
- _v3 = GObject::Lib.g_enum_get_value_by_nick(_v1, _v2)
2952
- _v4 = GObject::EnumValue.wrap_copy(_v3)
2953
- return _v4
2954
- end
2955
- def self.enum_register_static(name, const_static_values)
2956
- _v1 = GirFFI::InPointer.from_utf8(name)
2957
- _v2 = GObject::EnumValue.from(const_static_values)
2958
- _v3 = GObject::Lib.g_enum_register_static(_v1, _v2)
2959
- return _v3
2960
- end
2961
- def self.enum_to_string(g_enum_type, value)
2962
- _v1 = g_enum_type
2963
- _v2 = value
2964
- _v3 = GObject::Lib.g_enum_to_string(_v1, _v2)
2965
- _v4 = GirFFI::AllocationHelper.free_after(_v3, &:to_utf8)
2966
- return _v4
2967
- end
2968
- def self.flags_complete_type_info(g_flags_type, const_values)
2969
- _v1 = g_flags_type
2970
- _v2 = FFI::MemoryPointer.new(GObject::TypeInfo)
2971
- _v3 = GObject::FlagsValue.from(const_values)
2972
- GObject::Lib.g_flags_complete_type_info(_v1, _v2, _v3)
2973
- _v4 = GObject::TypeInfo.wrap_own(GObject::TypeInfo.get_value_from_pointer(_v2, 0))
2974
- return _v4
2975
- end
2976
- def self.flags_get_first_value(flags_class, value)
2977
- _v1 = GObject::FlagsClass.from(flags_class)
2978
- _v2 = value
2979
- _v3 = GObject::Lib.g_flags_get_first_value(_v1, _v2)
2980
- _v4 = GObject::FlagsValue.wrap_copy(_v3)
2981
- return _v4
2982
- end
2983
- def self.flags_get_value_by_name(flags_class, name)
2984
- _v1 = GObject::FlagsClass.from(flags_class)
2985
- _v2 = GirFFI::InPointer.from_utf8(name)
2986
- _v3 = GObject::Lib.g_flags_get_value_by_name(_v1, _v2)
2987
- _v4 = GObject::FlagsValue.wrap_copy(_v3)
2988
- return _v4
2989
- end
2990
- def self.flags_get_value_by_nick(flags_class, nick)
2991
- _v1 = GObject::FlagsClass.from(flags_class)
2992
- _v2 = GirFFI::InPointer.from_utf8(nick)
2993
- _v3 = GObject::Lib.g_flags_get_value_by_nick(_v1, _v2)
2994
- _v4 = GObject::FlagsValue.wrap_copy(_v3)
2995
- return _v4
2996
- end
2997
- def self.flags_register_static(name, const_static_values)
2998
- _v1 = GirFFI::InPointer.from_utf8(name)
2999
- _v2 = GObject::FlagsValue.from(const_static_values)
3000
- _v3 = GObject::Lib.g_flags_register_static(_v1, _v2)
3001
- return _v3
3002
- end
3003
- def self.flags_to_string(flags_type, value)
3004
- _v1 = flags_type
3005
- _v2 = value
3006
- _v3 = GObject::Lib.g_flags_to_string(_v1, _v2)
3007
- _v4 = GirFFI::AllocationHelper.free_after(_v3, &:to_utf8)
3008
- return _v4
3009
- end
3010
- def self.gtype_get_type
3011
- _v1 = GObject::Lib.g_gtype_get_type
3012
- return _v1
3013
- end
3014
- def self.param_spec_boolean(name, nick, blurb, default_value, flags)
3015
- _v1 = GirFFI::InPointer.from_utf8(name)
3016
- _v2 = GirFFI::InPointer.from_utf8(nick)
3017
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3018
- _v4 = default_value
3019
- _v5 = flags
3020
- _v6 = GObject::Lib.g_param_spec_boolean(_v1, _v2, _v3, _v4, _v5)
3021
- _v7 = GObject::ParamSpec.wrap(_v6)
3022
- return _v7
3023
- end
3024
- def self.param_spec_boxed(name, nick, blurb, boxed_type, flags)
3025
- _v1 = GirFFI::InPointer.from_utf8(name)
3026
- _v2 = GirFFI::InPointer.from_utf8(nick)
3027
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3028
- _v4 = boxed_type
3029
- _v5 = flags
3030
- _v6 = GObject::Lib.g_param_spec_boxed(_v1, _v2, _v3, _v4, _v5)
3031
- _v7 = GObject::ParamSpec.wrap(_v6)
3032
- return _v7
3033
- end
3034
- def self.param_spec_char(name, nick, blurb, minimum, maximum, default_value, flags)
3035
- _v1 = GirFFI::InPointer.from_utf8(name)
3036
- _v2 = GirFFI::InPointer.from_utf8(nick)
3037
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3038
- _v4 = minimum
3039
- _v5 = maximum
3040
- _v6 = default_value
3041
- _v7 = flags
3042
- _v8 = GObject::Lib.g_param_spec_char(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3043
- _v9 = GObject::ParamSpec.wrap(_v8)
3044
- return _v9
3045
- end
3046
- def self.param_spec_double(name, nick, blurb, minimum, maximum, default_value, flags)
3047
- _v1 = GirFFI::InPointer.from_utf8(name)
3048
- _v2 = GirFFI::InPointer.from_utf8(nick)
3049
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3050
- _v4 = minimum
3051
- _v5 = maximum
3052
- _v6 = default_value
3053
- _v7 = flags
3054
- _v8 = GObject::Lib.g_param_spec_double(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3055
- _v9 = GObject::ParamSpec.wrap(_v8)
3056
- return _v9
3057
- end
3058
- def self.param_spec_enum(name, nick, blurb, enum_type, default_value, flags)
3059
- _v1 = GirFFI::InPointer.from_utf8(name)
3060
- _v2 = GirFFI::InPointer.from_utf8(nick)
3061
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3062
- _v4 = enum_type
3063
- _v5 = default_value
3064
- _v6 = flags
3065
- _v7 = GObject::Lib.g_param_spec_enum(_v1, _v2, _v3, _v4, _v5, _v6)
3066
- _v8 = GObject::ParamSpec.wrap(_v7)
3067
- return _v8
3068
- end
3069
- def self.param_spec_flags(name, nick, blurb, flags_type, default_value, flags)
3070
- _v1 = GirFFI::InPointer.from_utf8(name)
3071
- _v2 = GirFFI::InPointer.from_utf8(nick)
3072
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3073
- _v4 = flags_type
3074
- _v5 = default_value
3075
- _v6 = flags
3076
- _v7 = GObject::Lib.g_param_spec_flags(_v1, _v2, _v3, _v4, _v5, _v6)
3077
- _v8 = GObject::ParamSpec.wrap(_v7)
3078
- return _v8
3079
- end
3080
- def self.param_spec_float(name, nick, blurb, minimum, maximum, default_value, flags)
3081
- _v1 = GirFFI::InPointer.from_utf8(name)
3082
- _v2 = GirFFI::InPointer.from_utf8(nick)
3083
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3084
- _v4 = minimum
3085
- _v5 = maximum
3086
- _v6 = default_value
3087
- _v7 = flags
3088
- _v8 = GObject::Lib.g_param_spec_float(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3089
- _v9 = GObject::ParamSpec.wrap(_v8)
3090
- return _v9
3091
- end
3092
- def self.param_spec_gtype(name, nick, blurb, is_a_type, flags)
3093
- _v1 = GirFFI::InPointer.from_utf8(name)
3094
- _v2 = GirFFI::InPointer.from_utf8(nick)
3095
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3096
- _v4 = is_a_type
3097
- _v5 = flags
3098
- _v6 = GObject::Lib.g_param_spec_gtype(_v1, _v2, _v3, _v4, _v5)
3099
- _v7 = GObject::ParamSpec.wrap(_v6)
3100
- return _v7
3101
- end
3102
- def self.param_spec_int(name, nick, blurb, minimum, maximum, default_value, flags)
3103
- _v1 = GirFFI::InPointer.from_utf8(name)
3104
- _v2 = GirFFI::InPointer.from_utf8(nick)
3105
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3106
- _v4 = minimum
3107
- _v5 = maximum
3108
- _v6 = default_value
3109
- _v7 = flags
3110
- _v8 = GObject::Lib.g_param_spec_int(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3111
- _v9 = GObject::ParamSpec.wrap(_v8)
3112
- return _v9
3113
- end
3114
- def self.param_spec_int64(name, nick, blurb, minimum, maximum, default_value, flags)
3115
- _v1 = GirFFI::InPointer.from_utf8(name)
3116
- _v2 = GirFFI::InPointer.from_utf8(nick)
3117
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3118
- _v4 = minimum
3119
- _v5 = maximum
3120
- _v6 = default_value
3121
- _v7 = flags
3122
- _v8 = GObject::Lib.g_param_spec_int64(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3123
- _v9 = GObject::ParamSpec.wrap(_v8)
3124
- return _v9
3125
- end
3126
- def self.param_spec_long(name, nick, blurb, minimum, maximum, default_value, flags)
3127
- _v1 = GirFFI::InPointer.from_utf8(name)
3128
- _v2 = GirFFI::InPointer.from_utf8(nick)
3129
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3130
- _v4 = minimum
3131
- _v5 = maximum
3132
- _v6 = default_value
3133
- _v7 = flags
3134
- _v8 = GObject::Lib.g_param_spec_long(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3135
- _v9 = GObject::ParamSpec.wrap(_v8)
3136
- return _v9
3137
- end
3138
- def self.param_spec_object(name, nick, blurb, object_type, flags)
3139
- _v1 = GirFFI::InPointer.from_utf8(name)
3140
- _v2 = GirFFI::InPointer.from_utf8(nick)
3141
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3142
- _v4 = object_type
3143
- _v5 = flags
3144
- _v6 = GObject::Lib.g_param_spec_object(_v1, _v2, _v3, _v4, _v5)
3145
- _v7 = GObject::ParamSpec.wrap(_v6)
3146
- return _v7
3147
- end
3148
- def self.param_spec_param(name, nick, blurb, param_type, flags)
3149
- _v1 = GirFFI::InPointer.from_utf8(name)
3150
- _v2 = GirFFI::InPointer.from_utf8(nick)
3151
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3152
- _v4 = param_type
3153
- _v5 = flags
3154
- _v6 = GObject::Lib.g_param_spec_param(_v1, _v2, _v3, _v4, _v5)
3155
- _v7 = GObject::ParamSpec.wrap(_v6)
3156
- return _v7
3157
- end
3158
- def self.param_spec_pointer(name, nick, blurb, flags)
3159
- _v1 = GirFFI::InPointer.from_utf8(name)
3160
- _v2 = GirFFI::InPointer.from_utf8(nick)
3161
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3162
- _v4 = flags
3163
- _v5 = GObject::Lib.g_param_spec_pointer(_v1, _v2, _v3, _v4)
3164
- _v6 = GObject::ParamSpec.wrap(_v5)
3165
- return _v6
3166
- end
3167
- def self.param_spec_pool_new(type_prefixing)
3168
- _v1 = type_prefixing
3169
- _v2 = GObject::Lib.g_param_spec_pool_new(_v1)
3170
- _v3 = GObject::ParamSpecPool.wrap_copy(_v2)
3171
- return _v3
3172
- end
3173
- def self.param_spec_string(name, nick, blurb, default_value, flags)
3174
- _v1 = GirFFI::InPointer.from_utf8(name)
3175
- _v2 = GirFFI::InPointer.from_utf8(nick)
3176
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3177
- _v4 = GirFFI::InPointer.from_utf8(default_value)
3178
- _v5 = flags
3179
- _v6 = GObject::Lib.g_param_spec_string(_v1, _v2, _v3, _v4, _v5)
3180
- _v7 = GObject::ParamSpec.wrap(_v6)
3181
- return _v7
3182
- end
3183
- def self.param_spec_uchar(name, nick, blurb, minimum, maximum, default_value, flags)
3184
- _v1 = GirFFI::InPointer.from_utf8(name)
3185
- _v2 = GirFFI::InPointer.from_utf8(nick)
3186
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3187
- _v4 = minimum
3188
- _v5 = maximum
3189
- _v6 = default_value
3190
- _v7 = flags
3191
- _v8 = GObject::Lib.g_param_spec_uchar(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3192
- _v9 = GObject::ParamSpec.wrap(_v8)
3193
- return _v9
3194
- end
3195
- def self.param_spec_uint(name, nick, blurb, minimum, maximum, default_value, flags)
3196
- _v1 = GirFFI::InPointer.from_utf8(name)
3197
- _v2 = GirFFI::InPointer.from_utf8(nick)
3198
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3199
- _v4 = minimum
3200
- _v5 = maximum
3201
- _v6 = default_value
3202
- _v7 = flags
3203
- _v8 = GObject::Lib.g_param_spec_uint(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3204
- _v9 = GObject::ParamSpec.wrap(_v8)
3205
- return _v9
3206
- end
3207
- def self.param_spec_uint64(name, nick, blurb, minimum, maximum, default_value, flags)
3208
- _v1 = GirFFI::InPointer.from_utf8(name)
3209
- _v2 = GirFFI::InPointer.from_utf8(nick)
3210
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3211
- _v4 = minimum
3212
- _v5 = maximum
3213
- _v6 = default_value
3214
- _v7 = flags
3215
- _v8 = GObject::Lib.g_param_spec_uint64(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3216
- _v9 = GObject::ParamSpec.wrap(_v8)
3217
- return _v9
3218
- end
3219
- def self.param_spec_ulong(name, nick, blurb, minimum, maximum, default_value, flags)
3220
- _v1 = GirFFI::InPointer.from_utf8(name)
3221
- _v2 = GirFFI::InPointer.from_utf8(nick)
3222
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3223
- _v4 = minimum
3224
- _v5 = maximum
3225
- _v6 = default_value
3226
- _v7 = flags
3227
- _v8 = GObject::Lib.g_param_spec_ulong(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3228
- _v9 = GObject::ParamSpec.wrap(_v8)
3229
- return _v9
3230
- end
3231
- def self.param_spec_unichar(name, nick, blurb, default_value, flags)
3232
- _v1 = GirFFI::InPointer.from_utf8(name)
3233
- _v2 = GirFFI::InPointer.from_utf8(nick)
3234
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3235
- _v4 = default_value
3236
- _v5 = flags
3237
- _v6 = GObject::Lib.g_param_spec_unichar(_v1, _v2, _v3, _v4, _v5)
3238
- _v7 = GObject::ParamSpec.wrap(_v6)
3239
- return _v7
3240
- end
3241
- def self.param_spec_variant(name, nick, blurb, type, default_value, flags)
3242
- _v1 = GirFFI::InPointer.from_utf8(name)
3243
- _v2 = GirFFI::InPointer.from_utf8(nick)
3244
- _v3 = GirFFI::InPointer.from_utf8(blurb)
3245
- _v4 = GLib::VariantType.from(type)
3246
- _v5 = GLib::Variant.copy_from(default_value)
3247
- _v6 = flags
3248
- _v7 = GObject::Lib.g_param_spec_variant(_v1, _v2, _v3, _v4, _v5, _v6)
3249
- _v8 = GObject::ParamSpec.wrap(_v7)
3250
- return _v8
3251
- end
3252
- def self.param_type_register_static(name, pspec_info)
3253
- _v1 = GirFFI::InPointer.from_utf8(name)
3254
- _v2 = GObject::ParamSpecTypeInfo.from(pspec_info)
3255
- _v3 = GObject::Lib.g_param_type_register_static(_v1, _v2)
3256
- return _v3
3257
- end
3258
- def self.param_value_convert(pspec, src_value, dest_value, strict_validation)
3259
- _v1 = GObject::ParamSpec.from(pspec)
3260
- _v2 = GObject::Value.from(src_value)
3261
- _v3 = GObject::Value.from(dest_value)
3262
- _v4 = strict_validation
3263
- _v5 = GObject::Lib.g_param_value_convert(_v1, _v2, _v3, _v4)
3264
- return _v5
3265
- end
3266
- def self.param_value_defaults(pspec, value)
3267
- _v1 = GObject::ParamSpec.from(pspec)
3268
- _v2 = GObject::Value.from(value)
3269
- _v3 = GObject::Lib.g_param_value_defaults(_v1, _v2)
3270
- return _v3
3271
- end
3272
- def self.param_value_set_default(pspec, value)
3273
- _v1 = GObject::ParamSpec.from(pspec)
3274
- _v2 = GObject::Value.from(value)
3275
- GObject::Lib.g_param_value_set_default(_v1, _v2)
3276
- end
3277
- def self.param_value_validate(pspec, value)
3278
- _v1 = GObject::ParamSpec.from(pspec)
3279
- _v2 = GObject::Value.from(value)
3280
- _v3 = GObject::Lib.g_param_value_validate(_v1, _v2)
3281
- return _v3
3282
- end
3283
- def self.param_values_cmp(pspec, value1, value2)
3284
- _v1 = GObject::ParamSpec.from(pspec)
3285
- _v2 = GObject::Value.from(value1)
3286
- _v3 = GObject::Value.from(value2)
3287
- _v4 = GObject::Lib.g_param_values_cmp(_v1, _v2, _v3)
3288
- return _v4
3289
- end
3290
- def self.pointer_type_register_static(name)
3291
- _v1 = GirFFI::InPointer.from_utf8(name)
3292
- _v2 = GObject::Lib.g_pointer_type_register_static(_v1)
3293
- return _v2
3294
- end
3295
- def self.signal_accumulator_first_wins(ihint, return_accu, handler_return, dummy = nil)
3296
- _v1 = GObject::SignalInvocationHint.from(ihint)
3297
- _v2 = GObject::Value.from(return_accu)
3298
- _v3 = GObject::Value.from(handler_return)
3299
- _v4 = dummy
3300
- _v5 = GObject::Lib.g_signal_accumulator_first_wins(_v1, _v2, _v3, _v4)
3301
- return _v5
3302
- end
3303
- def self.signal_accumulator_true_handled(ihint, return_accu, handler_return, dummy = nil)
3304
- _v1 = GObject::SignalInvocationHint.from(ihint)
3305
- _v2 = GObject::Value.from(return_accu)
3306
- _v3 = GObject::Value.from(handler_return)
3307
- _v4 = dummy
3308
- _v5 = GObject::Lib.g_signal_accumulator_true_handled(_v1, _v2, _v3, _v4)
3309
- return _v5
3310
- end
3311
- def self.signal_add_emission_hook(signal_id, detail, &hook_func)
3312
- _v1 = signal_id
3313
- _v2 = detail
3314
- _v3 = GObject::SignalEmissionHook.from(hook_func)
3315
- _v4 = GirFFI::ArgHelper.store(_v3)
3316
- _v5 = GLib::DestroyNotify.default
3317
- _v6 = GObject::Lib.g_signal_add_emission_hook(_v1, _v2, _v3, _v4, _v5)
3318
- return _v6
3319
- end
3320
- def self.signal_chain_from_overridden(instance_and_params, return_value)
3321
- _v1 = GirFFI::SizedArray.from(GObject::Value, -1, instance_and_params)
3322
- _v2 = GObject::Value.from(return_value)
3323
- GObject::Lib.g_signal_chain_from_overridden(_v1, _v2)
3324
- end
3325
- def self.signal_connect_closure(instance, detailed_signal, closure, after)
3326
- _v1 = GObject::Object.from(instance)
3327
- _v2 = GirFFI::InPointer.from_utf8(detailed_signal)
3328
- _v3 = GObject::Closure.from(closure)
3329
- _v4 = after
3330
- _v5 = GObject::Lib.g_signal_connect_closure(_v1, _v2, _v3, _v4)
3331
- return _v5
3332
- end
3333
- def self.signal_connect_closure_by_id(instance, signal_id, detail, closure, after)
3334
- _v1 = GObject::Object.from(instance)
3335
- _v2 = signal_id
3336
- _v3 = detail
3337
- _v4 = GObject::Closure.from(closure)
3338
- _v5 = after
3339
- _v6 = GObject::Lib.g_signal_connect_closure_by_id(_v1, _v2, _v3, _v4, _v5)
3340
- return _v6
3341
- end
3342
- def self.signal_emitv(instance_and_params, signal_id, detail, return_value)
3343
- _v1 = GirFFI::SizedArray.from(GObject::Value, -1, instance_and_params)
3344
- _v2 = signal_id
3345
- _v3 = detail
3346
- _v4 = FFI::MemoryPointer.new(GObject::Value)
3347
- GObject::Value.copy_value_to_pointer(GObject::Value.copy_from(return_value), _v4)
3348
- GObject::Lib.g_signal_emitv(_v1, _v2, _v3, _v4)
3349
- _v5 = GObject::Value.wrap(GObject::Value.get_value_from_pointer(_v4, 0)).get_value
3350
- return _v5
3351
- end
3352
- def self.signal_get_invocation_hint(instance)
3353
- _v1 = GObject::Object.from(instance)
3354
- _v2 = GObject::Lib.g_signal_get_invocation_hint(_v1)
3355
- _v3 = GObject::SignalInvocationHint.wrap_copy(_v2)
3356
- return _v3
3357
- end
3358
- def self.signal_handler_block(instance, handler_id)
3359
- _v1 = GObject::Object.from(instance)
3360
- _v2 = handler_id
3361
- GObject::Lib.g_signal_handler_block(_v1, _v2)
3362
- end
3363
- def self.signal_handler_disconnect(instance, handler_id)
3364
- _v1 = GObject::Object.from(instance)
3365
- _v2 = handler_id
3366
- GObject::Lib.g_signal_handler_disconnect(_v1, _v2)
3367
- end
3368
- def self.signal_handler_find(instance, mask, signal_id, detail, closure = nil, func = nil, data = nil)
3369
- _v1 = GObject::Object.from(instance)
3370
- _v2 = mask
3371
- _v3 = signal_id
3372
- _v4 = detail
3373
- _v5 = GObject::Closure.from(closure)
3374
- _v6 = func
3375
- _v7 = data
3376
- _v8 = GObject::Lib.g_signal_handler_find(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3377
- return _v8
3378
- end
3379
- def self.signal_handler_is_connected(instance, handler_id)
3380
- _v1 = GObject::Object.from(instance)
3381
- _v2 = handler_id
3382
- _v3 = GObject::Lib.g_signal_handler_is_connected(_v1, _v2)
3383
- return _v3
3384
- end
3385
- def self.signal_handler_unblock(instance, handler_id)
3386
- _v1 = GObject::Object.from(instance)
3387
- _v2 = handler_id
3388
- GObject::Lib.g_signal_handler_unblock(_v1, _v2)
3389
- end
3390
- def self.signal_handlers_block_matched(instance, mask, signal_id, detail, closure = nil, func = nil, data = nil)
3391
- _v1 = GObject::Object.from(instance)
3392
- _v2 = mask
3393
- _v3 = signal_id
3394
- _v4 = detail
3395
- _v5 = GObject::Closure.from(closure)
3396
- _v6 = func
3397
- _v7 = data
3398
- _v8 = GObject::Lib.g_signal_handlers_block_matched(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3399
- return _v8
3400
- end
3401
- def self.signal_handlers_destroy(instance)
3402
- _v1 = GObject::Object.from(instance)
3403
- GObject::Lib.g_signal_handlers_destroy(_v1)
3404
- end
3405
- def self.signal_handlers_disconnect_matched(instance, mask, signal_id, detail, closure = nil, func = nil, data = nil)
3406
- _v1 = GObject::Object.from(instance)
3407
- _v2 = mask
3408
- _v3 = signal_id
3409
- _v4 = detail
3410
- _v5 = GObject::Closure.from(closure)
3411
- _v6 = func
3412
- _v7 = data
3413
- _v8 = GObject::Lib.g_signal_handlers_disconnect_matched(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3414
- return _v8
3415
- end
3416
- def self.signal_handlers_unblock_matched(instance, mask, signal_id, detail, closure = nil, func = nil, data = nil)
3417
- _v1 = GObject::Object.from(instance)
3418
- _v2 = mask
3419
- _v3 = signal_id
3420
- _v4 = detail
3421
- _v5 = GObject::Closure.from(closure)
3422
- _v6 = func
3423
- _v7 = data
3424
- _v8 = GObject::Lib.g_signal_handlers_unblock_matched(_v1, _v2, _v3, _v4, _v5, _v6, _v7)
3425
- return _v8
3426
- end
3427
- def self.signal_has_handler_pending(instance, signal_id, detail, may_be_blocked)
3428
- _v1 = GObject::Object.from(instance)
3429
- _v2 = signal_id
3430
- _v3 = detail
3431
- _v4 = may_be_blocked
3432
- _v5 = GObject::Lib.g_signal_has_handler_pending(_v1, _v2, _v3, _v4)
3433
- return _v5
3434
- end
3435
- def self.signal_list_ids(itype)
3436
- _v1 = itype
3437
- _v2 = FFI::MemoryPointer.new(:uint32)
3438
- _v3 = GObject::Lib.g_signal_list_ids(_v1, _v2)
3439
- _v4 = _v2.get_uint32(0)
3440
- _v5 = GirFFI::SizedArray.wrap(:guint32, _v4, _v3)
3441
- return _v5
3442
- end
3443
- def self.signal_lookup(name, itype)
3444
- _v1 = GirFFI::InPointer.from_utf8(name)
3445
- _v2 = itype
3446
- _v3 = GObject::Lib.g_signal_lookup(_v1, _v2)
3447
- return _v3
3448
- end
3449
- def self.signal_name(signal_id)
3450
- _v1 = signal_id
3451
- _v2 = GObject::Lib.g_signal_name(_v1)
3452
- _v3 = _v2.to_utf8
3453
- return _v3
3454
- end
3455
- def self.signal_override_class_closure(signal_id, instance_type, class_closure)
3456
- _v1 = signal_id
3457
- _v2 = instance_type
3458
- _v3 = GObject::Closure.from(class_closure)
3459
- GObject::Lib.g_signal_override_class_closure(_v1, _v2, _v3)
3460
- end
3461
- def self.signal_parse_name(detailed_signal, itype, force_detail_quark)
3462
- _v1 = GirFFI::InPointer.from_utf8(detailed_signal)
3463
- _v2 = itype
3464
- _v3 = FFI::MemoryPointer.new(:uint32)
3465
- _v4 = FFI::MemoryPointer.new(:uint32)
3466
- _v5 = force_detail_quark
3467
- _v6 = GObject::Lib.g_signal_parse_name(_v1, _v2, _v3, _v4, _v5)
3468
- _v7 = _v3.get_uint32(0)
3469
- _v8 = _v4.get_uint32(0)
3470
- return [_v6, _v7, _v8]
3471
- end
3472
- def self.signal_query(signal_id)
3473
- _v1 = signal_id
3474
- _v2 = GObject::SignalQuery.new
3475
- GObject::Lib.g_signal_query(_v1, _v2)
3476
- return _v2
3477
- end
3478
- def self.signal_remove_emission_hook(signal_id, hook_id)
3479
- _v1 = signal_id
3480
- _v2 = hook_id
3481
- GObject::Lib.g_signal_remove_emission_hook(_v1, _v2)
3482
- end
3483
- def self.signal_set_va_marshaller(signal_id, instance_type, va_marshaller)
3484
- _v1 = signal_id
3485
- _v2 = instance_type
3486
- _v3 = va_marshaller
3487
- GObject::Lib.g_signal_set_va_marshaller(_v1, _v2, _v3)
3488
- end
3489
- def self.signal_stop_emission(instance, signal_id, detail)
3490
- _v1 = GObject::Object.from(instance)
3491
- _v2 = signal_id
3492
- _v3 = detail
3493
- GObject::Lib.g_signal_stop_emission(_v1, _v2, _v3)
3494
- end
3495
- def self.signal_stop_emission_by_name(instance, detailed_signal)
3496
- _v1 = GObject::Object.from(instance)
3497
- _v2 = GirFFI::InPointer.from_utf8(detailed_signal)
3498
- GObject::Lib.g_signal_stop_emission_by_name(_v1, _v2)
3499
- end
3500
- def self.signal_type_cclosure_new(itype, struct_offset)
3501
- _v1 = itype
3502
- _v2 = struct_offset
3503
- _v3 = GObject::Lib.g_signal_type_cclosure_new(_v1, _v2)
3504
- _v4 = GObject::Closure.wrap_copy(_v3)
3505
- return _v4
3506
- end
3507
- def self.source_set_closure(source, closure)
3508
- _v1 = GLib::Source.from(source)
3509
- _v2 = GObject::Closure.from(closure)
3510
- GObject::Lib.g_source_set_closure(_v1, _v2)
3511
- end
3512
- def self.source_set_dummy_callback(source)
3513
- _v1 = GLib::Source.from(source)
3514
- GObject::Lib.g_source_set_dummy_callback(_v1)
3515
- end
3516
- def self.strdup_value_contents(value)
3517
- _v1 = GObject::Value.from(value)
3518
- _v2 = GObject::Lib.g_strdup_value_contents(_v1)
3519
- _v3 = GirFFI::AllocationHelper.free_after(_v2, &:to_utf8)
3520
- return _v3
3521
- end
3522
- def self.type_add_class_private(class_type, private_size)
3523
- _v1 = class_type
3524
- _v2 = private_size
3525
- GObject::Lib.g_type_add_class_private(_v1, _v2)
3526
- end
3527
- def self.type_add_instance_private(class_type, private_size)
3528
- _v1 = class_type
3529
- _v2 = private_size
3530
- _v3 = GObject::Lib.g_type_add_instance_private(_v1, _v2)
3531
- return _v3
3532
- end
3533
- def self.type_add_interface_dynamic(instance_type, interface_type, plugin)
3534
- _v1 = instance_type
3535
- _v2 = interface_type
3536
- _v3 = plugin
3537
- GObject::Lib.g_type_add_interface_dynamic(_v1, _v2, _v3)
3538
- end
3539
- def self.type_add_interface_static(instance_type, interface_type, info)
3540
- _v1 = instance_type
3541
- _v2 = interface_type
3542
- _v3 = GObject::InterfaceInfo.from(info)
3543
- GObject::Lib.g_type_add_interface_static(_v1, _v2, _v3)
3544
- end
3545
- def self.type_check_class_is_a(g_class, is_a_type)
3546
- _v1 = GObject::TypeClass.from(g_class)
3547
- _v2 = is_a_type
3548
- _v3 = GObject::Lib.g_type_check_class_is_a(_v1, _v2)
3549
- return _v3
3550
- end
3551
- def self.type_check_instance(instance)
3552
- _v1 = GObject::TypeInstance.from(instance)
3553
- _v2 = GObject::Lib.g_type_check_instance(_v1)
3554
- return _v2
3555
- end
3556
- def self.type_check_instance_is_a(instance, iface_type)
3557
- _v1 = GObject::TypeInstance.from(instance)
3558
- _v2 = iface_type
3559
- _v3 = GObject::Lib.g_type_check_instance_is_a(_v1, _v2)
3560
- return _v3
3561
- end
3562
- def self.type_check_instance_is_fundamentally_a(instance, fundamental_type)
3563
- _v1 = GObject::TypeInstance.from(instance)
3564
- _v2 = fundamental_type
3565
- _v3 = GObject::Lib.g_type_check_instance_is_fundamentally_a(_v1, _v2)
3566
- return _v3
3567
- end
3568
- def self.type_check_is_value_type(type)
3569
- _v1 = type
3570
- _v2 = GObject::Lib.g_type_check_is_value_type(_v1)
3571
- return _v2
3572
- end
3573
- def self.type_check_value(value)
3574
- _v1 = GObject::Value.from(value)
3575
- _v2 = GObject::Lib.g_type_check_value(_v1)
3576
- return _v2
3577
- end
3578
- def self.type_check_value_holds(value, type)
3579
- _v1 = GObject::Value.from(value)
3580
- _v2 = type
3581
- _v3 = GObject::Lib.g_type_check_value_holds(_v1, _v2)
3582
- return _v3
3583
- end
3584
- def self.type_children(type)
3585
- _v1 = type
3586
- _v2 = FFI::MemoryPointer.new(:uint32)
3587
- _v3 = GObject::Lib.g_type_children(_v1, _v2)
3588
- _v4 = _v2.get_uint32(0)
3589
- _v5 = GirFFI::SizedArray.wrap(:GType, _v4, _v3)
3590
- return _v5
3591
- end
3592
- def self.type_class_adjust_private_offset(g_class, private_size_or_offset)
3593
- _v1 = g_class
3594
- _v2 = private_size_or_offset
3595
- GObject::Lib.g_type_class_adjust_private_offset(_v1, _v2)
3596
- end
3597
- def self.type_class_peek(type)
3598
- _v1 = type
3599
- _v2 = GObject::Lib.g_type_class_peek(_v1)
3600
- _v3 = GObject::TypeClass.wrap_copy(_v2)
3601
- return _v3
3602
- end
3603
- def self.type_class_peek_static(type)
3604
- _v1 = type
3605
- _v2 = GObject::Lib.g_type_class_peek_static(_v1)
3606
- _v3 = GObject::TypeClass.wrap_copy(_v2)
3607
- return _v3
3608
- end
3609
- def self.type_class_ref(type)
3610
- _v1 = type
3611
- _v2 = GObject::Lib.g_type_class_ref(_v1)
3612
- _v3 = GObject::TypeClass.wrap_copy(_v2)
3613
- return _v3
3614
- end
3615
- def self.type_default_interface_peek(g_type)
3616
- _v1 = g_type
3617
- _v2 = GObject::Lib.g_type_default_interface_peek(_v1)
3618
- _v3 = GObject::TypeInterface.wrap_copy(_v2)
3619
- return _v3
3620
- end
3621
- def self.type_default_interface_ref(g_type)
3622
- _v1 = g_type
3623
- _v2 = GObject::Lib.g_type_default_interface_ref(_v1)
3624
- _v3 = GObject::TypeInterface.wrap_copy(_v2)
3625
- return _v3
3626
- end
3627
- def self.type_default_interface_unref(g_iface)
3628
- _v1 = GObject::TypeInterface.from(g_iface)
3629
- GObject::Lib.g_type_default_interface_unref(_v1)
3630
- end
3631
- def self.type_depth(type)
3632
- _v1 = type
3633
- _v2 = GObject::Lib.g_type_depth(_v1)
3634
- return _v2
3635
- end
3636
- def self.type_ensure(type)
3637
- _v1 = type
3638
- GObject::Lib.g_type_ensure(_v1)
3639
- end
3640
- def self.type_free_instance(instance)
3641
- _v1 = GObject::TypeInstance.from(instance)
3642
- GObject::Lib.g_type_free_instance(_v1)
3643
- end
3644
- def self.type_from_name(name)
3645
- _v1 = GirFFI::InPointer.from_utf8(name)
3646
- _v2 = GObject::Lib.g_type_from_name(_v1)
3647
- return _v2
3648
- end
3649
- def self.type_fundamental(type_id)
3650
- _v1 = type_id
3651
- _v2 = GObject::Lib.g_type_fundamental(_v1)
3652
- return _v2
3653
- end
3654
- def self.type_fundamental_next
3655
- _v1 = GObject::Lib.g_type_fundamental_next
3656
- return _v1
3657
- end
3658
- def self.type_get_instance_count(type)
3659
- _v1 = type
3660
- _v2 = GObject::Lib.g_type_get_instance_count(_v1)
3661
- return _v2
3662
- end
3663
- def self.type_get_plugin(type)
3664
- _v1 = type
3665
- _v2 = GObject::Lib.g_type_get_plugin(_v1)
3666
- _v3 = GObject::TypePlugin.wrap(_v2)
3667
- return _v3
3668
- end
3669
- def self.type_get_qdata(type, quark)
3670
- _v1 = type
3671
- _v2 = quark
3672
- _v3 = GObject::Lib.g_type_get_qdata(_v1, _v2)
3673
- return _v3
3674
- end
3675
- def self.type_get_type_registration_serial
3676
- _v1 = GObject::Lib.g_type_get_type_registration_serial
3677
- return _v1
3678
- end
3679
- def self.type_init
3680
- GObject::Lib.g_type_init
3681
- end
3682
- def self.type_init_with_debug_flags(debug_flags)
3683
- _v1 = debug_flags
3684
- GObject::Lib.g_type_init_with_debug_flags(_v1)
3685
- end
3686
- def self.type_interface_add_prerequisite(interface_type, prerequisite_type)
3687
- _v1 = interface_type
3688
- _v2 = prerequisite_type
3689
- GObject::Lib.g_type_interface_add_prerequisite(_v1, _v2)
3690
- end
3691
- def self.type_interface_get_plugin(instance_type, interface_type)
3692
- _v1 = instance_type
3693
- _v2 = interface_type
3694
- _v3 = GObject::Lib.g_type_interface_get_plugin(_v1, _v2)
3695
- _v4 = GObject::TypePlugin.wrap(_v3)
3696
- return _v4
3697
- end
3698
- def self.type_interface_peek(instance_class, iface_type)
3699
- _v1 = GObject::TypeClass.from(instance_class)
3700
- _v2 = iface_type
3701
- _v3 = GObject::Lib.g_type_interface_peek(_v1, _v2)
3702
- _v4 = GObject::TypeInterface.wrap_copy(_v3)
3703
- return _v4
3704
- end
3705
- def self.type_interface_prerequisites(interface_type)
3706
- _v1 = interface_type
3707
- _v2 = FFI::MemoryPointer.new(:uint32)
3708
- _v3 = GObject::Lib.g_type_interface_prerequisites(_v1, _v2)
3709
- _v4 = _v2.get_uint32(0)
3710
- _v5 = GirFFI::SizedArray.wrap(:GType, _v4, _v3)
3711
- return _v5
3712
- end
3713
- def self.type_interfaces(type)
3714
- _v1 = type
3715
- _v2 = FFI::MemoryPointer.new(:uint32)
3716
- _v3 = GObject::Lib.g_type_interfaces(_v1, _v2)
3717
- _v4 = _v2.get_uint32(0)
3718
- _v5 = GirFFI::SizedArray.wrap(:GType, _v4, _v3)
3719
- return _v5
3720
- end
3721
- def self.type_is_a(type, is_a_type)
3722
- _v1 = type
3723
- _v2 = is_a_type
3724
- _v3 = GObject::Lib.g_type_is_a(_v1, _v2)
3725
- return _v3
3726
- end
3727
- def self.type_name(type)
3728
- _v1 = type
3729
- _v2 = GObject::Lib.g_type_name(_v1)
3730
- _v3 = _v2.to_utf8
3731
- return _v3
3732
- end
3733
- def self.type_name_from_class(g_class)
3734
- _v1 = GObject::TypeClass.from(g_class)
3735
- _v2 = GObject::Lib.g_type_name_from_class(_v1)
3736
- _v3 = _v2.to_utf8
3737
- return _v3
3738
- end
3739
- def self.type_name_from_instance(instance)
3740
- _v1 = GObject::TypeInstance.from(instance)
3741
- _v2 = GObject::Lib.g_type_name_from_instance(_v1)
3742
- _v3 = _v2.to_utf8
3743
- return _v3
3744
- end
3745
- def self.type_next_base(leaf_type, root_type)
3746
- _v1 = leaf_type
3747
- _v2 = root_type
3748
- _v3 = GObject::Lib.g_type_next_base(_v1, _v2)
3749
- return _v3
3750
- end
3751
- def self.type_parent(type)
3752
- _v1 = type
3753
- _v2 = GObject::Lib.g_type_parent(_v1)
3754
- return _v2
3755
- end
3756
- def self.type_qname(type)
3757
- _v1 = type
3758
- _v2 = GObject::Lib.g_type_qname(_v1)
3759
- return _v2
3760
- end
3761
- def self.type_query(type)
3762
- _v1 = type
3763
- _v2 = GObject::TypeQuery.new
3764
- GObject::Lib.g_type_query(_v1, _v2)
3765
- return _v2
3766
- end
3767
- def self.type_register_dynamic(parent_type, type_name, plugin, flags)
3768
- _v1 = parent_type
3769
- _v2 = GirFFI::InPointer.from_utf8(type_name)
3770
- _v3 = plugin
3771
- _v4 = flags
3772
- _v5 = GObject::Lib.g_type_register_dynamic(_v1, _v2, _v3, _v4)
3773
- return _v5
3774
- end
3775
- def self.type_register_fundamental(type_id, type_name, info, finfo, flags)
3776
- _v1 = type_id
3777
- _v2 = GirFFI::InPointer.from_utf8(type_name)
3778
- _v3 = GObject::TypeInfo.from(info)
3779
- _v4 = GObject::TypeFundamentalInfo.from(finfo)
3780
- _v5 = flags
3781
- _v6 = GObject::Lib.g_type_register_fundamental(_v1, _v2, _v3, _v4, _v5)
3782
- return _v6
3783
- end
3784
- def self.type_register_static(parent_type, type_name, info, flags)
3785
- _v1 = parent_type
3786
- _v2 = GirFFI::InPointer.from_utf8(type_name)
3787
- _v3 = GObject::TypeInfo.from(info)
3788
- _v4 = flags
3789
- _v5 = GObject::Lib.g_type_register_static(_v1, _v2, _v3, _v4)
3790
- return _v5
3791
- end
3792
- def self.type_set_qdata(type, quark, data = nil)
3793
- _v1 = type
3794
- _v2 = quark
3795
- _v3 = data
3796
- GObject::Lib.g_type_set_qdata(_v1, _v2, _v3)
3797
- end
3798
- def self.type_test_flags(type, flags)
3799
- _v1 = type
3800
- _v2 = flags
3801
- _v3 = GObject::Lib.g_type_test_flags(_v1, _v2)
3802
- return _v3
3803
- end
3804
- def self.value_type_compatible(src_type, dest_type)
3805
- _v1 = src_type
3806
- _v2 = dest_type
3807
- _v3 = GObject::Lib.g_value_type_compatible(_v1, _v2)
3808
- return _v3
3809
- end
3810
- def self.value_type_transformable(src_type, dest_type)
3811
- _v1 = src_type
3812
- _v2 = dest_type
3813
- _v3 = GObject::Lib.g_value_type_transformable(_v1, _v2)
3814
- return _v3
3815
- end
3816
- end