layout abstract method

void layout(
  1. LayoutConstraints constraints
)

Lays this item out under constraints, leaving size reporting the result.

An item that can't lay itself out any further does nothing at all, keeping whatever intrinsic size it already had.

Returns nothing on purpose: size is the only channel, so an algorithm needing sizes in a later pass reads them back off the item instead of keeping its own copies.

Implementation

void layout(LayoutConstraints constraints);