third_party/cairo/src/cairo-quartz-surface.c
CGContextRef
cairo_quartz_surface_get_cg_context (cairo_surface_t *surface)
{
    if (surface && _cairo_surface_is_quartz (surface)) {
	cairo_quartz_surface_t *quartz = (cairo_quartz_surface_t *) surface;
	return quartz->cgContext;
    } else
	return NULL;
}
/**
 * cairo_quartz_surface_get_cg_context:
 * @surface: the Cairo Quartz 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.
 *
 * Return value: the CGContextRef for the given surface.
 *
 * Since: 1.6
 **/
@surface: the Cairo Quartz 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.

Return value: the CGContextRef for the given surface.


@surface : the Cairo Quartz 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 . Return value : the CGContextRef for the given surface .
CGContextRef
cairo_quartz_surface_get_cg_context (cairo_surface_t *surface)
{
    if (surface && _cairo_surface_is_quartz (surface)) {
	cairo_quartz_surface_t *quartz = (cairo_quartz_surface_t *) surface;
	return quartz->cgContext;
    } else
	return NULL;
}
CGContextRef cairo_quartz_surface_get_cg_context ( cairo_surface_t * surface ) { if ( surface && _cairo_surface_is_quartz ( surface ) ) { cairo_quartz_surface_t * quartz = ( cairo_quartz_surface_t * ) surface ; return quartz -> cgContext ; } else return NULL ; }
cairo_quartz_surface_get_cg_context:
 @surface: the Cairo Quartz surface
cairo_quartz_surface_get_cg_context : @surface : the Cairo Quartz surface