Enum webrender::spatial_node::SpatialNodeType
source · pub enum SpatialNodeType {
StickyFrame(StickyFrameInfo),
ScrollFrame(ScrollFrameInfo),
ReferenceFrame(ReferenceFrameInfo),
}
Variants§
StickyFrame(StickyFrameInfo)
A special kind of node that adjusts its position based on the position of its parent node and a given set of sticky positioning offset bounds. Sticky positioned is described in the CSS Positioned Layout Module Level 3 here: https://www.w3.org/TR/css-position-3/#sticky-pos
ScrollFrame(ScrollFrameInfo)
Transforms it’s content, but doesn’t clip it. Can also be adjusted by scroll events or setting scroll offsets.
ReferenceFrame(ReferenceFrameInfo)
A reference frame establishes a new coordinate space in the tree.
Trait Implementations§
source§impl Clone for SpatialNodeType
impl Clone for SpatialNodeType
source§fn clone(&self) -> SpatialNodeType
fn clone(&self) -> SpatialNodeType
Returns a copy 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 PartialEq for SpatialNodeType
impl PartialEq for SpatialNodeType
source§fn eq(&self, other: &SpatialNodeType) -> bool
fn eq(&self, other: &SpatialNodeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SpatialNodeType
impl Serialize for SpatialNodeType
impl StructuralPartialEq for SpatialNodeType
Auto Trait Implementations§
impl Freeze for SpatialNodeType
impl RefUnwindSafe for SpatialNodeType
impl Send for SpatialNodeType
impl Sync for SpatialNodeType
impl Unpin for SpatialNodeType
impl UnwindSafe for SpatialNodeType
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more