pub enum ReferenceFrameKind {
Transform {
is_2d_scale_translation: bool,
should_snap: bool,
paired_with_perspective: bool,
},
Perspective {
scrolling_relative_to: Option<ExternalScrollId>,
},
}
Variants§
Transform
A normal transform matrix, may contain perspective (the CSS transform property)
Fields
§
is_2d_scale_translation: bool
Optionally marks the transform as only ever having a simple 2D scale or translation, allowing for optimizations.
Perspective
A perspective transform, that optionally scrolls relative to a specific scroll node
Fields
§
scrolling_relative_to: Option<ExternalScrollId>
Trait Implementations§
source§impl Clone for ReferenceFrameKind
impl Clone for ReferenceFrameKind
source§fn clone(&self) -> ReferenceFrameKind
fn clone(&self) -> ReferenceFrameKind
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 ReferenceFrameKind
impl Debug for ReferenceFrameKind
source§impl Default for ReferenceFrameKind
impl Default for ReferenceFrameKind
source§impl<'de> Deserialize<'de> for ReferenceFrameKind
impl<'de> Deserialize<'de> for ReferenceFrameKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ReferenceFrameKind
impl PartialEq for ReferenceFrameKind
source§fn eq(&self, other: &ReferenceFrameKind) -> bool
fn eq(&self, other: &ReferenceFrameKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for ReferenceFrameKind
impl Peek for ReferenceFrameKind
source§impl Poke for ReferenceFrameKind
impl Poke for ReferenceFrameKind
source§impl Serialize for ReferenceFrameKind
impl Serialize for ReferenceFrameKind
impl Copy for ReferenceFrameKind
impl StructuralPartialEq for ReferenceFrameKind
Auto Trait Implementations§
impl Freeze for ReferenceFrameKind
impl RefUnwindSafe for ReferenceFrameKind
impl Send for ReferenceFrameKind
impl Sync for ReferenceFrameKind
impl Unpin for ReferenceFrameKind
impl UnwindSafe for ReferenceFrameKind
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