123456789101112131415161718192021222324 |
- using System;
- namespace Terminal.Gui;
- /// <summary>
- /// Args for events about Size (e.g. Resized)
- /// </summary>
- public class SizeChangedEventArgs : EventArgs {
- /// <summary>
- /// Creates a new instance of the <see cref="SizeChangedEventArgs" /> class.
- /// </summary>
- /// <param name="size"></param>
- public SizeChangedEventArgs (Size size) => Size = size;
- /// <summary>
- /// Gets the size the event describes. This should reflect the new/current size after the event.
- /// </summary>
- public Size Size { get; }
- /// <summary>
- /// Set to <see langword="true" /> to cause the resize to be cancelled, if appropriate.
- /// </summary>
- public bool Cancel { get; set; }
- }
|