00001
00002
00003 #ifndef _GOOCANVASMM_IMAGE_H
00004 #define _GOOCANVASMM_IMAGE_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 #include <gdkmm/pixbuf.h>
00028
00029 #include <goocanvasmm/itemsimple.h>
00030
00031
00032 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00033 typedef struct _GooCanvasImage GooCanvasImage;
00034 typedef struct _GooCanvasImageClass GooCanvasImageClass;
00035 #endif
00036
00037
00038 namespace Goocanvas
00039 { class Image_Class; }
00040 namespace Goocanvas
00041 {
00042
00043
00044 class Image : public Goocanvas::ItemSimple
00045 {
00046
00047 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00048
00049 public:
00050 typedef Image CppObjectType;
00051 typedef Image_Class CppClassType;
00052 typedef GooCanvasImage BaseObjectType;
00053 typedef GooCanvasImageClass BaseClassType;
00054
00055 private: friend class Image_Class;
00056 static CppClassType image_class_;
00057
00058 private:
00059
00060 Image(const Image&);
00061 Image& operator=(const Image&);
00062
00063 protected:
00064 explicit Image(const Glib::ConstructParams& construct_params);
00065 explicit Image(GooCanvasImage* castitem);
00066
00067 #endif
00068
00069 public:
00070 virtual ~Image();
00071
00072 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00073 static GType get_type() G_GNUC_CONST;
00074 static GType get_base_type() G_GNUC_CONST;
00075 #endif
00076
00078 GooCanvasImage* gobj() { return reinterpret_cast<GooCanvasImage*>(gobject_); }
00079
00081 const GooCanvasImage* gobj() const { return reinterpret_cast<GooCanvasImage*>(gobject_); }
00082
00084 GooCanvasImage* gobj_copy();
00085
00086 private:
00087
00088 protected:
00089 explicit Image(double x = 0.0, double y = 0.0);
00090 explicit Image(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf, double x = 0.0, double y = 0.0);
00091
00092
00093 public:
00094
00095
00096 static Glib::RefPtr<Image> create(double x = 0.0, double y = 0.0);
00097
00098
00099 static Glib::RefPtr<Image> create(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf, double x = 0.0, double y = 0.0);
00100
00101
00102 #ifdef GLIBMM_PROPERTIES_ENABLED
00103
00109 Glib::PropertyProxy<double> property_height() ;
00110 #endif //#GLIBMM_PROPERTIES_ENABLED
00111
00112 #ifdef GLIBMM_PROPERTIES_ENABLED
00113
00119 Glib::PropertyProxy_ReadOnly<double> property_height() const;
00120 #endif //#GLIBMM_PROPERTIES_ENABLED
00121
00122 #ifdef GLIBMM_PROPERTIES_ENABLED
00123
00129 Glib::PropertyProxy< Cairo::RefPtr<Cairo::Pattern> > property_pattern() ;
00130 #endif //#GLIBMM_PROPERTIES_ENABLED
00131
00132 #ifdef GLIBMM_PROPERTIES_ENABLED
00133
00139 Glib::PropertyProxy_ReadOnly< Cairo::RefPtr<Cairo::Pattern> > property_pattern() const;
00140 #endif //#GLIBMM_PROPERTIES_ENABLED
00141
00142 #ifdef GLIBMM_PROPERTIES_ENABLED
00143
00149 Glib::PropertyProxy_WriteOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
00150 #endif //#GLIBMM_PROPERTIES_ENABLED
00151
00152
00153 #ifdef GLIBMM_PROPERTIES_ENABLED
00154
00160 Glib::PropertyProxy<double> property_width() ;
00161 #endif //#GLIBMM_PROPERTIES_ENABLED
00162
00163 #ifdef GLIBMM_PROPERTIES_ENABLED
00164
00170 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00171 #endif //#GLIBMM_PROPERTIES_ENABLED
00172
00173 #ifdef GLIBMM_PROPERTIES_ENABLED
00174
00180 Glib::PropertyProxy<double> property_x() ;
00181 #endif //#GLIBMM_PROPERTIES_ENABLED
00182
00183 #ifdef GLIBMM_PROPERTIES_ENABLED
00184
00190 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00191 #endif //#GLIBMM_PROPERTIES_ENABLED
00192
00193 #ifdef GLIBMM_PROPERTIES_ENABLED
00194
00200 Glib::PropertyProxy<double> property_y() ;
00201 #endif //#GLIBMM_PROPERTIES_ENABLED
00202
00203 #ifdef GLIBMM_PROPERTIES_ENABLED
00204
00210 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00211 #endif //#GLIBMM_PROPERTIES_ENABLED
00212
00213
00214 protected:
00215
00216 Image();
00217
00218
00219 public:
00220
00221 public:
00222
00223 #ifdef GLIBMM_VFUNCS_ENABLED
00224 #endif //GLIBMM_VFUNCS_ENABLED
00225
00226 protected:
00227
00228 #ifdef GLIBMM_VFUNCS_ENABLED
00229 #endif //GLIBMM_VFUNCS_ENABLED
00230
00231
00232 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00233 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00234
00235
00236 };
00237
00238
00239 }
00240
00241
00242 namespace Glib
00243 {
00252 Glib::RefPtr<Goocanvas::Image> wrap(GooCanvasImage* object, bool take_copy = false);
00253 }
00254
00255
00256 #endif
00257