[cairo] Bindings and virtual functions
adam.lofts at gmail.com
Thu May 26 01:51:52 PDT 2005
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.
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.
> BodyID:13884997.2.n.logpart (stored separately)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo