SchemeEventArgs.cs 675 B

123456789101112131415161718192021
  1. #nullable enable
  2. using System.ComponentModel;
  3. namespace Terminal.Gui.Drawing;
  4. /// <summary>Event args for draw events</summary>
  5. public class SchemeEventArgs : CancelEventArgs
  6. {
  7. /// <summary>Creates a new instance of the <see cref="SchemeEventArgs"/> class.</summary>
  8. public SchemeEventArgs (in Scheme? currentScheme, ref Scheme? newScheme)
  9. {
  10. CurrentScheme = currentScheme;
  11. NewScheme = newScheme;
  12. }
  13. /// <summary>Gets the View's current <see cref="Scheme"/>.</summary>
  14. public Scheme? CurrentScheme { get; }
  15. /// <summary>Gets or sets the View's new <see cref="Scheme"/>.</summary>
  16. public Scheme? NewScheme { get; set; }
  17. }