atk.Imagethe ATK Interface implemented by components that expose
image or pixmap content on-screen. Synopsisatk.Imagegobject.GInterfaceget_image_descriptionget_image_sizeset_image_descriptiondescriptionget_image_positioncoord_typeDescriptionatk.Image should
be implemented by atk.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 implement
atk.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.Methodsatk.Image.get_image_descriptionget_image_descriptionReturns :a string representing the image
descriptionGet a textual description of this image.atk.Image.get_image_sizeget_image_sizeReturns :a 2-tuple containing the width and height of
the imageGet the width and height in pixels for the specified image. The
width and height are returned as -1 if the values cannot be
obtained.atk.Image.set_image_descriptionset_image_descriptiondescriptiondescription :a string description to set for
imageReturns :True if operation could be
completed.Sets the textual description for this image.atk.Image.get_image_positionget_image_positioncoord_typecoord_type :specifies whether the coordinates are relative
to the screen or to the components top level window - one of the
Returns :a 2-tuple containing the x and y coordinates of
the imageGets 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.