third_party/cairo/src/cairo-raster-source-pattern.c
void
cairo_raster_source_pattern_set_copy (cairo_pattern_t *abstract_pattern,
				      cairo_raster_source_copy_func_t copy)
{
    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->copy = copy;
}
/**
 * cairo_raster_source_pattern_set_copy:
 * @pattern: the pattern to update
 * @copy: the copy callback
 *
 * Updates the copy callback which is used whenever a temporary copy of the
 * pattern is taken.
 *
 * Since: 1.12
 **/
@pattern: the pattern to update
@copy: the copy callback

Updates the copy callback which is used whenever a temporary copy of the
pattern is taken.


@pattern : the pattern to update @copy : the copy callback Updates the copy callback which is used whenever a temporary copy of the pattern is taken .
void
cairo_raster_source_pattern_set_copy (cairo_pattern_t *abstract_pattern,
				      cairo_raster_source_copy_func_t copy)
{
    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->copy = copy;
}
void cairo_raster_source_pattern_set_copy ( cairo_pattern_t * abstract_pattern , cairo_raster_source_copy_func_t copy ) { 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 -> copy = copy ; }
cairo_raster_source_pattern_set_copy:
 @pattern: the pattern to update
 @copy: the copy callback
cairo_raster_source_pattern_set_copy : @pattern : the pattern to update @copy : the copy callback