gobject.TypeModule.TypeModule Class Reference

Inheritance diagram for gobject.TypeModule.TypeModule:

gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GTypeModulegetTypeModuleStruct ()
 this (GTypeModule *gTypeModule)
 Sets our main struct and passes it to the parent class.
int use ()
 Increases the use count of a GTypeModule by one.
void unuse ()
 Decreases the use count of a GTypeModule by one.
void setName (char[] name)
 Sets the name for a GTypeModule module: a GTypeModule.
GType registerType (GType parentType, char[] typeName, GTypeInfo *typeInfo, GTypeFlags flags)
 Looks up or registers a type that is implemented with a particular type plugin.
void addInterface (GType instanceType, GType interfaceType, GInterfaceInfo *interfaceInfo)
 Registers an additional interface for a type, whose interface lives in the given type plugin.
GType registerEnum (char[] name, Enums _StaticValues)
 Looks up or registers an enumeration that is implemented with a particular type plugin.
GType registerFlags (char[] name, Flags _StaticValues)
 Looks up or registers a flags type that is implemented with a particular type plugin.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GTypeModulegTypeModule
 the main Gtk struct

Constructor & Destructor Documentation

gobject.TypeModule.TypeModule.this ( GTypeModule gTypeModule  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

void gobject.TypeModule.TypeModule.addInterface ( GType  instanceType,
GType  interfaceType,
GInterfaceInfo interfaceInfo 
)

Registers an additional interface for a type, whose interface lives in the given type plugin.

If the interface was already registered for the type in this plugin, nothing will be done. As long as any instances of the type exist, the type plugin will not be unloaded. module: a GTypeModule instance_type: type to which to add the interface. interface_type: interface type to add interface_info: type information structure

void* gobject.TypeModule.TypeModule.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gobject.ObjectG.ObjectG.

GTypeModule* gobject.TypeModule.TypeModule.getTypeModuleStruct (  ) 

GType gobject.TypeModule.TypeModule.registerEnum ( char[]  name,
Enums  _StaticValues 
)

Looks up or registers an enumeration that is implemented with a particular type plugin.

If a type with name type_name was previously registered, the GType identifier for the type is returned, otherwise the type is newly registered, and the resulting GType identifier returned. As long as any instances of the type exist, the type plugin will not be unloaded. module: a GTypeModule name: name for the type _static_values: Returns: the new or existing type ID Since 2.6

GType gobject.TypeModule.TypeModule.registerFlags ( char[]  name,
Flags  _StaticValues 
)

Looks up or registers a flags type that is implemented with a particular type plugin.

If a type with name type_name was previously registered, the GType identifier for the type is returned, otherwise the type is newly registered, and the resulting GType identifier returned. As long as any instances of the type exist, the type plugin will not be unloaded. module: a GTypeModule name: name for the type _static_values: Returns: the new or existing type ID Since 2.6 See Also GTypePlugin The abstract type loader interface. GModule Portable mechanism for dynamically loaded modules.

GType gobject.TypeModule.TypeModule.registerType ( GType  parentType,
char[]  typeName,
GTypeInfo typeInfo,
GTypeFlags  flags 
)

Looks up or registers a type that is implemented with a particular type plugin.

If a type with name type_name was previously registered, the GType identifier for the type is returned, otherwise the type is newly registered, and the resulting GType identifier returned. When reregistering a type (typically because a module is unloaded then reloaded, and reinitialized), module and parent_type must be the same as they were previously. As long as any instances of the type exist, the type plugin will not be unloaded. module: a GTypeModule parent_type: the type for the parent class type_name: name for the type type_info: type information structure flags: flags field providing details about the type Returns: the new or existing type ID

void gobject.TypeModule.TypeModule.setName ( char[]  name  ) 

Sets the name for a GTypeModule module: a GTypeModule.

name: a human-readable name to use in error messages.

void gobject.TypeModule.TypeModule.unuse (  ) 

Decreases the use count of a GTypeModule by one.

If the result is zero, the module will be unloaded. (However, the GTypeModule will not be freed, and types associated with the GTypeModule are not unregistered. Once a GTypeModule is initialized, it must exist forever.) module: a GTypeModule

int gobject.TypeModule.TypeModule.use (  ) 

Increases the use count of a GTypeModule by one.

If the use count was zero before, the plugin will be loaded. module: a GTypeModule Returns: FALSE if the plugin needed to be loaded and loading the plugin failed.


Member Data Documentation

GTypeModule* gobject.TypeModule.TypeModule.gTypeModule [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo