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.
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.