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(data : LibGObject::TypeInfo, transfer : GICrystal::Transfer)
- .new(class_size : UInt16 | Nil = nil, base_init : GObject::BaseInitFunc | Nil = nil, base_finalize : GObject::BaseFinalizeFunc | Nil = nil, class_init : GObject::ClassInitFunc | Nil = nil, class_finalize : GObject::ClassFinalizeFunc | Nil = nil, instance_size : UInt16 | Nil = nil, n_preallocs : UInt16 | Nil = nil, instance_init : GObject::InstanceInitFunc | Nil = 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) | Nil
- #class_data!
- #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 | Nil
- #value_table!
Constructor Detail
def self.new(class_size : UInt16 | Nil = nil, base_init : GObject::BaseInitFunc | Nil = nil, base_finalize : GObject::BaseFinalizeFunc | Nil = nil, class_init : GObject::ClassInitFunc | Nil = nil, class_finalize : GObject::ClassFinalizeFunc | Nil = nil, instance_size : UInt16 | Nil = nil, n_preallocs : UInt16 | Nil = nil, instance_init : GObject::InstanceInitFunc | Nil = nil)
#
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.