Struct chrome_remote_interface_model::layer_tree::Layer[][src]

pub struct Layer { /* fields omitted */ }
This is supported on crate features experimental and LayerTree and DOM only.

Information about a compositing layer.

Implementations

impl Layer[src]

pub fn builder() -> LayerBuilder[src]

pub fn layer_id(&self) -> &LayerId[src]

The unique id for this layer.

pub fn parent_layer_id(&self) -> Option<&LayerId>[src]

The id of parent (not present for root).

pub fn backend_node_id(&self) -> Option<&BackendNodeId>[src]

The backend id for the node associated with this layer.

pub fn offset_x(&self) -> f64[src]

Offset from parent layer, X coordinate.

pub fn offset_y(&self) -> f64[src]

Offset from parent layer, Y coordinate.

pub fn width(&self) -> f64[src]

Layer width.

pub fn height(&self) -> f64[src]

Layer height.

pub fn transform(&self) -> Option<&Vec<f64>>[src]

Transformation matrix for layer, default is identity matrix

pub fn anchor_x(&self) -> Option<&f64>[src]

Transform anchor point X, absent if no transform specified

pub fn anchor_y(&self) -> Option<&f64>[src]

Transform anchor point Y, absent if no transform specified

pub fn anchor_z(&self) -> Option<&f64>[src]

Transform anchor point Z, absent if no transform specified

pub fn paint_count(&self) -> u32[src]

Indicates how many time this layer has painted.

pub fn draws_content(&self) -> bool[src]

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

pub fn invisible(&self) -> Option<&bool>[src]

Set if layer is not visible.

pub fn scroll_rects(&self) -> Option<&Vec<ScrollRect>>[src]

Rectangles scrolling on main thread only.

pub fn sticky_position_constraint(&self) -> Option<&StickyPositionConstraint>[src]

Sticky position constraint information

Trait Implementations

impl Clone for Layer[src]

impl Debug for Layer[src]

impl<'de> Deserialize<'de> for Layer[src]

impl Serialize for Layer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.