![]() |
![]() |
This 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 AtkImage.
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.
Public Member Functions | |
virtual | ~Image () |
AtkImage* | gobj () |
Provides access to the underlying C GObject. | |
const AtkImage* | gobj () const |
Provides access to the underlying C GObject. | |
bool | set_image_description (const Glib::ustring& description) |
Sets the textual description for this image. | |
Glib::ustring | get_image_description () const |
Get a textual description of this image. | |
void | get_image_size (int& width, int& height) const |
Get the width and height in pixels for the specified image. | |
void | 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. | |
Static Public Member Functions | |
void | add_interface (GType gtype_implementer) |
Protected Member Functions | |
virtual bool | set_image_description_vfunc (const Glib::ustring& description) |
virtual const char* | get_image_description_vfunc () const |
virtual void | get_image_position_vfunc (int& x, int& y, CoordType coord_type) const |
virtual void | get_image_size_vfunc (int& width, int& height) const |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Atk::Image> | wrap (AtkImage* object, bool take_copy=false) |
|
|
|
|
|
Get a textual description of this image.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface. Reimplemented in Atk::NoOpObject. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface. Reimplemented in Atk::NoOpObject. |
|
Sets the textual description for this image.
|
|
|
|
|