[][src]Trait atk::ObjectFactoryExt

pub trait ObjectFactoryExt: 'static {
    fn create_accessible<P: IsA<Object>>(&self, obj: &P) -> Option<Object>;
fn get_accessible_type(&self) -> Type;
fn invalidate(&self); }

Trait containing all ObjectFactory methods.

Implementors

NoOpObjectFactory, ObjectFactory

Required methods

fn create_accessible<P: IsA<Object>>(&self, obj: &P) -> Option<Object>

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

obj

a gobject::Object

Returns

an Object that implements an accessibility interface on behalf of obj

fn get_accessible_type(&self) -> Type

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

Returns

the type of the accessible which is created by the self. The value G_TYPE_INVALID is returned if no type if found.

fn invalidate(&self)

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

Loading content...

Implementors

impl<O: IsA<ObjectFactory>> ObjectFactoryExt for O[src]

Loading content...