pub enum ReferenceTransformBinding {
Static {
binding: PropertyBinding<LayoutTransform>,
},
Computed {
scale_from: Option<LayoutSize>,
vertical_flip: bool,
rotation: Rotation,
},
}
Variants§
Static
Standard reference frame which contains a precomputed transform.
Fields
§
binding: PropertyBinding<LayoutTransform>
Computed
Computed reference frame which dynamically calculates the transform based on the given parameters. The reference is the content size of the parent iframe, which is affected by snapping.
This is used when a transform depends on the layout size of an element, otherwise the difference between the unsnapped size used in the transform, and the snapped size calculated during scene building can cause seaming.
Trait Implementations§
source§impl Clone for ReferenceTransformBinding
impl Clone for ReferenceTransformBinding
source§fn clone(&self) -> ReferenceTransformBinding
fn clone(&self) -> ReferenceTransformBinding
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 ReferenceTransformBinding
impl Debug for ReferenceTransformBinding
source§impl Default for ReferenceTransformBinding
impl Default for ReferenceTransformBinding
source§impl<'de> Deserialize<'de> for ReferenceTransformBinding
impl<'de> Deserialize<'de> for ReferenceTransformBinding
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 Peek for ReferenceTransformBinding
impl Peek for ReferenceTransformBinding
source§impl Poke for ReferenceTransformBinding
impl Poke for ReferenceTransformBinding
impl Copy for ReferenceTransformBinding
impl StructuralPartialEq for ReferenceTransformBinding
Auto Trait Implementations§
impl Freeze for ReferenceTransformBinding
impl RefUnwindSafe for ReferenceTransformBinding
impl Send for ReferenceTransformBinding
impl Sync for ReferenceTransformBinding
impl Unpin for ReferenceTransformBinding
impl UnwindSafe for ReferenceTransformBinding
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)