Package ch.bailu.gtk.gobject
Class TypeInfo
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gobject.TypeInfo
- All Implemented Interfaces:
PointerInterface
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().
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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringLocation of the base finalization function (optional)
SeeTypeInfo.OnBaseFinalizeFunc.onBaseFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)static final StringLocation of the base initialization function (optional)
SeeTypeInfo.OnBaseInitFunc.onBaseInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)static final StringUser-supplied data passed to the class init/finalize functionsstatic final StringLocation of the class finalization function for
classed and instantiatable types.static final StringLocation of the class initialization function for
classed and instantiatable types.static final StringSize of the class structure (required for interface, classed and instantiatable types)static final StringLocation of the instance initialization function (optional, for instantiatable types only)
SeeTypeInfo.OnInstanceInitFunc.onInstanceInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.TypeInstance, ch.bailu.gtk.type.Pointer)static final StringSize of the instance (object) structure (required for instantiatable types only)static final StringPrior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching).static final StringA #GTypeValueTable function table for generic handling of GValues
of this type (usually only useful for fundamental types) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerch.bailu.gtk.gobject.JnaTypeInfo.OnBaseFinalizeFuncLocation of the base finalization function (optional)
SeeTypeInfo.OnBaseFinalizeFunc.onBaseFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)ch.bailu.gtk.gobject.JnaTypeInfo.OnBaseInitFuncLocation of the base initialization function (optional)
SeeTypeInfo.OnBaseInitFunc.onBaseInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)User-supplied data passed to the class init/finalize functionsch.bailu.gtk.gobject.JnaTypeInfo.OnClassFinalizeFuncLocation of the class finalization function for
classed and instantiatable types.ch.bailu.gtk.gobject.JnaTypeInfo.OnClassInitFuncLocation of the class initialization function for
classed and instantiatable types.intSize of the class structure (required for interface, classed and instantiatable types)ch.bailu.gtk.gobject.JnaTypeInfo.OnInstanceInitFuncLocation of the instance initialization function (optional, for instantiatable types only)
SeeTypeInfo.OnInstanceInitFunc.onInstanceInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.TypeInstance, ch.bailu.gtk.type.Pointer)intSize of the instance (object) structure (required for instantiatable types only)intPrior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching).A #GTypeValueTable function table for generic handling of GValues
of this type (usually only useful for fundamental types)voidsetFieldBaseFinalize(TypeInfo.OnBaseFinalizeFunc base_finalize) Location of the base finalization function (optional)
SeeTypeInfo.OnBaseFinalizeFunc.onBaseFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)voidsetFieldBaseInit(TypeInfo.OnBaseInitFunc base_init) Location of the base initialization function (optional)
SeeTypeInfo.OnBaseInitFunc.onBaseInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)voidsetFieldClassData(Pointer class_data) User-supplied data passed to the class init/finalize functionsvoidsetFieldClassFinalize(TypeInfo.OnClassFinalizeFunc class_finalize) Location of the class finalization function for
classed and instantiatable types.voidsetFieldClassInit(TypeInfo.OnClassInitFunc class_init) Location of the class initialization function for
classed and instantiatable types.voidsetFieldClassSize(int class_size) Size of the class structure (required for interface, classed and instantiatable types)voidsetFieldInstanceInit(TypeInfo.OnInstanceInitFunc instance_init) Location of the instance initialization function (optional, for instantiatable types only)
SeeTypeInfo.OnInstanceInitFunc.onInstanceInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.TypeInstance, ch.bailu.gtk.type.Pointer)voidsetFieldInstanceSize(int instance_size) Size of the instance (object) structure (required for instantiatable types only)voidsetFieldNPreallocs(int n_preallocs) Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching).voidsetFieldValueTable(TypeValueTable value_table) A #GTypeValueTable function table for generic handling of GValues
of this type (usually only useful for fundamental types)Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
CLASS_SIZE
Size of the class structure (required for interface, classed and instantiatable types)- See Also:
-
BASE_INIT
Location of the base initialization function (optional)
SeeTypeInfo.OnBaseInitFunc.onBaseInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)- See Also:
-
BASE_FINALIZE
Location of the base finalization function (optional)
SeeTypeInfo.OnBaseFinalizeFunc.onBaseFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)- See Also:
-
CLASS_INIT
Location of the class initialization function for
classed and instantiatable types. Location of the default vtable
inititalization function for interface types. (optional) This function
is used both to fill in virtual functions in the class or default vtable,
and to do type-specific setup such as registering signals and object
properties.
SeeTypeInfo.OnClassInitFunc.onClassInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer, ch.bailu.gtk.type.Pointer)- See Also:
-
CLASS_FINALIZE
Location of the class finalization function for
classed and instantiatable types. Location of the default vtable
finalization function for interface types. (optional)
SeeTypeInfo.OnClassFinalizeFunc.onClassFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer, ch.bailu.gtk.type.Pointer)- See Also:
-
CLASS_DATA
User-supplied data passed to the class init/finalize functions- See Also:
-
INSTANCE_SIZE
Size of the instance (object) structure (required for instantiatable types only)- See Also:
-
N_PREALLOCS
Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the [slice allocator][glib-Memory-Slices] now.- See Also:
-
INSTANCE_INIT
Location of the instance initialization function (optional, for instantiatable types only)
SeeTypeInfo.OnInstanceInitFunc.onInstanceInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.TypeInstance, ch.bailu.gtk.type.Pointer)- See Also:
-
VALUE_TABLE
A #GTypeValueTable function table for generic handling of GValues
of this type (usually only useful for fundamental types)- See Also:
-
-
Constructor Details
-
TypeInfo
-
TypeInfo
public TypeInfo()
-
-
Method Details
-
getClassHandler
-
setFieldClassSize
public void setFieldClassSize(int class_size) Size of the class structure (required for interface, classed and instantiatable types) -
getFieldClassSize
public int getFieldClassSize()Size of the class structure (required for interface, classed and instantiatable types) -
setFieldBaseInit
Location of the base initialization function (optional)
SeeTypeInfo.OnBaseInitFunc.onBaseInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer) -
getFieldBaseInit
public ch.bailu.gtk.gobject.JnaTypeInfo.OnBaseInitFunc getFieldBaseInit()Location of the base initialization function (optional)
SeeTypeInfo.OnBaseInitFunc.onBaseInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer) -
setFieldBaseFinalize
Location of the base finalization function (optional)
SeeTypeInfo.OnBaseFinalizeFunc.onBaseFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer) -
getFieldBaseFinalize
public ch.bailu.gtk.gobject.JnaTypeInfo.OnBaseFinalizeFunc getFieldBaseFinalize()Location of the base finalization function (optional)
SeeTypeInfo.OnBaseFinalizeFunc.onBaseFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer) -
setFieldClassInit
Location of the class initialization function for
classed and instantiatable types. Location of the default vtable
inititalization function for interface types. (optional) This function
is used both to fill in virtual functions in the class or default vtable,
and to do type-specific setup such as registering signals and object
properties.
SeeTypeInfo.OnClassInitFunc.onClassInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer, ch.bailu.gtk.type.Pointer) -
getFieldClassInit
public ch.bailu.gtk.gobject.JnaTypeInfo.OnClassInitFunc getFieldClassInit()Location of the class initialization function for
classed and instantiatable types. Location of the default vtable
inititalization function for interface types. (optional) This function
is used both to fill in virtual functions in the class or default vtable,
and to do type-specific setup such as registering signals and object
properties.
SeeTypeInfo.OnClassInitFunc.onClassInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer, ch.bailu.gtk.type.Pointer) -
setFieldClassFinalize
Location of the class finalization function for
classed and instantiatable types. Location of the default vtable
finalization function for interface types. (optional)
SeeTypeInfo.OnClassFinalizeFunc.onClassFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer, ch.bailu.gtk.type.Pointer) -
getFieldClassFinalize
public ch.bailu.gtk.gobject.JnaTypeInfo.OnClassFinalizeFunc getFieldClassFinalize()Location of the class finalization function for
classed and instantiatable types. Location of the default vtable
finalization function for interface types. (optional)
SeeTypeInfo.OnClassFinalizeFunc.onClassFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer, ch.bailu.gtk.type.Pointer) -
setFieldClassData
User-supplied data passed to the class init/finalize functions -
getFieldClassData
User-supplied data passed to the class init/finalize functions -
setFieldInstanceSize
public void setFieldInstanceSize(int instance_size) Size of the instance (object) structure (required for instantiatable types only) -
getFieldInstanceSize
public int getFieldInstanceSize()Size of the instance (object) structure (required for instantiatable types only) -
setFieldNPreallocs
public void setFieldNPreallocs(int n_preallocs) Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the [slice allocator][glib-Memory-Slices] now. -
getFieldNPreallocs
public int getFieldNPreallocs()Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the [slice allocator][glib-Memory-Slices] now. -
setFieldInstanceInit
Location of the instance initialization function (optional, for instantiatable types only)
SeeTypeInfo.OnInstanceInitFunc.onInstanceInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.TypeInstance, ch.bailu.gtk.type.Pointer) -
getFieldInstanceInit
public ch.bailu.gtk.gobject.JnaTypeInfo.OnInstanceInitFunc getFieldInstanceInit()Location of the instance initialization function (optional, for instantiatable types only)
SeeTypeInfo.OnInstanceInitFunc.onInstanceInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gobject.TypeInstance, ch.bailu.gtk.type.Pointer) -
setFieldValueTable
A #GTypeValueTable function table for generic handling of GValues
of this type (usually only useful for fundamental types) -
getFieldValueTable
A #GTypeValueTable function table for generic handling of GValues
of this type (usually only useful for fundamental types)
-