Created
August 20, 2011 20:55
-
-
Save philcrissman/1159652 to your computer and use it in GitHub Desktop.
part of cairo-quartz.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if CAIRO_HAS_QUARTZ_SURFACE | |
#include <ApplicationServices/ApplicationServices.h> | |
CAIRO_BEGIN_DECLS | |
cairo_public cairo_surface_t * | |
cairo_quartz_surface_create (cairo_format_t format, | |
unsigned int width, | |
unsigned int height); | |
cairo_public cairo_surface_t * | |
cairo_quartz_surface_create_for_cg_context (CGContextRef cgContext, | |
unsigned int width, | |
unsigned int height); | |
cairo_public CGContextRef | |
cairo_quartz_surface_get_cg_context (cairo_surface_t *surface); | |
#if CAIRO_HAS_QUARTZ_FONT | |
/* | |
* Quartz font support | |
*/ | |
cairo_public cairo_font_face_t * | |
cairo_quartz_font_face_create_for_cgfont (CGFontRef font); | |
#ifndef __LP64__ | |
cairo_public cairo_font_face_t * | |
cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id); | |
#endif | |
#endif /* CAIRO_HAS_QUARTZ_FONT */ | |
CAIRO_END_DECLS | |
#else | |
# error Cairo was not compiled with support for the quartz backend | |
#endif /* CAIRO_HAS_QUARTZ_SURFACE */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment