Function Control.setAnchorsPreset
Sets the anchors to a preset
from Control
enum. This is code equivalent of using the Layout menu in 2D editor.
If keep_margins
is true
, control's position will also be updated.
void setAnchorsPreset
(
const(long) preset,
const(bool) keep_margins = false
) nothrow @nogc;