[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 12:51:51 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 adam.lofts at gmail.com.

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

--- shadow/75028	2005-05-23 11:32:37.000000000 -0400
+++ shadow/75028.tmp.29424	2005-05-23 12:51:51.000000000 -0400
@@ -33,6 +33,16 @@
 ------- Additional Comments From bmaurer at users.sf.net  2005-05-23 11:32 -------
 [benm at linux ~]$ monop System.Drawing.Graphics
 public sealed class Graphics : MarshalByRefObject, IDisposable {
 
 I think we should be consistant with s.drawing here and make it sealed
 rather than virtual.
+
+------- Additional Comments From adam.lofts at gmail.com  2005-05-23 12:51 -------
+Why make it sealed? Surely Sys.Drawing is sealed because it is
+accessed through a property i.e. Window.GetPen () or something - (this
+is actually just a guess).
+
+Because Cairo.Graphics is created _then_ assigned a surface
+subclassing it shouldn't be a problem. A function to draw custom
+shapes could be implemented for instance.
+


More information about the mono-bugs mailing list