Gets the number of color stops specified in the given gradient pattern.

cairo_pattern_get_color_stop_count(pattern, count)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

count

[int *] return value for the number of color stops, or %NULL

Value

[int]

Details

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

Since: 1.4

C function prototype: cairo_status_t cairo_pattern_get_color_stop_count (cairo_pattern_t *pattern, int *count)

See also