Inherits Glib::Interface.
Inherited by Atk::Hyperlink, and Atk::NoOpObject.
Public Member Functions | |
virtual | ~Action () |
AtkAction* | gobj () |
Provides access to the underlying C GObject. | |
const AtkAction* | gobj () const |
Provides access to the underlying C GObject. | |
bool | do_action (int i) |
Perform the specified action on the object. | |
int | get_n_actions () const |
Gets the number of accessible actions available on the object. | |
Glib::ustring | get_description (int i) const |
Returns a description of the specified action of the object. | |
Glib::ustring | get_name (int i) const |
Returns the name of the specified action of the object. | |
Glib::ustring | get_keybinding (int i) |
Returns a keybinding associated with this action, if one exists. | |
bool | set_description (int i, const Glib::ustring& desc) |
Sets a description of the specified action of the object. | |
Glib::ustring | get_localized_name (int i) |
Returns the localized name of the specified action of the object. | |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Protected Member Functions | |
virtual bool | do_action_vfunc (int i) |
virtual int | get_n_actions_vfunc () const |
virtual const char* | get_description_vfunc (int i) const |
virtual const char* | get_name_vfunc (int i) const |
virtual const char* | get_keybinding_vfunc (int i) const |
virtual bool | set_description_vfunc (int i, const Glib::ustring& desc) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Atk::Action > | wrap (AtkAction* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
buttons, checkboxes, scrollbars, e.g. components which are not "passive" providers of UI information.
Exceptions: when the user interaction is already covered by another appropriate interface such as Atk::EditableText (insert/delete test, etc.) or Atk::Value (set value) then these actions should not be exposed by Atk::Action as well.
Also note that the Atk::Action API is limited in that parameters may not be passed to the object being activated; thus the action must be self-contained and specifiable via only a single "verb". Concrete examples include "press", "release", "click" for buttons, "drag" (meaning initiate drag) and "drop" for drag sources and drop targets, etc.
Though most UI interactions on components should be invocable via keyboard as well as mouse, there will generally be a close mapping between "mouse actions" that are possible on a component and the Atk::Actions. Where mouse and keyboard actions are redundant in effect, Atk::Action should expose only one action rather than exposing redundant actions if possible. By convention we have been using "mouse centric" terminology for Atk::Action names.
virtual Atk::Action::~Action | ( | ) | [virtual] |
static void Atk::Action::add_interface | ( | GType | gtype_implementer | ) | [static] |
bool Atk::Action::do_action | ( | int | i | ) |
Perform the specified action on the object.
i | The action index corresponding to the action to be performed. |
true
if success, false
otherwise. virtual bool Atk::Action::do_action_vfunc | ( | int | i | ) | [protected, virtual] |
Glib::ustring Atk::Action::get_description | ( | int | i | ) | const |
Returns a description of the specified action of the object.
i | The action index corresponding to the action to be performed. |
0
if action does not implement this interface. virtual const char* Atk::Action::get_description_vfunc | ( | int | i | ) | const [protected, virtual] |
Glib::ustring Atk::Action::get_keybinding | ( | int | i | ) |
Returns a keybinding associated with this action, if one exists.
i | The action index corresponding to the action to be performed. |
virtual const char* Atk::Action::get_keybinding_vfunc | ( | int | i | ) | const [protected, virtual] |
Glib::ustring Atk::Action::get_localized_name | ( | int | i | ) |
Returns the localized name of the specified action of the object.
i | The action index corresponding to the action to be performed. |
int Atk::Action::get_n_actions | ( | ) | const |
Gets the number of accessible actions available on the object.
If there are more than one, the first one is considered the "default" action of the object.
virtual int Atk::Action::get_n_actions_vfunc | ( | ) | const [protected, virtual] |
Glib::ustring Atk::Action::get_name | ( | int | i | ) | const |
Returns the name of the specified action of the object.
i | The action index corresponding to the action to be performed. |
virtual const char* Atk::Action::get_name_vfunc | ( | int | i | ) | const [protected, virtual] |
const AtkAction* Atk::Action::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface.
Reimplemented in Atk::Hyperlink, and Atk::NoOpObject.
AtkAction* Atk::Action::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface.
Reimplemented in Atk::Hyperlink, and Atk::NoOpObject.
bool Atk::Action::set_description | ( | int | i, | |
const Glib::ustring & | desc | |||
) |
Sets a description of the specified action of the object.
i | The action index corresponding to the action to be performed. | |
desc | The description to be assigned to this action. |
bool
representing if the description was successfully set;. virtual bool Atk::Action::set_description_vfunc | ( | int | i, | |
const Glib::ustring & | desc | |||
) | [protected, virtual] |
Glib::RefPtr< Atk::Action > wrap | ( | AtkAction * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |