Skip to main content

MotionViewTransition

Struct MotionViewTransition 

Source
pub struct MotionViewTransition {
Show 26 fields pub if_tag_set: Option<&'static str>, pub if_tag_not_set: Option<&'static str>, pub sets_tag: Option<&'static str>, pub clears_tag: Option<&'static str>, pub shared_value: Option<(&'static str, i32, bool)>, pub id: &'static str, pub targets: &'static [&'static str], pub target: &'static str, pub easing: MotionEasing, pub duration: f64, pub up_duration: Option<f64>, pub touch: Option<MotionViewTouch>, pub independent: bool, pub position_tracks: &'static [MotionPositionTrack], pub time_cycles: &'static [MotionCycleTrack], pub cycles: &'static [MotionCycleTrack], pub custom_tracks: &'static [MotionCustomTrack], pub keys: &'static [MotionPropertyTrack], pub all_states: bool, pub disabled: bool, pub path_arc: MotionPathArc, pub margins: [Option<f32>; 6], pub width: Option<Size>, pub height: Option<Size>, pub alpha: Option<f32>, pub visibility: Option<Visibility>,
}
Expand description

A ViewTransition that applies a field delta to the current constraint set.

Fields§

§if_tag_set: Option<&'static str>§if_tag_not_set: Option<&'static str>§sets_tag: Option<&'static str>§clears_tag: Option<&'static str>§shared_value: Option<(&'static str, i32, bool)>

Key, comparison value, and whether equality triggers the transition.

§id: &'static str§targets: &'static [&'static str]§target: &'static str§easing: MotionEasing§duration: f64§up_duration: Option<f64>§touch: Option<MotionViewTouch>§independent: bool§position_tracks: &'static [MotionPositionTrack]§time_cycles: &'static [MotionCycleTrack]§cycles: &'static [MotionCycleTrack]§custom_tracks: &'static [MotionCustomTrack]§keys: &'static [MotionPropertyTrack]§all_states: bool§disabled: bool§path_arc: MotionPathArc§margins: [Option<f32>; 6]§width: Option<Size>§height: Option<Size>§alpha: Option<f32>§visibility: Option<Visibility>

Trait Implementations§

Source§

impl Clone for MotionViewTransition

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MotionViewTransition

Auto Trait Implementations§

§

impl Forget for MotionViewTransition

§

impl Freeze for MotionViewTransition
where &'static str: Freeze, &'static [&'static str]: Freeze, &'static [f32]: Freeze, &'static [(f32, f32)]: Freeze, &'static [MotionPositionTrack]: Freeze, &'static [MotionCycleTrack]: Freeze, &'static [MotionCustomTrack]: Freeze, &'static [MotionPropertyTrack]: Freeze,

§

impl Move for MotionViewTransition

§

impl RefUnwindSafe for MotionViewTransition

§

impl Send for MotionViewTransition
where &'static str: Send, &'static [&'static str]: Send, &'static [f32]: Send, &'static [(f32, f32)]: Send, &'static [MotionPositionTrack]: Send, &'static [MotionCycleTrack]: Send, &'static [MotionCustomTrack]: Send, &'static [MotionPropertyTrack]: Send,

§

impl Sync for MotionViewTransition

§

impl Unpin for MotionViewTransition
where &'static str: Unpin, &'static [&'static str]: Unpin, &'static [f32]: Unpin, &'static [(f32, f32)]: Unpin, &'static [MotionPositionTrack]: Unpin, &'static [MotionCycleTrack]: Unpin, &'static [MotionCustomTrack]: Unpin, &'static [MotionPropertyTrack]: Unpin,

§

impl UnsafeUnpin for MotionViewTransition
where &'static str: UnsafeUnpin, &'static [&'static str]: UnsafeUnpin, &'static [f32]: UnsafeUnpin, &'static [(f32, f32)]: UnsafeUnpin, &'static [MotionPositionTrack]: UnsafeUnpin, &'static [MotionCycleTrack]: UnsafeUnpin, &'static [MotionCustomTrack]: UnsafeUnpin, &'static [MotionPropertyTrack]: UnsafeUnpin,

§

impl UnwindSafe for MotionViewTransition
where &'static str: UnwindSafe, &'static [&'static str]: UnwindSafe, &'static [f32]: UnwindSafe, &'static [(f32, f32)]: UnwindSafe, &'static [MotionPositionTrack]: UnwindSafe, &'static [MotionCycleTrack]: UnwindSafe, &'static [MotionCustomTrack]: UnwindSafe, &'static [MotionPropertyTrack]: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.