Struct webrender::spatial_node::StickyFrameInfo
source · pub struct StickyFrameInfo {
pub margins: SideOffsets2D<Option<f32>, LayoutPixel>,
pub frame_rect: LayoutRect,
pub vertical_offset_bounds: StickyOffsetBounds,
pub horizontal_offset_bounds: StickyOffsetBounds,
pub previously_applied_offset: LayoutVector2D,
pub current_offset: LayoutVector2D,
pub transform: Option<PropertyBinding<LayoutTransform>>,
}
Fields§
§margins: SideOffsets2D<Option<f32>, LayoutPixel>
§frame_rect: LayoutRect
§vertical_offset_bounds: StickyOffsetBounds
§horizontal_offset_bounds: StickyOffsetBounds
§previously_applied_offset: LayoutVector2D
§current_offset: LayoutVector2D
§transform: Option<PropertyBinding<LayoutTransform>>
Implementations§
source§impl StickyFrameInfo
impl StickyFrameInfo
pub fn new( frame_rect: LayoutRect, margins: SideOffsets2D<Option<f32>, LayoutPixel>, vertical_offset_bounds: StickyOffsetBounds, horizontal_offset_bounds: StickyOffsetBounds, previously_applied_offset: LayoutVector2D, transform: Option<PropertyBinding<LayoutTransform>>, ) -> StickyFrameInfo
Trait Implementations§
source§impl Clone for StickyFrameInfo
impl Clone for StickyFrameInfo
source§fn clone(&self) -> StickyFrameInfo
fn clone(&self) -> StickyFrameInfo
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 Debug for StickyFrameInfo
impl Debug for StickyFrameInfo
source§impl PartialEq for StickyFrameInfo
impl PartialEq for StickyFrameInfo
source§fn eq(&self, other: &StickyFrameInfo) -> bool
fn eq(&self, other: &StickyFrameInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StickyFrameInfo
impl Serialize for StickyFrameInfo
impl StructuralPartialEq for StickyFrameInfo
Auto Trait Implementations§
impl Freeze for StickyFrameInfo
impl RefUnwindSafe for StickyFrameInfo
impl Send for StickyFrameInfo
impl Sync for StickyFrameInfo
impl Unpin for StickyFrameInfo
impl UnwindSafe for StickyFrameInfo
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