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