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.GTypeof the factories used to create an accessible object for an object of a particularGObject.GType.The
Atk.Registryis normally used to create appropriate ATK “peers” for user interface components. Application developers usually need only interact with theAtk.Registryby associating appropriate ATK implementation classes withGObject.Objectclasses via theAtk.Registry.set_factory_typecall, passing the appropriateGObject.GTypefor application custom widget classes.- get_factory(type)[source]¶
- Parameters:
type (
GObject.GType) – aGObject.GTypewith which to look up the associatedAtk.ObjectFactory- Returns:
an
Atk.ObjectFactoryappropriate for creatingAtk.Objectsappropriate for type.- Return type:
Gets an
Atk.ObjectFactoryappropriate for creatingAtk.Objectsappropriate for type.
- get_factory_type(type)[source]¶
- Parameters:
type (
GObject.GType) – aGObject.GTypewith which to look up the associatedAtk.ObjectFactorysubclass- Returns:
a
GObject.GTypeassociated with type type- Return type:
Provides a
GObject.GTypeindicating theAtk.ObjectFactorysubclass associated with type.
- set_factory_type(type, factory_type)[source]¶
- Parameters:
type (
GObject.GType) – anAtk.Objecttypefactory_type (
GObject.GType) – anAtk.ObjectFactorytype to associate with type. Must implementAtk.Objectappropriate for type.
Associate an
Atk.ObjectFactorysubclass with aGObject.GType. Note: The associated factory_type will thereafter be responsible for the creation of newAtk.Objectimplementations for instances appropriate for type.