[cairo] [RFC] Color space API (partial proposal)

Bill Spitzak spitzak at gmail.com
Mon Feb 22 21:41:22 PST 2010

Jon Cruz wrote:
> On Feb 22, 2010, at 1:53 PM, Bill Spitzak wrote:
>> I do not think cairo_color_t is necessary, just the cairo_color_space_t. I would prefer to set colors with an api like this:
>> 	cairo_set_source_color(cairo_t*, cairo_color_space_t*, void* data)
> Again, untyped raw pointers are generally a poor software engineering solution. If it could be constrained at least a little the using code will be much more robust.

This is probably right though exactly the same problem exists for 
Cairo's image api.

Wrapper functions with the correct type signature could probably help here.

More information about the cairo mailing list