MeshPattern.getPath

Gets path defining the patch patch_num for a mesh pattern. patch_num can range 0 to 1 less than the number returned by cairo_mesh_pattern_get_patch_count(). Since 1.12

class MeshPattern
cairo_path_t*
getPath
()

Parameters

patchNum uint

the patch number to return data for

Return Value

Type: cairo_path_t*

the path defining the patch, or a path with status CAIRO_STATUS_INVALID_INDEX if patch_num or point_num is not valid for pattern. If pattern is not a mesh pattern, a path with status CAIRO_STATUS_PATTERN_TYPE_MISMATCH is returned.

Meta