1 #include <cspi/spi-private.h>
4 * AccessibleSelection_ref:
5 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
7 * Increment the reference count for an #AccessibleSelection object.
9 * Returns: (no return code implemented yet).
13 AccessibleSelection_ref (AccessibleSelection *obj)
15 cspi_object_ref (obj);
21 * AccessibleSelection_unref:
22 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
24 * Decrement the reference count for an #Accessible object.
26 * Returns: (no return code implemented yet).
30 AccessibleSelection_unref (AccessibleSelection *obj)
32 cspi_object_unref (obj);
39 * AccessibleSelection_getNSelectedChildren:
40 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
42 * Get the number of children of an #AccessibleSelection implementor which are
45 * Returns: a #long indicating the number of #Accessible children
46 * of the #AccessibleSelection implementor which are currently selected.
50 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj)
53 Accessibility_Selection__get_nSelectedChildren (CSPI_OBJREF (obj), cspi_ev ());
58 * AccessibleSelection_getSelectedChild:
59 * @obj: a pointer to the #AccessibleSelection on which to operate.
60 * @selectedChildIndex: a #long indicating which of the selected
61 * children is specified.
63 * Get the i-th selected #Accessible child of an #AccessibleSelection.
64 * Note that @childIndex refers to the index in the list of 'selected'
65 * children and generally differs from that used in
66 * #Accessible_getChildAtIndex() or returned by
67 * #Accessible_getIndexInParent(). @selectedChildIndex must lie between 0
68 * and #AccessibleSelection_getNSelectedChildren()-1, inclusive.
70 * Returns: a pointer to a selected #Accessible child object,
71 * specified by @childIndex.
75 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
76 long int selectedChildIndex)
78 Accessibility_Accessible child =
79 Accessibility_Selection_getSelectedChild (CSPI_OBJREF (obj),
80 (CORBA_long) selectedChildIndex, cspi_ev ());
81 cspi_warn_ev (cspi_ev (), "getSelectedChild");
83 return (Accessible *) cspi_object_add (child);
87 * AccessibleSelection_selectChild:
88 * @obj: a pointer to the #AccessibleSelection on which to operate.
89 * @childIndex: a #long indicating which child of the #Accessible
92 * Add a child to the selected children list of an #AccessibleSelection.
93 * For #AccessibleSelection implementors that only allow
94 * single selections, this may replace the (single) current
97 * Returns: #TRUE if the child was successfully selected, #FALSE otherwise.
101 AccessibleSelection_selectChild (AccessibleSelection *obj,
105 Accessibility_Selection_selectChild (CSPI_OBJREF (obj),
106 (CORBA_long) childIndex, cspi_ev ());
111 * AccessibleSelection_deselectSelectedChild:
112 * @obj: a pointer to the #AccessibleSelection on which to operate.
113 * @selectedChildIndex: a #long indicating which of the selected children
114 * of the #Accessible is to be selected.
116 * Remove a child to the selected children list of an #AccessibleSelection.
117 * Note that @childIndex is the index in the selected-children list,
118 * not the index in the parent container. @selectedChildIndex in this
119 * method, and @childIndex in #AccessibleSelection_selectChild
122 * Returns: #TRUE if the child was successfully deselected, #FALSE otherwise.
126 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
127 long int selectedChildIndex)
129 return Accessibility_Selection_deselectSelectedChild (
130 CSPI_OBJREF (obj), (CORBA_long) selectedChildIndex, cspi_ev ());
136 * AccessibleSelection_isChildSelected:
137 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
138 * @childIndex: an index into the #AccessibleSelection's list of children.
140 * Determine whether a particular child of an #AccessibleSelection implementor
141 * is currently selected. Note that @childIndex is the index into the
142 * standard #Accessible container's list of children.
144 * Returns: #TRUE if the specified child is currently selected,
149 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
153 Accessibility_Selection_isChildSelected (CSPI_OBJREF (obj),
154 (CORBA_long) childIndex, cspi_ev ());
160 * AccessibleSelection_selectAll:
161 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
163 * Attempt to select all of the children of an #AccessibleSelection implementor.
164 * Not all #AccessibleSelection implementors support this operation.
166 * Returns: #TRUE if successful, #FALSE otherwise.
170 AccessibleSelection_selectAll (AccessibleSelection *obj)
172 Accessibility_Selection_selectAll (CSPI_OBJREF (obj), cspi_ev ());
173 return TRUE; /* TODO: change the bonobo method to return boolean */
179 * AccessibleSelection_clearSelection:
180 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
182 * Clear the current selection, removing all selected children from the
183 * specified #AccessibleSelection implementor's selection list.
187 AccessibleSelection_clearSelection (AccessibleSelection *obj)
189 Accessibility_Selection_clearSelection (CSPI_OBJREF (obj), cspi_ev ());