[CpmlSegment] Rewrote API almost from scratch
commit62c5ebd51a0abb6118658ceb2396a07e7d020545
authorNicola Fontana <ntd@entidi.it>
Tue, 13 Jan 2009 21:25:20 +0000 (13 22:25 +0100)
committerNicola Fontana <ntd@entidi.it>
Tue, 13 Jan 2009 21:25:20 +0000 (13 22:25 +0100)
tree0a5b428605d2d32d6bfbeb48b6395d17f4c2e742
parenteceebed18d0424a145f3a39d72d911bfaf7dfe06
[CpmlSegment] Rewrote API almost from scratch

The old API was duplicating the path concept yet present on cairo
and the origin (kept in its own struct and detached from the cairo
path) did not allow interchange between cpml and cairo.

The new API is by far cleaner, using less functions, and it is a
real complement to the cairo path, not a substitute. The CpmlSegment
is now an internal structure that helps to modify the original
cairo_path_t passed in cpml_segment_init(), the cpml entry point.
cpml/cpml-segment.c
cpml/cpml-segment.h