1 #include <cspi/spi-private.h>
5 * @obj: a pointer to the #AccessibleImage implementor on which to operate.
7 * Increment the reference count for an #AccessibleImage object.
10 AccessibleImage_ref (AccessibleImage *obj)
12 cspi_object_ref (obj);
16 * AccessibleImage_unref:
17 * @obj: a pointer to the #AccessibleImage implementor on which to operate.
19 * Decrement the reference count for an #AccessibleImage object.
22 AccessibleImage_unref (AccessibleImage *obj)
24 cspi_object_unref (obj);
28 * AccessibleImage_getImageDescription:
29 * @obj: a pointer to the #AccessibleImage implementor on which to operate.
31 * Get the description of the image displayed in an #AccessibleImage object.
33 * Returns: a UTF-8 string describing the image.
36 AccessibleImage_getImageDescription (AccessibleImage *obj)
40 cspi_return_val_if_fail (obj != NULL, NULL);
43 Accessibility_Image__get_imageDescription (CSPI_OBJREF (obj),
46 cspi_return_val_if_ev ("getImageDescription", NULL);
52 * AccessibleImage_getImageSize:
53 * @obj: a pointer to the #AccessibleImage to query.
54 * @width: a pointer to a #long into which the x extents (width) will be returned.
55 * @height: a pointer to a #long into which the y extents (height) will be returned.
57 * Get the size of the image displayed in a specified #AccessibleImage object.
60 AccessibleImage_getImageSize (AccessibleImage *obj,
66 cspi_return_if_fail (obj != NULL);
68 Accessibility_Image_getImageSize (CSPI_OBJREF (obj),
71 if (!cspi_check_ev ("getImageSize"))
84 * AccessibleImage_getImagePosition:
85 * @obj: a pointer to the #AccessibleImage implementor to query.
86 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
87 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
88 * @ctype: the desired coordinate system into which to return the results,
89 * (e.g. SPI_COORD_TYPE_WINDOW, SPI_COORD_TYPE_SCREEN).
91 * Get the minimum x and y coordinates of the image displayed in a
92 * specified #AccessibleImage implementor.
95 AccessibleImage_getImagePosition (AccessibleImage *obj,
98 AccessibleCoordType ctype)
102 cspi_return_if_fail (obj != NULL);
104 Accessibility_Image_getImagePosition (CSPI_OBJREF (obj),
105 &cx, &cy, ctype, cspi_ev ());
107 if (!cspi_check_ev ("getImagePosition"))
120 * AccessibleImage_getImageExtents:
121 * @obj: a pointer to the #AccessibleImage implementor to query.
122 * @x: a pointer to a #long into which the minimum x coordinate will be returned.
123 * @y: a pointer to a #long into which the minimum y coordinate will be returned.
124 * @width: a pointer to a #long into which the image x extent will be returned.
125 * @height: a pointer to a #long into which the image y extent will be returned.
126 * @ctype: the desired coordinate system into which to return the results,
127 * (e.g. SPI_COORD_TYPE_WINDOW, SPI_COORD_TYPE_SCREEN).
129 * Get the bounding box of the image displayed in a
130 * specified #AccessibleImage implementor.
133 AccessibleImage_getImageExtents (AccessibleImage *obj,
138 AccessibleCoordType ctype)
140 Accessibility_BoundingBox bbox;
142 cspi_return_if_fail (obj != NULL);
144 bbox = Accessibility_Image_getImageExtents (CSPI_OBJREF (obj),
148 if (!cspi_check_ev ("getImageExtents"))
150 *x = *y = *width = *height = 0;
157 *height = bbox.height;