5.2 GskPathForeachFunc

Callback: GskPathForeachFunc

A procedure given for it is called as (procedure op pts weight) ⇒ %return.

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 n-pts 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.

op

Passed: a <GskPathOperation>.

The operation

pts

Passed: a vector, each a <GraphenePoint>.

The points of the operation

weight

Passed: a real number.

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

%return

Returned: a boolean.

#t to continue iterating the path, #f to immediately abort and not call the function again.

n-pts

Not passed: guile-gi gives the length of pts.

The number of points

user-data

Not passed: it is the user data that guile-gi supplied.

The user data provided with the function