Widget.resize

void resize(int newX, int newY, int newWidth, int newHeight) nothrow @nogc

Resizes and repositions the widget.

Parameters

newXNew X position
newYNew Y position
newWidthNew width
newHeightNew height
void resize(Rect rect) nothrow @nogc

Resizes and repositions the widget using a Rect.

Parameters

rectNew bounds