struct Protocol::LayerTree::Layer

Overview

Information about a compositing layer.

Included Modules

Defined in:

protocol/layer_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def anchor_x : Number::Primitive | Nil #

Transform anchor point X, absent if no transform specified


[View source]
def anchor_y : Number::Primitive | Nil #

Transform anchor point Y, absent if no transform specified


[View source]
def anchor_z : Number::Primitive | Nil #

Transform anchor point Z, absent if no transform specified


[View source]
def backend_node_id : DOM::BackendNodeId | Nil #

The backend id for the node associated with this layer.


[View source]
def draws_content : Bool #

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


[View source]
def height : Number::Primitive #

Layer height.


[View source]
def invisible : Bool | Nil #

Set if layer is not visible.


[View source]
def layer_id : LayerId #

The unique id for this layer.


[View source]
def offset_x : Number::Primitive #

Offset from parent layer, X coordinate.


[View source]
def offset_y : Number::Primitive #

Offset from parent layer, Y coordinate.


[View source]
def paint_count : Int::Primitive #

Indicates how many time this layer has painted.


[View source]
def parent_layer_id : LayerId | Nil #

The id of parent (not present for root).


[View source]
def scroll_rects : Array(ScrollRect) | Nil #

Rectangles scrolling on main thread only.


[View source]
def sticky_position_constraint : StickyPositionConstraint | Nil #

Sticky position constraint information


[View source]
def transform : Array(Number::Primitive) | Nil #

Transformation matrix for layer, default is identity matrix


[View source]
def width : Number::Primitive #

Layer width.


[View source]