cairo-texture.h
Go to the documentation of this file.00001
00002
00003 #ifndef _CLUTTERMM_CAIRO_CAIRO_TEXTURE_H
00004 #define _CLUTTERMM_CAIRO_CAIRO_TEXTURE_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
00034
00035
00036 namespace Clutter
00037 {
00038
00039 namespace Cairo
00040 { class CairoTexture_Class; }
00041
00042 }
00043 namespace Clutter
00044 {
00045 namespace Cairo
00046 {
00047
00048
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
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
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
00118 #ifdef GLIBMM_VFUNCS_ENABLED
00119 #endif //GLIBMM_VFUNCS_ENABLED
00120
00121 protected:
00122
00123 #ifdef GLIBMM_VFUNCS_ENABLED
00124 #endif //GLIBMM_VFUNCS_ENABLED
00125
00126
00127 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00128 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00129
00130
00131 };
00132
00133 }
00134 }
00135
00136
00137
00138
00139 namespace Glib
00140 {
00149 Glib::RefPtr<Clutter::Cairo::CairoTexture> wrap(ClutterCairo* object, bool take_copy = false);
00150 }
00151
00152
00153 #endif
00154