cairo-texture.h
Go to the documentation of this file.00001
00002
00003 #ifndef _CLUTTER_CAIROMM_CAIRO_TEXTURE_H
00004 #define _CLUTTER_CAIROMM_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
00046 namespace Cairo
00047 {
00048
00049
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
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
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
00119 #ifdef GLIBMM_VFUNCS_ENABLED
00120 #endif //GLIBMM_VFUNCS_ENABLED
00121
00122 protected:
00123
00124 #ifdef GLIBMM_VFUNCS_ENABLED
00125 #endif //GLIBMM_VFUNCS_ENABLED
00126
00127
00128 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00129 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00130
00131
00132 };
00133
00134 }
00135
00136 }
00137
00138
00139
00140
00141 namespace Glib
00142 {
00151 Glib::RefPtr<Clutter::Cairo::CairoTexture> wrap(ClutterCairo* object, bool take_copy = false);
00152 }
00153
00154
00155 #endif
00156