[cairo.types.Status.PatternTypeMismatch] if pattern is not a mesh pattern.
meshPatternGetPatchCount
fn
cairo.types.Status meshPatternGetPatchCount(cairo.pattern.Pattern pattern, out uint count)Gets the number of patches specified in the given mesh pattern.
The number only includes patches which have been finished by calling [cairo.global.meshPatternEndPatch]. For example it will be 0 during the definition of the first patch.
Parameters
pattern | a #cairo_pattern_t |
count | return value for the number patches, or null |
Returns
[cairo.types.Status.Success], or