androidx.compose.ui.layout
Placeable
Abstract class · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
A Placeable corresponds to a child layout that can be positioned by its parent layout. Most Placeables are the result of a Measurable.measure call.
abstract class Placeable : Measured
Is a
How to get one
Ready-made values and functions that return it
Used by
Parameters that take a Placeable.
approachLayout(isPlacementApproachInProgress)MeasureScope.layout(placementBlock)
Properties
width
val width: Int
The width, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured width of the layout (aka the width value passed into MeasureScope.layout), but can be different if the layout does not respect its incoming constraints: in these cases the width will be coerced inside the min and max width constraints - to access the actual width that the layout measured itself to, use measuredWidth.
height
val height: Int
The height, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured height of the layout (aka the height value passed into MeasureScope.layout), but can be different if the layout does not respect its incoming constraints: in these cases the height will be coerced inside the min and max height constraints - to access the actual height that the layout measured itself to, use measuredHeight.
Nested types
Library docs
A Placeable corresponds to a child layout that can be positioned by its parent layout. Most
Placeables are the result of a Measurable.measure call.
A Placeable should never be stored between measure calls.