[cairo] Bindings and virtual functions
Owen Taylor
otaylor at redhat.com
Wed May 25 11:30:11 PDT 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050525/35e61ef6/attachment.pgp
More information about the cairo
mailing list