1 #include <cspi/spi-private.h>
4 * AccessibleAction_ref:
5 * @obj: a pointer to the #AccessibleAction on which to operate.
7 * Increment the reference count for an #AccessibleAction.
9 * Returns: 0 (no return code implemented yet).
13 AccessibleAction_ref (AccessibleAction *obj)
15 cspi_object_ref (obj);
19 * AccessibleAction_unref:
20 * @obj: a pointer to the #AccessibleAction on which to operate.
22 * Decrement the reference count for an #AccessibleAction.
24 * Returns: 0 (no return code implemented yet).
28 AccessibleAction_unref (AccessibleAction *obj)
30 cspi_object_unref (obj);
34 * AccessibleAction_getNActions:
35 * @obj: a pointer to the #AccessibleAction to query.
37 * Get the number of actions invokable on an #AccessibleAction implementor.
39 * Returns: a #long integer indicatin the number of invokable actions.
42 AccessibleAction_getNActions (AccessibleAction *obj)
46 cspi_return_val_if_fail (obj != NULL, -1);
49 Accessibility_Action__get_nActions (CSPI_OBJREF (obj), cspi_ev ());
51 cspi_return_val_if_ev ("getNActions", -1);
57 * AccessibleAction_getDescription:
58 * @obj: a pointer to the #AccessibleAction implementor to query.
59 * @i: a long integer indicating which action to query.
61 * Get the description of '@i-th' action invokable on an
62 * object implementing #AccessibleAction.
64 * Returns: a UTF-8 string describing the '@i-th' invokable action.
67 AccessibleAction_getDescription (AccessibleAction *obj,
71 cspi_return_val_if_fail (obj != NULL, NULL);
74 Accessibility_Action_getDescription (CSPI_OBJREF (obj),
78 cspi_return_val_if_ev ("getDescription", NULL);
84 * AccessibleAction_getKeyBinding:
85 * @obj: a pointer to the #AccessibleAction implementor to query.
86 * @i: a long integer indicating which action to query.
88 * Get the keybindings for the @i-th action invokable on an
89 * object implementing #AccessibleAction, if any are defined.
91 * Returns: a UTF-8 string which can be parsed to determine the @i-th
92 * invokable action's keybindings.
95 AccessibleAction_getKeyBinding (AccessibleAction *obj,
100 cspi_return_val_if_fail (obj != NULL, NULL);
103 Accessibility_Action_getKeyBinding (CSPI_OBJREF (obj),
107 cspi_return_val_if_ev ("getKeyBinding", NULL);
113 * AccessibleAction_getName:
114 * @obj: a pointer to the #AccessibleAction implementor to query.
115 * @i: a long integer indicating which action to query.
117 * Get the name of the '@i-th' action invokable on an
118 * object implementing #AccessibleAction.
120 * Returns: the 'event type' name of the action, as a UTF-8 string.
123 AccessibleAction_getName (AccessibleAction *obj,
128 cspi_return_val_if_fail (obj != NULL, NULL);
131 Accessibility_Action_getName (CSPI_OBJREF (obj),
135 cspi_return_val_if_ev ("getName", NULL);
141 * AccessibleAction_doAction:
142 * @obj: a pointer to the #AccessibleAction to query.
143 * @i: an integer specifying which action to invoke.
145 * Invoke the action indicated by #index.
147 * Returns: #TRUE if the action is successfully invoked, otherwise #FALSE.
150 AccessibleAction_doAction (AccessibleAction *obj,
155 cspi_return_val_if_fail (obj != NULL, FALSE);
157 retval = (SPIBoolean)
158 Accessibility_Action_doAction (CSPI_OBJREF (obj),
162 cspi_return_val_if_ev ("doAction", FALSE);