Struct webrender::spatial_tree::TransformUpdateState
source · pub struct TransformUpdateState {
pub parent_reference_frame_transform: FastTransform<LayoutPixel, WorldPixel>,
pub parent_accumulated_scroll_offset: LayoutVector2D,
pub nearest_scrolling_ancestor_offset: LayoutVector2D,
pub nearest_scrolling_ancestor_viewport: LayoutRect,
pub current_coordinate_system_id: CoordinateSystemId,
pub coordinate_system_relative_scale_offset: ScaleOffset,
pub invertible: bool,
pub preserves_3d: bool,
pub is_ancestor_or_self_zooming: bool,
pub external_id: Option<ExternalScrollId>,
pub scroll_offset: LayoutVector2D,
}
Fields§
§parent_reference_frame_transform: FastTransform<LayoutPixel, WorldPixel>
§parent_accumulated_scroll_offset: LayoutVector2D
§nearest_scrolling_ancestor_offset: LayoutVector2D
§nearest_scrolling_ancestor_viewport: LayoutRect
§current_coordinate_system_id: CoordinateSystemId
An id for keeping track of the axis-aligned space of this node. This is used in order to to track what kinds of clip optimizations can be done for a particular display list item, since optimizations can usually only be done among coordinate systems which are relatively axis aligned.
coordinate_system_relative_scale_offset: ScaleOffset
Scale and offset from the coordinate system that started this compatible coordinate system.
invertible: bool
True if this node is transformed by an invertible transform. If not, display items transformed by this node will not be displayed and display items not transformed by this node will not be clipped by clips that are transformed by this node.
preserves_3d: bool
True if this node is a part of Preserve3D hierarchy.
is_ancestor_or_self_zooming: bool
True if the any parent nodes are currently zooming
external_id: Option<ExternalScrollId>
Set to true if this state represents a scroll node with external id
scroll_offset: LayoutVector2D
The node scroll offset if this state is a scroll/sticky node. Zero if a reference frame.
Trait Implementations§
source§impl Clone for TransformUpdateState
impl Clone for TransformUpdateState
source§fn clone(&self) -> TransformUpdateState
fn clone(&self) -> TransformUpdateState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for TransformUpdateState
impl RefUnwindSafe for TransformUpdateState
impl Send for TransformUpdateState
impl Sync for TransformUpdateState
impl Unpin for TransformUpdateState
impl UnwindSafe for TransformUpdateState
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
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>
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>
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