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

pub struct Layer<'a> {
    pub layer_id: LayerId<'a>,
    pub parent_layer_id: Option<LayerId<'a>>,
    pub backend_node_id: Option<BackendNodeId>,
    pub offset_x: f64,
    pub offset_y: f64,
    pub width: f64,
    pub height: f64,
    pub transform: Option<[f64; 16]>,
    pub anchor_x: Option<f64>,
    pub anchor_y: Option<f64>,
    pub anchor_z: Option<f64>,
    pub paint_count: i32,
    pub draws_content: bool,
    pub invisible: Option<bool>,
    pub scroll_rects: Option<Vec<ScrollRect>>,
    pub sticky_position_constraint: Option<StickyPositionConstraint<'a>>,
}

[Experimental] Information about a compositing layer.

Fields

The unique id for this layer.

The id of parent (not present for root).

The backend id for the node associated with this layer.

Offset from parent layer, X coordinate.

Offset from parent layer, Y coordinate.

Layer width.

Layer height.

Transformation matrix for layer, default is identity matrix

Transform anchor point X, absent if no transform specified

Transform anchor point Y, absent if no transform specified

Transform anchor point Z, absent if no transform specified

Indicates how many time this layer has painted.

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

Set if layer is not visible.

Rectangles scrolling on main thread only.

Sticky position constraint information

Trait Implementations

impl<'a> Clone for Layer<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Layer<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Layer<'a>
[src]

[src]

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

[src]

This method tests for !=.