# LayoutInfo

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/layout/LayoutInfo.kt+class:androidx.compose.ui.layout.LayoutInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  interface LayoutInfo
  ```

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/ModifierInfo>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#getModifierInfo()()` This returns a new List of `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier`s and the coordinates and any extra information that may be useful. | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutCoordinates` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#coordinates()` Coordinates of just the contents of the layout, after being affected by all modifiers. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#density()` The density in use for this layout. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#height()` The measured height of this layout and all of its modifiers. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#isAttached()` Returns true if this layout is currently a part of the layout tree. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#isDeactivated()` True if the node is deactivated. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#isPlaced()` Whether or not this layout and all of its parents have been placed in the hierarchy. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#isVirtual()` A layout node that is ignored by the layout system. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#layoutDirection()` The layout direction in use for this layout. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#parentInfo()` Parent of this layout. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#semanticsId()` Unique and stable id representing this node to the semantics system. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#viewConfiguration()` The `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration` in use for this layout. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#width()` The measured width of this layout and all of its modifiers. | Cmn |

| ### Extension properties |
|---|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo.https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutInfo#(androidx.compose.ui.layout.LayoutInfo).view()` Return the owner as a View from the associated LayoutNode. | android |

## Public functions

### getModifierInfo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

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

This returns a new List of `https://developer.android.com/reference/kotlin/androidx/compose/ui/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.

## Public properties

### coordinates

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val coordinates: LayoutCoordinates
```

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

### density

Cmn Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val density: Density
```

The density in use for this layout.

### height

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val height: Int
```

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

### isAttached

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val isAttached: Boolean
```

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

### isDeactivated

Cmn Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0)

```
open val isDeactivated: Boolean
```

True if the node is deactivated. For example, the children of `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/SubcomposeLayout.composable#SubcomposeLayout(androidx.compose.ui.Modifier,kotlin.Function2)` which are retained to be reused in future are considered deactivated.

### isPlaced

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val isPlaced: Boolean
```

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

### isVirtual

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.12.0)

```
open val isVirtual: Boolean
```

A layout node that is ignored by the layout system.

### layoutDirection

Cmn Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val layoutDirection: LayoutDirection
```

The layout direction in use for this layout.

### parentInfo

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val parentInfo: LayoutInfo?
```

Parent of this layout.

### semanticsId

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val semanticsId: Int
```

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

### viewConfiguration

Cmn Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val viewConfiguration: ViewConfiguration
```

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration` in use for this layout.

### width

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val width: Int
```

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

## Extension properties

### LayoutInfo.view

android Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/layout/LayoutInfo.android.kt+symbol:view)

```
val LayoutInfo.view: View?
```

Return the owner as a View from the associated LayoutNode.