#[repr(i32)]pub enum PlaybackBehavior {
Auto = 0,
Always = 1,
OnlyIfVisible = 2,
}Expand description
Determines whether an animation pauses when its target is not effectively visible.
Variants§
Auto = 0
The system decides based on context: animations started from styles pause when the control is not effectively visible, while manually started animations and animations that animate visibility run regardless.
Always = 1
The animation always plays regardless of the control’s effective visibility.
OnlyIfVisible = 2
The animation pauses when the control is not effectively visible.
Trait Implementations§
Source§impl Clone for PlaybackBehavior
impl Clone for PlaybackBehavior
impl Copy for PlaybackBehavior
Source§impl Debug for PlaybackBehavior
impl Debug for PlaybackBehavior
Source§impl Default for PlaybackBehavior
impl Default for PlaybackBehavior
impl Eq for PlaybackBehavior
Source§impl Hash for PlaybackBehavior
impl Hash for PlaybackBehavior
Source§impl MarkupTyped for PlaybackBehavior
impl MarkupTyped for PlaybackBehavior
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for PlaybackBehavior
impl PartialEq for PlaybackBehavior
impl StructuralPartialEq for PlaybackBehavior
Auto Trait Implementations§
impl Freeze for PlaybackBehavior
impl RefUnwindSafe for PlaybackBehavior
impl Send for PlaybackBehavior
impl Sync for PlaybackBehavior
impl Unpin for PlaybackBehavior
impl UnsafeUnpin for PlaybackBehavior
impl UnwindSafe for PlaybackBehavior
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more