//
// System.Windows.Forms.InvalidateEventArgs.cs
//
// Author:
// stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
// Partially completed by Dennis Hayes (dennish@raytek.com)
// Gianandrea Terzi (gianandrea.terzi@lario.com)
//
// (C) 2002 Ximian, Inc
//
using System.Drawing;
namespace System.Windows.Forms {
//
// This is only a template. Nothing is implemented yet.
//
//
public class InvalidateEventArgs : EventArgs {
#region Fields
private Rectangle InvalidRectangle;
#endregion
//
// --- Constructor
//
public InvalidateEventArgs(Rectangle invalidRect)
{
InvalidRectangle = invalidRect;
}
#region Public Properties
public Rectangle InvalidRect
{
get {
return InvalidRectangle;
}
}
#endregion
#region Public Methods
///
/// Equality Operator
///
///
///
/// Compares two InvalidateEventArgs objects.
/// The return value is based on the equivalence of
/// InvalidRect Property
/// of the two InvalidateEventArgs.
///
public static bool operator == (InvalidateEventArgs InvalidateEventArgsA, InvalidateEventArgs InvalidateEventArgsB)
{
return (InvalidateEventArgsA.InvalidRect == InvalidateEventArgsB.InvalidRect);
}
///
/// Inequality Operator
///
///
///
/// Compares two InvalidateEventArgs objects.
/// The return value is based on the equivalence of
/// InvalidRect Property
/// of the two InvalidateEventArgs.
///
public static bool operator != (InvalidateEventArgs InvalidateEventArgsA, InvalidateEventArgs InvalidateEventArgsB)
{
return (InvalidateEventArgsA.InvalidRect != InvalidateEventArgsB.InvalidRect);
}
///
/// Equals Method
///
///
///
/// Checks equivalence of this
/// InvalidateEventArgs and another
/// object.
///
public override bool Equals (object obj)
{
if (!(obj is InvalidateEventArgs))return false;
return (this == (InvalidateEventArgs) obj);
}
///
/// GetHashCode Method
///
///
///
/// Calculates a hashing value.
///
[MonoTODO]
public override int GetHashCode ()
{
//FIXME: add class specific stuff;
return base.GetHashCode();
}
///
/// ToString Method
///
///
///
/// Formats the object as a string.
///
[MonoTODO]
public override string ToString ()
{
//FIXME: add class specific stuff;
return base.ToString() + " InvalidateEventArgs";
}
#endregion
}
}