meshPatternSetControlPoint

fnvoid meshPatternSetControlPoint(cairo.pattern.Pattern pattern, uint pointNum, double x, double y)

Set an internal control point of the current patch.

Valid values for point_num are from 0 to 3 and identify the control points as explained in cairo.global.patternCreateMesh.

Note

If pattern is not a mesh pattern then pattern will be put

into an error status with a status of cairo.types.Status.PatternTypeMismatch. If point_num is not valid, pattern will be put into an error status with a status of cairo.types.Status.InvalidIndex. If pattern has no current patch, pattern will be put into an error status with a status of cairo.types.Status.InvalidMeshConstruction.

Parameters

patterna #cairo_pattern_t
pointNumthe control point to set the position for
xthe X coordinate of the control point
ythe Y coordinate of the control point