androidx.compose.ui.layout

RulerScope

Interface · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

A scope used in MeasureScope.layout for the rulers parameter to allow a layout to define Ruler values for children.

interface RulerScope : Density

Is a

Used by

Parameters that take a RulerScope.

Properties

coordinates

val coordinates: LayoutCoordinates

LayoutCoordinates of the position in the hierarchy that the Ruler will be provided``Ruler.provides.

Functions

provides

fun Ruler.provides(value: Float)

Provides a constant value for a Ruler.

providesRelative

fun VerticalRuler.providesRelative(value: Float)

Provides a VerticalRuler value that is relative to the left side in an LTR layout or right side on an RTL layout.

Library docs

A scope used in MeasureScope.layout for the rulers parameter to allow a layout to define Ruler values for children.