MouseEventArgs cleanup

This commit is contained in:
Tig
2024-10-15 07:44:53 -06:00
parent 1363995326
commit f7de547894

View File

@@ -19,13 +19,13 @@ public class MouseEventArgs : HandledEventArgs
/// </summary>
public Point ScreenPosition { get; set; }
/// <summary>The deepest View who's screen coordinates are <see cref="ScreenPosition"/>.</summary>
/// <summary>The deepest View who's <see cref="View.Frame"/> contains <see cref="ScreenPosition"/>.</summary>
public View View { get; set; }
/// <summary>The position of the mouse in <see cref="View"/>'s Viewport-relative coordinates.</summary>
/// <summary>The position of the mouse in <see cref="View"/>'s Viewport-relative coordinates. Only valid if <see cref="View"/> is set.</summary>
public Point Position { get; set; }
/// <summary>Returns a <see cref="T:System.String"/> that represents the current <see cref="Terminal.Gui.MouseEventArgs"/>.</summary>
/// <returns>A <see cref="T:System.String"/> that represents the current <see cref="Terminal.Gui.MouseEventArgs"/>.</returns>
public override string ToString () { return $"({Position}):{Flags}"; }
public override string ToString () { return $"({ScreenPosition}):{Flags}:{View.Id}:{Position}"; }
}