# quartz_surface.h

Go to the documentation of this file.

    00001 /* Copyright (C) 2007 The cairomm Development Team
    00002  *
    00003  * This library is free software; you can redistribute it and/or
    00004  * modify it under the terms of the GNU Library General Public
    00005  * License as published by the Free Software Foundation; either
    00006  * version 2 of the License, or (at your option) any later version.
    00007  *
    00008  * This library is distributed in the hope that it will be useful,
    00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00011  * Library General Public License for more details.
    00012  *
    00013  * You should have received a copy of the GNU Library General Public
    00014  * License along with this library; if not, write to the Free Software
    00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    00016  * 02110-1301, USA.
    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 } // namespace Cairo
    00085
    00086 #endif //__CAIROMM_QUARTZ_SURFACE_H
    00087
    00088 // vim: ts=2 sw=2 et