Package: cairo

Function cairo:mesh-pattern-patch-count

Lambda List

cairo:mesh-pattern-patch-count (pattern)

Arguments

pattern -- a cairo:pattern-t instance

Return Value

The unsigned integer with the number of patches.

Details

Gets the number of patches specified in the given mesh pattern. Returns nil if the pattern argument is not a mesh pattern.

The number only includes patches which have been finished by calling the cairo:mesh-pattern-end-patch function. For example it will be 0 during the definition of the first patch.
 

See also

2025-1-19