alias Gsk::PathForeachFunc

Overview

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.

Alias Definition

Gsk::PathOperation, Graphene::Point, UInt64, Float32 -> Bool

Defined in:

lib/gi-crystal/src/auto/gsk-4.0/gsk.cr