Gets the gradient endpoint circles for a radial gradient, each specified as a center coordinate and a radius.

cairo_pattern_get_radial_circles(pattern, x0, y0, r0, x1, y1, r1)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

x0

[double *] return value for the x coordinate of the center of the first circle, or %NULL

y0

[double *] return value for the y coordinate of the center of the first circle, or %NULL

r0

[double *] return value for the radius of the first circle, or %NULL

x1

[double *] return value for the x coordinate of the center of the second circle, or %NULL

y1

[double *] return value for the y coordinate of the center of the second circle, or %NULL

r1

[double *] return value for the radius of the second circle, or %NULL

Value

[int]

Details

Return value: %CAIRO_STATUS_SUCCESS, or %CAIRO_STATUS_PATTERN_TYPE_MISMATCH if pattern is not a radial gradient pattern.

Since: 1.4

C function prototype: cairo_status_t cairo_pattern_get_radial_circles (cairo_pattern_t *pattern, double *x0, double *y0, double *r0, double *x1, double *y1, double *r1)

See also