Peas.ObjectModule¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.TypeModule (7), GObject.Object (37), GObject.TypePlugin (4)
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Whether the module loaded with local linkage |
||
r/w/co |
The module to load for this object |
||
r/w/co |
The path to use when loading this module |
||
r/w/co |
Whether the module is resident |
||
r/w/co |
The registration symbol to use for this module |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Peas.ObjectModule(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Peas.ObjectModule
structure contains only private data and should only be accessed using the provided API.- register_extension_factory(exten_type, factory_func, *user_data)¶
- Parameters:
exten_type (
GObject.GType
) – TheGObject.GType
of the extension you implement.factory_func (
Peas.FactoryFunc
) – ThePeas.FactoryFunc
that will create the exten_type instance when requested.
Register an implementation for an extension type through a factory function factory_func which will instantiate the extension when requested.
This method is primarily meant to be used by native bindings (like gtkmm), creating native types which cannot be instantiated correctly using [ctor`GObject`.Object.new]. For other uses, you will usually prefer relying on
Peas.ObjectModule.register_extension_type
().Since libpeas 1.22, exten_type can be an Abstract [alias`GObject`.Type] and not just an Interface [alias`GObject`.Type].
- register_extension_type(exten_type, impl_type)¶
- Parameters:
exten_type (
GObject.GType
) – TheGObject.GType
of the extension you implement.impl_type (
GObject.GType
) – TheGObject.GType
of your implementation of exten_type.
Register impl_type as an extension which implements extension_type.
Since libpeas 1.22, exten_type can be an Abstract [alias`GObject`.Type] and not just an Interface [alias`GObject`.Type].
Property Details¶
- Peas.ObjectModule.props.local_linkage¶
- Name:
local-linkage
- Type:
- Default Value:
- Flags:
Whether the module is loaded with local linkage, i.e.
GModule.ModuleFlags.LOCAL
.New in version 1.14.
- Peas.ObjectModule.props.module_name¶
- Name:
module-name
- Type:
- Default Value:
- Flags:
The module to load for this object
- Peas.ObjectModule.props.path¶
- Name:
path
- Type:
- Default Value:
- Flags:
The path to use when loading this module
- Peas.ObjectModule.props.resident¶
- Name:
resident
- Type:
- Default Value:
- Flags:
Whether the module is resident
- Peas.ObjectModule.props.symbol¶
- Name:
symbol
- Type:
- Default Value:
'peas_register_types'
- Flags:
The registration symbol to use for this module