Peas.ObjectModule

g GObject.GInterface GObject.GInterface GObject.TypePlugin GObject.TypePlugin GObject.GInterface->GObject.TypePlugin GObject.Object GObject.Object GObject.TypeModule GObject.TypeModule GObject.Object->GObject.TypeModule Peas.ObjectModule Peas.ObjectModule GObject.TypeModule->Peas.ObjectModule GObject.TypePlugin->GObject.TypeModule

Subclasses:

None

Methods

Inherited:

GObject.TypeModule (7), GObject.Object (37), GObject.TypePlugin (4)

Structs:

GObject.ObjectClass (5)

register_extension_factory (exten_type, factory_func, *user_data)

register_extension_type (exten_type, impl_type)

Virtual Methods

Inherited:

GObject.TypeModule (2), GObject.Object (7)

Properties

Name

Type

Flags

Short Description

local-linkage

bool

r/w/co

Whether the module loaded with local linkage

module-name

str

r/w/co

The module to load for this object

path

str

r/w/co

The path to use when loading this module

resident

bool

r/w/co

Whether the module is resident

symbol

str

r/w/co

The registration symbol to use for this module

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.TypeModule

r

Class Details

class Peas.ObjectModule(**kwargs)
Bases:

GObject.TypeModule

Abstract:

No

Structure:

Peas.ObjectModuleClass

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:

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:

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:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

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:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The module to load for this object

Peas.ObjectModule.props.path
Name:

path

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The path to use when loading this module

Peas.ObjectModule.props.resident
Name:

resident

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether the module is resident

Peas.ObjectModule.props.symbol
Name:

symbol

Type:

str

Default Value:

'peas_register_types'

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The registration symbol to use for this module