mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* PaintEventHandler.cs * PropertyTabChangedEventArgs.cs * PropertyTabChangedEventHandler.cs * PropertyValueChangedEventArgs.cs * PropertyValueChangedEventHandler.cs * QueryAccessibilityHelpEventArgs.cs * QueryAccessibilityHelpEventHandler.cs * QueryContinueDragEventArgs.cs * QueryContinueDragEventHandler.cs * RightToLeft.cs * ScrollEventArgs.cs * ScrollEventHandler.cs * ScrollEventType.cs * SelectedGridItemChangedEventArgs.cs * SelectedGridItemChangedEventHandler.cs * SizeGripStyle.cs * SplitterEventArgs.cs * SplitterEventHandler.cs * StatusBar.cs * StatusBarDrawItemEventArgs.cs * StatusBarDrawItemEventHandler.cs * StatusBarPanel.cs svn path=/trunk/mcs/; revision=8438
149 lines
3.3 KiB
C#
149 lines
3.3 KiB
C#
//
|
|
// System.Windows.Forms.SplitterEventArgs.cs
|
|
//
|
|
// Author:
|
|
// stubbed out by Daniel Carrera ([email protected])
|
|
// Partially completed by Dennis Hayes ([email protected])
|
|
// Gianandrea Terzi ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc
|
|
//
|
|
|
|
namespace System.Windows.Forms {
|
|
|
|
// <summary>
|
|
// </summary>
|
|
|
|
[ComVisible(true)]
|
|
public class SplitterEventArgs : EventArgs {
|
|
|
|
#region Fields
|
|
private int x;
|
|
private int y;
|
|
private int splitx;
|
|
private int splity;
|
|
#endregion
|
|
|
|
//
|
|
// --- Constructor
|
|
//
|
|
public SplitterEventArgs(int x, int y, int splitX, int splitY)
|
|
{
|
|
this.x = x;
|
|
this.y = y;
|
|
splitx = splitX;
|
|
splity = splitY;
|
|
}
|
|
|
|
#region Public Properties
|
|
[ComVisible(true)]
|
|
public int SplitX {
|
|
get {
|
|
return splitx;
|
|
}
|
|
set {
|
|
splitx = value;
|
|
}
|
|
}
|
|
[ComVisible(true)]
|
|
public int SplitY {
|
|
get {
|
|
return splity;
|
|
}
|
|
set {
|
|
splity = value;
|
|
}
|
|
}
|
|
[ComVisible(true)]
|
|
public int X {
|
|
get {
|
|
return x;
|
|
}
|
|
}
|
|
[ComVisible(true)]
|
|
public int Y {
|
|
get {
|
|
return y;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Equality Operator
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Compares two SplitterEventArgs objects.
|
|
/// The return value is based on the equivalence of
|
|
/// SplitX, SplitY, X, Y Property
|
|
/// of the two SplitterEventArgs.
|
|
/// </remarks>
|
|
public static bool operator == (SplitterEventArgs SplitterEventArgsA, SplitterEventArgs SplitterEventArgsB)
|
|
{
|
|
return (SplitterEventArgsA.SplitX == SplitterEventArgsB.SplitX) && (SplitterEventArgsA.SplitY == SplitterEventArgsB.SplitY) && (SplitterEventArgsA.X == SplitterEventArgsB.X) && (SplitterEventArgsA.Y == SplitterEventArgsB.Y);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Inequality Operator
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Compares two SplitterEventArgs objects.
|
|
/// The return value is based on the equivalence of
|
|
/// SplitX, SplitY, X, Y Property
|
|
/// of the two SplitterEventArgs.
|
|
/// </remarks>
|
|
public static bool operator != (SplitterEventArgs SplitterEventArgsA, SplitterEventArgs SplitterEventArgsB)
|
|
{
|
|
return (SplitterEventArgsA.SplitX != SplitterEventArgsB.SplitX) || (SplitterEventArgsA.SplitY != SplitterEventArgsB.SplitY) || (SplitterEventArgsA.X != SplitterEventArgsB.X) || (SplitterEventArgsA.Y != SplitterEventArgsB.Y);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Equals Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Checks equivalence of this
|
|
/// UICuesEventArgs and another
|
|
/// object.
|
|
/// </remarks>
|
|
public override bool Equals (object obj)
|
|
{
|
|
if (!(obj is SplitterEventArgs))return false;
|
|
return (this == (SplitterEventArgs) obj);
|
|
}
|
|
|
|
/// <summary>
|
|
/// GetHashCode Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Calculates a hashing value.
|
|
/// </remarks>
|
|
[MonoTODO]
|
|
public override int GetHashCode ()
|
|
{
|
|
//FIXME: add class specific stuff;
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
/// <summary>
|
|
/// ToString Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Formats the SplitterEventArgs as a string.
|
|
/// </remarks>
|
|
[MonoTODO]
|
|
public override string ToString ()
|
|
{
|
|
//FIXME: add class specific stuff;
|
|
return base.ToString();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|