cairo-texture.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _CLUTTER_CAIROMM_CAIRO_TEXTURE_H
00004 #define _CLUTTER_CAIROMM_CAIRO_TEXTURE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* Copyright (C) 2007 The cluttermm 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 #include <cluttermm/texture.h>
00027 #include <cairomm/context.h>
00028  
00029 
00030 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00031 typedef struct _ClutterCairo ClutterCairo;
00032 typedef struct _ClutterCairoClass ClutterCairoClass;
00033 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00034 
00035 
00036 namespace Clutter
00037 {
00038 
00039 namespace Cairo
00040 { class CairoTexture_Class; } // namespace Cairo
00041 
00042 } // namespace Clutter
00043 namespace Clutter
00044 {
00045 
00046 namespace Cairo
00047 {
00048 
00049 //TODO: Documentation.
00050 
00051 class CairoTexture :
00052   public Texture
00053 {
00054   
00055 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00056 
00057 public:
00058   typedef CairoTexture CppObjectType;
00059   typedef CairoTexture_Class CppClassType;
00060   typedef ClutterCairo BaseObjectType;
00061   typedef ClutterCairoClass BaseClassType;
00062 
00063 private:  friend class CairoTexture_Class;
00064   static CppClassType cairotexture_class_;
00065 
00066 private:
00067   // noncopyable
00068   CairoTexture(const CairoTexture&);
00069   CairoTexture& operator=(const CairoTexture&);
00070 
00071 protected:
00072   explicit CairoTexture(const Glib::ConstructParams& construct_params);
00073   explicit CairoTexture(ClutterCairo* castitem);
00074 
00075 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00076 
00077 public:
00078   virtual ~CairoTexture();
00079 
00080 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00081   static GType get_type()      G_GNUC_CONST;
00082   static GType get_base_type() G_GNUC_CONST;
00083 #endif
00084 
00086   ClutterCairo*       gobj()       { return reinterpret_cast<ClutterCairo*>(gobject_); }
00087 
00089   const ClutterCairo* gobj() const { return reinterpret_cast<ClutterCairo*>(gobject_); }
00090 
00092   ClutterCairo* gobj_copy();
00093 
00094 private:
00095 
00096 
00097 protected:
00098   explicit CairoTexture(guint surface_width, guint surface_height);
00099 
00100 public:
00101   
00102   static Glib::RefPtr<CairoTexture> create(guint width, guint height);
00103 ;
00104 
00105  
00110   ::Cairo::RefPtr< ::Cairo::Context > create_cairo_context ();
00111 
00112   static void set_source_color (const ::Cairo::RefPtr< ::Cairo::Context >& cr, const Color& color);
00113 
00114 
00115 public:
00116 
00117 public:
00118   //C++ methods used to invoke GTK+ virtual functions:
00119 #ifdef GLIBMM_VFUNCS_ENABLED
00120 #endif //GLIBMM_VFUNCS_ENABLED
00121 
00122 protected:
00123   //GTK+ Virtual Functions (override these to change behaviour):
00124 #ifdef GLIBMM_VFUNCS_ENABLED
00125 #endif //GLIBMM_VFUNCS_ENABLED
00126 
00127   //Default Signal Handlers::
00128 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00129 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00130 
00131 
00132 };
00133 
00134 } // namespace Cairo
00135 
00136 } // namespace Clutter
00137 
00138 //vim: ts=2,sw=2
00139 
00140 
00141 namespace Glib
00142 {
00151   Glib::RefPtr<Clutter::Cairo::CairoTexture> wrap(ClutterCairo* object, bool take_copy = false);
00152 }
00153 
00154 
00155 #endif /* _CLUTTER_CAIROMM_CAIRO_TEXTURE_H */
00156 

Generated on Tue Feb 24 03:41:28 2009 for clutter-cairomm by  doxygen 1.5.8