Gets the number of patches specified in the given mesh pattern.

cairo_mesh_pattern_get_patch_count(pattern, count)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

count

[unsigned int *] return value for the number patches, or %NULL

Value

[int]

Details

The number only includes patches which have been finished by calling cairo_mesh_pattern_end_patch(). For example it will be 0 during the definition of the first patch.

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

Since: 1.12

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

See also