Paths in GTK, part 2
In the first part of this series, we introduced the concept of paths and looked at how to create a GskPath. But there’s more to paths than that.
Many interesting properties of paths can change as you move along the trajectory of the path. To query such properties, we first need a way to pin down the point on the path that we are interested in.
GTK has the GskPathPoint struct for this purpose, and provides a number of functions to obtain them, such as gsk_path_get_closest_point(), which lets you find the point on the path that is closest to a given point.