pub struct CompositionCommitBatch { /* private fields */ }Expand description
The group of the animations started in the current frame (WinUI
CompositionCommitBatch): it is ended when the compositor commits the
frame and raises completed once the animations
started in the frame are over.
Implementations§
Source§impl CompositionCommitBatch
impl CompositionCommitBatch
Sourcepub fn compositor(&self) -> &Rc<Compositor>
pub fn compositor(&self) -> &Rc<Compositor>
The associated compositor.
Sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Whether the batch can still aggregate animations: until the frame is committed.
Sourcepub fn completed(
&self,
handler: impl Fn(&CompositionBatchCompletedEventArgs) + 'static,
) -> Rc<dyn IDisposable>
pub fn completed( &self, handler: impl Fn(&CompositionBatchCompletedEventArgs) + 'static, ) -> Rc<dyn IDisposable>
Raised once all animations of the batch have completed. Disposing the returned handle unsubscribes.
Trait Implementations§
Source§impl AsCompositionObject for CompositionCommitBatch
impl AsCompositionObject for CompositionCommitBatch
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).Auto Trait Implementations§
impl !Freeze for CompositionCommitBatch
impl !RefUnwindSafe for CompositionCommitBatch
impl !Send for CompositionCommitBatch
impl !Sync for CompositionCommitBatch
impl !UnwindSafe for CompositionCommitBatch
impl Unpin for CompositionCommitBatch
impl UnsafeUnpin for CompositionCommitBatch
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