[][src]Trait atk::AtkImageExt

pub trait AtkImageExt: 'static {
    fn get_image_description(&self) -> Option<GString>;
fn get_image_locale(&self) -> Option<GString>;
fn get_image_position(&self, coord_type: CoordType) -> (i32, i32);
fn get_image_size(&self) -> (i32, i32);
fn set_image_description(&self, description: &str) -> bool; }

Trait containing all Image methods.

Implementors

Image, NoOpObject

Required methods

fn get_image_description(&self) -> Option<GString>

Get a textual description of this image.

Returns

a string representing the image description

fn get_image_locale(&self) -> Option<GString>

Retrieves the locale identifier associated to the Image.

Returns

a string corresponding to the POSIX LC_MESSAGES locale used by the image description, or None if the image does not specify a locale.

fn get_image_position(&self, coord_type: CoordType) -> (i32, i32)

Gets the position of the image in the form of a point specifying the images top-left corner.

x

address of gint to put x coordinate position; otherwise, -1 if value cannot be obtained.

y

address of gint to put y coordinate position; otherwise, -1 if value cannot be obtained.

coord_type

specifies whether the coordinates are relative to the screen or to the components top level window

fn get_image_size(&self) -> (i32, i32)

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).

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.

fn set_image_description(&self, description: &str) -> bool

Sets the textual description for this image.

description

a string description to set for self

Returns

boolean TRUE, or FALSE if operation could not be completed.

Loading content...

Implementors

impl<O: IsA<Image>> AtkImageExt for O[src]

Loading content...