#nullable enable namespace Terminal.Gui.Input; /// /// Provides a collection of bound to s. /// /// /// public record struct MouseBinding : IInputBinding { /// Initializes a new instance. /// The commands this mouse binding will invoke. /// The mouse flags that triggered this binding. public MouseBinding (Command [] commands, MouseFlags mouseFlags) { Commands = commands; MouseEventArgs = new MouseEventArgs() { Flags = mouseFlags }; } /// Initializes a new instance. /// The commands this mouse binding will invoke. /// The mouse event that triggered this binding. public MouseBinding (Command [] commands, MouseEventArgs args) { Commands = commands; MouseEventArgs = args; } /// The commands this binding will invoke. public Command [] Commands { get; set; } /// public object? Data { get; set; } /// /// The mouse event arguments. /// public MouseEventArgs? MouseEventArgs { get; set; } }