Back to Seed Clases

GObject


Classes

Interfaces

Structs

Unions

Enums

Struct GObject.TypeInfo

Import line: GObject = imports.gi.GObject;
GIR File: GObject-2.0.gir
C documentation: GTypeInfo
Struct : TypeInfo
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().
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new GObject.TypeInfo ()
Create a new GObject.TypeInfo
Create a new GObject.TypeInfo
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
GObject
Method
GObject.enum_complete_type_info (Number g_enum_type, TypeInfo info, EnumValue const_values) : none
This function is meant to be called from the complete_type_info()
function of a GTypePlugin implementation, as in the following
example:
|[
static void
my_enum_complete_type_info (GTypePlugin *plugin,
GType g_type,
GTypeInfo *info,
GTypeValueTable *value_table)
{
static const GEnumValue values[] = {
{ MY_ENUM_FOO, "MY_ENUM_FOO", "foo" },
{ MY_ENUM_BAR, "MY_ENUM_BAR", "bar" },
{ 0, NULL, NULL }
};
g_enum_complete_type_info (type, info, values);
}
]|
GObject
Method
GObject.flags_complete_type_info (Number g_flags_type, TypeInfo info, FlagsValue const_values) : none
This function is meant to be called from the complete_type_info()
function of a GTypePlugin implementation, see the example for
g_enum_complete_type_info() above.
GObject
Method
GObject.type_register_fundamental (Number type_id, String type_name, TypeInfo info, TypeFundamentalInfo finfo, TypeFlags flags) : Number
Registers type_id as the predefined identifier and type_name as the
name of a fundamental type.
GObject
Method
GObject.type_register_static (Number parent_type, String type_name, TypeInfo info, TypeFlags flags) : Number
Registers type_name as the name of a new static type derived from
GTypeInfo structure pointed to by info to manage the type and its
instances (if not abstract).
GObject.TypeModule
Method
register_type (Number parent_type, String type_name, TypeInfo type_info, TypeFlags flags) : Number
Looks up or registers a type that is implemented with a particular
type plugin.
GObject.TypePlugin
Method
complete_type_info (Number g_type, TypeInfo info, TypeValueTable value_table) : none
Calls the complete_type_info function from the GTypePluginClass of plugin.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:46 GMT+0800 (HKT)