Struct chromiumoxide::cdp::browser_protocol::layer_tree::Layer    [−][src]
pub struct Layer {Show 16 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, Global>>,
    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, Global>>,
    pub sticky_position_constraint: Option<StickyPositionConstraint>,
}Expand description
Information about a compositing layer. Layer
Fields
layer_id: LayerIdThe 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: f64Offset from parent layer, X coordinate.
offset_y: f64Offset from parent layer, Y coordinate.
width: f64Layer width.
height: f64Layer height.
transform: Option<Vec<f64, Global>>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: i64Indicates how many time this layer has painted.
draws_content: boolIndicates 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, Global>>Rectangles scrolling on main thread only.
sticky_position_constraint: Option<StickyPositionConstraint>Sticky position constraint information
Implementations
Trait Implementations
pub fn deserialize<__D>(
    __deserializer: __D
) -> Result<Layer, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, 
pub fn deserialize<__D>(
    __deserializer: __D
) -> Result<Layer, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, 
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
    &self, 
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
    __S: Serializer, 
pub fn serialize<__S>(
    &self, 
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
    __S: Serializer, 
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Layer
impl UnwindSafe for Layer
Blanket Implementations
Mutably borrows from an owned value. Read more
