CompositionShapeCollection
struct · ferroui-base · v0.5.0
struct CompositionShapeCollection
The shapes of a shape visual or of a container shape (WinUI
Microsoft.UI.Composition.CompositionShapeCollection), drawn in order.
Members
items
fn items(self: &Self) -> Vec<Rc<CompositionShape>>
A snapshot of the shapes, for enumeration.
append
fn append(self: &Self, item: Rc<CompositionShape>)
Append: adds a shape at the end (drawn last).
add
fn add(self: &Self, item: Rc<CompositionShape>)
clear
fn clear(self: &Self)
contains
fn contains(self: &Self, item: &Rc<CompositionShape>) -> bool
remove
fn remove(self: &Self, item: &Rc<CompositionShape>) -> bool
count
fn count(self: &Self) -> usize
Size of the WinUI vector.
index_of
fn index_of(self: &Self, item: &Rc<CompositionShape>) -> Option<usize>
insert
fn insert(self: &Self, index: usize, item: Rc<CompositionShape>)
remove_at
fn remove_at(self: &Self, index: usize)
get
fn get(self: &Self, index: usize) -> Rc<CompositionShape>
set
fn set(self: &Self, index: usize, value: Rc<CompositionShape>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherCompositionShapeCollectionHooks<CompositionShape>IRegisterForSerializationICompositionObjectHostICompositionObjectAnimationsAsCompositionObjectICompositionObjectICompositorSerializable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.