Top | ![]() |
![]() |
![]() |
![]() |
GgitObjectFactory *
ggit_object_factory_get_default (void
);
Get the default type factory instance.
void ggit_object_factory_register (GgitObjectFactory *factory
,GType basetype
,GType subtype
);
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 GgitObjectFactoryBase.
void ggit_object_factory_unregister (GgitObjectFactory *factory
,GType basetype
,GType subtype
);
Unregister a subtype from the factory.
GObject * ggit_object_factory_construct (GgitObjectFactory *factory
,GObjectClass *parent_class
,GType basetype
,guint n_construct_properties
,GObjectConstructParam *construct_properties
);
Construct a new object.
factory |
||
parent_class |
a GObjectClass. |
|
basetype |
a GType. |
|
n_construct_properties |
number of construct properties. |
|
construct_properties |
a list of GObjectConstructParam. |
[array length=n_construct_properties] |