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