foreach_intersection


Description:

[ Version ( since = "4.20" ) ]
public bool foreach_intersection (Path? path2, PathIntersectionFunc func)

Finds intersections between two paths.

This function finds intersections between this and path2, and calls func for each of them, in increasing order for this.

If path2 is not provided or equal to this, the function finds non-trivial self-intersections of this.

When segments of the paths coincide, the callback is called once for the start of the segment, with GSK_PATH_INTERSECTION_START, and once for the end of the segment, with GSK_PATH_INTERSECTION_END. Note that other intersections may occur between the start and end of such a segment.

If func returns `FALSE`, the iteration is stopped.

Parameters:

this

the first path

path2

the second path

func

the function to call for intersections

user_data

user data passed to func

Returns:

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