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


Xfc::Atk::Registry Class Reference

An AtkRegistry C++ wrapper class. More...

#include <xfc/atk/registry.hh>

Inheritance diagram for Xfc::Atk::Registry:

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

Public Member Functions

Accessors
Methods

Static Public Member Functions

Accessors

Detailed Description

An AtkRegistry C++ wrapper class.

Registry is an object that is used to store the GType of the factories used to create an accessible object for an object of a particular GType.


Constructor & Destructor Documentation

Xfc::Atk::Registry::Registry ( AtkRegistry *  registry,
bool  owns_reference = true 
) [explicit, protected]

Construct a new Registry from an existing AtkRegistry.

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

Xfc::Atk::Registry::Registry ( AtkRegistry *  registry,
bool  owns_reference = true 
) [explicit, protected]

Construct a new Registry from an existing AtkRegistry.

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


Member Function Documentation

GType Xfc::Atk::Registry::get_factory_type ( GType  type  )  const

Provides a GType indicating the ObjectFactory subclass associated with type.

Parameters:
type A GType with which to look up the associated ObjectFactory subclass.
Returns:
A GType associated with type type.

ObjectFactory* Xfc::Atk::Registry::get_factory ( GType  type  )  const

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

Parameters:
type A GType with which to look up the associated ObjectFactory.
Returns:
An ObjectFactory appropriate for creating Atk::Objects appropriate for type.

static Registry* Xfc::Atk::Registry::get_default (  )  [static]

Gets a default implementation of the ObjectFactory/type registry.

Returns:
A default implementation of the ObjectFactory/type registry.
Note: For most toolkit maintainers, this will be the correct registry for registering new AtkObject factories. Following a call to this function, maintainers may call set_factory_type() to associate an ObjectFactory subclass with the GType of objects for whom accessibility information will be provided.

void Xfc::Atk::Registry::set_factory_type ( GType  type,
GType  factory_type 
)

Associate an ObjectFactory subclass with a GType.

Parameters:
type The Atk::Object type.
factory_type An ObjectFactory type to associate with type (must implement an Atk::Object appropriate for type).
Note: The associated factory_type will thereafter be responsible for the creation of new Atk::Object implementations for instances appropriate for type.


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