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.
11 AccessibleAction_ref (AccessibleAction *obj)
13 cspi_object_ref (obj);
17 * AccessibleAction_unref:
18 * @obj: a pointer to the #AccessibleAction on which to operate.
20 * Decrement the reference count for an #AccessibleAction.
24 AccessibleAction_unref (AccessibleAction *obj)
26 cspi_object_unref (obj);
30 * AccessibleAction_getNActions:
31 * @obj: a pointer to the #AccessibleAction to query.
33 * Get the number of actions invokable on an #AccessibleAction implementor.
35 * Returns: a #long integer indicatin the number of invokable actions.
38 AccessibleAction_getNActions (AccessibleAction *obj)
42 cspi_return_val_if_fail (obj != NULL, -1);
45 Accessibility_Action__get_nActions (CSPI_OBJREF (obj), cspi_ev ());
47 cspi_return_val_if_ev ("getNActions", -1);
53 * AccessibleAction_getDescription:
54 * @obj: a pointer to the #AccessibleAction implementor to query.
55 * @i: a long integer indicating which action to query.
57 * Get the description of '@i-th' action invokable on an
58 * object implementing #AccessibleAction.
60 * Returns: a UTF-8 string describing the '@i-th' invokable action.
63 AccessibleAction_getDescription (AccessibleAction *obj,
67 cspi_return_val_if_fail (obj != NULL, NULL);
70 Accessibility_Action_getDescription (CSPI_OBJREF (obj),
74 cspi_return_val_if_ev ("getDescription", NULL);
80 * AccessibleAction_getKeyBinding:
81 * @obj: a pointer to the #AccessibleAction implementor to query.
82 * @i: a long integer indicating which action to query.
84 * Get the keybindings for the @i-th action invokable on an
85 * object implementing #AccessibleAction, if any are defined.
87 * Returns: a UTF-8 string which can be parsed to determine the @i-th
88 * invokable action's keybindings.
91 AccessibleAction_getKeyBinding (AccessibleAction *obj,
96 cspi_return_val_if_fail (obj != NULL, NULL);
99 Accessibility_Action_getKeyBinding (CSPI_OBJREF (obj),
103 cspi_return_val_if_ev ("getKeyBinding", NULL);
109 * AccessibleAction_getName:
110 * @obj: a pointer to the #AccessibleAction implementor to query.
111 * @i: a long integer indicating which action to query.
113 * Get the name of the '@i-th' action invokable on an
114 * object implementing #AccessibleAction.
116 * Returns: the 'event type' name of the action, as a UTF-8 string.
119 AccessibleAction_getName (AccessibleAction *obj,
124 cspi_return_val_if_fail (obj != NULL, NULL);
127 Accessibility_Action_getName (CSPI_OBJREF (obj),
131 cspi_return_val_if_ev ("getName", NULL);
137 * AccessibleAction_doAction:
138 * @obj: a pointer to the #AccessibleAction to query.
139 * @i: an integer specifying which action to invoke.
141 * Invoke the action indicated by #index.
143 * Returns: #TRUE if the action is successfully invoked, otherwise #FALSE.
146 AccessibleAction_doAction (AccessibleAction *obj,
151 cspi_return_val_if_fail (obj != NULL, FALSE);
153 retval = (SPIBoolean)
154 Accessibility_Action_doAction (CSPI_OBJREF (obj),
158 cspi_return_val_if_ev ("doAction", FALSE);