00001
00002
00003 #ifndef _LIBGNOMECANVASMM_PIXBUF_H
00004 #define _LIBGNOMECANVASMM_PIXBUF_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #include <gdkmm/pixbuf.h>
00033 #include <gtkmm/enums.h>
00034 #include <libgnomecanvasmm/item.h>
00035 #include <libgnomecanvas/gnome-canvas-pixbuf.h>
00036
00037
00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00039 typedef struct _GnomeCanvasPixbuf GnomeCanvasPixbuf;
00040 typedef struct _GnomeCanvasPixbufClass GnomeCanvasPixbufClass;
00041 #endif
00042
00043
00044 namespace Gnome
00045 {
00046
00047 namespace Canvas
00048 { class Pixbuf_Class; }
00049
00050 }
00051 namespace Gnome
00052 {
00053
00054 namespace Canvas
00055 {
00056
00057
00058 class Pixbuf : public Item
00059 {
00060 public:
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062 typedef Pixbuf CppObjectType;
00063 typedef Pixbuf_Class CppClassType;
00064 typedef GnomeCanvasPixbuf BaseObjectType;
00065 typedef GnomeCanvasPixbufClass BaseClassType;
00066 #endif
00067
00068 virtual ~Pixbuf();
00069
00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00071
00072 private:
00073 friend class Pixbuf_Class;
00074 static CppClassType pixbuf_class_;
00075
00076
00077 Pixbuf(const Pixbuf&);
00078 Pixbuf& operator=(const Pixbuf&);
00079
00080 protected:
00081 explicit Pixbuf(const Glib::ConstructParams& construct_params);
00082 explicit Pixbuf(GnomeCanvasPixbuf* castitem);
00083
00084 #endif
00085
00086 public:
00087 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00088 static GType get_type() G_GNUC_CONST;
00089 static GType get_base_type() G_GNUC_CONST;
00090 #endif
00091
00093 GnomeCanvasPixbuf* gobj() { return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); }
00094
00096 const GnomeCanvasPixbuf* gobj() const { return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); }
00097
00098
00099 public:
00100
00101
00102 protected:
00103
00104
00105
00106
00107
00108 private:
00109
00110 public:
00111 Pixbuf(Group& parent, double x, double y, const Glib::RefPtr<Gdk::Pixbuf>& image);
00112 explicit Pixbuf(Group& parent);
00113
00120 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
00121
00128 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() const;
00129
00136 Glib::PropertyProxy<double> property_width() ;
00137
00144 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00145
00152 Glib::PropertyProxy<bool> property_width_set() ;
00153
00160 Glib::PropertyProxy_ReadOnly<bool> property_width_set() const;
00161
00168 Glib::PropertyProxy<bool> property_width_in_pixels() ;
00169
00176 Glib::PropertyProxy_ReadOnly<bool> property_width_in_pixels() const;
00177
00184 Glib::PropertyProxy<double> property_height() ;
00185
00192 Glib::PropertyProxy_ReadOnly<double> property_height() const;
00193
00200 Glib::PropertyProxy<bool> property_height_set() ;
00201
00208 Glib::PropertyProxy_ReadOnly<bool> property_height_set() const;
00209
00216 Glib::PropertyProxy<bool> property_height_in_pixels() ;
00217
00224 Glib::PropertyProxy_ReadOnly<bool> property_height_in_pixels() const;
00225
00232 Glib::PropertyProxy<double> property_x() ;
00233
00240 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00241
00248 Glib::PropertyProxy<bool> property_x_in_pixels() ;
00249
00256 Glib::PropertyProxy_ReadOnly<bool> property_x_in_pixels() const;
00257
00264 Glib::PropertyProxy<double> property_y() ;
00265
00272 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00273
00280 Glib::PropertyProxy<bool> property_y_in_pixels() ;
00281
00288 Glib::PropertyProxy_ReadOnly<bool> property_y_in_pixels() const;
00289
00296 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00297
00304 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00305
00306
00307 };
00308
00309 }
00310 }
00311
00312
00313 namespace Glib
00314 {
00320 Gnome::Canvas::Pixbuf* wrap(GnomeCanvasPixbuf* object, bool take_copy = false);
00321 }
00322
00323
00324 #endif
00325