@foreach


Description:

public bool @foreach (PathForeachFlags flags, PathForeachFunc func)

Calls func for every operation of the path.

Note that this may only approximate this, because paths can contain optimizations for various specialized contours, and depending on the flags, the path may be decomposed into simpler curves than the ones that it contained originally.

This function serves two purposes:

  • When the flags allow everything, it provides access to the raw, unmodified data of the path.
  • When the flags disallow certain operations, it provides an approximation of the path using just the allowed operations.

Parameters:

this

a `GskPath`

flags

flags to pass to the foreach function. See [flags@Gsk.PathForeachFlags] for details about flags

func

the function to call for operations

user_data

user data passed to func

Returns:

`FALSE` if func returned FALSE`, `TRUE` otherwise.