Window.SetSize - screenshakes/Desktopia GitHub Wiki

Sets the size of the window, in pixel.

public void SetSize(int width, int height)
{
    MoveWindow(
        Handle,
        (int) Rect.x,
        (int) Rect.y,
        width,
        height,
        true
    );

    Rect.Set(Rect.x, Rect.y, width, height);
}
public void SetSize(Vector2 size)
{
    SetSize((int) size.x, (int) size.y);
}