Struct chromiumoxide_cdp::cdp::browser_protocol::layer_tree::Layer[][src]

pub struct Layer {
Show fields pub layer_id: LayerId, pub parent_layer_id: Option<LayerId>, pub backend_node_id: Option<BackendNodeId>, pub offset_x: f64, pub offset_y: f64, pub width: f64, pub height: f64, pub transform: Option<Vec<f64>>, pub anchor_x: Option<f64>, pub anchor_y: Option<f64>, pub anchor_z: Option<f64>, pub paint_count: i64, pub draws_content: bool, pub invisible: Option<bool>, pub scroll_rects: Option<Vec<ScrollRect>>, pub sticky_position_constraint: Option<StickyPositionConstraint>,
}
Expand description

Information about a compositing layer. Layer

Fields

layer_id: LayerId

The unique id for this layer.

parent_layer_id: Option<LayerId>

The id of parent (not present for root).

backend_node_id: Option<BackendNodeId>

The backend id for the node associated with this layer.

offset_x: f64

Offset from parent layer, X coordinate.

offset_y: f64

Offset from parent layer, Y coordinate.

width: f64

Layer width.

height: f64

Layer height.

transform: Option<Vec<f64>>

Transformation matrix for layer, default is identity matrix

anchor_x: Option<f64>

Transform anchor point X, absent if no transform specified

anchor_y: Option<f64>

Transform anchor point Y, absent if no transform specified

anchor_z: Option<f64>

Transform anchor point Z, absent if no transform specified

paint_count: i64

Indicates how many time this layer has painted.

draws_content: bool

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

invisible: Option<bool>

Set if layer is not visible.

scroll_rects: Option<Vec<ScrollRect>>

Rectangles scrolling on main thread only.

sticky_position_constraint: Option<StickyPositionConstraint>

Sticky position constraint information

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.