Function CanvasItem.getViewportRect

Returns the viewport's boundaries as a Rect2.

Rect2 getViewportRect() nothrow @nogc const;