Struct chrome_remote_interface_model::layer_tree::LayerBuilder[][src]

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

Implementations

impl LayerBuilder[src]

pub fn layer_id(&mut self, v: LayerId) -> &mut Self[src]

The unique id for this layer.

pub fn parent_layer_id(&mut self, v: LayerId) -> &mut Self[src]

The id of parent (not present for root).

pub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self[src]

The backend id for the node associated with this layer.

pub fn offset_x(&mut self, v: f64) -> &mut Self[src]

Offset from parent layer, X coordinate.

pub fn offset_y(&mut self, v: f64) -> &mut Self[src]

Offset from parent layer, Y coordinate.

pub fn width(&mut self, v: f64) -> &mut Self[src]

Layer width.

pub fn height(&mut self, v: f64) -> &mut Self[src]

Layer height.

pub fn transform(&mut self, v: Vec<f64>) -> &mut Self[src]

Transformation matrix for layer, default is identity matrix

pub fn anchor_x(&mut self, v: f64) -> &mut Self[src]

Transform anchor point X, absent if no transform specified

pub fn anchor_y(&mut self, v: f64) -> &mut Self[src]

Transform anchor point Y, absent if no transform specified

pub fn anchor_z(&mut self, v: f64) -> &mut Self[src]

Transform anchor point Z, absent if no transform specified

pub fn paint_count(&mut self, v: u32) -> &mut Self[src]

Indicates how many time this layer has painted.

pub fn draws_content(&mut self, v: bool) -> &mut Self[src]

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

pub fn invisible(&mut self, v: bool) -> &mut Self[src]

Set if layer is not visible.

pub fn scroll_rects(&mut self, v: Vec<ScrollRect>) -> &mut Self[src]

Rectangles scrolling on main thread only.

pub fn sticky_position_constraint(
    &mut self,
    v: StickyPositionConstraint
) -> &mut Self
[src]

Sticky position constraint information

pub fn build(&mut self) -> Result<Layer, &'static str>[src]

Trait Implementations

impl Clone for LayerBuilder[src]

impl Debug for LayerBuilder[src]

impl Default for LayerBuilder[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> 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.