FillLayout

A layout object that fills the parent with the owner. This layout doesn't support children. You can specify Scalar.Auto at width or height to respect wantedSize. And you can also specify Scalar.None to fill the parent.

Constructors

this
this(Placer placer, Layoutable owner)

Members

Functions

fill
void fill(vec2 pt, vec2 sz)
Undocumented in source. Be warned that the author may not have intended to support it.
place
void place(vec2 pt, vec2 sz)
shrinkSize
void shrinkSize(vec2 sz)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Layout

_placer
Placer _placer;
Undocumented in source.
placer
inout(Placer) placer [@property getter]

Placer of the layout.

_owner
Layoutable _owner;
Undocumented in source.
owner
owner [@property getter]

Owner of the layout.

_status
LayoutState _status;
Undocumented in source.
_beforeBasePos
vec2 _beforeBasePos;
Undocumented in source.
_beforeParentSize
vec2 _beforeParentSize;
Undocumented in source.
children
children [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
style
style [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
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.
placeEasily
bool placeEasily(vec2 basepos, vec2 parentSize)

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

place
void place(vec2 , vec2 )

Calculates styles and decodes position of children.

Meta