00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CAIROMM_QUARTZ_SURFACE_H
00020 #define __CAIROMM_QUARTZ_SURFACE_H
00021
00022 #include <cairomm/surface.h>
00023
00024 #ifdef CAIRO_HAS_QUARTZ_SURFACE
00025 #include <cairo-quartz.h>
00026 #endif
00027
00028 namespace Cairo
00029 {
00030
00031 #ifdef CAIRO_HAS_QUARTZ_SURFACE
00032
00040 class QuartzSurface : public Surface
00041 {
00042 public:
00043
00051 explicit QuartzSurface(cairo_surface_t* cobject, bool has_reference = false);
00052 virtual ~QuartzSurface();
00053
00059 CGContextRef get_cg_context() const;
00060
00066 static RefPtr<QuartzSurface> create(CGContextRef cg_context, int width, int height);
00067
00077 static RefPtr<QuartzSurface> create(Format format, int width, int height);
00078
00079 };
00080
00081 #endif // CAIRO_HAS_QUARTZ_SURFACE
00082
00083
00084 }
00085
00086 #endif //__CAIROMM_QUARTZ_SURFACE_H
00087
00088