ObjectModule

The #PeasObjectModule structure contains only private data and should only be accessed using the provided API.

Constructors

this
this(PeasObjectModule* peasObjectModule, bool ownedRef)

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

this
this(string moduleName, string path, bool resident)

Creates a new #PeasObjectModule.

this
this(string moduleName, string symbol)

Creates a new #PeasObjectModule for an embedded plugin.

this
this(string moduleName, string path, bool resident, bool localLinkage)

Creates a new #PeasObjectModule.

Members

Functions

createObject
ObjectG createObject(GType iface, GParameter[] parameters)

Creates an object for the @interface passing @n_parameters and @parameters to the #PeasFactoryFunc. If @module does not provide a #PeasFactoryFunc for @interface then %NULL is returned.

getLibrary
Module getLibrary()

Gets the library.

getModuleName
string getModuleName()

Gets the module name.

getObjectModuleStruct
PeasObjectModule* getObjectModuleStruct()

Get the main Gtk struct

getPath
string getPath()

Gets the path.

getStruct
void* getStruct()

the main Gtk struct as a void*

getSymbol
string getSymbol()

Gets the symbol name used to register extension implementations.

providesObject
bool providesObject(GType iface)

Determines if the module provides an extension for @interface.

registerExtensionFactory
void registerExtensionFactory(GType ifaceType, PeasFactoryFunc factoryFunc, void* userData, GDestroyNotify destroyFunc)

Register an implementation for an extension type through a factory function @factory_func which will instantiate the extension when requested.

registerExtensionType
void registerExtensionType(GType ifaceType, GType extensionType)

Register an extension type which implements the extension interface @iface_type.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getType
GType getType()

Variables

peasObjectModule
PeasObjectModule* peasObjectModule;

the main Gtk struct

Inherited Members

From TypeModule

gTypeModule
GTypeModule* gTypeModule;

the main Gtk struct

getTypeModuleStruct
GTypeModule* getTypeModuleStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin TypePluginT!(GTypeModule)
Undocumented in source.
getType
GType getType()
addInterface
void 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.

registerEnum
GType registerEnum(string name, GEnumValue* constStaticValues)

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.

registerFlags
GType registerFlags(string name, GFlagsValue* constStaticValues)

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.

registerType
GType registerType(GType parentType, string 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.

setName
void setName(string name)

Sets the name for a #GTypeModule

unuse
void 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.)

use
bool use()

Increases the use count of a #GTypeModule by one. If the use count was zero before, the plugin will be loaded. If loading the plugin fails, the use count is reset to its prior value.

Meta