---
title: "LayoutInfo"
description: "The public information about the layouts used internally as nodes in the Compose UI hierarchy."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
interface LayoutInfo
```


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


## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val width: Int
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val height: Int
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val coordinates: LayoutCoordinates
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val isPlaced: Boolean
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val parentInfo: LayoutInfo?
```


Parent of this layout.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val density: Density
```


The density in use for this layout.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val layoutDirection: LayoutDirection
```


The layout direction in use for this layout.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val viewConfiguration: ViewConfiguration
```


The `ViewConfiguration` in use for this layout.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val isAttached: Boolean
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val semanticsId: Int
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val isDeactivated: Boolean
```


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.



## Functions

```kotlin
fun getModifierInfo(): List<ModifierInfo>
```


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



