Struct webrender::spatial_node::ReferenceFrameInfo
source · pub struct ReferenceFrameInfo {
pub source_transform: PropertyBinding<LayoutTransform>,
pub transform_style: TransformStyle,
pub kind: ReferenceFrameKind,
pub origin_in_parent_reference_frame: LayoutVector2D,
pub is_pipeline_root: bool,
}
Expand description
Contains information about reference frames.
Fields§
§source_transform: PropertyBinding<LayoutTransform>
The source transform and perspective matrices provided by the stacking context that forms this reference frame. We maintain the property binding information here so that we can resolve the animated transform and update the tree each frame.
transform_style: TransformStyle
§kind: ReferenceFrameKind
§origin_in_parent_reference_frame: LayoutVector2D
The original, not including the transform and relative to the parent reference frame, origin of this reference frame. This is already rolled into the `transform’ property, but we also store it here to properly transform the viewport for sticky positioning.
is_pipeline_root: bool
True if this is the root reference frame for a given pipeline. This is only used by the hit-test code, perhaps we can change the interface to not require this.
Trait Implementations§
source§impl Clone for ReferenceFrameInfo
impl Clone for ReferenceFrameInfo
source§fn clone(&self) -> ReferenceFrameInfo
fn clone(&self) -> ReferenceFrameInfo
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 ReferenceFrameInfo
impl Debug for ReferenceFrameInfo
source§impl PartialEq for ReferenceFrameInfo
impl PartialEq for ReferenceFrameInfo
source§fn eq(&self, other: &ReferenceFrameInfo) -> bool
fn eq(&self, other: &ReferenceFrameInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReferenceFrameInfo
impl Serialize for ReferenceFrameInfo
impl Copy for ReferenceFrameInfo
impl StructuralPartialEq for ReferenceFrameInfo
Auto Trait Implementations§
impl Freeze for ReferenceFrameInfo
impl RefUnwindSafe for ReferenceFrameInfo
impl Send for ReferenceFrameInfo
impl Sync for ReferenceFrameInfo
impl Unpin for ReferenceFrameInfo
impl UnwindSafe for ReferenceFrameInfo
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