third_party/cairo/src/cairo-raster-source-pattern.c
void
cairo_raster_source_pattern_set_snapshot (cairo_pattern_t *abstract_pattern,
					  cairo_raster_source_snapshot_func_t snapshot)
{
    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->snapshot = snapshot;
}
/**
 * cairo_raster_source_pattern_set_snapshot:
 * @pattern: the pattern to update
 * @snapshot: snapshot callback
 *
 * Sets the callback that will be used whenever a snapshot is taken of the
 * pattern, that is whenever the current contents of the pattern should be
 * preserved for later use. This is typically invoked whilst printing.
 *
 * Since: 1.12
 **/
@pattern: the pattern to update
@snapshot: snapshot callback

Sets the callback that will be used whenever a snapshot is taken of the
pattern, that is whenever the current contents of the pattern should be
preserved for later use. This is typically invoked whilst printing.


@pattern : the pattern to update @snapshot : snapshot callback Sets the callback that will be used whenever a snapshot is taken of the pattern that is whenever the current contents of the pattern should be preserved for later use . This is typically invoked whilst printing .
void
cairo_raster_source_pattern_set_snapshot (cairo_pattern_t *abstract_pattern,
					  cairo_raster_source_snapshot_func_t snapshot)
{
    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->snapshot = snapshot;
}
void cairo_raster_source_pattern_set_snapshot ( cairo_pattern_t * abstract_pattern , cairo_raster_source_snapshot_func_t snapshot ) { 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 -> snapshot = snapshot ; }
cairo_raster_source_pattern_set_snapshot:
 @pattern: the pattern to update
 @snapshot: snapshot callback
cairo_raster_source_pattern_set_snapshot : @pattern : the pattern to update @snapshot : snapshot callback