third_party/cairo/src/cairo-raster-source-pattern.c
void
cairo_raster_source_pattern_set_finish (cairo_pattern_t *abstract_pattern,
					cairo_raster_source_finish_func_t finish)
{
    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->finish = finish;
}
/**
 * cairo_raster_source_pattern_set_finish:
 * @pattern: the pattern to update
 * @finish: the finish callback
 *
 * Updates the finish callback which is used whenever a pattern (or a copy
 * thereof) will no longer be used.
 *
 * Since: 1.12
 **/
@pattern: the pattern to update
@finish: the finish callback

Updates the finish callback which is used whenever a pattern (or a copy
thereof) will no longer be used.


@pattern : the pattern to update @finish : the finish callback Updates the finish callback which is used whenever a pattern ( or a copy thereof ) will no longer be used .
void
cairo_raster_source_pattern_set_finish (cairo_pattern_t *abstract_pattern,
					cairo_raster_source_finish_func_t finish)
{
    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->finish = finish;
}
void cairo_raster_source_pattern_set_finish ( cairo_pattern_t * abstract_pattern , cairo_raster_source_finish_func_t finish ) { 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 -> finish = finish ; }
cairo_raster_source_pattern_set_finish:
 @pattern: the pattern to update
 @finish: the finish callback
cairo_raster_source_pattern_set_finish : @pattern : the pattern to update @finish : the finish callback