[cairo] Re-working cairo_current_path
Keith Packard
keithp at keithp.com
Mon Jan 24 11:03:34 PST 2005
Around 13 o'clock on Jan 24, =?UTF-8?B?S3Jpc3RpYW4gSMO4Z3NiZXJn?= wrote:
> Ah, right, take the length out of the cairo_path_element_t and keep
> knowledge of element size inside cairo. Yeah, that's better and makes
> it possible to adjust the path representation later on if necessary.
If we need to change the path representation, we can create a new
function that returns the new type. As long as this datatype is allocated
explicitly for the clients use and isn't simply returned as a pointer to
the internal state of the path, I don't see the benefit in making the
contents opaque. It's not like applications are going to magically be
able to deal with a new component of the path...
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050124/1efad80b/attachment.pgp
More information about the cairo
mailing list