Function Control.setMarginsPreset

Sets the margins to a preset from Control.layoutpreset enum. This is code equivalent of using the Layout menu in 2D editor. Use parameter resize_mode with constants from Control.layoutpresetmode to better determine the resulting size of the Control. Constant size will be ignored if used with presets that change size, e.g. PRESET_LEFT_WIDE. Use parameter margin to determine the gap between the Control and the edges.

void setMarginsPreset (
  const(long) preset,
  const(long) resize_mode = 0L,
  const(long) margin = 0L
) nothrow @nogc;