[cairo] Subtractive API, part 1

Jon Cruz jon at joncruz.org
Wed Feb 3 00:46:12 PST 2010


On Feb 2, 2010, at 3:22 PM, ecir hana wrote:

> On Sun, Jan 31, 2010 at 6:38 AM, Jon Cruz <jon at joncruz.org> wrote:
> 
>> void cairo_spot_set_profile( cairo_spot* spot, cairo_profile* profile );
>> cairo_spot* cairo_create_spot( const char* name, ... ); // not really varargs, just TBD
> 
> Why don't you supply "cairo_profile* profile" to "cairo_create_spot"?
> So a spot could have multiple profiles?

Then one would need extra functionality to select, query and set use cases for each profile. Leaving that to the using application is much simpler, so if simpler will work initially, then it is better. On the other hand, as complexity is needed by actual apps using things, then it can be added.


More information about the cairo mailing list