3 * SpiAccessibleComponent function implementations
8 * SpiAccessibleComponent_ref:
9 * @obj: a pointer to an object implementing #AccessibleComponent on which to operate.
11 * Increment the reference count for an #AccessibleComponent.
13 * Returns: (no return code implemented yet).
17 SpiAccessibleComponent_ref (SpiAccessibleComponent *obj)
19 Accessibility_Component_ref (*obj, &ev);
24 * SpiAccessibleComponent_unref:
25 * @obj: a pointer to the object implementing #AccessibleComponent on which to operate.
27 * Decrement the reference count for an #AccessibleComponent.
29 * Returns: (no return code implemented yet).
33 SpiAccessibleComponent_unref (SpiAccessibleComponent *obj)
35 Accessibility_Component_unref (*obj, &ev);
40 * SpiAccessibleComponent_contains:
41 * @obj: a pointer to the #AccessibleComponent to query.
42 * @x: a #long specifying the x coordinate in question.
43 * @y: a #long specifying the y coordinate in question.
44 * @ctype: the desired coordinate system of the point (@x, @y)
45 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
47 * Query whether a given #AccessibleComponent contains a particular point.
51 SpiAccessibleComponent_contains (SpiAccessibleComponent *obj,
54 SpiAccessibleCoordType ctype)
56 return Accessibility_Component_contains (*obj,
64 * SpiAccessibleComponent_getAccessibleAtPoint:
65 * @obj: a pointer to the #AccessibleComponent to query.
66 * @x: a #long specifying the x coordinate of the point in question.
67 * @y: a #long specifying the y coordinate of the point in question.
68 * @ctype: the coordinate system of the point (@x, @y)
69 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
71 * Get the accessible child at a given coordinate within an #AccessibleComponent.
73 * Returns: a pointer to an #Accessible child of the specified component which
74 * contains the point (@x, @y), or NULL of no child contains the point.
77 SpiAccessibleComponent_getAccessibleAtPoint (SpiAccessibleComponent *obj,
80 SpiAccessibleCoordType ctype)
83 child = Accessibility_Component_getAccessibleAtPoint(*obj,
88 return (child != NULL) ? Obj_Add (child) : NULL;
92 * SpiAccessibleComponent_getExtents:
93 * @obj: a pointer to the #AccessibleComponent to query.
94 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
95 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
96 * @width: a pointer to a #long into which the x extents (width) will be returned.
97 * @height: a pointer to a #long into which the y extents (height) will be returned.
98 * @ctype: the desired coordinate system into which to return the results,
99 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
101 * Get the bounding box of the specified #AccessibleComponent.
105 SpiAccessibleComponent_getExtents (SpiAccessibleComponent *obj,
110 SpiAccessibleCoordType ctype)
112 CORBA_long cx, cy, cw, ch;
113 Accessibility_Component_getExtents (*obj,
120 spi_warn_ev (&ev, "SpiAccessibleComponent_getExtents");
128 * SpiAccessibleComponent_getPosition:
129 * @obj: a pointer to the #AccessibleComponent to query.
130 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
131 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
132 * @ctype: the desired coordinate system into which to return the results,
133 * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
135 * Get the minimum x and y coordinates of the specified #AccessibleComponent.
139 SpiAccessibleComponent_getPosition (SpiAccessibleComponent *obj,
142 SpiAccessibleCoordType ctype)
144 Accessibility_Component_getPosition (*obj,
152 * SpiAccessibleComponent_getSize:
153 * @obj: a pointer to the #AccessibleComponent to query.
154 * @width: a pointer to a #long into which the x extents (width) will be returned.
155 * @height: a pointer to a #long into which the y extents (height) will be returned.
157 * Get the size of the specified #AccessibleComponent.
161 SpiAccessibleComponent_getSize (SpiAccessibleComponent *obj,
165 Accessibility_Component_getSize (*obj,
166 (CORBA_long *) width,
167 (CORBA_long *) height,
171 /* Not Yet Implemented */
173 SpiAccessibleComponent_grabFocus (SpiAccessibleComponent *obj)