pub struct CompositionAnimationGroup { /* private fields */ }Expand description
A group of animations started and stopped together on a composition object, each on its target property.
Implementations§
Source§impl CompositionAnimationGroup
impl CompositionAnimationGroup
pub fn new(compositor: &Rc<Compositor>) -> Rc<CompositionAnimationGroup>
pub fn add(&self, value: Rc<dyn ICompositionAnimation>)
Sourcepub fn remove(&self, value: &Rc<dyn ICompositionAnimation>)
pub fn remove(&self, value: &Rc<dyn ICompositionAnimation>)
Removes the first occurrence of value (compared by reference).
pub fn remove_all(&self)
Trait Implementations§
Source§impl AsCompositionObject for CompositionAnimationGroup
impl AsCompositionObject for CompositionAnimationGroup
Source§fn as_composition_object(&self) -> &CompositionObject
fn as_composition_object(&self) -> &CompositionObject
The embedded
CompositionObject.Source§fn composition_type_name(&self) -> &'static str
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>>
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).Source§impl ICompositionAnimationBase for CompositionAnimationGroup
impl ICompositionAnimationBase for CompositionAnimationGroup
Source§fn as_composition_animation_group(&self) -> Option<&CompositionAnimationGroup>
fn as_composition_animation_group(&self) -> Option<&CompositionAnimationGroup>
The group when it is a group of animations.
Source§fn as_composition_animation(&self) -> Option<&dyn ICompositionAnimation>
fn as_composition_animation(&self) -> Option<&dyn ICompositionAnimation>
The animation when it is a single animation rather than a group.
Auto Trait Implementations§
impl !Freeze for CompositionAnimationGroup
impl !RefUnwindSafe for CompositionAnimationGroup
impl !Send for CompositionAnimationGroup
impl !Sync for CompositionAnimationGroup
impl !UnwindSafe for CompositionAnimationGroup
impl Unpin for CompositionAnimationGroup
impl UnsafeUnpin for CompositionAnimationGroup
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> 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