2
// Generated by gtkmmproc -- DO NOT MODIFY!
10
/* Copyright (C) 2002 The gtkmm Development Team
12
* This library is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU Library General Public
14
* License as published by the Free Software Foundation; either
15
* version 2 of the License, or (at your option) any later version.
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* Library General Public License for more details.
22
* You should have received a copy of the GNU Library General Public
23
* License along with this library; if not, write to the Free
24
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
#include <atkmm/component.h> /* for Atk::CoordType */
30
#ifndef DOXYGEN_SHOULD_SKIP_THIS
33
typedef struct _AtkImageIface AtkImageIface;
34
typedef struct _AtkImage AtkImage;
36
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
39
#ifndef DOXYGEN_SHOULD_SKIP_THIS
40
typedef struct _AtkImage AtkImage;
41
typedef struct _AtkImageClass AtkImageClass;
42
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
46
{ class Image_Class; } // namespace Atk
50
/** The ATK Interface implemented by components which expose image or pixmap content on-screen.
51
* This should be implemented by Atk::Object subtypes on behalf of components which display image/pixmap information
52
* onscreen, and which provide information (other than just widget borders, etc.) via that image content. For instance,
53
* icons, buttons with icons, toolbar elements, and image viewing panes typically should implement AtkImage.
55
* Atk::Image primarily provides two types of information: coordinate information (useful for screen review mode of
56
* screenreaders, and for use by onscreen magnifiers), and descriptive information. The descriptive information is
57
* provided for alternative, text-only presentation of the most significant information present in the image.
60
class Image : public Glib::Interface
63
#ifndef DOXYGEN_SHOULD_SKIP_THIS
66
typedef Image CppObjectType;
67
typedef Image_Class CppClassType;
68
typedef AtkImage BaseObjectType;
69
typedef AtkImageIface BaseClassType;
72
friend class Image_Class;
73
static CppClassType image_class_;
77
Image& operator=(const Image&);
80
Image(); // you must derive from this class
81
explicit Image(AtkImage* castitem);
83
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
88
static void add_interface(GType gtype_implementer);
90
#ifndef DOXYGEN_SHOULD_SKIP_THIS
91
static GType get_type() G_GNUC_CONST;
92
static GType get_base_type() G_GNUC_CONST;
95
///Provides access to the underlying C GObject.
96
AtkImage* gobj() { return reinterpret_cast<AtkImage*>(gobject_); }
98
///Provides access to the underlying C GObject.
99
const AtkImage* gobj() const { return reinterpret_cast<AtkImage*>(gobject_); }
106
/** Sets the textual description for this image.
107
* @param description A string description to set for @a image .
108
* @return Boolean <tt>true</tt>, or <tt>false</tt> if operation could
111
bool set_image_description(const Glib::ustring& description);
113
/** Get a textual description of this image.
114
* @return A string representing the image description.
116
Glib::ustring get_image_description() const;
119
/** Get the width and height in pixels for the specified image.
120
* The values of @a width and @a height are returned as -1 if the
121
* values cannot be obtained.
122
* @param width Filled with the image width.
123
* @param height Filled with the image height.
125
void get_image_size(int& width, int& height) const;
127
/** Gets the position of the image in the form of a point specifying the
128
* images top-left corner. The values of @a x and @a y are returned as -1
129
* if the values cannot be obtained.
130
* @param x Address of <tt>int</tt> to put x coordinate position.
131
* @param y Address of <tt>int</tt> to put y coordinate position.
132
* @param coord_type Specifies whether the coordinates are relative to the screen
133
* or to the components top level window.
135
void get_image_position(int& x, int& y, CoordType coord_type) const;
138
virtual bool set_image_description_vfunc(const Glib::ustring& description);
139
virtual const char* get_image_description_vfunc() const;
141
virtual void get_image_position_vfunc(int& x, int& y, CoordType coord_type) const;
142
virtual void get_image_size_vfunc(int& width, int& height) const;
148
//C++ methods used to invoke GTK+ virtual functions:
151
//GTK+ Virtual Functions (override these to change behaviour):
153
//Default Signal Handlers::
163
/** @relates Atk::Image
164
* @param object The C instance
165
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
166
* @result A C++ instance that wraps this C instance.
168
Glib::RefPtr<Atk::Image> wrap(AtkImage* object, bool take_copy = false);
172
#endif /* _ATKMM_IMAGE_H */