ApproachIntrinsicMeasureScope


Known direct subclasses
ApproachMeasureScope

ApproachMeasureScope provides access to lookahead results to allow ApproachLayoutModifierNode to leverage lookahead results to define how measurements and placements approach their destination.


The receiver scope of a layout's intrinsic approach measurements lambdas.

Summary

Public properties

Constraints

Constraints used to measure the layout in the lookahead pass.

Cmn
IntSize

Size of the ApproachLayoutModifierNode measured during the lookahead pass using lookaheadConstraints.

Cmn

Inherited functions

From androidx.compose.ui.unit.Density
open Int

Convert Dp to Int by rounding

Cmn
open Int

Convert Sp to Int by rounding

Cmn
open Dp

Convert an Int pixel value to Dp.

Cmn
open Dp

Convert a Float pixel value to a Dp

Cmn
open DpSize

Convert a Size to a DpSize.

Cmn
open Float

Convert Dp to pixels.

Cmn
open Float

Convert Sp to pixels.

Cmn
open Rect

Convert a DpRect to a Rect.

Cmn
open Size

Convert a DpSize to a Size.

Cmn
open TextUnit

Convert an Int pixel value to Sp.

Cmn
open TextUnit

Convert a Float pixel value to a Sp

Cmn
From androidx.compose.ui.unit.FontScaling
open Dp

Convert Sp to Dp.

Cmn
open TextUnit

Convert Dp to Sp.

Cmn

Inherited properties

From androidx.compose.ui.unit.Density
Float

The logical density of the display.

Cmn
From androidx.compose.ui.unit.FontScaling
Float

Current user preference for the scaling factor for fonts.

Cmn
From androidx.compose.ui.layout.IntrinsicMeasureScope
open Boolean

This indicates whether the ongoing measurement is for lookahead pass.

Cmn
LayoutDirection

The LayoutDirection of the Layout or LayoutModifier using the measure scope to measure their children.

Cmn

Public properties

lookaheadConstraints

val lookaheadConstraintsConstraints

Constraints used to measure the layout in the lookahead pass.

lookaheadSize

val lookaheadSizeIntSize

Size of the ApproachLayoutModifierNode measured during the lookahead pass using lookaheadConstraints. This size can be used as the target size for the ApproachLayoutModifierNode to approach the destination (i.e. lookahead) size.