Package: gsk

Function gsk:path-foreach

Lambda List

gsk:path-foreach (path flags func)

Arguments

path -- a gsk:path instance
flags -- a gsk:path-foreach-flags value with the flags to pass to func
func -- a gsk:path-foreach-func callback function

Return Value

False if func returned false, true otherwise

Details

Calls func for every operation of the path. Note that this may only approximate path, 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.
Since 4.14
 

See also

#2024-11-12