**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Windows.Forms / WINELib / InvalidateEventArgs.cs
blob67cbf6d2aacbd72fc986abb2b6d5b356d7cca967
1 //
2 // System.Windows.Forms.InvalidateEventArgs.cs
3 //
4 // Author:
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Partially completed by Dennis Hayes (dennish@raytek.com)
7 // Gianandrea Terzi (gianandrea.terzi@lario.com)
8 //
9 // (C) 2002 Ximian, Inc
11 using System.Drawing;
12 namespace System.Windows.Forms {
14 // <summary>
15 // This is only a template. Nothing is implemented yet.
17 // </summary>
19 public class InvalidateEventArgs : EventArgs {
21 #region Fields
22 private Rectangle InvalidRectangle;
23 #endregion
26 // --- Constructor
28 public InvalidateEventArgs(Rectangle invalidRect)
30 InvalidRectangle = invalidRect;
33 #region Public Properties
34 public Rectangle InvalidRect
36 get {
37 return InvalidRectangle;
40 #endregion
42 #region Public Methods
44 /// <summary>
45 /// Equality Operator
46 /// </summary>
47 ///
48 /// <remarks>
49 /// Compares two InvalidateEventArgs objects.
50 /// The return value is based on the equivalence of
51 /// InvalidRect Property
52 /// of the two InvalidateEventArgs.
53 /// </remarks>
54 public static bool operator == (InvalidateEventArgs InvalidateEventArgsA, InvalidateEventArgs InvalidateEventArgsB)
56 return (InvalidateEventArgsA.InvalidRect == InvalidateEventArgsB.InvalidRect);
60 /// <summary>
61 /// Inequality Operator
62 /// </summary>
63 ///
64 /// <remarks>
65 /// Compares two InvalidateEventArgs objects.
66 /// The return value is based on the equivalence of
67 /// InvalidRect Property
68 /// of the two InvalidateEventArgs.
69 /// </remarks>
70 public static bool operator != (InvalidateEventArgs InvalidateEventArgsA, InvalidateEventArgs InvalidateEventArgsB)
72 return (InvalidateEventArgsA.InvalidRect != InvalidateEventArgsB.InvalidRect);
76 /// <summary>
77 /// Equals Method
78 /// </summary>
79 ///
80 /// <remarks>
81 /// Checks equivalence of this
82 /// InvalidateEventArgs and another
83 /// object.
84 /// </remarks>
85 public override bool Equals (object obj)
87 if (!(obj is InvalidateEventArgs))return false;
88 return (this == (InvalidateEventArgs) obj);
91 /// <summary>
92 /// GetHashCode Method
93 /// </summary>
94 ///
95 /// <remarks>
96 /// Calculates a hashing value.
97 /// </remarks>
98 [MonoTODO]
99 public override int GetHashCode ()
101 //FIXME: add class specific stuff;
102 return base.GetHashCode();
105 /// <summary>
106 /// ToString Method
107 /// </summary>
109 /// <remarks>
110 /// Formats the object as a string.
111 /// </remarks>
112 [MonoTODO]
113 public override string ToString ()
115 //FIXME: add class specific stuff;
116 return base.ToString() + " InvalidateEventArgs";
120 #endregion