|
@@ -1,31 +1,24 @@
|
|
|
using System;
|
|
|
|
|
|
-namespace Terminal.Gui {
|
|
|
+namespace Terminal.Gui;
|
|
|
|
|
|
+/// <summary>
|
|
|
+/// Args for events about Size (e.g. Resized)
|
|
|
+/// </summary>
|
|
|
+public class SizeChangedEventArgs : EventArgs {
|
|
|
/// <summary>
|
|
|
- /// Args for events about Size (e.g. Resized)
|
|
|
+ /// Creates a new instance of the <see cref="SizeChangedEventArgs" /> class.
|
|
|
/// </summary>
|
|
|
- public class SizeChangedEventArgs : EventArgs {
|
|
|
+ /// <param name="size"></param>
|
|
|
+ public SizeChangedEventArgs (Size size) => Size = size;
|
|
|
|
|
|
- /// <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
|
|
|
- /// resolved.
|
|
|
- /// </summary>
|
|
|
- public Size Size { get; }
|
|
|
+ /// <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; }
|
|
|
- }
|
|
|
-}
|
|
|
+ /// <summary>
|
|
|
+ /// Set to <see langword="true" /> to cause the resize to be cancelled, if appropriate.
|
|
|
+ /// </summary>
|
|
|
+ public bool Cancel { get; set; }
|
|
|
+}
|