Atk.Registry

g Atk.Registry Atk.Registry GObject.Object GObject.Object GObject.Object->Atk.Registry

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_factory (type)

get_factory_type (type)

set_factory_type (type, factory_type)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

factory_singleton_cache

{object: object}

r

factory_type_registry

{object: object}

r

parent

GObject.Object

r

Class Details

class Atk.Registry(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Atk.RegistryClass

An object used to store the GObject.GType of the factories used to create an accessible object for an object of a particular GObject.GType.

The Atk.Registry is normally used to create appropriate ATK “peers” for user interface components. Application developers usually need only interact with the Atk.Registry by associating appropriate ATK implementation classes with GObject.Object classes via the Atk.Registry.set_factory_type call, passing the appropriate GObject.GType for application custom widget classes.

get_factory(type)[source]
Parameters:

type (GObject.GType) – a GObject.GType with which to look up the associated Atk.ObjectFactory

Returns:

an Atk.ObjectFactory appropriate for creating Atk.Objects appropriate for type.

Return type:

Atk.ObjectFactory

Gets an Atk.ObjectFactory appropriate for creating Atk.Objects appropriate for type.

get_factory_type(type)[source]
Parameters:

type (GObject.GType) – a GObject.GType with which to look up the associated Atk.ObjectFactory subclass

Returns:

a GObject.GType associated with type type

Return type:

GObject.GType

Provides a GObject.GType indicating the Atk.ObjectFactory subclass associated with type.

set_factory_type(type, factory_type)[source]
Parameters:

Associate an Atk.ObjectFactory subclass with a GObject.GType. Note: The associated factory_type will thereafter be responsible for the creation of new Atk.Object implementations for instances appropriate for type.