If you want to draw to the screen within a Mac OS X application, you should use this Surface type.
Public Member Functions | |
CGContextRef | get_cg_context () const |
Returns the CGContextRef associated with this surface, or NULL if none. | |
QuartzSurface (cairo_surface_t *cobject, bool has_reference=false) | |
Create a C++ wrapper for the C instance. | |
virtual | ~QuartzSurface () |
Static Public Member Functions | |
static RefPtr< QuartzSurface > | create (Format format, int width, int height) |
Creates a device-independent-bitmap surface not associated with any particular existing surface or device context. | |
static RefPtr< QuartzSurface > | create (CGContextRef cg_context, int width, int height) |
Creates a cairo surface that targets the given CGContext. |
|
Create a C++ wrapper for the C instance. This C++ instance should then be given to a RefPtr.
|
|
|
|
Creates a device-independent-bitmap surface not associated with any particular existing surface or device context. The created bitmap will be unititialized.
|
|
Creates a cairo surface that targets the given CGContext.
|
|
Returns the CGContextRef associated with this surface, or NULL if none. Also returns NULL if the surface is not a Quartz surface.
|