VisualUnorderedCollection
struct · ferroui-base · v0.5.0
struct VisualUnorderedCollection
A set of visuals (WinUI
Microsoft.UI.Composition.VisualUnorderedCollection): the targets or the
exclusions of a light.
Members
items
fn items(self: &Self) -> Vec<Rc<CompositionVisual>>
A snapshot of the visuals, for enumeration (in the order they were added, which has no meaning).
add
fn add(self: &Self, visual: Rc<CompositionVisual>)
Add: adds a visual; a visual that is in the collection already is
not added again.
remove
fn remove(self: &Self, visual: &Rc<CompositionVisual>) -> bool
Remove: removes a visual; false when it was not in the
collection.
remove_all
fn remove_all(self: &Self)
RemoveAll.
count
fn count(self: &Self) -> usize
Count.
contains
fn contains(self: &Self, visual: &Rc<CompositionVisual>) -> bool
Whether the visual is in the collection (compared by reference).
is_disposed
fn is_disposed(self: &Self) -> bool
dispose
fn dispose(self: &Self)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherVisualUnorderedCollectionHooks<CompositionVisual>IRegisterForSerializationICompositionObjectHostICompositionObjectAnimationsAsCompositionObjectICompositionObjectICompositorSerializable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.