mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-24 04:11:35 -10:00
98 lines
2.8 KiB
C#
98 lines
2.8 KiB
C#
//
|
|
// System.Windows.Forms.StatusBarPanelClickEventArgs
|
|
//
|
|
// Author:
|
|
// stubbed out by Richard Baumann ([email protected])
|
|
// Partially completed by Dennis Hayes ([email protected])
|
|
//
|
|
// (C) Ximian, Inc., 2002
|
|
//
|
|
|
|
namespace System.Windows.Forms
|
|
{
|
|
/// <summary>
|
|
/// Provides data for the PanelClick event.
|
|
/// </summary>
|
|
public class StatusBarPanelClickEventArgs : MouseEventArgs
|
|
{
|
|
private StatusBarPanel panel;
|
|
|
|
/// --- Constructor ---
|
|
public StatusBarPanelClickEventArgs(StatusBarPanel panel, MouseButtons button, int clicks, int x, int y) : base(button, clicks, x, y, 0) {
|
|
this.panel = panel;
|
|
}
|
|
|
|
/// --- Properties ---
|
|
public StatusBarPanel StatusBarPanel {
|
|
get {
|
|
return panel;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Equality Operator
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Compares two StatusBarPanelClickEventArgs objects.
|
|
/// The return value is based on the equivalence of
|
|
/// the StatusBarPanel, Button, Clicks, X, and Y
|
|
/// properties of the two StatusBarPanelClickEventArgs.
|
|
/// </remarks>
|
|
public static bool operator == (StatusBarPanelClickEventArgs objA, StatusBarPanelClickEventArgs objB) {
|
|
return ((objA.panel == objB.panel) && (objA.Button == objB.Button) && (objA.Clicks == objB.Clicks) && (objA.X == objB.X) && (objA.Y == objB.Y));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Inequality Operator
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Compares two StatusBarPanelClickEventArgs objects.
|
|
/// The return value is based on the equivalence of
|
|
/// the StatusBarPanel, Button, Clicks, X, and Y
|
|
/// properties of the two StatusBarPanelClickEventArgs.
|
|
/// </remarks>
|
|
public static bool operator != (StatusBarPanelClickEventArgs objA, StatusBarPanelClickEventArgs objB) {
|
|
return ((objA.panel != objB.panel) || (objA.Button != objB.Button) || (objA.Clicks != objB.Clicks) || (objA.X != objB.X) || (objA.Y != objB.Y));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Equals Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Checks equivalence of this
|
|
/// StatusBarPanelClickEventArgs and another
|
|
/// object.
|
|
/// </remarks>
|
|
public override bool Equals (object o) {
|
|
if (!(o is StatusBarPanelClickEventArgs))return false;
|
|
return (this == (StatusBarPanelClickEventArgs) o);
|
|
}
|
|
|
|
/// <summary>
|
|
/// GetHashCode Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Calculates a hashing value.
|
|
/// </remarks>
|
|
public override int GetHashCode () {
|
|
return unchecked(panel.GetHashCode() * base.GetHashCode());
|
|
}
|
|
|
|
/// <summary>
|
|
/// ToString Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Formats the StatusBarPanelClickEventArgs as a string.
|
|
/// </remarks>
|
|
[MonoTODO]
|
|
public override string ToString () {
|
|
//FIXME: add class specific stuff;
|
|
return base.ToString();
|
|
}
|
|
}
|
|
} |