imagemodel.h
Go to the documentation of this file.00001
00002
00003 #ifndef _GOOCANVASMM_IMAGEMODEL_H
00004 #define _GOOCANVASMM_IMAGEMODEL_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/itemmodelsimple.h>
00030
00031
00032 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00033 typedef struct _GooCanvasImageModel GooCanvasImageModel;
00034 typedef struct _GooCanvasImageModelClass GooCanvasImageModelClass;
00035 #endif
00036
00037
00038 namespace Goocanvas
00039 { class ImageModel_Class; }
00040 namespace Goocanvas
00041 {
00042
00043
00044 class ImageModel : public Goocanvas::ItemModelSimple
00045 {
00046
00047 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00048
00049 public:
00050 typedef ImageModel CppObjectType;
00051 typedef ImageModel_Class CppClassType;
00052 typedef GooCanvasImageModel BaseObjectType;
00053 typedef GooCanvasImageModelClass BaseClassType;
00054
00055 private: friend class ImageModel_Class;
00056 static CppClassType imagemodel_class_;
00057
00058 private:
00059
00060 ImageModel(const ImageModel&);
00061 ImageModel& operator=(const ImageModel&);
00062
00063 protected:
00064 explicit ImageModel(const Glib::ConstructParams& construct_params);
00065 explicit ImageModel(GooCanvasImageModel* castitem);
00066
00067 #endif
00068
00069 public:
00070 virtual ~ImageModel();
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 GooCanvasImageModel* gobj() { return reinterpret_cast<GooCanvasImageModel*>(gobject_); }
00079
00081 const GooCanvasImageModel* gobj() const { return reinterpret_cast<GooCanvasImageModel*>(gobject_); }
00082
00084 GooCanvasImageModel* gobj_copy();
00085
00086 private:
00087
00088 protected:
00089
00090
00091
00092 ImageModel(double x, double y);
00093 ImageModel(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf, double x, double y);
00094
00095
00096 public:
00097
00098
00099 static Glib::RefPtr<ImageModel> create(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf, double x, double y);
00100
00101
00102 static Glib::RefPtr<ImageModel> create(double x, double y);
00103
00104
00105
00106
00107
00108
00109
00110
00111 #ifdef GLIBMM_PROPERTIES_ENABLED
00112
00118 Glib::PropertyProxy< Cairo::RefPtr<Cairo::Pattern> > property_pattern() ;
00119 #endif //#GLIBMM_PROPERTIES_ENABLED
00120
00121 #ifdef GLIBMM_PROPERTIES_ENABLED
00122
00128 Glib::PropertyProxy_ReadOnly< Cairo::RefPtr<Cairo::Pattern> > property_pattern() const;
00129 #endif //#GLIBMM_PROPERTIES_ENABLED
00130
00131 #ifdef GLIBMM_PROPERTIES_ENABLED
00132
00138 Glib::PropertyProxy<bool> property_scale_to_fit() ;
00139 #endif //#GLIBMM_PROPERTIES_ENABLED
00140
00141 #ifdef GLIBMM_PROPERTIES_ENABLED
00142
00148 Glib::PropertyProxy_ReadOnly<bool> property_scale_to_fit() const;
00149 #endif //#GLIBMM_PROPERTIES_ENABLED
00150
00151 #ifdef GLIBMM_PROPERTIES_ENABLED
00152
00158 Glib::PropertyProxy_WriteOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
00159 #endif //#GLIBMM_PROPERTIES_ENABLED
00160
00161
00162 protected:
00163
00164 ImageModel();
00165
00166
00167 public:
00168
00169 public:
00170
00171 #ifdef GLIBMM_VFUNCS_ENABLED
00172 #endif //GLIBMM_VFUNCS_ENABLED
00173
00174 protected:
00175
00176 #ifdef GLIBMM_VFUNCS_ENABLED
00177 #endif //GLIBMM_VFUNCS_ENABLED
00178
00179
00180 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00181 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00182
00183
00184 };
00185
00186
00187 }
00188
00189
00190 namespace Glib
00191 {
00200 Glib::RefPtr<Goocanvas::ImageModel> wrap(GooCanvasImageModel* object, bool take_copy = false);
00201 }
00202
00203
00204 #endif
00205