2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMECANVASMM_PIXBUF_H
4 #define _LIBGNOMECANVASMM_PIXBUF_H
14 * Copyright (C) 2002 The libgnomecanvasmm Development Team
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Library General Public
18 * License as published by the Free Software Foundation; either
19 * version 2 of the License, or (at your option) any later version.
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Library General Public License for more details.
26 * You should have received a copy of the GNU Library General Public
27 * License along with this library; if not, write to the Free
28 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 #include <gdkmm/pixbuf.h>
32 #include <gtkmm/enums.h>
33 #include <libgnomecanvasmm/item.h>
34 #include <libgnomecanvas/gnome-canvas-pixbuf.h>
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 typedef struct _GnomeCanvasPixbuf GnomeCanvasPixbuf;
39 typedef struct _GnomeCanvasPixbufClass GnomeCanvasPixbufClass;
40 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
47 { class Pixbuf_Class; } // namespace Canvas
57 class Pixbuf : public Item
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 typedef Pixbuf CppObjectType;
62 typedef Pixbuf_Class CppClassType;
63 typedef GnomeCanvasPixbuf BaseObjectType;
64 typedef GnomeCanvasPixbufClass BaseClassType;
65 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 friend class Pixbuf_Class;
73 static CppClassType pixbuf_class_;
76 Pixbuf(const Pixbuf&);
77 Pixbuf& operator=(const Pixbuf&);
80 explicit Pixbuf(const Glib::ConstructParams& construct_params);
81 explicit Pixbuf(GnomeCanvasPixbuf* castitem);
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87 static GType get_type() G_GNUC_CONST;
88 static GType get_base_type() G_GNUC_CONST;
91 ///Provides access to the underlying C GtkObject.
92 GnomeCanvasPixbuf* gobj() { return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); }
94 ///Provides access to the underlying C GtkObject.
95 const GnomeCanvasPixbuf* gobj() const { return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); }
99 //C++ methods used to invoke GTK+ virtual functions:
102 //GTK+ Virtual Functions (override these to change behaviour):
104 //Default Signal Handlers::
110 Pixbuf(Group& parent, double x, double y, const Glib::RefPtr<Gdk::Pixbuf>& image);
111 explicit Pixbuf(Group& parent);
115 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
116 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
117 * the value of the property changes.
119 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
123 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
124 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
125 * the value of the property changes.
127 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() const;
131 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
132 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
133 * the value of the property changes.
135 Glib::PropertyProxy<double> property_width() ;
139 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
140 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
141 * the value of the property changes.
143 Glib::PropertyProxy_ReadOnly<double> property_width() const;
147 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
148 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
149 * the value of the property changes.
151 Glib::PropertyProxy<bool> property_width_set() ;
155 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
156 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
157 * the value of the property changes.
159 Glib::PropertyProxy_ReadOnly<bool> property_width_set() const;
163 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
164 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
165 * the value of the property changes.
167 Glib::PropertyProxy<bool> property_width_in_pixels() ;
171 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
172 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
173 * the value of the property changes.
175 Glib::PropertyProxy_ReadOnly<bool> property_width_in_pixels() const;
179 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
180 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
181 * the value of the property changes.
183 Glib::PropertyProxy<double> property_height() ;
187 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
188 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
189 * the value of the property changes.
191 Glib::PropertyProxy_ReadOnly<double> property_height() const;
195 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
196 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
197 * the value of the property changes.
199 Glib::PropertyProxy<bool> property_height_set() ;
203 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
204 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
205 * the value of the property changes.
207 Glib::PropertyProxy_ReadOnly<bool> property_height_set() const;
211 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
212 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
213 * the value of the property changes.
215 Glib::PropertyProxy<bool> property_height_in_pixels() ;
219 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
220 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
221 * the value of the property changes.
223 Glib::PropertyProxy_ReadOnly<bool> property_height_in_pixels() const;
227 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
228 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
229 * the value of the property changes.
231 Glib::PropertyProxy<double> property_x() ;
235 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
236 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
237 * the value of the property changes.
239 Glib::PropertyProxy_ReadOnly<double> property_x() const;
243 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
244 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
245 * the value of the property changes.
247 Glib::PropertyProxy<bool> property_x_in_pixels() ;
251 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
252 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
253 * the value of the property changes.
255 Glib::PropertyProxy_ReadOnly<bool> property_x_in_pixels() const;
259 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
260 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
261 * the value of the property changes.
263 Glib::PropertyProxy<double> property_y() ;
267 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
268 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
269 * the value of the property changes.
271 Glib::PropertyProxy_ReadOnly<double> property_y() const;
275 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
276 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
277 * the value of the property changes.
279 Glib::PropertyProxy<bool> property_y_in_pixels() ;
283 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
284 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
285 * the value of the property changes.
287 Glib::PropertyProxy_ReadOnly<bool> property_y_in_pixels() const;
291 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
292 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
293 * the value of the property changes.
295 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
299 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
300 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
301 * the value of the property changes.
303 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
308 } /* namespace Canvas */
309 } /* namespace Gnome */
313 /** @relates Gnome::Canvas::Pixbuf
314 * @param object The C instance
315 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
316 * @result A C++ instance that wraps this C instance.
318 Gnome::Canvas::Pixbuf* wrap(GnomeCanvasPixbuf* object, bool take_copy = false);
320 #endif /* _LIBGNOMECANVASMM_PIXBUF_H */