MeshPattern.getPatchCount

Gets the number of patches specified in the given mesh pattern. 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. Since 1.12

class MeshPattern
cairo_status_t
getPatchCount
(
out uint count
)

Parameters

count uint

return value for the number patches, or NULL

Return Value

Type: cairo_status_t

CAIRO_STATUS_SUCCESS, or CAIRO_STATUS_PATTERN_TYPE_MISMATCH if pattern is not a mesh pattern.

Meta