using System;
namespace Terminal.Gui {
///
/// Describes a mouse event over a specific in a .
///
public class TabMouseEventArgs : EventArgs {
///
/// Gets the (if any) that the mouse
/// was over when the occurred.
///
/// This will be null if the click is after last tab
/// or before first.
public Tab Tab { get; }
///
/// Gets the actual mouse event. Use to cancel this event
/// and perform custom behavior (e.g. show a context menu).
///
public MouseEvent MouseEvent { get; }
///
/// Creates a new instance of the class.
///
/// that the mouse was over when the event occurred.
/// The mouse activity being reported
public TabMouseEventArgs (Tab tab, MouseEvent mouseEvent)
{
Tab = tab;
MouseEvent = mouseEvent;
}
}
}