[Mono-bugs] [Bug 75028][Wis] Changed - Cairo graphics class should have virtual functions

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 23 16:46:37 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer at users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=75028

--- shadow/75028	2005-05-23 16:40:17.000000000 -0400
+++ shadow/75028.tmp.4010	2005-05-23 16:46:37.000000000 -0400
@@ -78,6 +78,21 @@
 change how Cairo draws graphics (or maybe they would ?). If Cairo gets
 gobject-ified (as there has been discussion) then of course this sort
 of thing might work!.
 
 Anyhow, I'm not really too bothered. It just makes my code a bit more
 messy. It should be either sealed or virtual. You choose.
+
+------- Additional Comments From bmaurer at users.sf.net  2005-05-23 16:46 -------
+"Doesn't this apply to any class wrapping unmanaged code? When will
+anyone pass an overridden graphics object to unmanaged code (and then
+get it back) ? I could use the same argument to make Gtk.TextView sealed."
+
+Gtk# has code to handle this. Cairo doesn't
+
+"Most of the functions would never call another function within the
+Graphics class. Noone expects overriding Cairo.TransformPoint to
+change how Cairo draws graphics (or maybe they would ?)"
+
+Yes they would. That's what overriding is used for.
+
+Anyways, I strongly vote sealed.


More information about the mono-bugs mailing list