Function Viewport.getVisibleRect

Returns the visible rectangle in global screen coordinates.

Rect2 getVisibleRect() nothrow @nogc const;