layoutBoxInParent

The layout box of this node's component, as its Foundation container last placed it: the box the container sizes and aligns. Every node of the modifier reads the same box. It is the layout bounds, moved in by what the component's paintOutsets value names past its decoration's outsets, or out where those outsets reach further than the value names. Without a value, the box is the layout bounds.

The box is relative to the container's component, as component.bounds is. onPlaced reports layout coordinates, which differ from these by the container's paint outsets.

The component repaints when the box changes, so a drawing made from the box needs no repaint request of its own.

Reads no snapshot state. Call it on the event dispatch thread.

Return

the box as a new Rectangle; null before the container has received this node, under a parent that is no Foundation container, before the container first places the component, and while the container's last placement left the component unplaced.

Throws

if this node is not attached, or if it is read while its container places its children.