UIElement.reflow

The goal of this method is to update positions of childrens. It is called whenever _position changes.

It is called after a widget position is changed. Given information with position getter, the widget decides the position of its children, by calling their position setter (which will call reflow itself).

reflow() cannot be used to set the own position of a widget: it is always done externally. You shouldn't call reflow yourself, instead use position = x;.

Like in the DOM, children elements don't need to be inside position of their parent. The _position field is indeed storing an absolute position.

class UIElement
nothrow @nogc
void
reflow
()

See Also

position, _position.

Meta