{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LookaheadLayoutCoordinates


LookaheadLayoutCoordinates interface holds layout coordinates from both the lookahead calculation and the post-lookahead layout pass.

Summary

Inherited functions

From androidx.compose.ui.layout.LayoutCoordinates
operator Int
get(alignmentLine: AlignmentLine)

Returns the position in pixels of an alignment line, or AlignmentLine.Unspecified if the line is not provided.

Cmn
Rect
localBoundingBoxOf(
    sourceCoordinates: LayoutCoordinates,
    clipBounds: Boolean
)

Returns the bounding box of sourceCoordinates in the local coordinates.

Cmn
Offset
localPositionOf(
    sourceCoordinates: LayoutCoordinates,
    relativeToSource: Offset
)

Converts an relativeToSource in sourceCoordinates space into local coordinates.

Cmn
Offset
localToRoot(relativeToLocal: Offset)

Converts a local position within this layout into an offset from the root composable.

Cmn
Offset
localToWindow(relativeToLocal: Offset)

Converts relativeToLocal position within this layout into an Offset relative to the window's origin.

Cmn
open Unit
transformFrom(sourceCoordinates: LayoutCoordinates, matrix: Matrix)

Modifies matrix to be a transform to convert a coordinate in sourceCoordinates to a coordinate in this LayoutCoordinates.

Cmn
Offset
windowToLocal(relativeToWindow: Offset)

Converts relativeToWindow relative to the window's origin into an Offset relative to this layout.

Cmn

Inherited properties

From androidx.compose.ui.layout.LayoutCoordinates
Boolean

Returns false if the corresponding layout was detached from the hierarchy.

Cmn
LayoutCoordinates?

The coordinates of the parent layout modifier or parent layout if there is no parent layout modifier, or null if there is no parent.

Cmn
LayoutCoordinates?

The coordinates of the parent layout.

Cmn
Set<AlignmentLine>

The alignment lines provided for this layout, not including inherited lines.

Cmn
IntSize

The size of this layout in the local coordinates space.

Cmn