mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
doc: Fix missing quartz image surface docs
This commit is contained in:
parent
368ceb67b4
commit
f03c73b270
2 changed files with 18 additions and 4 deletions
|
|
@ -166,6 +166,8 @@ CAIRO_HAS_QUARTZ_SURFACE
|
|||
cairo_quartz_surface_create
|
||||
cairo_quartz_surface_create_for_cg_context
|
||||
cairo_quartz_surface_get_cg_context
|
||||
cairo_quartz_image_surface_create
|
||||
cairo_quartz_image_surface_get_image
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
|
|
|
|||
|
|
@ -377,15 +377,27 @@ cairo_quartz_image_surface_create (cairo_surface_t *surface)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* cairo_quartz_image_surface_get_image:
|
||||
* @surface: a #cairo_surface_t
|
||||
*
|
||||
* Returns a #cairo_surface_t image surface that refers to the same bits
|
||||
* as the image of the quartz surface.
|
||||
*
|
||||
* Return value: a #cairo_surface_t (owned by the quartz #cairo_surface_t),
|
||||
* or %NULL if the quartz surface is not an image surface.
|
||||
*
|
||||
* Since: 1.6
|
||||
*/
|
||||
cairo_surface_t *
|
||||
cairo_quartz_image_surface_get_image (cairo_surface_t *asurface)
|
||||
cairo_quartz_image_surface_get_image (cairo_surface_t *surface)
|
||||
{
|
||||
cairo_quartz_image_surface_t *surface = (cairo_quartz_image_surface_t*) asurface;
|
||||
cairo_quartz_image_surface_t *qsurface = (cairo_quartz_image_surface_t*) surface;
|
||||
|
||||
/* Throw an error for a non-quartz surface */
|
||||
if (! _cairo_surface_is_quartz (asurface)) {
|
||||
if (! _cairo_surface_is_quartz (surface)) {
|
||||
return SURFACE_ERROR_TYPE_MISMATCH;
|
||||
}
|
||||
|
||||
return (cairo_surface_t*) surface->imageSurface;
|
||||
return (cairo_surface_t*) qsurface->imageSurface;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue