pub struct LayerBuilder { /* private fields */ }
Available on crate features
experimental
and LayerTree
and DOM
only.Implementations§
Source§impl LayerBuilder
impl LayerBuilder
Sourcepub fn parent_layer_id(&mut self, v: LayerId) -> &mut Self
pub fn parent_layer_id(&mut self, v: LayerId) -> &mut Self
The id of parent (not present for root).
Sourcepub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
pub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
The backend id for the node associated with this layer.
Sourcepub fn transform(&mut self, v: Vec<f64>) -> &mut Self
pub fn transform(&mut self, v: Vec<f64>) -> &mut Self
Transformation matrix for layer, default is identity matrix
Sourcepub fn anchor_x(&mut self, v: f64) -> &mut Self
pub fn anchor_x(&mut self, v: f64) -> &mut Self
Transform anchor point X, absent if no transform specified
Sourcepub fn anchor_y(&mut self, v: f64) -> &mut Self
pub fn anchor_y(&mut self, v: f64) -> &mut Self
Transform anchor point Y, absent if no transform specified
Sourcepub fn anchor_z(&mut self, v: f64) -> &mut Self
pub fn anchor_z(&mut self, v: f64) -> &mut Self
Transform anchor point Z, absent if no transform specified
Sourcepub fn paint_count(&mut self, v: u32) -> &mut Self
pub fn paint_count(&mut self, v: u32) -> &mut Self
Indicates how many time this layer has painted.
Sourcepub fn draws_content(&mut self, v: bool) -> &mut Self
pub fn draws_content(&mut self, v: bool) -> &mut Self
Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
Sourcepub fn scroll_rects(&mut self, v: Vec<ScrollRect>) -> &mut Self
pub fn scroll_rects(&mut self, v: Vec<ScrollRect>) -> &mut Self
Rectangles scrolling on main thread only.
Sourcepub fn sticky_position_constraint(
&mut self,
v: StickyPositionConstraint,
) -> &mut Self
pub fn sticky_position_constraint( &mut self, v: StickyPositionConstraint, ) -> &mut Self
Sticky position constraint information
pub fn build(&mut self) -> Result<Layer, &'static str>
Trait Implementations§
Source§impl Clone for LayerBuilder
impl Clone for LayerBuilder
Source§fn clone(&self) -> LayerBuilder
fn clone(&self) -> LayerBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LayerBuilder
impl Debug for LayerBuilder
Auto Trait Implementations§
impl Freeze for LayerBuilder
impl RefUnwindSafe for LayerBuilder
impl Send for LayerBuilder
impl Sync for LayerBuilder
impl Unpin for LayerBuilder
impl UnwindSafe for LayerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more