Atk.Registry¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
factory_singleton_cache |
r |
||
factory_type_registry |
r |
||
parent |
r |
Class Details¶
- class Atk.Registry(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object used to store the
GObject.GType
of the factories used to create an accessible object for an object of a particularGObject.GType
.The
Atk.Registry
is normally used to create appropriate ATK “peers” for user interface components. Application developers usually need only interact with theAtk.Registry
by associating appropriate ATK implementation classes withGObject.Object
classes via theAtk.Registry.set_factory_type
call, passing the appropriateGObject.GType
for application custom widget classes.- get_factory(type)[source]¶
- Parameters:
type (
GObject.GType
) – aGObject.GType
with which to look up the associatedAtk.ObjectFactory
- Returns:
an
Atk.ObjectFactory
appropriate for creatingAtk.Objects
appropriate for type.- Return type:
Gets an
Atk.ObjectFactory
appropriate for creatingAtk.Objects
appropriate for type.
- get_factory_type(type)[source]¶
- Parameters:
type (
GObject.GType
) – aGObject.GType
with which to look up the associatedAtk.ObjectFactory
subclass- Returns:
a
GObject.GType
associated with type type- Return type:
Provides a
GObject.GType
indicating theAtk.ObjectFactory
subclass associated with type.
- set_factory_type(type, factory_type)[source]¶
- Parameters:
type (
GObject.GType
) – anAtk.Object
typefactory_type (
GObject.GType
) – anAtk.ObjectFactory
type to associate with type. Must implementAtk.Object
appropriate for type.
Associate an
Atk.ObjectFactory
subclass with aGObject.GType
. Note: The associated factory_type will thereafter be responsible for the creation of newAtk.Object
implementations for instances appropriate for type.