- Fixed RadioButton display
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / PaintEventArgs.cs
1 //
2 // System.Windows.Forms.PaintEventArgs.cs
3 //
4 // Author:
5 //   stubbed out by Paul Osman (paul.osman@sympatico.ca)
6 //      Dennis Hayes (dennish@raytek.com)
7 //  Gianandrea Terzi (gianandrea.terzi@lario.com)
8 //
9 // (C) 2002 Ximian, Inc
10 //
11 using System.Drawing;
12
13 namespace System.Windows.Forms {
14
15         // <summary>
16         //
17         // </summary>
18
19         public class PaintEventArgs : EventArgs, IDisposable {
20
21                 #region Fields
22
23                         private Graphics mgraphics;
24                         private Rectangle mclipRect;
25
26                 #endregion
27
28                 public PaintEventArgs(Graphics graphics, Rectangle clipRect )
29                 {
30                                 this.mgraphics = graphics;
31                                 this.mclipRect = clipRect;
32                 }
33
34                 #region Public Properties
35                 public Rectangle ClipRectangle 
36                 {
37                         get {
38                                 return mclipRect;
39                         }
40                 }
41                 
42                 public Graphics Graphics {
43                         get {
44                                 return mgraphics;
45                         }
46                 }
47                 #endregion
48
49                 #region Public Methods
50
51                 public void Dispose()
52                 {
53                         //
54                         mgraphics.Dispose();
55                 }
56
57                 #endregion
58
59                 #region Protected Methods
60
61                 protected virtual void Dispose(bool disposing)
62                 {
63                         //
64                 }
65                 #endregion
66          }
67 }