[cairo] Bindings and virtual functions

Adam Lofts adam.lofts at gmail.com
Thu May 26 01:51:52 PDT 2005


Hi,

I phrased my message pretty badly, what I should have done is simply drawn 
your attention to the bug. Have you read it? 3 out of 4 people in the 
discussion disagree with this.

Thanks,
Adam


On 5/25/05, Owen Taylor <otaylor at redhat.com> wrote:
> 
> On Wed, 2005-05-25 at 16:26 +0100, Adam Lofts wrote:
> > Hello,
> >
> > I recently filed a bug in mono bugzilla about making cairo drawing
> > operations (i.e. functions in Mono.Cairo.Graphics) virtual, see
> > http://bugzilla.ximian.com/show_bug.cgi?id=75028. This needs more
> > discussion, the main questions being -
> >
> > Which (if any) of the Cairo functions should be marked virtual ?
> > Is it useful to be able to really overload the Cairo public api (this
> > would require Cairo to use gobject or something similar) ?
> >
> > The answers should be added to the bindings section of the manual.
> 
> The bindings section of the manual recommends not allowing users
> to derive from cairo_t if at all possible. (Because of the potential
> problem of disassociation, mostly)
> 
> Beyond that, I don't think overriding any of the cairo_t methods
> makes sense. cairo_fill() has an exactly defined meaning. If you
> make it do something else in a subclass, then it's no longer
> cairo_fill(). So, call it something else.
> 
> Regards,
> Owen
> 
> 
> 
> BodyID:13884997.2.n.logpart (stored separately)
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20050526/dfc78474/attachment.html


More information about the cairo mailing list