2 // System.Windows.Forms.PaintEventArgs.cs
5 // stubbed out by Paul Osman (paul.osman@sympatico.ca)
6 // Dennis Hayes (dennish@raytek.com)
7 // Gianandrea Terzi (gianandrea.terzi@lario.com)
9 // (C) 2002 Ximian, Inc
13 namespace System
.Windows
.Forms
{
16 // This is only a template. Nothing is implemented yet.
20 public class PaintEventArgs
: EventArgs
, IDisposable
{
24 private Graphics mgraphics
;
25 private Rectangle mclipRect
;
30 public PaintEventArgs(Graphics graphics
, Rectangle clipRect
)
32 this.mgraphics
= graphics
;
33 this.mclipRect
= clipRect
;
37 #region Public Properties
38 public Rectangle ClipRectangle
45 public Graphics Graphics
{
52 #region Public Methods
57 throw new NotImplementedException ();
65 /// Compares two PaintEventArgs objects.
66 /// The return value is based on the equivalence of
67 /// Graphics and ClipRectangle Property
68 /// of the two PaintEventArgs.
70 public static bool operator == (PaintEventArgs PaintEventArgsA
, PaintEventArgs PaintEventArgsB
)
72 return (PaintEventArgsA
.Graphics
== PaintEventArgsB
.Graphics
) && (PaintEventArgsA
.ClipRectangle
== PaintEventArgsB
.ClipRectangle
);
76 /// Inequality Operator
80 /// Compares two PaintEventArgs objects.
81 /// The return value is based on the equivalence of
82 /// Graphics and ClipRectangle Property
83 /// of the two PaintEventArgs.
85 public static bool operator != (PaintEventArgs PaintEventArgsA
, PaintEventArgs PaintEventArgsB
)
87 return (PaintEventArgsA
.Graphics
!= PaintEventArgsB
.Graphics
) || (PaintEventArgsA
.ClipRectangle
!= PaintEventArgsB
.ClipRectangle
);
95 /// Checks equivalence of this
96 /// PaintEventArgs and another
99 public override bool Equals (object obj
)
101 if (!(obj
is PaintEventArgs
))return false;
102 return (this == (PaintEventArgs
) obj
);
106 /// GetHashCode Method
110 /// Calculates a hashing value.
113 public override int GetHashCode ()
115 //FIXME: add class specific stuff;
116 return base.GetHashCode();
124 /// Formats the object as a string.
127 public override string ToString ()
129 //FIXME: add class specific stuff;
130 return base.ToString();
135 #region Protected Methods
138 protected virtual void Dispose(bool disposing
)
140 throw new NotImplementedException ();