MouseBinding.cs 562 B

1234567891011121314151617181920
  1. #nullable enable
  2. namespace Terminal.Gui;
  3. /// <summary>
  4. /// Provides a collection of <see cref="Command"/> objects for mouse events.
  5. /// </summary>
  6. /// <seealso cref="Command"/>
  7. public record struct MouseBinding
  8. {
  9. /// <summary>Initializes a new instance.</summary>
  10. /// <param name="commands">The commands this mouse binding will invoke.</param>
  11. public MouseBinding (Command [] commands)
  12. {
  13. Commands = commands;
  14. }
  15. /// <summary>The commands this key binding will invoke.</summary>
  16. public Command [] Commands { get; set; }
  17. }