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.
10 AccessibleAction_ref (AccessibleAction *obj)
12 cspi_object_ref (obj);
16 * AccessibleAction_unref:
17 * @obj: a pointer to the #AccessibleAction on which to operate.
19 * Decrement the reference count for an #AccessibleAction.
22 AccessibleAction_unref (AccessibleAction *obj)
24 cspi_object_unref (obj);
28 * AccessibleAction_getNActions:
29 * @obj: a pointer to the #AccessibleAction to query.
31 * Get the number of actions invokable on an #AccessibleAction implementor.
33 * Returns: a #long integer indicatin the number of invokable actions.
36 AccessibleAction_getNActions (AccessibleAction *obj)
40 cspi_return_val_if_fail (obj != NULL, -1);
43 Accessibility_Action__get_nActions (CSPI_OBJREF (obj), cspi_ev ());
45 cspi_return_val_if_ev ("getNActions", -1);
51 * AccessibleAction_getDescription:
52 * @obj: a pointer to the #AccessibleAction implementor to query.
53 * @i: a long integer indicating which action to query.
55 * Get the description of '@i-th' action invokable on an
56 * object implementing #AccessibleAction.
58 * Returns: a UTF-8 string describing the '@i-th' invokable action.
61 AccessibleAction_getDescription (AccessibleAction *obj,
65 cspi_return_val_if_fail (obj != NULL, NULL);
68 Accessibility_Action_getDescription (CSPI_OBJREF (obj),
72 cspi_return_val_if_ev ("getDescription", NULL);
78 * AccessibleAction_getKeyBinding:
79 * @obj: a pointer to the #AccessibleAction implementor to query.
80 * @i: a long integer indicating which action to query.
82 * Get the keybindings for the @i-th action invokable on an
83 * object implementing #AccessibleAction, if any are defined.
85 * Returns: a UTF-8 string which can be parsed to determine the @i-th
86 * invokable action's keybindings.
89 AccessibleAction_getKeyBinding (AccessibleAction *obj,
94 cspi_return_val_if_fail (obj != NULL, NULL);
97 Accessibility_Action_getKeyBinding (CSPI_OBJREF (obj),
101 cspi_return_val_if_ev ("getKeyBinding", NULL);
107 * AccessibleAction_getName:
108 * @obj: a pointer to the #AccessibleAction implementor to query.
109 * @i: a long integer indicating which action to query.
111 * Get the name of the '@i-th' action invokable on an
112 * object implementing #AccessibleAction.
114 * Returns: the 'event type' name of the action, as a UTF-8 string.
117 AccessibleAction_getName (AccessibleAction *obj,
122 cspi_return_val_if_fail (obj != NULL, NULL);
125 Accessibility_Action_getName (CSPI_OBJREF (obj),
129 cspi_return_val_if_ev ("getName", NULL);
135 * AccessibleAction_doAction:
136 * @obj: a pointer to the #AccessibleAction to query.
137 * @i: an integer specifying which action to invoke.
139 * Invoke the action indicated by #index.
141 * Returns: #TRUE if the action is successfully invoked, otherwise #FALSE.
144 AccessibleAction_doAction (AccessibleAction *obj,
149 cspi_return_val_if_fail (obj != NULL, FALSE);
151 retval = (SPIBoolean)
152 Accessibility_Action_doAction (CSPI_OBJREF (obj),
156 cspi_return_val_if_ev ("doAction", FALSE);