#nullable enable
using System.ComponentModel;
namespace Terminal.Gui;
/// Describes a mouse event over a specific in a .
public class TabMouseEventArgs : HandledEventArgs
{
/// 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, MouseEventArgs mouseEvent)
{
Tab = tab;
MouseEvent = mouseEvent;
}
///
/// Gets the actual mouse event. Use to cancel this event and perform custom
/// behavior (e.g. show a context menu).
///
public MouseEventArgs MouseEvent { get; }
/// 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; }
}