[cairo] Re: cairo-java API review

Steve Chaplin stevech1097 at yahoo.com.au
Sun May 1 19:48:20 PDT 2005


On Sun, 2005-05-01 at 12:00 -0700, cairo-request at cairographics.org
wrote:
>    1. cairo-java API review (Owen Taylor)
> email message attachment
> On Sun, 2005-05-01 at 12:00 -0700, cairo-request at cairographics.org
> wrote:
> > I spent some time going through the cairo-java API in detail.
> > Unlike my recent Java-GNOME foray, this is meant to be comprehensive.
...
> > Pattern
> > =======
> > 
> >  Should be a heirarchy of classes
> > 
> >    Pattern
> >     [SolidPattern - doesn't exist in C]
> >     SurfacePattern
> >     Gradient
> >       LinearGradient
> >       RadialGradient
> > 
> >   To avoid having Pattern(4 doubles) return a linear gradient, Pattern(6 doubles)
> >   return a radial gradient, and to avoid having methods like addColorStop()
> >   which can be called on inappropriate pattern types.
> > 
> >   LinearGradient/RadialGradient constructors probably should have overloaded Point
> >   versions.

I think it would be a lot easier for bindings if the cairo docs were
organised into their implied class hierarchy - something more like the
way the gtk+ docs are organised.

Steve





More information about the cairo mailing list