layout
context(scope: ConstrainedScope)
fun SwingModifier.layout(measure: MeasureScope.(measurable: Measurable, constraints: Constraints) -> MeasureResult): SwingModifier
fun SwingModifier.layout(measure: MeasureScope.(measurable: Measurable, constraints: Constraints) -> MeasureResult): SwingModifier
Measures and places the child with measure, a layout modifier written as a lambda: measure measures the child's measurable under the constraints it is handed, and answers with MeasureScope.layout.
Its intrinsic answers are those every LayoutModifierNode gives by default. measure may also run to answer a container's size query, so it must have no effect beyond its answer; a modifier that drives state across passes is a LayoutModifierNodeElement.
Return
this modifier with the measurement declared on it.
Parameters
measure
measures and places the child under the constraints this modifier receives.