LayoutInfo


The public information about the layouts used internally as nodes in the Compose UI hierarchy.

Summary

Public functions

List<ModifierInfo>

This returns a new List of Modifiers and the coordinates and any extra information that may be useful.

Cmn

Public properties

LayoutCoordinates

Coordinates of just the contents of the layout, after being affected by all modifiers.

Cmn
Density

The density in use for this layout.

Cmn
Int

The measured height of this layout and all of its modifiers.

Cmn
Boolean

Returns true if this layout is currently a part of the layout tree.

Cmn
open Boolean

True if the node is deactivated.

Cmn
Boolean

Whether or not this layout and all of its parents have been placed in the hierarchy.

Cmn
LayoutDirection

The layout direction in use for this layout.

Cmn
LayoutInfo?

Parent of this layout.

Cmn
Int

Unique and stable id representing this node to the semantics system.

Cmn
ViewConfiguration

The ViewConfiguration in use for this layout.

Cmn
Int

The measured width of this layout and all of its modifiers.

Cmn

Public functions

getModifierInfo

fun getModifierInfo(): List<ModifierInfo>

This returns a new List of Modifiers and the coordinates and any extra information that may be useful. This is used for tooling to retrieve layout modifier and layer information.

Public properties

coordinates

val coordinatesLayoutCoordinates

Coordinates of just the contents of the layout, after being affected by all modifiers.

density

val densityDensity

The density in use for this layout.

height

val heightInt

The measured height of this layout and all of its modifiers.

isAttached

val isAttachedBoolean

Returns true if this layout is currently a part of the layout tree.

isDeactivated

open val isDeactivatedBoolean

True if the node is deactivated. For example, the children of androidx.compose.ui.layout.SubcomposeLayout which are retained to be reused in future are considered deactivated.

isPlaced

val isPlacedBoolean

Whether or not this layout and all of its parents have been placed in the hierarchy.

layoutDirection

val layoutDirectionLayoutDirection

The layout direction in use for this layout.

parentInfo

val parentInfoLayoutInfo?

Parent of this layout.

semanticsId

val semanticsIdInt

Unique and stable id representing this node to the semantics system.

viewConfiguration

val viewConfigurationViewConfiguration

The ViewConfiguration in use for this layout.

width

val widthInt

The measured width of this layout and all of its modifiers.