cairo-texture.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _CLUTTERMM_CAIRO_CAIRO_TEXTURE_H
00004 #define _CLUTTERMM_CAIRO_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 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 #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 namespace Cairo
00046 {
00047 
00048 //TODO: Documentation.
00049 
00050 class CairoTexture :
00051   public Texture
00052 {
00053   
00054 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00055 
00056 public:
00057   typedef CairoTexture CppObjectType;
00058   typedef CairoTexture_Class CppClassType;
00059   typedef ClutterCairo BaseObjectType;
00060   typedef ClutterCairoClass BaseClassType;
00061 
00062 private:  friend class CairoTexture_Class;
00063   static CppClassType cairotexture_class_;
00064 
00065 private:
00066   // noncopyable
00067   CairoTexture(const CairoTexture&);
00068   CairoTexture& operator=(const CairoTexture&);
00069 
00070 protected:
00071   explicit CairoTexture(const Glib::ConstructParams& construct_params);
00072   explicit CairoTexture(ClutterCairo* castitem);
00073 
00074 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00075 
00076 public:
00077   virtual ~CairoTexture();
00078 
00079 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00080   static GType get_type()      G_GNUC_CONST;
00081   static GType get_base_type() G_GNUC_CONST;
00082 #endif
00083 
00085   ClutterCairo*       gobj()       { return reinterpret_cast<ClutterCairo*>(gobject_); }
00086 
00088   const ClutterCairo* gobj() const { return reinterpret_cast<ClutterCairo*>(gobject_); }
00089 
00091   ClutterCairo* gobj_copy();
00092 
00093 private:
00094 
00095 
00096 protected:
00097   explicit CairoTexture(guint surface_width, guint surface_height);
00098 
00099 public:
00100   
00101   static Glib::RefPtr<CairoTexture> create(guint width, guint height);
00102 ;
00103 
00104  
00109   ::Cairo::RefPtr< ::Cairo::Context > create_cairo_context ();
00110 
00111   static void set_source_color (const ::Cairo::RefPtr< ::Cairo::Context >& cr, const Color& color);
00112 
00113 
00114 public:
00115 
00116 public:
00117   //C++ methods used to invoke GTK+ virtual functions:
00118 #ifdef GLIBMM_VFUNCS_ENABLED
00119 #endif //GLIBMM_VFUNCS_ENABLED
00120 
00121 protected:
00122   //GTK+ Virtual Functions (override these to change behaviour):
00123 #ifdef GLIBMM_VFUNCS_ENABLED
00124 #endif //GLIBMM_VFUNCS_ENABLED
00125 
00126   //Default Signal Handlers::
00127 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00128 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00129 
00130 
00131 };
00132 
00133 } // namespace Cairo
00134 } // namespace Clutter
00135 
00136 //vim: ts=2,sw=2
00137 
00138 
00139 namespace Glib
00140 {
00149   Glib::RefPtr<Clutter::Cairo::CairoTexture> wrap(ClutterCairo* object, bool take_copy = false);
00150 }
00151 
00152 
00153 #endif /* _CLUTTERMM_CAIRO_CAIRO_TEXTURE_H */
00154 

Generated on Fri Jun 6 02:17:45 2008 for cluttermm by  doxygen 1.5.5