Function Viewport.setAttachToScreenRect

Attaches this Viewport to the root Viewport with the specified rectangle. This bypasses the need for another node to display this Viewport but makes you responsible for updating the position of this Viewport manually.

void setAttachToScreenRect (
  const(Rect2) rect
) nothrow @nogc;