Files
mono/mcs/class/System.Windows.Forms/WINELib/StatusBarPanelClickEventArgs.cs
T
Dennis Hayes f63cc01ee5 2002-10-18 DennisHayes <[email protected]>
* StatusBarPanelAutoSize.cs
	* StatusBarPanelBorderStyle.cs
	* StatusBarPanelClickEventArgs.cs
	* StatusBarPanelClickEventHandler.cs
	* StatusBarPanelStyle.cs
	* TabAlignment.cs
	* ToolBar.cs
	* ToolBarAppearance.cs
	* ToolBarButton.cs
	* ToolBarButtonClickEventArgs.cs
	* ToolBarButtonClickEventHandler.cs
	* ToolBarButtonStyle.cs
	* ToolBarTextAlign.cs
	* Tooltip.cs
	* TreeNode.cs
	* TreeNodeCollection.cs
	* TreeView.cs
	* TreeViewAction.cs
	* TreeViewCancelEventArgs.cs
	* TreeViewCancelEventHandler.cs
	* TreeViewEventArgs.cs
	* TreeViewEventHandler.cs
	* UICues.cs
	* UICuesEventArgs.cs
	* UICuesEventHandler.cs
	* UpDownEventArgs.cs
	* UpDownEventHandler.cs
	* WINELib.csproj
	* WINELib.csproj.user
	* winelib.sln

	* Moved file from SWF need for uncommented code.
	* Include porject file for Visual studio.
	* forgot solution file for visual studio.
	* will break winelib build because some classes that 
	* should be public are not marked as suh, so default to private.
	* resulting in error "visiblity does not match"
	* will fix and check in Tuseday.
	* planed to fix tonight, but am out of time and want to get this cjahecked in.

svn path=/trunk/mcs/; revision=8439
2002-10-21 03:25:38 +00:00

122 lines
3.1 KiB
C#

//
// System.Windows.Forms.StatusBarPanelClickEventArgs
//
// Author:
// stubbed out by Richard Baumann ([email protected])
// Partially completed by Dennis Hayes ([email protected])
// Gianandrea Terzi ([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;
}
#region Public Properties
/// <summary>
/// StatusBarPanel Property
/// </summary>
///
/// <remarks>
/// Gets the StatusBarPanel to draw.
/// </remarks>
public StatusBarPanel StatusBarPanel
{
get
{
return panel;
}
}
#endregion
#region Public Methods
/// <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 obj)
{
if (!(obj is StatusBarPanelClickEventArgs))return false;
return (this == (StatusBarPanelClickEventArgs) obj);
}
/// <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();
}
#endregion
}
}