gir_ffi-pretty_printer 0.0.7 → 0.0.8

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