image.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GOOCANVASMM_IMAGE_H
00004 #define _GOOCANVASMM_IMAGE_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/itemsimple.h>
00030 
00031 
00032 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00033 typedef struct _GooCanvasImage GooCanvasImage;
00034 typedef struct _GooCanvasImageClass GooCanvasImageClass;
00035 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00036 
00037 
00038 namespace Goocanvas
00039 { class Image_Class; } // namespace Goocanvas
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   //We put these in item.hg instead.
00103   //See the comment there.
00104   //_WRAP_PROPERTY("x", double)
00105   //_WRAP_PROPERTY("y", double)
00106   //_WRAP_PROPERTY("width", double)
00107   //_WRAP_PROPERTY("height", double)
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   //C++ methods used to invoke GTK+ virtual functions:
00168 #ifdef GLIBMM_VFUNCS_ENABLED
00169 #endif //GLIBMM_VFUNCS_ENABLED
00170 
00171 protected:
00172   //GTK+ Virtual Functions (override these to change behaviour):
00173 #ifdef GLIBMM_VFUNCS_ENABLED
00174 #endif //GLIBMM_VFUNCS_ENABLED
00175 
00176   //Default Signal Handlers::
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 /* _GOOCANVASMM_IMAGE_H */
00202 

Generated on Tue Jul 7 04:00:22 2009 for goocanvasmm by  doxygen 1.5.6