class GObject::TypeInfo

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(data : LibGObject::TypeInfo, transfer : GICrystal::Transfer) #

[View source]
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) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def base_finalize : GObject::BaseFinalizeFunc #

[View source]
def base_finalize=(value : GObject::BaseFinalizeFunc) #

[View source]
def base_init : GObject::BaseInitFunc #

[View source]
def base_init=(value : GObject::BaseInitFunc) #

[View source]
def class_data : Pointer(Void) | Nil #

[View source]
def class_data! #

[View source]
def class_finalize : GObject::ClassFinalizeFunc #

[View source]
def class_finalize=(value : GObject::ClassFinalizeFunc) #

[View source]
def class_init : GObject::ClassInitFunc #

[View source]
def class_init=(value : GObject::ClassInitFunc) #

[View source]
def class_size : UInt16 #

[View source]
def class_size=(value : UInt16) #

[View source]
def instance_init : GObject::InstanceInitFunc #

[View source]
def instance_init=(value : GObject::InstanceInitFunc) #

[View source]
def instance_size : UInt16 #

[View source]
def instance_size=(value : UInt16) #

[View source]
def n_preallocs : UInt16 #

[View source]
def n_preallocs=(value : UInt16) #

[View source]
def to_unsafe #

[View source]
def value_table : GObject::TypeValueTable | Nil #

[View source]
def value_table! #

[View source]