Function Viewport.setSizeOverride

Sets the size override of the viewport. If the enable parameter is true the override is used, otherwise it uses the default size. If the size parameter is (-1, -1), it won't update the size.

void setSizeOverride (
  const(bool) enable,
  const(Vector2) size = Vector2(0.00000F, , 0.00000F, , ).this(-1F, -1F),
  const(Vector2) margin = Vector2(0.00000F, , 0.00000F, , ).this(0.00000F, 0.00000F)
) nothrow @nogc;