4 * Accessible function prototypes
10 * @obj: a pointer to the #Accessible object on which to operate.
12 * Increment the reference count for an #Accessible object.
14 * Returns: (no return code implemented yet).
18 Accessible_ref (Accessible *obj)
20 Accessibility_Accessible_ref (*obj, &ev);
27 * @obj: a pointer to the #Accessible object on which to operate.
29 * Decrement the reference count for an #Accessible object.
31 * Returns: (no return code implemented yet).
35 Accessible_unref (Accessible *obj)
37 Accessibility_Accessible_unref (*obj, &ev);
43 * @obj: a pointer to the #Accessible object on which to operate.
45 * Get the name of an #Accessible object.
47 * Returns: a UTF-8 string indicating the name of the #Accessible object.
51 Accessible_getName (Accessible *obj)
53 return Accessibility_Accessible__get_name (*obj, &ev);
57 * Accessible_getDescription:
58 * @obj: a pointer to the #Accessible object on which to operate.
60 * Get the description of an #Accessible object.
62 * Returns: a UTF-8 string describing the #Accessible object.
66 Accessible_getDescription (Accessible *obj)
68 return Accessibility_Accessible__get_description (*obj, &ev);
72 * Accessible_getParent:
73 * @obj: a pointer to the #Accessible object to query.
75 * Get an #Accessible object's parent container.
77 * Returns: a pointer to the #Accessible object which contains the given
78 * #Accessible instance, or NULL if the @obj has no parent container.
82 Accessible_getParent (Accessible *obj)
84 return Obj_Add (Accessibility_Accessible__get_parent (*obj, &ev));
88 * Accessible_getChildCount:
90 * @obj: a pointer to the #Accessible object on which to operate.
92 * Get the number of children contained by an #Accessible object.
94 * Returns: a #long indicating the number of #Accessible children
95 * contained by an #Accessible object.
99 Accessible_getChildCount (Accessible *obj)
101 return Accessibility_Accessible__get_childCount (*obj, &ev);
105 * Accessible_getChildAtIndex:
107 * @obj: a pointer to the #Accessible object on which to operate.
108 * @childIndex: a #long indicating which child is specified.
110 * Get the #Accessible child of an #Accessible object at a given index.
112 * Returns: a pointer to the #Accessible child object at index
117 Accessible_getChildAtIndex (Accessible *obj,
120 return Obj_Add (Accessibility_Accessible_getChildAtIndex (*obj, childIndex, &ev));
124 * Accessible_getIndexInParent:
126 * @obj: a pointer to the #Accessible object on which to operate.
128 * Get the index of an #Accessible object in its containing #Accessible.
130 * Returns: a #long indicating the index of the #Accessible object
131 * in its parent (i.e. containing) #Accessible instance,
132 * or -1 if @obj has no containing parent.
136 Accessible_getIndexInParent (Accessible *obj)
138 return Accessibility_Accessible_getIndexInParent (*obj, &ev);
142 * Accessible_getRelationSet:
144 * Not Yet Implemented.
146 * Returns: a pointer to an array of #AccessibleRelations.
149 AccessibleRelation **
150 Accessible_getRelationSet (Accessible *obj)
156 * Accessible_getRole:
157 * @obj: a pointer to the #Accessible object on which to operate.
159 * Get the UI role of an #Accessible object.
161 * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
165 Accessible_getRole (Accessible *obj)
171 * Accessible_getStateSet:
173 * Not Yet Implemented.
175 * Returns: a pointer to an #AccessibleStateSet representing the object's current state.
178 Accessible_getStateSet (Accessible *obj)
183 /* Interface query methods */
186 * Accessible_isAction:
187 * @obj: a pointer to the #Accessible instance to query.
189 * Query whether the specified #Accessible implements #AccessibleAction.
190 * Not Yet Implemented.
192 * Returns: #TRUE if @obj implements the #AccessibleAction interface,
196 Accessible_isAction (Accessible *obj)
202 * Accessible_isComponent:
203 * @obj: a pointer to the #Accessible instance to query.
205 * Query whether the specified #Accessible implements #AccessibleComponent.
207 * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
211 Accessible_isComponent (Accessible *obj)
213 Bonobo_Unknown iface =
214 Accessibility_Accessible_queryInterface (*obj,
215 "IDL:Accessibility/Component:1.0",
217 return (iface != NULL) ? TRUE : FALSE;
221 * Accessible_isEditableText:
222 * @obj: a pointer to the #Accessible instance to query.
224 * Query whether the specified #Accessible implements #AccessibleEditableText.
225 * Not Yet Implemented.
227 * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
231 Accessible_isEditableText (Accessible *obj)
237 * Accessible_isHypertext:
238 * @obj: a pointer to the #Accessible instance to query.
240 * Query whether the specified #Accessible implements #AccessibleHypertext.
241 * Not Yet Implemented.
243 * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
247 Accessible_isHypertext (Accessible *obj)
253 * Accessible_isImage:
254 * @obj: a pointer to the #Accessible instance to query.
256 * Query whether the specified #Accessible implements #AccessibleImage.
257 * Not Yet Implemented.
259 * Returns: #TRUE if @obj implements the #AccessibleImage interface,
263 Accessible_isImage (Accessible *obj)
269 * Accessible_isSelection:
270 * @obj: a pointer to the #Accessible instance to query.
272 * Query whether the specified #Accessible implements #AccessibleSelection.
273 * Not Yet Implemented.
275 * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
279 Accessible_isSelection (Accessible *obj)
285 * Accessible_isTable:
286 * @obj: a pointer to the #Accessible instance to query.
288 * Query whether the specified #Accessible implements #AccessibleTable.
289 * Not Yet Implemented.
291 * Returns: #TRUE if @obj implements the #AccessibleTable interface,
295 Accessible_isTable (Accessible *obj)
302 * @obj: a pointer to the #Accessible instance to query.
304 * Query whether the specified #Accessible implements #AccessibleText.
305 * Not Yet Implemented.
307 * Returns: #TRUE if @obj implements the #AccessibleText interface,
311 Accessible_isText (Accessible *obj)
317 * Accessible_getAction:
319 * Not Yet Implemented.
323 Accessible_getAction (Accessible *obj)
329 * Accessible_getComponent:
330 * @obj: a pointer to the #Accessible instance to query.
332 * Get the #AccessibleComponent interface for an #Accessible.
334 * Returns: a pointer to an #AccessibleComponent interface instance, or
335 * NULL if @obj does not implement #AccessibleComponent.
337 AccessibleComponent *
338 Accessible_getComponent (Accessible *obj)
340 AccessibleComponent iface =
341 Accessibility_Accessible_queryInterface (*obj,
342 "IDL:Accessibility/Component:1.0",
344 return Obj_Add (iface);
348 * Accessible_queryInterface:
349 * @obj: a pointer to the #Accessible instance to query.
350 * @interface_name: a UTF-8 character string specifiying the requested interface.
352 * Query an #Accessible object to for a named interface.
354 * Returns: an instance of the named interface object, if it is implemented
355 * by @obj, or NULL otherwise.
359 Accessible_queryInterface (Accessible *obj, char *interface_name)
361 GenericInterface iface;
362 iface = Accessibility_Accessible_queryInterface (*obj,
365 return (iface != NULL) ? Obj_Add (iface) : NULL;