Method ScreenToViewport | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
ScreenToViewport(in Point)
Converts a screen-relative coordinate to a Viewport-relative coordinate.
public Point ScreenToViewport(in Point location)
Parameters
location
Point
Screen-Relative Coordinate.
Returns
The coordinate relative to this view's Viewport.
Remarks
Viewport-relative means relative to the top-left corner of the inner rectangle of the Padding.