summaryrefslogtreecommitdiff
path: root/src/cairo-quartz.h
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2007-02-20 12:15:35 -0800
committerVladimir Vukicevic <vladimir@h-154.office.mozilla.org>2007-02-20 12:15:35 -0800
commit4c201723ce8139c2e6620881583bc08e3aa1bad7 (patch)
tree9cb7a1c1c980763f942ef319f3a2853a370b04ec /src/cairo-quartz.h
parent641f0919d53691e561aa665d31cc43524d861215 (diff)
downloadcairo-4c201723ce8139c2e6620881583bc08e3aa1bad7.tar.gz
[quartz] Rename nquartz to quartz
Diffstat (limited to 'src/cairo-quartz.h')
-rw-r--r--src/cairo-quartz.h39
1 files changed, 28 insertions, 11 deletions
diff --git a/src/cairo-quartz.h b/src/cairo-quartz.h
index 286efe8b8..d0d87c26e 100644
--- a/src/cairo-quartz.h
+++ b/src/cairo-quartz.h
@@ -1,6 +1,6 @@
/* cairo - a vector graphics library with display and print output
*
- * Copyright © 2002 University of Southern California
+ * Copyright © 2006, 2007 Mozilla Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
@@ -27,15 +27,14 @@
*
* The Original Code is the cairo graphics library.
*
- * The Initial Developer of the Original Code is University of Southern
- * California.
+ * The Initial Developer of the Original Code is Mozilla Corporation.
*
* Contributor(s):
- * Carl D. Worth <cworth@cworth.org>
+ * Vladimir Vukicevic <vladimir@mozilla.com>
*/
-#ifndef CAIRO_QUARTZ_H
-#define CAIRO_QUARTZ_H
+#ifndef CAIRO_NQUARTZ_H
+#define CAIRO_NQUARTZ_H
#include <cairo.h>
@@ -43,13 +42,31 @@
#include <Carbon/Carbon.h>
+#ifdef CAIRO_NQUARTZ_SUPPORT_AGL
+#include <AGL/agl.h>
+#endif
+
CAIRO_BEGIN_DECLS
cairo_public cairo_surface_t *
-cairo_quartz_surface_create (CGContextRef context,
- int width,
- int height,
- cairo_bool_t y_grows_down);
+cairo_quartz_surface_create (cairo_format_t format,
+ unsigned int width,
+ unsigned int height);
+
+#ifdef CAIRO_NQUARTZ_SUPPORT_AGL
+cairo_public cairo_surface_t *
+cairo_quartz_surface_create_for_agl_context (AGLContext aglContext,
+ unsigned int width,
+ unsigned int height);
+#endif
+
+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 *surf);
CAIRO_END_DECLS
@@ -57,4 +74,4 @@ CAIRO_END_DECLS
# error Cairo was not compiled with support for the quartz backend
#endif /* CAIRO_HAS_QUARTZ_SURFACE */
-#endif /* CAIRO_QUARTZ_H */
+#endif /* CAIRO_NQUARTZ_H */