130
130
public bool value_convert (Value src_value, Value dest_value, bool strict_validation);
131
131
[CCode (cname = "g_param_values_cmp")]
132
132
public int values_cmp (Value value1, Value value2);
133
public weak string get_blurb ();
134
public weak string get_name ();
135
public weak string get_nick ();
133
public unowned string get_blurb ();
134
public unowned string get_name ();
135
public unowned string get_nick ();
136
136
public void* get_qdata (Quark quark);
137
137
public void set_qdata (Quark quark, void* data);
138
138
public void set_qdata_full (Quark quark, void* data, DestroyNotify destroy);
229
229
public class ParamSpecEnum : ParamSpec {
230
230
[CCode (cname = "g_param_spec_enum")]
231
231
public ParamSpecEnum (string name, string nick, string blurb, Type enum_type, int default_value, ParamFlags flags);
232
public weak EnumClass enum_class;
232
public unowned EnumClass enum_class;
233
233
public int default_value;
236
236
public class ParamSpecFlags : ParamSpec {
237
237
[CCode (cname = "g_param_spec_flags")]
238
238
public ParamSpecFlags (string name, string nick, string blurb, Type flags_type, uint default_value, ParamFlags flags);
239
public weak FlagsClass flags_class;
239
public unowned FlagsClass flags_class;
240
240
public uint default_value;
285
285
public delegate void ObjectGetPropertyFunc (Object object, uint property_id, Value value, ParamSpec pspec);
286
286
[CCode (has_target = false)]
287
287
public delegate void ObjectSetPropertyFunc (Object object, uint property_id, Value value, ParamSpec pspec);
288
[CCode (has_target = false)]
289
public delegate void WeakNotify (void *data, Object object);
288
[CCode (instance_pos = 0)]
289
public delegate void WeakNotify (Object object);
291
[CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", marshaller_type_name = "OBJECT", get_value_function = "g_value_get_object", set_value_function = "g_value_set_object", param_spec_function = "g_param_spec_object", cheader_filename = "glib-object.h")]
291
[CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", marshaller_type_name = "OBJECT", get_value_function = "g_value_get_object", set_value_function = "g_value_set_object", take_value_function = "g_value_take_object", param_spec_function = "g_param_spec_object", cheader_filename = "glib-object.h")]
292
292
public class Object {
293
293
public uint ref_count;
295
295
[CCode (has_new_function = false, construct_function = "g_object_new")]
296
296
public Object (...);
298
#if VALA_0_7_6_NEW_METHODS
299
298
public static Object @new (Type type, ...);
301
299
public static Object newv (Type type, [CCode (array_length_pos = 1.9)] Parameter[] parameters);
303
301
[CCode (cname = "G_TYPE_FROM_INSTANCE")]
304
302
public Type get_type ();
305
303
[CCode (cname = "G_OBJECT_GET_CLASS")]
306
304
public unowned ObjectClass get_class ();
307
public weak Object @ref ();
305
public unowned Object @ref ();
308
306
public void unref ();
309
307
public Object ref_sink ();
310
public void weak_ref (WeakNotify notify, void *data);
311
public void weak_unref (WeakNotify notify, void *data);
308
public void weak_ref (WeakNotify notify);
309
public void weak_unref (WeakNotify notify);
312
310
public void add_weak_pointer (void **data);
313
311
public void remove_weak_pointer (void **data);
314
312
public void get (string first_property_name, ...);
315
313
public void set (string first_property_name, ...);
316
314
public void get_property (string property_name, ref Value value);
317
315
public void set_property (string property_name, Value value);
318
public void* get_data (string key);
319
public void set_data (string key, void* data);
316
[CCode (simple_generics = true)]
317
public unowned T get_data<T> (string key);
318
[CCode (cname = "g_object_set_data_full", simple_generics = true)]
319
public void set_data<T> (string key, owned T data);
320
320
public void set_data_full (string key, void* data, DestroyNotify? destroy);
321
public void* steal_data (string key);
322
public void* get_qdata (Quark quark);
323
public void set_qdata (Quark quark, void* data);
321
[CCode (simple_generics = true)]
322
public T steal_data<T> (string key);
323
[CCode (simple_generics = true)]
324
public unowned T get_qdata<T> (Quark quark);
325
[CCode (cname = "g_object_set_qdata_full", simple_generics = true)]
326
public void set_qdata<T> (Quark quark, owned T data);
324
327
public void set_qdata_full (Quark quark, void* data, DestroyNotify? destroy);
325
public void* steal_qdata (Quark quark);
328
[CCode (simple_generics = true)]
329
public T steal_qdata<T> (Quark quark);
326
330
public void freeze_notify ();
327
331
public void thaw_notify ();
328
332
[CCode (cname = "g_object_run_dispose")]
329
333
public virtual void dispose ();
330
public virtual void finalize ();
331
334
public virtual void constructed ();
333
336
public signal void notify (ParamSpec pspec);
334
337
[CCode (cname = "g_object_notify")]
335
338
public void notify_property (string property_name);
337
public weak Object connect (string signal_spec, ...);
340
public unowned Object connect (string signal_spec, ...);
341
[CCode (cname = "g_signal_handler_disconnect")]
342
public void disconnect (ulong handler_id);
339
344
public void add_toggle_ref (ToggleNotify notify);
340
345
public void remove_toggle_ref (ToggleNotify notify);
361
366
[CCode (lower_case_csuffix = "enum")]
362
367
public class EnumClass : TypeClass {
363
public weak EnumValue? get_value (int value);
364
public weak EnumValue? get_value_by_name (string name);
365
public weak EnumValue? get_value_by_nick (string name);
368
public unowned EnumValue? get_value (int value);
369
public unowned EnumValue? get_value_by_name (string name);
370
public unowned EnumValue? get_value_by_nick (string name);
366
371
public int minimum;
367
372
public int maximum;
368
373
public uint n_values;
369
public weak EnumValue[] values;
374
public unowned EnumValue[] values;
373
378
public class EnumValue {
374
379
public int value;
375
public weak string value_name;
376
public weak string value_nick;
380
public unowned string value_name;
381
public unowned string value_nick;
379
384
[CCode (lower_case_csuffix = "flags")]
380
385
public class FlagsClass : TypeClass {
381
public weak FlagsValue? get_first_value (uint value);
382
public weak FlagsValue? get_value_by_name (string name);
383
public weak FlagsValue? get_value_by_nick (string name);
386
public unowned FlagsValue? get_first_value (uint value);
387
public unowned FlagsValue? get_value_by_name (string name);
388
public unowned FlagsValue? get_value_by_nick (string name);
384
389
public uint mask;
385
390
public uint n_values;
386
391
public FlagsValue[] values;
390
395
public class FlagsValue {
391
396
public int value;
392
public weak string value_name;
393
public weak string value_nick;
397
public unowned string value_name;
398
public unowned string value_nick;
396
401
[CCode (has_target = false)]
397
402
public delegate void ValueTransform (Value src_value, out Value dest_value);
399
[CCode (copy_function = "g_value_copy", destroy_function = "g_value_unset", type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", type_signature = "v")]
404
[CCode (copy_function = "g_value_copy", destroy_function = "g_value_unset", type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed", type_signature = "v")]
400
405
public struct Value {
401
406
[CCode (cname = "G_VALUE_HOLDS")]
402
407
public bool holds (Type type);
403
408
[CCode (cname = "G_VALUE_TYPE")]
404
409
public Type type ();
405
410
[CCode (cname = "G_VALUE_TYPE_NAME")]
406
public weak string type_name ();
411
public unowned string type_name ();
408
413
public Value (Type g_type);
409
414
public void copy (ref Value dest_value);
410
public weak Value? reset ();
415
public unowned Value? reset ();
411
416
public void init (Type g_type);
412
417
public void unset ();
413
418
public void set_instance (void* instance);
503
508
public delegate void ClosureNotify (void* data, Closure closure);
506
[CCode (type_id = "G_TYPE_VALUE_ARRAY", copy_function = "g_value_array_copy")]
511
[CCode (type_id = "G_TYPE_VALUE_ARRAY", copy_function = "g_value_array_copy", free_function = "g_value_array_free")]
507
512
public class ValueArray {
508
513
public uint n_values;
509
514
[CCode (array_length_cname = "n_values", array_length_type = "guint")]
510
515
public Value[] values;
511
516
public ValueArray (uint n_prealloced);
512
517
public ValueArray copy ();
513
public weak Value? get_nth (uint index_);
518
public unowned Value? get_nth (uint index_);
514
519
public void append (Value value);
515
520
public void prepend (Value value);
516
521
public void insert (uint index_, Value value);