[Cairo] New functions to get/set current path (in Cairo 0.1.4)
Owen Taylor
otaylor at redhat.com
Thu Sep 25 10:56:23 PDT 2003
On Thu, 2003-09-25 at 11:16, Carl Worth wrote:
> By request, I've added to Cairo the ability to get/set the current
> path. The necessary new functions are:
>
> cairo_path_t *
> cairo_current_path (cairo_t *cr);
>
> void
> cairo_set_path (cairo_t *cr, cairo_path_t *path);
>
> void
> cairo_path_destroy (cairo_path_t *path);
>
> A path returned by cairo_current_path will have coordinates in the
> current user space and cairo_set_path will transform from user to
> device space. This means that the path will be affected by changes to
> the transformation matrix that occur between cairo_current_path and
> cairo_set_path. I think this is the expected and desired behavior.
>
> As always, any feedback is quite welcome.
Needs reference counting or alternatively, a reasonably cheap
copy operation, or it will be a problem for language bindings.
Regards,
Owen
More information about the cairo
mailing list