pl.wendigo.chrome.api.layertree / Layer

Layer

data class Layer (source)

Information about a compositing layer.

Link
LayerTree#Layer type documentation.

Constructors

<init>

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.

Properties

anchorX

val anchorX: Double?

Transform anchor point X, absent if no transform specified

anchorY

val anchorY: Double?

Transform anchor point Y, absent if no transform specified

anchorZ

val anchorZ: Double?

Transform anchor point Z, absent if no transform specified

backendNodeId

val backendNodeId: BackendNodeId?

The backend id for the node associated with this layer.

drawsContent

val drawsContent: Boolean

Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.

height

val height: Double

Layer height.

invisible

val invisible: Boolean?

Set if layer is not visible.

layerId

val layerId: LayerId

The unique id for this layer.

offsetX

val offsetX: Double

Offset from parent layer, X coordinate.

offsetY

val offsetY: Double

Offset from parent layer, Y coordinate.

paintCount

val paintCount: Int

Indicates how many time this layer has painted.

parentLayerId

val parentLayerId: LayerId?

The id of parent (not present for root).

scrollRects

val scrollRects: List<ScrollRect>?

Rectangles scrolling on main thread only.

stickyPositionConstraint

val stickyPositionConstraint: StickyPositionConstraint?

Sticky position constraint information

transform

val transform: List<Double>?

Transformation matrix for layer, default is identity matrix

width

val width: Double

Layer width.