Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Atk::Image Class Reference

An AtkImage C++ wrapper class. More...

#include <xfc/atk/image.hh>

Inheritance diagram for Xfc::Atk::Image:

Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::Trackable List of all members.

Public Member Functions

Accessors
Methods

Protected Member Functions

Constructors

Detailed Description

An AtkImage C++ wrapper class.

Image should be implemented by Atk::Object subtypes on behalf of components which display image or pixmap information on-screen, 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 Image.

Image primarily provides two types of information: coordinate information (useful for screen review mode of screen readers, and for use by on-screen magnifiers), and descriptive information. The descriptive information is provided for alternative, text-only presentation of the most significant information present in the image.


Member Function Documentation

String Xfc::Atk::Image::get_image_description  )  const
 

Get a textual description of the image.

Returns:
A string representing the image description.

void Xfc::Atk::Image::get_image_position int *  x,
int *  y,
CoordType  coord_type
const
 

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

Parameters:
x The address of an int to put the x coordinate position, or null.
y The address of an int to put the y coordinate position, or null.
coord_type Specifies whether the coordinates are relative to the screen or to the components top level window.
The values of x and y are returned as -1 if the values cannot be obtained.

void Xfc::Atk::Image::get_image_size int *  height,
int *  width
const
 

Get the width and height in pixels for the specified image.

Parameters:
width The address of an int filled with the image width, or null.
height The address of an int filled with the image height, or null.
The values of width and height are returned as -1 if the values cannot be obtained.

bool Xfc::Atk::Image::set_image_description const String description  ) 
 

Sets the textual description for the image.

Parameters:
description A string description to set for image.
Returns:
true if the description is set, false otherwise.


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3