class GObject::TypeInfo
- GObject::TypeInfo
- Reference
- Object
Overview
This structure is used to provide the type system with the information required to initialize and destruct (finalize) a type's class and its instances.
The initialized structure is passed to the g_type_register_static() function (or is copied into the provided #GTypeInfo structure in the g_type_plugin_complete_type_info()). The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of g_type_register_static().
Defined in:
lib/gi-crystal/src/auto/g_object-2.0/type_info.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(class_size : UInt16? = nil, base_init : GObject::BaseInitFunc? = nil, base_finalize : GObject::BaseFinalizeFunc? = nil, class_init : GObject::ClassInitFunc? = nil, class_finalize : GObject::ClassFinalizeFunc? = nil, class_data : Pointer(Void)? = nil, instance_size : UInt16? = nil, n_preallocs : UInt16? = nil, instance_init : GObject::InstanceInitFunc? = nil, value_table : GObject::TypeValueTable? = nil)
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #base_finalize : GObject::BaseFinalizeFunc
- #base_finalize=(value : GObject::BaseFinalizeFunc)
- #base_init : GObject::BaseInitFunc
- #base_init=(value : GObject::BaseInitFunc)
- #class_data : Pointer(Void)?
- #class_data!
- #class_data=(value : Pointer(Void)?)
- #class_finalize : GObject::ClassFinalizeFunc
- #class_finalize=(value : GObject::ClassFinalizeFunc)
- #class_init : GObject::ClassInitFunc
- #class_init=(value : GObject::ClassInitFunc)
- #class_size : UInt16
- #class_size=(value : UInt16)
- #instance_init : GObject::InstanceInitFunc
- #instance_init=(value : GObject::InstanceInitFunc)
- #instance_size : UInt16
- #instance_size=(value : UInt16)
- #n_preallocs : UInt16
- #n_preallocs=(value : UInt16)
- #to_unsafe
- #value_table : GObject::TypeValueTable?
- #value_table!
- #value_table=(value : GObject::TypeValueTable?)
Constructor Detail
def self.new(class_size : UInt16? = nil, base_init : GObject::BaseInitFunc? = nil, base_finalize : GObject::BaseFinalizeFunc? = nil, class_init : GObject::ClassInitFunc? = nil, class_finalize : GObject::ClassFinalizeFunc? = nil, class_data : Pointer(Void)? = nil, instance_size : UInt16? = nil, n_preallocs : UInt16? = nil, instance_init : GObject::InstanceInitFunc? = nil, value_table : GObject::TypeValueTable? = nil)
#
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.