image.h
Go to the documentation of this file.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
00103
00104
00105
00106
00107
00108 #ifdef GLIBMM_PROPERTIES_ENABLED
00109
00115 Glib::PropertyProxy< Cairo::RefPtr<Cairo::Pattern> > property_pattern() ;
00116 #endif //#GLIBMM_PROPERTIES_ENABLED
00117
00118 #ifdef GLIBMM_PROPERTIES_ENABLED
00119
00125 Glib::PropertyProxy_ReadOnly< Cairo::RefPtr<Cairo::Pattern> > property_pattern() const;
00126 #endif //#GLIBMM_PROPERTIES_ENABLED
00127
00128 #ifdef GLIBMM_PROPERTIES_ENABLED
00129
00135 Glib::PropertyProxy_WriteOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
00136 #endif //#GLIBMM_PROPERTIES_ENABLED
00137
00138
00139 protected:
00140
00141 Image();
00142
00143
00144 public:
00145
00146 public:
00147
00148 #ifdef GLIBMM_VFUNCS_ENABLED
00149 #endif //GLIBMM_VFUNCS_ENABLED
00150
00151 protected:
00152
00153 #ifdef GLIBMM_VFUNCS_ENABLED
00154 #endif //GLIBMM_VFUNCS_ENABLED
00155
00156
00157 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00158 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00159
00160
00161 };
00162
00163
00164 }
00165
00166
00167 namespace Glib
00168 {
00177 Glib::RefPtr<Goocanvas::Image> wrap(GooCanvasImage* object, bool take_copy = false);
00178 }
00179
00180
00181 #endif
00182