Ggit.ObjectFactory

g GObject.Object GObject.Object Ggit.ObjectFactory Ggit.ObjectFactory GObject.Object->Ggit.ObjectFactory

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_default ()

construct (parent_class, basetype, construct_properties)

register (basetype, subtype)

unregister (basetype, subtype)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Ggit.ObjectFactory(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ggit.ObjectFactoryClass

Represents an object factory.

classmethod get_default()
Returns:

a Ggit.ObjectFactory.

Return type:

Ggit.ObjectFactory

Get the default type factory instance.

construct(parent_class, basetype, construct_properties)
Parameters:
Returns:

a GObject.Object or None.

Return type:

GObject.Object or None

Construct a new object.

register(basetype, subtype)
Parameters:

Register subtype as the instantiation class for basetype. Each time an object of type basetype is going to be created, an instance of subtype is created instead. basetype must be subclassed from Ggit.ObjectFactoryBase.

unregister(basetype, subtype)
Parameters:

Unregister a subtype from the factory.