requiresLayout

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

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

Return

true if a layout is needed

Parameters

old

size of the container

new

size of the container


open fun requiresLayout(child: Positionable, within: Size, old: Rectangle, new: Rectangle): Boolean

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

Return

true if a layout is needed

Parameters

child

whose bounds has changed

within

the given size

old

bounds of the child

new

bounds of the child