pub enum ReferenceFrameKind {
Transform {
is_2d_scale_translation: bool,
should_snap: bool,
},
Perspective {
scrolling_relative_to: Option<ExternalScrollId>,
},
}
Variants§
Transform
A normal transform matrix, may contain perspective (the CSS transform property)
Fields
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§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