pub struct CompositionInteractionSourceCollection { /* private fields */ }Expand description
The sources of a tracker (CompositionInteractionSourceCollection).
Implementations§
Source§impl CompositionInteractionSourceCollection
impl CompositionInteractionSourceCollection
Sourcepub fn add(&self, source: Rc<VisualInteractionSource>)
pub fn add(&self, source: Rc<VisualInteractionSource>)
Adds a source: its input drives the tracker from now on. Adding a source twice does nothing.
Sourcepub fn remove(&self, source: &Rc<VisualInteractionSource>)
pub fn remove(&self, source: &Rc<VisualInteractionSource>)
Removes a source.
Sourcepub fn remove_all(&self)
pub fn remove_all(&self)
Removes every source.
Sourcepub fn items(&self) -> Vec<Rc<VisualInteractionSource>>
pub fn items(&self) -> Vec<Rc<VisualInteractionSource>>
The sources, in the order they were added.
Auto Trait Implementations§
impl !Freeze for CompositionInteractionSourceCollection
impl !RefUnwindSafe for CompositionInteractionSourceCollection
impl !Send for CompositionInteractionSourceCollection
impl !Sync for CompositionInteractionSourceCollection
impl !UnwindSafe for CompositionInteractionSourceCollection
impl Unpin for CompositionInteractionSourceCollection
impl UnsafeUnpin for CompositionInteractionSourceCollection
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