[cairo] add solid/gradient pattern info getters

Carl Worth cworth at cworth.org
Thu Sep 14 10:01:42 PDT 2006


On Thu, 14 Sep 2006 12:40:01 -0400, Behdad Esfahbod wrote:
>   cairo_pattern_get_color_stop_rgba (*pattern, *offset, *r, *g, *b, *a,
> index);
>   cairo_pattern_get_num_color_stops (*pattern, *num);

This has the nice advantage that the caller can use this approach to
fill in the their own data structure, (where it's quite unlikely that
the user would actually have color stops all in one flat array, so the
other approach would force a copy/conversion on the user).

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060914/db239b19/attachment.pgp


More information about the cairo mailing list