ATK Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct AtkImage; void atk_image_get_image_position (AtkImage *image, gint *x, gint *y, AtkCoordType coord_type); G_CONST_RETURN gchar* atk_image_get_image_description (AtkImage *image); gboolean atk_image_set_image_description (AtkImage *image, const gchar *description); void atk_image_get_image_size (AtkImage *image, gint *width, gint *height); |
AtkImage should be implemented by AtkObject subtypes on behalf of components which display image/pixmap information onscreen, and which provide information (other than just widget borders, etc.) via that image content. For instance, icons, buttons with icons, toolbar elements, and image viewing panes typically should implement AtkImage.
AtkImage primarily provides two types of information: coordinate information (useful for screen review mode of screenreaders, and for use by onscreen magnifiers), and descriptive information. The descriptive information is provided for alternative, text-only presentation of the most significant information present in the image.
void atk_image_get_image_position (AtkImage *image, gint *x, gint *y, AtkCoordType coord_type); |
Gets the position of the image in the form of a point specifying the images top-left corner. The values of x and y are returned as -1 if the values cannot be obtained.
a GObject instance that implements AtkImageIface
address of gint to put x coordinate position
address of gint to put y coordinate position
specifies whether the coordinates are relative to the screen or to the components top level window
G_CONST_RETURN gchar* atk_image_get_image_description (AtkImage *image); |
Get a textual description of this image.
a GObject instance that implements AtkImageIface
a string representing the image description
gboolean atk_image_set_image_description (AtkImage *image, const gchar *description); |
Sets the textual description for this image.
a GObject instance that implements AtkImageIface
a string description to set for image
boolean TRUE, or FALSE if operation could not be completed.
void atk_image_get_image_size (AtkImage *image, gint *width, gint *height); |
Get the width and height in pixels for the specified image. The values of width and height are returned as -1 if the values cannot be obtained.
a GObject instance that implements AtkImageIface
filled with the image width
filled with the image height