Method ScreenToViewport | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

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

Point

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.

Edit this page