2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2001, 2002 Sun Microsystems Inc.,
6 * Copyright 2001, 2002 Ximian, Inc.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
24 #include <cspi/spi-private.h>
27 * AccessibleAction_ref:
28 * @obj: a pointer to the #AccessibleAction on which to operate.
30 * Increment the reference count for an #AccessibleAction.
33 AccessibleAction_ref (AccessibleAction *obj)
35 cspi_object_ref (obj);
39 * AccessibleAction_unref:
40 * @obj: a pointer to the #AccessibleAction on which to operate.
42 * Decrement the reference count for an #AccessibleAction.
45 AccessibleAction_unref (AccessibleAction *obj)
47 cspi_object_unref (obj);
51 * AccessibleAction_getNActions:
52 * @obj: a pointer to the #AccessibleAction to query.
54 * Get the number of actions invokable on an #AccessibleAction implementor.
56 * Returns: a #long integer indicatin the number of invokable actions.
59 AccessibleAction_getNActions (AccessibleAction *obj)
63 cspi_return_val_if_fail (obj != NULL, -1);
66 Accessibility_Action__get_nActions (CSPI_OBJREF (obj), cspi_ev ());
68 cspi_return_val_if_ev ("getNActions", -1);
74 * AccessibleAction_getDescription:
75 * @obj: a pointer to the #AccessibleAction implementor to query.
76 * @i: a long integer indicating which action to query.
78 * Get the description of '@i-th' action invokable on an
79 * object implementing #AccessibleAction.
81 * Returns: a UTF-8 string describing the '@i-th' invokable action.
84 AccessibleAction_getDescription (AccessibleAction *obj,
88 cspi_return_val_if_fail (obj != NULL, NULL);
91 Accessibility_Action_getDescription (CSPI_OBJREF (obj),
95 cspi_return_val_if_ev ("getDescription", NULL);
101 * AccessibleAction_getKeyBinding:
102 * @obj: a pointer to the #AccessibleAction implementor to query.
103 * @i: a long integer indicating which action to query.
105 * Get the keybindings for the @i-th action invokable on an
106 * object implementing #AccessibleAction, if any are defined.
108 * Returns: a UTF-8 string which can be parsed to determine the @i-th
109 * invokable action's keybindings.
112 AccessibleAction_getKeyBinding (AccessibleAction *obj,
117 cspi_return_val_if_fail (obj != NULL, NULL);
120 Accessibility_Action_getKeyBinding (CSPI_OBJREF (obj),
124 cspi_return_val_if_ev ("getKeyBinding", NULL);
130 * AccessibleAction_getName:
131 * @obj: a pointer to the #AccessibleAction implementor to query.
132 * @i: a long integer indicating which action to query.
134 * Get the name of the '@i-th' action invokable on an
135 * object implementing #AccessibleAction.
137 * Returns: the 'event type' name of the action, as a UTF-8 string.
140 AccessibleAction_getName (AccessibleAction *obj,
145 cspi_return_val_if_fail (obj != NULL, NULL);
148 Accessibility_Action_getName (CSPI_OBJREF (obj),
152 cspi_return_val_if_ev ("getName", NULL);
158 * AccessibleAction_doAction:
159 * @obj: a pointer to the #AccessibleAction to query.
160 * @i: an integer specifying which action to invoke.
162 * Invoke the action indicated by #index.
164 * Returns: #TRUE if the action is successfully invoked, otherwise #FALSE.
167 AccessibleAction_doAction (AccessibleAction *obj,
172 cspi_return_val_if_fail (obj != NULL, FALSE);
174 retval = Accessibility_Action_doAction (CSPI_OBJREF (obj),
178 cspi_return_val_if_ev ("doAction", FALSE);