浏览代码

MouseEventArgs cleanup

Tig 9 月之前
父节点
当前提交
f7de547894
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Terminal.Gui/Input/MouseEventArgs.cs

+ 3 - 3
Terminal.Gui/Input/MouseEventArgs.cs

@@ -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}"; }
 }