Atk.Image¶
- Implementations:
Methods¶
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Atk.Image¶
- Bases:
- Structure:
The ATK Interface implemented by components which expose image or pixmap content on-screen.
Atk.Image
should be implemented byAtk.Object
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 implementAtk.Image
.Atk.Image
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.- get_image_description()[source]¶
- Returns:
a string representing the image description
- Return type:
Get a textual description of this image.
- get_image_locale()[source]¶
- Returns:
a string corresponding to the POSIX
LC_MESSAGES
locale used by the image description, orNone
if the image does not specify a locale.- Return type:
Retrieves the locale identifier associated to the
Atk.Image
.New in version 1.12.
- get_image_position(coord_type)[source]¶
- Parameters:
coord_type (
Atk.CoordType
) – specifies whether the coordinates are relative to the screen or to the components top level window- Returns:
- Return type:
Gets the position of the image in the form of a point specifying the images top-left corner.
If the position can not be obtained (e.g. missing support), x and y are set to -1.
- get_image_size()[source]¶
- Returns:
- width:
filled with the image width, or -1 if the value cannot be obtained.
- height:
filled with the image height, or -1 if the value cannot be obtained.
- Return type:
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 (for instance, if the object is not onscreen).
If the size can not be obtained (e.g. missing support), x and y are set to -1.
- set_image_description(description)[source]¶
- Parameters:
description (
str
) – a string description to set for self- Returns:
- Return type:
Sets the textual description for this image.
- do_get_image_description() virtual¶
- Returns:
a string representing the image description
- Return type:
Get a textual description of this image.
- do_get_image_locale() virtual¶
- Returns:
a string corresponding to the POSIX
LC_MESSAGES
locale used by the image description, orNone
if the image does not specify a locale.- Return type:
Retrieves the locale identifier associated to the
Atk.Image
.New in version 1.12.
- do_get_image_position(coord_type) virtual¶
- Parameters:
coord_type (
Atk.CoordType
) – specifies whether the coordinates are relative to the screen or to the components top level window- Returns:
- Return type:
Gets the position of the image in the form of a point specifying the images top-left corner.
If the position can not be obtained (e.g. missing support), x and y are set to -1.
- do_get_image_size() virtual¶
- Returns:
- width:
filled with the image width, or -1 if the value cannot be obtained.
- height:
filled with the image height, or -1 if the value cannot be obtained.
- Return type:
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 (for instance, if the object is not onscreen).
If the size can not be obtained (e.g. missing support), x and y are set to -1.