Added uninstall target
[mono.git] / mcs / class / System.Windows.Forms / WINELib / PaintEventArgs.cs
1 //\r
2 // System.Windows.Forms.PaintEventArgs.cs\r
3 //\r
4 // Author:\r
5 //   stubbed out by Paul Osman (paul.osman@sympatico.ca)\r
6 //      Dennis Hayes (dennish@raytek.com)\r
7 //  Gianandrea Terzi (gianandrea.terzi@lario.com)\r
8 //\r
9 // (C) 2002 Ximian, Inc\r
10 //\r
11 using System.Drawing;\r
12 \r
13 namespace System.Windows.Forms {\r
14 \r
15         // <summary>\r
16         //      This is only a template.  Nothing is implemented yet.\r
17         //\r
18         // </summary>\r
19 \r
20         public class PaintEventArgs : EventArgs, IDisposable {\r
21 \r
22                 #region Fields\r
23 \r
24                         private Graphics mgraphics;\r
25                         private Rectangle mclipRect;\r
26 \r
27                 #endregion\r
28 \r
29 \r
30                 public PaintEventArgs(Graphics graphics, Rectangle clipRect )\r
31                 {\r
32                                 this.mgraphics = graphics;\r
33                                 this.mclipRect = clipRect;\r
34                 }\r
35 \r
36                 \r
37                 #region Public Properties\r
38                 public Rectangle ClipRectangle \r
39                 {\r
40                         get {\r
41                                 return mclipRect;\r
42                         }\r
43                 }\r
44                 \r
45                 public Graphics Graphics {\r
46                         get {\r
47                                 return mgraphics;\r
48                         }\r
49                 }\r
50                 #endregion\r
51 \r
52                 #region Public Methods\r
53 \r
54                 [MonoTODO]\r
55                 public void Dispose()\r
56                 {\r
57                         throw new NotImplementedException ();\r
58                 }\r
59 \r
60                 /// <summary>\r
61                 ///     Equality Operator\r
62                 /// </summary>\r
63                 ///\r
64                 /// <remarks>\r
65                 ///     Compares two PaintEventArgs objects.\r
66                 ///     The return value is based on the equivalence of\r
67                 ///     Graphics and ClipRectangle Property\r
68                 ///     of the two PaintEventArgs.\r
69                 /// </remarks>\r
70                 public static bool operator == (PaintEventArgs PaintEventArgsA, PaintEventArgs PaintEventArgsB) \r
71                 {\r
72                         return (PaintEventArgsA.Graphics == PaintEventArgsB.Graphics) && (PaintEventArgsA.ClipRectangle == PaintEventArgsB.ClipRectangle);\r
73                 }\r
74                 \r
75                 /// <summary>\r
76                 ///     Inequality Operator\r
77                 /// </summary>\r
78                 ///\r
79                 /// <remarks>\r
80                 ///     Compares two PaintEventArgs objects.\r
81                 ///     The return value is based on the equivalence of\r
82                 ///     Graphics and ClipRectangle Property\r
83                 ///     of the two PaintEventArgs.\r
84                 /// </remarks>\r
85                 public static bool operator != (PaintEventArgs PaintEventArgsA, PaintEventArgs PaintEventArgsB) \r
86                 {\r
87                         return (PaintEventArgsA.Graphics != PaintEventArgsB.Graphics) || (PaintEventArgsA.ClipRectangle != PaintEventArgsB.ClipRectangle);\r
88                 }\r
89 \r
90                 /// <summary>\r
91                 ///     Equals Method\r
92                 /// </summary>\r
93                 ///\r
94                 /// <remarks>\r
95                 ///     Checks equivalence of this\r
96                 ///     PaintEventArgs and another\r
97                 ///     object.\r
98                 /// </remarks>\r
99                 public override bool Equals (object obj) \r
100                 {\r
101                         if (!(obj is PaintEventArgs))return false;\r
102                         return (this == (PaintEventArgs) obj);\r
103                 }\r
104 \r
105                 /// <summary>\r
106                 ///     GetHashCode Method\r
107                 /// </summary>\r
108                 ///\r
109                 /// <remarks>\r
110                 ///     Calculates a hashing value.\r
111                 /// </remarks>\r
112                 [MonoTODO]\r
113                 public override int GetHashCode () \r
114                 {\r
115                         //FIXME: add class specific stuff;\r
116                         return base.GetHashCode();\r
117                 }\r
118 \r
119                 /// <summary>\r
120                 ///     ToString Method\r
121                 /// </summary>\r
122                 ///\r
123                 /// <remarks>\r
124                 ///     Formats the object as a string.\r
125                 /// </remarks>\r
126                 [MonoTODO]\r
127                 public override string ToString () \r
128                 {\r
129                         //FIXME: add class specific stuff;\r
130                         return base.ToString();\r
131                 }\r
132 \r
133                 #endregion\r
134 \r
135                 #region Protected Methods\r
136 \r
137                 [MonoTODO]\r
138                 protected virtual void Dispose(bool disposing)\r
139                 {\r
140                         throw new NotImplementedException ();\r
141                 }\r
142                 \r
143                 #endregion\r
144 \r
145          }\r
146 }\r