third_party/cairo/src/cairo-raster-source-pattern.c
void
cairo_raster_source_pattern_set_callback_data (cairo_pattern_t *abstract_pattern,
					       void *data)
{
    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->user_data = data;
}
/**
 * cairo_raster_source_pattern_set_callback_data:
 * @pattern: the pattern to update
 * @data: the user data to be passed to all callbacks
 *
 * Updates the user data that is provided to all callbacks.
 *
 * Since: 1.12
 **/
@pattern: the pattern to update
@data: the user data to be passed to all callbacks

Updates the user data that is provided to all callbacks.


@pattern : the pattern to update @data : the user data to be passed to all callbacks Updates the user data that is provided to all callbacks .
void
cairo_raster_source_pattern_set_callback_data (cairo_pattern_t *abstract_pattern,
					       void *data)
{
    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->user_data = data;
}
void cairo_raster_source_pattern_set_callback_data ( cairo_pattern_t * abstract_pattern , void * data ) { 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 -> user_data = data ; }
cairo_raster_source_pattern_set_callback_data:
 @pattern: the pattern to update
 @data: the user data to be passed to all callbacks
cairo_raster_source_pattern_set_callback_data : @pattern : the pattern to update @data : the user data to be passed to all callbacks