DrawString implementation
[mono.git] / mcs / class / System.Drawing / System.Drawing / Brush.cs
1 //
2 // System.Drawing.Brush.cs
3 //
4 // Author:
5 //   Miguel de Icaza (miguel@ximian.com)
6 //
7 // (C) Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System;
11
12 namespace System.Drawing {
13
14         public abstract class Brush : MarshalByRefObject, ICloneable, IDisposable {
15
16                 abstract public object Clone ();
17         
18                 internal System.Drawing.IBrush  implementation_ = null;
19         
20                 internal Brush()
21                 {
22                 }
23
24                 public void Dispose ()
25                 {
26                         implementation_.Dispose();
27                         Dispose (true);
28                         System.GC.SuppressFinalize (this);
29                 }
30
31                 protected virtual void Dispose (bool disposing)
32                 {
33                         // Nothing for now.
34                 }
35
36                 ~Brush ()
37                 {
38                         Dispose (false);
39                 }
40                 
41         }
42 }
43