pub struct TransformProps {
pub scale_x: ExtractorField<ScaleX>,
pub scale_y: ExtractorField<ScaleY>,
pub translate_x: ExtractorField<TranslateX>,
pub translate_y: ExtractorField<TranslateY>,
pub rotation: ExtractorField<Rotation>,
pub rotate_about: ExtractorField<RotateAbout>,
pub scale_about: ExtractorField<ScaleAbout>,
}Fields§
§scale_x: ExtractorField<ScaleX>§scale_y: ExtractorField<ScaleY>§translate_x: ExtractorField<TranslateX>§translate_y: ExtractorField<TranslateY>§rotation: ExtractorField<Rotation>§rotate_about: ExtractorField<RotateAbout>§scale_about: ExtractorField<ScaleAbout>Implementations§
Source§impl TransformProps
impl TransformProps
pub fn read_style(&mut self, cx: &mut StyleCx<'_>, style: &Style) -> bool
pub fn read(&mut self, cx: &mut StyleCx<'_>) -> bool
pub fn read_explicit( &mut self, style: &Style, fallback: &Style, now: &Instant, request_transition: &mut bool, ) -> bool
pub fn scale_x(&self) -> <ScaleX as StylePropReader>::Type
pub fn scale_y(&self) -> <ScaleY as StylePropReader>::Type
pub fn translate_x(&self) -> <TranslateX as StylePropReader>::Type
pub fn translate_y(&self) -> <TranslateY as StylePropReader>::Type
pub fn rotation(&self) -> <Rotation as StylePropReader>::Type
pub fn rotate_about(&self) -> <RotateAbout as StylePropReader>::Type
pub fn scale_about(&self) -> <ScaleAbout as StylePropReader>::Type
Trait Implementations§
Source§impl Clone for TransformProps
impl Clone for TransformProps
Source§fn clone(&self) -> TransformProps
fn clone(&self) -> TransformProps
Returns a duplicate 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 TransformProps
impl Debug for TransformProps
Auto Trait Implementations§
impl Freeze for TransformProps
impl !RefUnwindSafe for TransformProps
impl !Send for TransformProps
impl !Sync for TransformProps
impl Unpin for TransformProps
impl !UnwindSafe for TransformProps
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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