Enum azul_webrender_api::ReferenceFrameKind [−][src]
pub enum ReferenceFrameKind { Transform { is_2d_scale_translation: bool, should_snap: bool, }, Perspective { scrolling_relative_to: Option<ExternalScrollId>, }, }
Variants
A normal transform matrix, may contain perspective (the CSS transform property)
Show fields
Fields of Transform
is_2d_scale_translation: bool
Optionally marks the transform as only ever having a simple 2D scale or translation, allowing for optimizations.
should_snap: bool
Marks that the transform should be snapped. Used for transforms which animate in response to scrolling, eg for zooming or dynamic toolbar fixed-positioning.
A perspective transform, that optionally scrolls relative to a specific scroll node
Show fields
Fields of Perspective
scrolling_relative_to: Option<ExternalScrollId>
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ReferenceFrameKind
impl Send for ReferenceFrameKind
impl Sync for ReferenceFrameKind
impl Unpin for ReferenceFrameKind
impl UnwindSafe for ReferenceFrameKind
Blanket Implementations
Mutably borrows from an owned value. Read more