2 * AccessibleSelection_ref:
3 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
5 * Increment the reference count for an #AccessibleSelection object.
7 * Returns: (no return code implemented yet).
11 AccessibleSelection_ref (AccessibleSelection *obj)
13 Accessibility_Selection_ref (*obj, &ev);
19 * AccessibleSelection_unref:
20 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
22 * Decrement the reference count for an #Accessible object.
24 * Returns: (no return code implemented yet).
28 AccessibleSelection_unref (AccessibleSelection *obj)
30 Accessibility_Selection_unref (*obj, &ev);
37 * AccessibleSelection_getNSelectedChildren:
38 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
40 * Get the number of children of an #AccessibleSelection implementor which are
43 * Returns: a #long indicating the number of #Accessible children
44 * of the #AccessibleSelection implementor which are currently selected.
48 AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj)
51 Accessibility_Selection__get_nSelectedChildren (*obj, &ev);
56 * AccessibleSelection_getSelectedChild:
57 * @obj: a pointer to the #AccessibleSelection on which to operate.
58 * @selectedChildIndex: a #long indicating which of the selected
59 * children is specified.
61 * Get the i-th selected #Accessible child of an #AccessibleSelection.
62 * Note that @childIndex refers to the index in the list of 'selected'
63 * children and generally differs from that used in
64 * #Accessible_getChildAtIndex() or returned by
65 * #Accessible_getIndexInParent(). @selectedChildIndex must lie between 0
66 * and #AccessibleSelection_getNSelectedChildren()-1, inclusive.
68 * Returns: a pointer to a selected #Accessible child object,
69 * specified by @childIndex.
73 AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
74 long int selectedChildIndex)
76 Accessibility_Accessible child =
77 Accessibility_Selection_getSelectedChild (*obj,
78 (CORBA_long) selectedChildIndex, &ev);
79 spi_warn_ev (&ev, "getSelectedChild");
81 return (Accessible *) ((CORBA_Object_is_nil (child, &ev)) ? NULL : Obj_Add (child));
85 * AccessibleSelection_selectChild:
86 * @obj: a pointer to the #AccessibleSelection on which to operate.
87 * @childIndex: a #long indicating which child of the #Accessible
90 * Add a child to the selected children list of an #AccessibleSelection.
91 * For #AccessibleSelection implementors that only allow
92 * single selections, this may replace the (single) current
95 * Returns: #TRUE if the child was successfully selected, #FALSE otherwise.
99 AccessibleSelection_selectChild (AccessibleSelection *obj,
103 Accessibility_Selection_selectChild (*obj,
104 (CORBA_long) childIndex, &ev);
109 * AccessibleSelection_deselectSelectedChild:
110 * @obj: a pointer to the #AccessibleSelection on which to operate.
111 * @selectedChildIndex: a #long indicating which of the selected children
112 * of the #Accessible is to be selected.
114 * Remove a child to the selected children list of an #AccessibleSelection.
115 * Note that @childIndex is the index in the selected-children list,
116 * not the index in the parent container. @selectedChildIndex in this
117 * method, and @childIndex in #AccessibleSelection_selectChild
120 * Returns: #TRUE if the child was successfully deselected, #FALSE otherwise.
124 AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
125 long int selectedChildIndex)
127 Accessibility_Selection_deselectSelectedChild (*obj,
128 (CORBA_long) selectedChildIndex, &ev);
134 * AccessibleSelection_isChildSelected:
135 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
136 * @childIndex: an index into the #AccessibleSelection's list of children.
138 * Determine whether a particular child of an #AccessibleSelection implementor
139 * is currently selected. Note that @childIndex is the index into the
140 * standard #Accessible container's list of children.
142 * Returns: #TRUE if the specified child is currently selected,
147 AccessibleSelection_isChildSelected (AccessibleSelection *obj,
151 Accessibility_Selection_isChildSelected (*obj,
152 (CORBA_long) childIndex, &ev);
158 * AccessibleSelection_selectAll:
159 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
161 * Attempt to select all of the children of an #AccessibleSelection implementor.
162 * Not all #AccessibleSelection implementors support this operation.
164 * Returns: #TRUE if successful, #FALSE otherwise.
168 AccessibleSelection_selectAll (AccessibleSelection *obj)
170 Accessibility_Selection_selectAll (*obj, &ev);
171 return TRUE; /* TODO: change the bonobo method to return boolean */
177 * AccessibleSelection_clearSelection:
178 * @obj: a pointer to the #AccessibleSelection implementor on which to operate.
180 * Clear the current selection, removing all selected children from the
181 * specified #AccessibleSelection implementor's selection list.
185 AccessibleSelection_clearSelection (AccessibleSelection *obj)
187 Accessibility_Selection_clearSelection (*obj, &ev);