chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.layertree / Layer

Layer

data class Layer

Information about a compositing layer.

Constructors

<init>

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)

Properties

anchorX

Transform anchor point X, absent if no transform specified

val anchorX: Double?

anchorY

Transform anchor point Y, absent if no transform specified

val anchorY: Double?

anchorZ

Transform anchor point Z, absent if no transform specified

val anchorZ: Double?

backendNodeId

The backend id for the node associated with this layer.

val backendNodeId: BackendNodeId?

drawsContent

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

val drawsContent: Boolean

height

Layer height.

val height: Double

invisible

Set if layer is not visible.

val invisible: Boolean?

layerId

The unique id for this layer.

val layerId: LayerId

offsetX

Offset from parent layer, X coordinate.

val offsetX: Double

offsetY

Offset from parent layer, Y coordinate.

val offsetY: Double

paintCount

Indicates how many time this layer has painted.

val paintCount: Int

parentLayerId

The id of parent (not present for root).

val parentLayerId: LayerId?

scrollRects

Rectangles scrolling on main thread only.

val scrollRects: List<ScrollRect>?

stickyPositionConstraint

Sticky position constraint information

val stickyPositionConstraint: StickyPositionConstraint?

transform

Transformation matrix for layer, default is identity matrix

val transform: List<Double>?

width

Layer width.

val width: Double