Layout

A baseclass of Layout object. Layout object decides children position to place and calculates all styles.

Constructors

this
this(Placer placer, Layoutable owner)

Members

Functions

place
void place(vec2 , vec2 )

Calculates styles and decodes position of children.

placeEasily
bool placeEasily(vec2 basepos, vec2 parentSize)

Just moves the owner and the children to pos if no need to layout completely.

shift
void shift(vec2 size)

Moves the owner and the children.

updateDirtyState
bool updateDirtyState()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

children
children [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
owner
owner [@property getter]

Owner of the layout.

placer
inout(Placer) placer [@property getter]

Placer of the layout.

style
style [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_beforeBasePos
vec2 _beforeBasePos;
Undocumented in source.
_beforeParentSize
vec2 _beforeParentSize;
Undocumented in source.
_owner
Layoutable _owner;
Undocumented in source.
_placer
Placer _placer;
Undocumented in source.
_status
LayoutState _status;
Undocumented in source.

Meta