Skip to main content

ImplicitAnimationCollection

Struct ImplicitAnimationCollection 

Source
pub struct ImplicitAnimationCollection { /* private fields */ }
Expand description

A collection of animations triggered when a condition is met.

Implicit animations let you drive animations by specifying trigger conditions rather than requiring the manual definition of animation behavior. They help decouple animation start logic from core app logic. You define animations and the events that should trigger these animations. Currently the only available trigger is animated property change.

When expression is used in ImplicitAnimationCollection a special keyword this.FinalValue will represent the final value of the animated property that was changed

Upstream the class is an IDictionary<string, ICompositionAnimationBase>; here the dictionary members are methods of the class. Entries are kept in insertion order, which is the enumeration order of a dictionary that has not had entries removed.

Implementations§

Source§

impl ImplicitAnimationCollection

Source

pub fn items(&self) -> Vec<(String, Rc<dyn ICompositionAnimationBase>)>

The entries of the collection (GetEnumerator).

Source

pub fn add_pair(&self, item: (String, Rc<dyn ICompositionAnimationBase>))

ICollection<KeyValuePair<..>>.Add.

Source

pub fn clear(&self)

Source

pub fn contains_pair( &self, key: &str, value: &Rc<dyn ICompositionAnimationBase>, ) -> bool

ICollection<KeyValuePair<..>>.Contains: whether the key is present with that very animation.

Source

pub fn copy_to( &self, array: &mut [Option<(String, Rc<dyn ICompositionAnimationBase>)>], array_index: usize, )

ICollection<KeyValuePair<..>>.CopyTo. Panics when the entries do not fit in array from array_index on.

Source

pub fn remove_pair( &self, key: &str, value: &Rc<dyn ICompositionAnimationBase>, ) -> bool

ICollection<KeyValuePair<..>>.Remove: removes the key only when it is present with that very animation.

Source

pub fn count(&self) -> usize

Source

pub fn is_read_only(&self) -> bool

ICollection<KeyValuePair<..>>.IsReadOnly.

Source

pub fn add(&self, key: &str, value: Rc<dyn ICompositionAnimationBase>)

Adds an entry. Panics when the key is already present.

Source

pub fn contains_key(&self, key: &str) -> bool

Source

pub fn remove(&self, key: &str) -> bool

Source

pub fn try_get_value( &self, key: &str, ) -> Option<Rc<dyn ICompositionAnimationBase>>

Source

pub fn get(&self, key: &str) -> Rc<dyn ICompositionAnimationBase>

this[key]. Panics when the key is not present.

Source

pub fn set(&self, key: &str, value: Rc<dyn ICompositionAnimationBase>)

this[key] = value: adds the entry or replaces its animation.

Source

pub fn keys(&self) -> Vec<String>

Source

pub fn values(&self) -> Vec<Rc<dyn ICompositionAnimationBase>>

Source

pub fn size(&self) -> u32

Source

pub fn get_view(&self) -> HashMap<String, Rc<dyn ICompositionAnimationBase>>

Source

pub fn has_key(&self, key: &str) -> bool

Source

pub fn insert(&self, key: &str, animation: Rc<dyn ICompositionAnimationBase>)

Source

pub fn lookup(&self, key: &str) -> Option<Rc<dyn ICompositionAnimationBase>>

Trait Implementations§

Source§

impl AsCompositionObject for ImplicitAnimationCollection

Source§

fn as_composition_object(&self) -> &CompositionObject

The embedded CompositionObject.
Source§

fn composition_type_name(&self) -> &'static str

The name of the class of the object, for messages.
Source§

fn as_property_set(self: Rc<Self>) -> Option<Rc<CompositionPropertySet>>

The object as a property set, if it is one (the is CompositionPropertySet test of upstream).

Auto Trait Implementations§

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> ClassDefaults for T
where T: ?Sized,

Source§

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
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, 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.