third_party/cairo/src/cairo-raster-source-pattern.c
void
cairo_raster_source_pattern_set_acquire (cairo_pattern_t *abstract_pattern,
					 cairo_raster_source_acquire_func_t acquire,
					 cairo_raster_source_release_func_t release)
{
    cairo_raster_source_pattern_t *pattern;

    if (abstract_pattern->type != CAIRO_PATTERN_TYPE_RASTER_SOURCE)
	return;

    pattern = (cairo_raster_source_pattern_t *) abstract_pattern;
    pattern->acquire = acquire;
    pattern->release = release;
}
/**
 * cairo_raster_source_pattern_set_acquire:
 * @pattern: the pattern to update
 * @acquire: acquire callback
 * @release: release callback
 *
 * Specifies the callbacks used to generate the image surface for a rendering
 * operation (acquire) and the function used to cleanup that surface afterwards.
 *
 * The @acquire callback should create a surface (preferably an image
 * surface created to match the target using
 * cairo_surface_create_similar_image()) that defines at least the region
 * of interest specified by extents. The surface is allowed to be the entire
 * sample area, but if it does contain a subsection of the sample area,
 * the surface extents should be provided by setting the device offset (along
 * with its width and height) using cairo_surface_set_device_offset().
 *
 * Since: 1.12
 **/
@pattern: the pattern to update
@acquire: acquire callback
@release: release callback

Specifies the callbacks used to generate the image surface for a rendering
operation (acquire) and the function used to cleanup that surface afterwards.

The @acquire callback should create a surface (preferably an image
surface created to match the target using
cairo_surface_create_similar_image()) that defines at least the region
of interest specified by extents. The surface is allowed to be the entire
sample area, but if it does contain a subsection of the sample area,
the surface extents should be provided by setting the device offset (along
with its width and height) using cairo_surface_set_device_offset().


@pattern : the pattern to update @acquire : acquire callback @release : release callback Specifies the callbacks used to generate the image surface for a rendering operation ( acquire ) and the function used to cleanup that surface afterwards . The @acquire callback should create a surface ( preferably an image surface created to match the target using cairo_surface_create_similar_image () ) that defines at least the region of interest specified by extents . The surface is allowed to be the entire sample area but if it does contain a subsection of the sample area the surface extents should be provided by setting the device offset ( along with its width and height ) using cairo_surface_set_device_offset () .
void
cairo_raster_source_pattern_set_acquire (cairo_pattern_t *abstract_pattern,
					 cairo_raster_source_acquire_func_t acquire,
					 cairo_raster_source_release_func_t release)
{
    cairo_raster_source_pattern_t *pattern;
    if (abstract_pattern->type != CAIRO_PATTERN_TYPE_RASTER_SOURCE)
	return;
    pattern = (cairo_raster_source_pattern_t *) abstract_pattern;
    pattern->acquire = acquire;
    pattern->release = release;
}
void cairo_raster_source_pattern_set_acquire ( cairo_pattern_t * abstract_pattern , cairo_raster_source_acquire_func_t acquire , cairo_raster_source_release_func_t release ) { cairo_raster_source_pattern_t * pattern ; if ( abstract_pattern -> type != CAIRO_PATTERN_TYPE_RASTER_SOURCE ) return ; pattern = ( cairo_raster_source_pattern_t * ) abstract_pattern ; pattern -> acquire = acquire ; pattern -> release = release ; }
cairo_raster_source_pattern_set_acquire:
 @pattern: the pattern to update
 @acquire: acquire callback
 @release: release callback
cairo_raster_source_pattern_set_acquire : @pattern : the pattern to update @acquire : acquire callback @release : release callback