imagemodel.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GOOCANVASMM_IMAGEMODEL_H
00004 #define _GOOCANVASMM_IMAGEMODEL_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* Copyright (C) 1998-2006 The gtkmm Development Team
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this library; if not, write to the Free
00023  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00036 
00037 
00038 namespace Goocanvas
00039 { class ImageModel_Class; } // namespace Goocanvas
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   //TODO: goo_canvas_image_new() does more than g_object_new(), which is a goocanvas bug, 
00090   //so instances of this object will not work.
00091   //In the worst case, we can implement a custom ctor and reimplement the same code.
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   #ifdef GLIBMM_PROPERTIES_ENABLED
00105 
00111   Glib::PropertyProxy<double> property_height() ;
00112 #endif //#GLIBMM_PROPERTIES_ENABLED
00113 
00114 #ifdef GLIBMM_PROPERTIES_ENABLED
00115 
00121   Glib::PropertyProxy_ReadOnly<double> property_height() const;
00122 #endif //#GLIBMM_PROPERTIES_ENABLED
00123 
00124   #ifdef GLIBMM_PROPERTIES_ENABLED
00125 
00131   Glib::PropertyProxy< Cairo::RefPtr<Cairo::Pattern> > property_pattern() ;
00132 #endif //#GLIBMM_PROPERTIES_ENABLED
00133 
00134 #ifdef GLIBMM_PROPERTIES_ENABLED
00135 
00141   Glib::PropertyProxy_ReadOnly< Cairo::RefPtr<Cairo::Pattern> > property_pattern() const;
00142 #endif //#GLIBMM_PROPERTIES_ENABLED
00143 
00144   #ifdef GLIBMM_PROPERTIES_ENABLED
00145 
00151   Glib::PropertyProxy_WriteOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
00152 #endif //#GLIBMM_PROPERTIES_ENABLED
00153 
00154 
00155   #ifdef GLIBMM_PROPERTIES_ENABLED
00156 
00162   Glib::PropertyProxy<double> property_width() ;
00163 #endif //#GLIBMM_PROPERTIES_ENABLED
00164 
00165 #ifdef GLIBMM_PROPERTIES_ENABLED
00166 
00172   Glib::PropertyProxy_ReadOnly<double> property_width() const;
00173 #endif //#GLIBMM_PROPERTIES_ENABLED
00174 
00175   #ifdef GLIBMM_PROPERTIES_ENABLED
00176 
00182   Glib::PropertyProxy<double> property_x() ;
00183 #endif //#GLIBMM_PROPERTIES_ENABLED
00184 
00185 #ifdef GLIBMM_PROPERTIES_ENABLED
00186 
00192   Glib::PropertyProxy_ReadOnly<double> property_x() const;
00193 #endif //#GLIBMM_PROPERTIES_ENABLED
00194 
00195   #ifdef GLIBMM_PROPERTIES_ENABLED
00196 
00202   Glib::PropertyProxy<double> property_y() ;
00203 #endif //#GLIBMM_PROPERTIES_ENABLED
00204 
00205 #ifdef GLIBMM_PROPERTIES_ENABLED
00206 
00212   Glib::PropertyProxy_ReadOnly<double> property_y() const;
00213 #endif //#GLIBMM_PROPERTIES_ENABLED
00214 
00215 
00216 protected:
00217 
00218   ImageModel();
00219 
00220 
00221 public:
00222 
00223 public:
00224   //C++ methods used to invoke GTK+ virtual functions:
00225 #ifdef GLIBMM_VFUNCS_ENABLED
00226 #endif //GLIBMM_VFUNCS_ENABLED
00227 
00228 protected:
00229   //GTK+ Virtual Functions (override these to change behaviour):
00230 #ifdef GLIBMM_VFUNCS_ENABLED
00231 #endif //GLIBMM_VFUNCS_ENABLED
00232 
00233   //Default Signal Handlers::
00234 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00235 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00236 
00237 
00238 };
00239 
00240 
00241 }
00242 
00243 
00244 namespace Glib
00245 {
00254   Glib::RefPtr<Goocanvas::ImageModel> wrap(GooCanvasImageModel* object, bool take_copy = false);
00255 }
00256 
00257 
00258 #endif /* _GOOCANVASMM_IMAGEMODEL_H */
00259 

Generated on Tue Feb 24 19:27:29 2009 for goocanvasmm by  doxygen 1.5.8