Control.setAnchor

Sets the anchor identified by margin constant from margin enum to value anchor. A setter method for anchorBottom, anchorLeft, anchorRight and anchorTop. If keep_margin is true, margins aren't updated after this operation. If push_opposite_anchor is true and the opposite anchor overlaps this anchor, the opposite one will have its value overridden. For example, when setting left anchor to 1 and the right anchor has value of 0.5, the right anchor will also get value of 1. If push_opposite_anchor was false, the left anchor would get value 0.5.

struct Control
@nogc nothrow
void
setAnchor
(
in long margin
,
in double anchor
,
in bool keep_margin = false
,
in bool push_opposite_anchor = true
)

Meta