Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Atk::ObjectFactory Class Reference

An AtkObjectFactory C++ wrapper class. More...

#include <xfc/atk/objectfactory.hh>

Inheritance diagram for Xfc::Atk::ObjectFactory:

Xfc::G::Object Xfc::G::TypeInstance Xfc::Trackable List of all members.

Public Member Functions

Constructors
Accessors
Methods

Protected Member Functions

Constructors

Detailed Description

An AtkObjectFactory C++ wrapper class.

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

An ObjectFactory is returned by Atk::Registry::get_factory(). You wont need to use this class unless you are implementating your own accessible objects (for an example see gtk_widget_real_get_accessible() in gtkwidget.c, if you have the GTK+ source code).


Constructor & Destructor Documentation

Xfc::Atk::ObjectFactory::ObjectFactory AtkObjectFactory *  factory,
bool  owns_reference = true
[explicit, protected]
 

Construct a new ObjectFactory from an existing AtkObjectFactory.

Parameters:
factory A pointer to a AtkObjectFactory.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The factory can be a newly created AtkObjectFactory or an existing AtkObjectFactory. (see G::Object::Object).


Member Function Documentation

Atk::Object* Xfc::Atk::ObjectFactory::create_accessible const G::Object object  ) 
 

Provides an AtkObject that implements an accessibility interface on behalf of object.

Parameters:
object A G::Object.
Returns:
An pointer to an Atk::Object that implements an accessibility interface on behalf of object.

GType Xfc::Atk::ObjectFactory::get_accessible_type  )  const
 

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

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

void Xfc::Atk::ObjectFactory::invalidate  ) 
 

Inform the factory that it is no longer being used to create accessibles.

When called, the 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 ObjectFactorys in object registries.


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3