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
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Location of the base finalization function (optional)
SeeTypeInfo.OnBaseFinalizeFunc.onBaseFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)
static final String
Location of the base initialization function (optional)
SeeTypeInfo.OnBaseInitFunc.onBaseInitFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.type.Pointer)
static final String
User-supplied data passed to the class init/finalize functionsstatic final String
Location of the class finalization function for
classed and instantiatable types.static final String
Location of the class initialization function for
classed and instantiatable types.static final String
Size of the class structure (required for interface, classed and instantiatable types)static final String
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)
static final String
Size of the instance (object) structure (required for instantiatable types only)static final String
Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching).static final String
A #GTypeValueTable function table for generic handling of GValues
of this type (usually only useful for fundamental types) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
ch.bailu.gtk.gobject.JnaTypeInfo.OnBaseFinalizeFunc
Location 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.OnBaseInitFunc
Location 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.OnClassFinalizeFunc
Location of the class finalization function for
classed and instantiatable types.ch.bailu.gtk.gobject.JnaTypeInfo.OnClassInitFunc
Location of the class initialization function for
classed and instantiatable types.int
Size of the class structure (required for interface, classed and instantiatable types)ch.bailu.gtk.gobject.JnaTypeInfo.OnInstanceInitFunc
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)
int
Size of the instance (object) structure (required for instantiatable types only)int
Prior 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)void
setFieldBaseFinalize
(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)
void
setFieldBaseInit
(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)
void
setFieldClassData
(Pointer class_data) User-supplied data passed to the class init/finalize functionsvoid
setFieldClassFinalize
(TypeInfo.OnClassFinalizeFunc class_finalize) Location of the class finalization function for
classed and instantiatable types.void
setFieldClassInit
(TypeInfo.OnClassInitFunc class_init) Location of the class initialization function for
classed and instantiatable types.void
setFieldClassSize
(int class_size) Size of the class structure (required for interface, classed and instantiatable types)void
setFieldInstanceInit
(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)
void
setFieldInstanceSize
(int instance_size) Size of the instance (object) structure (required for instantiatable types only)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).void
setFieldValueTable
(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, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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)
-