requiresLayout

open fun requiresLayout(container: PositionableContainer, old: Size, new: Size): Boolean

Indicates whether a layout is needed because of the given size change to the Container. This is called whenever the container's size changes.

Return

true if a layout is needed

Parameters

container

managed by this Layout

old

size of the container

new

size of the container


Indicates whether a layout is needed because of the given bounds change to a child of the given Container. This is called whenever the container's size changes.

Return

true if a layout is needed

Parameters

child

whose bounds has changed

of

the given container

old

bounds of the child

new

bounds of the child


Indicates whether a layout is needed because of the given size preferences change to a child of the given Container. This is called whenever the container's size changes.

Return

true if a layout is needed

Parameters

child

whose bounds has changed

of

the given container

old

preferences of the child

new

preferences of the child