PathForeachFunc


Description:

[ CCode ( instance_pos = 3.9 ) ]
public delegate bool PathForeachFunc (PathOperation op, Point[] pts, float weight)

Type of the callback to iterate through the operations of a path.

For each operation, the callback is given the op itself, the points that the operation is applied to in pts, and a weight for conic curves. The pts.length argument is somewhat redundant, since the number of points can be inferred from the operation.

Each contour of the path starts with a GSK_PATH_MOVE operation. Closed contours end with a GSK_PATH_CLOSE operation.

Parameters:

op

The operation

pts

The points of the operation

weight

The weight for conic curves, or unused if not a conic curve

n_pts

The number of points

user_data

The user data provided with the function

Returns:

true to continue iterating the path, false to immediately abort and not call the function again.


Namespace: Gsk
Package: gtk4