This commit adds the basic infrastructure for paths. The public APIs consists of GskPath, GskPathPoint and GskPathBuilder. GskPath is a data structure for paths that consists of contours, which in turn might contain Bézier curves. The Bezier data structure is inspired by Skia, with separate arrays for points and operations. One advantage of this arrangement is that start and end points are shared between adjacent curves. In addition to the usual contours comprised of Bézier segments, GskPath supports specialized contours directly, such as rectangles, rounded rectangles and circles.
16 MiB
16 MiB
The file is too large to be shown.
View Raw