From 530ffd0b7d3c39757b20f00716e486b5caf89aff Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 12 Oct 2022 12:03:23 -0500 Subject: add cairo --- .../doc/public/html/cairo-Quartz-Surfaces.html | 249 +++++++++++++++++++++ 1 file changed, 249 insertions(+) create mode 100644 libs/cairo-1.16.0/doc/public/html/cairo-Quartz-Surfaces.html (limited to 'libs/cairo-1.16.0/doc/public/html/cairo-Quartz-Surfaces.html') diff --git a/libs/cairo-1.16.0/doc/public/html/cairo-Quartz-Surfaces.html b/libs/cairo-1.16.0/doc/public/html/cairo-Quartz-Surfaces.html new file mode 100644 index 0000000..a1bc7e4 --- /dev/null +++ b/libs/cairo-1.16.0/doc/public/html/cairo-Quartz-Surfaces.html @@ -0,0 +1,249 @@ + + + + +Quartz Surfaces: Cairo: A Vector Graphics Library + + + + + + + + + + + + + + + + +
+
+
+ + +
+

Quartz Surfaces

+

Quartz Surfaces — Rendering to Quartz surfaces

+
+
+

Functions

+ +
+
+

Types and Values

+
++++ + + + + +
#defineCAIRO_HAS_QUARTZ_SURFACE
+
+
+

Description

+

The Quartz surface is used to render cairo graphics targeting the +Apple OS X Quartz rendering system.

+
+
+

Functions

+
+

cairo_quartz_surface_create ()

+
cairo_surface_t *
+cairo_quartz_surface_create (cairo_format_t format,
+                             unsigned int width,
+                             unsigned int height);
+

Creates a Quartz surface backed by a CGBitmap. The surface is +created using the Device RGB (or Device Gray, for A8) color space. +All Cairo operations, including those that require software +rendering, will succeed on this surface.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

format

format of pixels in the surface to create

 

width

width of the surface, in pixels

 

height

height of the surface, in pixels

 
+
+
+

Returns

+

the newly created surface.

+
+

Since: 1.6

+
+
+
+

cairo_quartz_surface_create_for_cg_context ()

+
cairo_surface_t *
+cairo_quartz_surface_create_for_cg_context
+                               (CGContextRef cgContext,
+                                unsigned int width,
+                                unsigned int height);
+

Creates a Quartz surface that wraps the given CGContext. The +CGContext is assumed to be in the standard Cairo coordinate space +(that is, with the origin at the upper left and the Y axis +increasing downward). If the CGContext is in the Quartz coordinate +space (with the origin at the bottom left), then it should be +flipped before this function is called. The flip can be accomplished +using a translate and a scale; for example:

+
+ + + + + + + +
1
+2
CGContextTranslateCTM (cgContext, 0.0, height);
+CGContextScaleCTM (cgContext, 1.0, -1.0);
+
+ +

All Cairo operations are implemented in terms of Quartz operations, +as long as Quartz-compatible elements are used (such as Quartz fonts).

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

cgContext

the existing CGContext for which to create the surface

 

width

width of the surface, in pixels

 

height

height of the surface, in pixels

 
+
+
+

Returns

+

the newly created Cairo surface.

+
+

Since: 1.6

+
+
+
+

cairo_quartz_surface_get_cg_context ()

+
CGContextRef
+cairo_quartz_surface_get_cg_context (cairo_surface_t *surface);
+

Returns the CGContextRef that the given Quartz surface is backed +by.

+

A call to cairo_surface_flush() is required before using the +CGContextRef to ensure that all pending drawing operations are +finished and to restore any temporary modification cairo has made +to its state. A call to cairo_surface_mark_dirty() is required +after the state or the content of the CGContextRef has been +modified.

+
+

Parameters

+
+++++ + + + + + +

surface

the Cairo Quartz surface

 
+
+
+

Returns

+

the CGContextRef for the given surface.

+
+

Since: 1.6

+
+
+
+

Types and Values

+
+

CAIRO_HAS_QUARTZ_SURFACE

+
#define CAIRO_HAS_QUARTZ_SURFACE 1
+
+

Defined if the Quartz surface backend is available. +This macro can be used to conditionally compile backend-specific code.

+

Since: 1.6

+
+
+
+

See Also

+

cairo_surface_t

+
+
+ + + \ No newline at end of file -- cgit v1.2.1