Set an internal control point of the current patch.

cairo_mesh_pattern_set_control_point(pattern, point_num, x, y)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

point_num

[unsigned int] the control point to set the position for

x

[double] the X coordinate of the control point

y

[double] the Y coordinate of the control point

Details

Valid values for point_num are from 0 to 3 and identify the control points as explained in cairo_pattern_create_mesh().

Note: If pattern is not a mesh pattern then pattern will be put into an error status with a status of %CAIRO_STATUS_PATTERN_TYPE_MISMATCH. If point_num is not valid, pattern will be put into an error status with a status of %CAIRO_STATUS_INVALID_INDEX. If pattern has no current patch, pattern will be put into an error status with a status of %CAIRO_STATUS_INVALID_MESH_CONSTRUCTION.

Since: 1.12

C function prototype: void cairo_mesh_pattern_set_control_point (cairo_pattern_t *pattern, unsigned int point_num, double x, double y)

See also