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 Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 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  * Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser 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 
00105   //We put these in item.hg instead.
00106   //See the comment there.
00107   //_WRAP_PROPERTY("x", double)
00108   //_WRAP_PROPERTY("y", double)
00109   //_WRAP_PROPERTY("width", double)
00110   //_WRAP_PROPERTY("height", double)
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_WriteOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
00139 #endif //#GLIBMM_PROPERTIES_ENABLED
00140 
00141 
00142 protected:
00143 
00144   ImageModel();
00145 
00146 
00147 public:
00148 
00149 public:
00150   //C++ methods used to invoke GTK+ virtual functions:
00151 #ifdef GLIBMM_VFUNCS_ENABLED
00152 #endif //GLIBMM_VFUNCS_ENABLED
00153 
00154 protected:
00155   //GTK+ Virtual Functions (override these to change behaviour):
00156 #ifdef GLIBMM_VFUNCS_ENABLED
00157 #endif //GLIBMM_VFUNCS_ENABLED
00158 
00159   //Default Signal Handlers::
00160 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00161 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00162 
00163 
00164 };
00165 
00166 
00167 }
00168 
00169 
00170 namespace Glib
00171 {
00180   Glib::RefPtr<Goocanvas::ImageModel> wrap(GooCanvasImageModel* object, bool take_copy = false);
00181 }
00182 
00183 
00184 #endif /* _GOOCANVASMM_IMAGEMODEL_H */
00185 

Generated on Sun Jul 26 01:18:36 2009 for goocanvasmm by  doxygen 1.5.9