data class Layer
(source)
Information about a compositing layer.
Layer(layerId: LayerId, parentLayerId: LayerId? = null, backendNodeId: BackendNodeId? = null, offsetX: Double, offsetY: Double, width: Double, height: Double, transform: List<Double>? = null, anchorX: Double? = null, anchorY: Double? = null, anchorZ: Double? = null, paintCount: Int, drawsContent: Boolean, invisible: Boolean? = null, scrollRects: List<ScrollRect>? = null, stickyPositionConstraint: StickyPositionConstraint? = null)
Information about a compositing layer. |
val anchorX: Double?
Transform anchor point X, absent if no transform specified |
|
val anchorY: Double?
Transform anchor point Y, absent if no transform specified |
|
val anchorZ: Double?
Transform anchor point Z, absent if no transform specified |
|
val backendNodeId: BackendNodeId?
The backend id for the node associated with this layer. |
|
val drawsContent: Boolean
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only. |
|
val height: Double
Layer height. |
|
val invisible: Boolean?
Set if layer is not visible. |
|
val layerId: LayerId
The unique id for this layer. |
|
val offsetX: Double
Offset from parent layer, X coordinate. |
|
val offsetY: Double
Offset from parent layer, Y coordinate. |
|
val paintCount: Int
Indicates how many time this layer has painted. |
|
val parentLayerId: LayerId?
The id of parent (not present for root). |
|
val scrollRects: List<ScrollRect>?
Rectangles scrolling on main thread only. |
|
val stickyPositionConstraint: StickyPositionConstraint?
Sticky position constraint information |
|
val transform: List<Double>?
Transformation matrix for layer, default is identity matrix |
|
val width: Double
Layer width. |