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
impl ImplicitAnimationCollection
Sourcepub fn items(&self) -> Vec<(String, Rc<dyn ICompositionAnimationBase>)>
pub fn items(&self) -> Vec<(String, Rc<dyn ICompositionAnimationBase>)>
The entries of the collection (GetEnumerator).
Sourcepub fn add_pair(&self, item: (String, Rc<dyn ICompositionAnimationBase>))
pub fn add_pair(&self, item: (String, Rc<dyn ICompositionAnimationBase>))
ICollection<KeyValuePair<..>>.Add.
pub fn clear(&self)
Sourcepub fn contains_pair(
&self,
key: &str,
value: &Rc<dyn ICompositionAnimationBase>,
) -> bool
pub fn contains_pair( &self, key: &str, value: &Rc<dyn ICompositionAnimationBase>, ) -> bool
ICollection<KeyValuePair<..>>.Contains: whether the key is present
with that very animation.
Sourcepub fn copy_to(
&self,
array: &mut [Option<(String, Rc<dyn ICompositionAnimationBase>)>],
array_index: usize,
)
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.
Sourcepub fn remove_pair(
&self,
key: &str,
value: &Rc<dyn ICompositionAnimationBase>,
) -> bool
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.
pub fn count(&self) -> usize
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
ICollection<KeyValuePair<..>>.IsReadOnly.
Sourcepub fn add(&self, key: &str, value: Rc<dyn ICompositionAnimationBase>)
pub fn add(&self, key: &str, value: Rc<dyn ICompositionAnimationBase>)
Adds an entry. Panics when the key is already present.
pub fn contains_key(&self, key: &str) -> bool
pub fn remove(&self, key: &str) -> bool
pub fn try_get_value( &self, key: &str, ) -> Option<Rc<dyn ICompositionAnimationBase>>
Sourcepub fn get(&self, key: &str) -> Rc<dyn ICompositionAnimationBase>
pub fn get(&self, key: &str) -> Rc<dyn ICompositionAnimationBase>
this[key]. Panics when the key is not present.
Sourcepub fn set(&self, key: &str, value: Rc<dyn ICompositionAnimationBase>)
pub fn set(&self, key: &str, value: Rc<dyn ICompositionAnimationBase>)
this[key] = value: adds the entry or replaces its animation.
pub fn keys(&self) -> Vec<String>
pub fn values(&self) -> Vec<Rc<dyn ICompositionAnimationBase>>
pub fn size(&self) -> u32
pub fn get_view(&self) -> HashMap<String, Rc<dyn ICompositionAnimationBase>>
pub fn has_key(&self, key: &str) -> bool
pub fn insert(&self, key: &str, animation: Rc<dyn ICompositionAnimationBase>)
pub fn lookup(&self, key: &str) -> Option<Rc<dyn ICompositionAnimationBase>>
Trait Implementations§
Source§impl AsCompositionObject for ImplicitAnimationCollection
impl AsCompositionObject for ImplicitAnimationCollection
Source§fn as_composition_object(&self) -> &CompositionObject
fn as_composition_object(&self) -> &CompositionObject
CompositionObject.Source§fn composition_type_name(&self) -> &'static str
fn composition_type_name(&self) -> &'static str
Source§fn as_property_set(self: Rc<Self>) -> Option<Rc<CompositionPropertySet>>
fn as_property_set(self: Rc<Self>) -> Option<Rc<CompositionPropertySet>>
is CompositionPropertySet test of upstream).Auto Trait Implementations§
impl !Freeze for ImplicitAnimationCollection
impl !RefUnwindSafe for ImplicitAnimationCollection
impl !Send for ImplicitAnimationCollection
impl !Sync for ImplicitAnimationCollection
impl !UnwindSafe for ImplicitAnimationCollection
impl Unpin for ImplicitAnimationCollection
impl UnsafeUnpin for ImplicitAnimationCollection
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more