2 // System.Windows.Forms.InvalidateEventArgs.cs
\r
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
\r
6 // Partially completed by Dennis Hayes (dennish@raytek.com)
\r
7 // Gianandrea Terzi (gianandrea.terzi@lario.com)
\r
9 // (C) 2002 Ximian, Inc
\r
11 using System.Drawing;
\r
12 namespace System.Windows.Forms {
\r
15 // This is only a template. Nothing is implemented yet.
\r
19 public class InvalidateEventArgs : EventArgs {
\r
22 private Rectangle InvalidRectangle;
\r
28 public InvalidateEventArgs(Rectangle invalidRect)
\r
30 InvalidRectangle = invalidRect;
\r
33 #region Public Properties
\r
34 public Rectangle InvalidRect
\r
37 return InvalidRectangle;
\r
42 #region Public Methods
\r
45 /// Equality Operator
\r
49 /// Compares two InvalidateEventArgs objects.
\r
50 /// The return value is based on the equivalence of
\r
51 /// InvalidRect Property
\r
52 /// of the two InvalidateEventArgs.
\r
54 public static bool operator == (InvalidateEventArgs InvalidateEventArgsA, InvalidateEventArgs InvalidateEventArgsB)
\r
56 return (InvalidateEventArgsA.InvalidRect == InvalidateEventArgsB.InvalidRect);
\r
61 /// Inequality Operator
\r
65 /// Compares two InvalidateEventArgs objects.
\r
66 /// The return value is based on the equivalence of
\r
67 /// InvalidRect Property
\r
68 /// of the two InvalidateEventArgs.
\r
70 public static bool operator != (InvalidateEventArgs InvalidateEventArgsA, InvalidateEventArgs InvalidateEventArgsB)
\r
72 return (InvalidateEventArgsA.InvalidRect != InvalidateEventArgsB.InvalidRect);
\r
81 /// Checks equivalence of this
\r
82 /// InvalidateEventArgs and another
\r
85 public override bool Equals (object obj)
\r
87 if (!(obj is InvalidateEventArgs))return false;
\r
88 return (this == (InvalidateEventArgs) obj);
\r
92 /// GetHashCode Method
\r
96 /// Calculates a hashing value.
\r
99 public override int GetHashCode ()
\r
101 //FIXME: add class specific stuff;
\r
102 return base.GetHashCode();
\r
106 /// ToString Method
\r
110 /// Formats the object as a string.
\r
113 public override string ToString ()
\r
115 //FIXME: add class specific stuff;
\r
116 return base.ToString() + " InvalidateEventArgs";
\r