pub struct LayerBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> LayerBuilder<'a>
impl<'a> LayerBuilder<'a>
Sourcepub fn parentLayerId(self, parentLayerId: LayerId<'a>) -> Self
pub fn parentLayerId(self, parentLayerId: LayerId<'a>) -> Self
The id of parent (not present for root).
Sourcepub fn backendNodeId(self, backendNodeId: BackendNodeId) -> Self
pub fn backendNodeId(self, backendNodeId: BackendNodeId) -> Self
The backend id for the node associated with this layer.
Sourcepub fn transform(self, transform: Vec<f64>) -> Self
pub fn transform(self, transform: Vec<f64>) -> Self
Transformation matrix for layer, default is identity matrix
Sourcepub fn anchorX(self, anchorX: f64) -> Self
pub fn anchorX(self, anchorX: f64) -> Self
Transform anchor point X, absent if no transform specified
Sourcepub fn anchorY(self, anchorY: f64) -> Self
pub fn anchorY(self, anchorY: f64) -> Self
Transform anchor point Y, absent if no transform specified
Sourcepub fn anchorZ(self, anchorZ: f64) -> Self
pub fn anchorZ(self, anchorZ: f64) -> Self
Transform anchor point Z, absent if no transform specified
Sourcepub fn scrollRects(self, scrollRects: Vec<ScrollRect<'a>>) -> Self
pub fn scrollRects(self, scrollRects: Vec<ScrollRect<'a>>) -> Self
Rectangles scrolling on main thread only.
Sourcepub fn stickyPositionConstraint(
self,
stickyPositionConstraint: StickyPositionConstraint<'a>,
) -> Self
pub fn stickyPositionConstraint( self, stickyPositionConstraint: StickyPositionConstraint<'a>, ) -> Self
Sticky position constraint information
pub fn build(self) -> Layer<'a>
Auto Trait Implementations§
impl<'a> Freeze for LayerBuilder<'a>
impl<'a> RefUnwindSafe for LayerBuilder<'a>
impl<'a> Send for LayerBuilder<'a>
impl<'a> Sync for LayerBuilder<'a>
impl<'a> Unpin for LayerBuilder<'a>
impl<'a> UnsafeUnpin for LayerBuilder<'a>
impl<'a> UnwindSafe for LayerBuilder<'a>
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