CompositionVisualCollection
struct · ferroui-base · v0.5.0
struct CompositionVisualCollection
The children of a composition visual.
Members
insert_aboveinsert_belowinsert_at_topinsert_at_bottomremove_allitemsaddclearcontainsremovecountis_read_onlyindex_ofinsertremove_atgetset
insert_above
fn insert_above(self: &Self, new_child: Rc<CompositionVisual>, sibling: &Rc<CompositionVisual>)
insert_below
fn insert_below(self: &Self, new_child: Rc<CompositionVisual>, sibling: &Rc<CompositionVisual>)
insert_at_top
fn insert_at_top(self: &Self, new_child: Rc<CompositionVisual>)
insert_at_bottom
fn insert_at_bottom(self: &Self, new_child: Rc<CompositionVisual>)
remove_all
fn remove_all(self: &Self)
items
fn items(self: &Self) -> Vec<Rc<CompositionVisual>>
A snapshot of the items, for enumeration.
add
fn add(self: &Self, item: Rc<CompositionVisual>)
clear
fn clear(self: &Self)
contains
fn contains(self: &Self, item: &Rc<CompositionVisual>) -> bool
remove
fn remove(self: &Self, item: &Rc<CompositionVisual>) -> bool
count
fn count(self: &Self) -> usize
is_read_only
fn is_read_only(self: &Self) -> bool
index_of
fn index_of(self: &Self, item: &Rc<CompositionVisual>) -> Option<usize>
insert
fn insert(self: &Self, index: usize, item: Rc<CompositionVisual>)
remove_at
fn remove_at(self: &Self, index: usize)
get
fn get(self: &Self, index: usize) -> Rc<CompositionVisual>
set
fn set(self: &Self, index: usize, value: Rc<CompositionVisual>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherCompositionVisualCollectionHooks<CompositionVisual>IRegisterForSerializationICompositionObjectHostICompositionObjectAnimationsAsCompositionObjectICompositionObjectICompositorSerializable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.