Function Control.setSize

Sets the size (see rectSize). If keep_margins is true, control's anchors will be updated instead of margins.

void setSize (
  const(Vector2) size,
  const(bool) keep_margins = false
) nothrow @nogc;