class GObject::TypeValueTable
- GObject::TypeValueTable
- Reference
- Object
Overview
-
'i'
: Integers, passed ascollect_values[].v_int
'l'
: Longs, passed ascollect_values[].v_long
'd'
: Doubles, passed ascollect_values[].v_double
'p'
: Pointers, passed ascollect_values[].v_pointer
It should be noted that for variable argument list construction, ANSI C promotes every type smaller than an integer to an int, and floats to doubles. So for collection of short int or char,
'i'
needs to be used, and for collection of floats'd'
. The #GTypeValueTable provides the functions required by the #GValue implementation, to serve as a container for values of a type.
Defined in:
lib/gi-crystal/src/auto/g_object-2.0/type_value_table.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGObject::TypeValueTable, transfer : GICrystal::Transfer)
- .new(value_init : GObject::TypeValueInitFunc | Nil = nil, value_free : GObject::TypeValueFreeFunc | Nil = nil, value_copy : GObject::TypeValueCopyFunc | Nil = nil, value_peek_pointer : GObject::TypeValuePeekPointerFunc | Nil = nil, collect_value : GObject::TypeValueCollectFunc | Nil = nil, lcopy_value : GObject::TypeValueLCopyFunc | Nil = nil)
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #collect_format : String | Nil
- #collect_format!
- #collect_value : GObject::TypeValueCollectFunc
- #collect_value=(value : GObject::TypeValueCollectFunc)
- #lcopy_format : String | Nil
- #lcopy_format!
- #lcopy_value : GObject::TypeValueLCopyFunc
- #lcopy_value=(value : GObject::TypeValueLCopyFunc)
- #to_unsafe
- #value_copy : GObject::TypeValueCopyFunc
- #value_copy=(value : GObject::TypeValueCopyFunc)
- #value_free : GObject::TypeValueFreeFunc
- #value_free=(value : GObject::TypeValueFreeFunc)
- #value_init : GObject::TypeValueInitFunc
- #value_init=(value : GObject::TypeValueInitFunc)
- #value_peek_pointer : GObject::TypeValuePeekPointerFunc
- #value_peek_pointer=(value : GObject::TypeValuePeekPointerFunc)
Constructor Detail
def self.new(value_init : GObject::TypeValueInitFunc | Nil = nil, value_free : GObject::TypeValueFreeFunc | Nil = nil, value_copy : GObject::TypeValueCopyFunc | Nil = nil, value_peek_pointer : GObject::TypeValuePeekPointerFunc | Nil = nil, collect_value : GObject::TypeValueCollectFunc | Nil = nil, lcopy_value : GObject::TypeValueLCopyFunc | Nil = nil)
#
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.