[cairo] Binding cairo_pattern_get_color_stop_rgba
kaffeetisch at gmx.de
Mon Jan 15 13:04:46 PST 2007
On Mon, 2007-01-08 at 10:52 +0800, Steve Chaplin wrote:
> returns one item from a list list[i] == (o,r,g,b,a)
> where list == [(o,r,g,b,a),
> (o,r,g,b,a), ...]
> It looks like cairo_pattern_get_color_stop_rgba() is the odd one out -
> it returns an item from a list whereas the others return lists.
> Why not simply return the whole list?
For what it's worth, that's exactly what I did for the Perl bindings:
name it get_color_stops and make it return a list of lists.
I think we should agree on a common name and common semantics. So, does
the above sound sensible to other language binding authors?
More information about the cairo