LayoutInfo
-
Cmn
interface 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 |
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 |
Cmn
|
Int |
The measured width of this layout and all of its modifiers. |
Cmn
|
Extension properties |
||
|---|---|---|
View? |
Return the owner as a View from the associated LayoutNode. |
android
|
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 coordinates: LayoutCoordinates
Coordinates of just the contents of the layout, after being affected by all modifiers.
isAttached
val isAttached: Boolean
Returns true if this layout is currently a part of the layout tree.
isDeactivated
open 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.
isPlaced
val isPlaced: Boolean
Whether or not this layout and all of its parents have been placed in the hierarchy.
semanticsId
val semanticsId: Int
Unique and stable id representing this node to the semantics system.
viewConfiguration
val viewConfiguration: ViewConfiguration
The ViewConfiguration in use for this layout.