Atk.ObjectFactory

g Atk.ObjectFactory Atk.ObjectFactory GObject.Object GObject.Object GObject.Object->Atk.ObjectFactory

Subclasses:Atk.NoOpObjectFactory

Virtual Methods

Inherited:GObject.Object (7)
  do_invalidate ()

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  

Class Details

class Atk.ObjectFactory(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Atk.ObjectFactoryClass

This class is the base object class for a factory used to create an accessible object for a specific GObject.GType. The function Atk.Registry.set_factory_type() is normally called to store in the registry the factory type to be used to create an accessible of a particular GObject.GType.

create_accessible(obj)[source]
Parameters:obj (GObject.Object) – a GObject.Object
Returns:an Atk.Object that implements an accessibility interface on behalf of obj
Return type:Atk.Object

Provides an Atk.Object that implements an accessibility interface on behalf of obj

get_accessible_type()[source]
Returns:the type of the accessible which is created by the self. The value GObject.TYPE_INVALID is returned if no type if found.
Return type:GObject.GType

Gets the GObject.GType of the accessible which is created by the factory.

invalidate()[source]

Inform self that it is no longer being used to create accessibles. When called, self may need to inform Atk.Objects which it has created that they need to be re-instantiated. Note: primarily used for runtime replacement of Atk.ObjectFactorys in object registries.

do_invalidate() virtual

Inform factory that it is no longer being used to create accessibles. When called, factory may need to inform Atk.Objects which it has created that they need to be re-instantiated. Note: primarily used for runtime replacement of Atk.ObjectFactorys in object registries.