struct Protocol::LayerTree::Layer
- Protocol::LayerTree::Layer
- Struct
- Value
- Object
Overview
Information about a compositing layer.
Included Modules
- JSON::Serializable
Defined in:
protocol/layer_tree.crConstructors
Instance Method Summary
-
#anchor_x : Number::Primitive | Nil
Transform anchor point X, absent if no transform specified
-
#anchor_y : Number::Primitive | Nil
Transform anchor point Y, absent if no transform specified
-
#anchor_z : Number::Primitive | Nil
Transform anchor point Z, absent if no transform specified
-
#backend_node_id : DOM::BackendNodeId | Nil
The backend id for the node associated with this layer.
-
#draws_content : Bool
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
-
#height : Number::Primitive
Layer height.
-
#invisible : Bool | Nil
Set if layer is not visible.
-
#layer_id : LayerId
The unique id for this layer.
-
#offset_x : Number::Primitive
Offset from parent layer, X coordinate.
-
#offset_y : Number::Primitive
Offset from parent layer, Y coordinate.
-
#paint_count : Int::Primitive
Indicates how many time this layer has painted.
-
#parent_layer_id : LayerId | Nil
The id of parent (not present for root).
-
#scroll_rects : Array(ScrollRect) | Nil
Rectangles scrolling on main thread only.
-
#sticky_position_constraint : StickyPositionConstraint | Nil
Sticky position constraint information
-
#transform : Array(Number::Primitive) | Nil
Transformation matrix for layer, default is identity matrix
-
#width : Number::Primitive
Layer width.
Constructor Detail
Instance Method Detail
The backend id for the node associated with this layer.
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
Sticky position constraint information
Transformation matrix for layer, default is identity matrix