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<bool> property_scale_to_fit() ;
00136 #endif //#GLIBMM_PROPERTIES_ENABLED
00137
00138 #ifdef GLIBMM_PROPERTIES_ENABLED
00139
00145 Glib::PropertyProxy_ReadOnly<bool> property_scale_to_fit() const;
00146 #endif //#GLIBMM_PROPERTIES_ENABLED
00147
00148 #ifdef GLIBMM_PROPERTIES_ENABLED
00149
00155 Glib::PropertyProxy_WriteOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
00156 #endif //#GLIBMM_PROPERTIES_ENABLED
00157
00158
00159 protected:
00160
00161 Image();
00162
00163
00164 public:
00165
00166 public:
00167
00168 #ifdef GLIBMM_VFUNCS_ENABLED
00169 #endif //GLIBMM_VFUNCS_ENABLED
00170
00171 protected:
00172
00173 #ifdef GLIBMM_VFUNCS_ENABLED
00174 #endif //GLIBMM_VFUNCS_ENABLED
00175
00176
00177 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00178 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00179
00180
00181 };
00182
00183
00184 }
00185
00186
00187 namespace Glib
00188 {
00197 Glib::RefPtr<Goocanvas::Image> wrap(GooCanvasImage* object, bool take_copy = false);
00198 }
00199
00200
00201 #endif
00202