FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionVisualCollection

    struct · ferroui-base · v0.5.0

    struct CompositionVisualCollection
    

    The children of a composition visual.

    View source

    Members

    insert_above

    fn insert_above(self: &Self, new_child: Rc<CompositionVisual>, sibling: &Rc<CompositionVisual>)
    

    Source

    insert_below

    fn insert_below(self: &Self, new_child: Rc<CompositionVisual>, sibling: &Rc<CompositionVisual>)
    

    Source

    insert_at_top

    fn insert_at_top(self: &Self, new_child: Rc<CompositionVisual>)
    

    Source

    insert_at_bottom

    fn insert_at_bottom(self: &Self, new_child: Rc<CompositionVisual>)
    

    Source

    remove_all

    fn remove_all(self: &Self)
    

    Source

    items

    fn items(self: &Self) -> Vec<Rc<CompositionVisual>>
    

    A snapshot of the items, for enumeration.

    Source

    add

    fn add(self: &Self, item: Rc<CompositionVisual>)
    

    Source

    clear

    fn clear(self: &Self)
    

    Source

    contains

    fn contains(self: &Self, item: &Rc<CompositionVisual>) -> bool
    

    Source

    remove

    fn remove(self: &Self, item: &Rc<CompositionVisual>) -> bool
    

    Source

    count

    fn count(self: &Self) -> usize
    

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Source

    index_of

    fn index_of(self: &Self, item: &Rc<CompositionVisual>) -> Option<usize>
    

    Source

    insert

    fn insert(self: &Self, index: usize, item: Rc<CompositionVisual>)
    

    Source

    remove_at

    fn remove_at(self: &Self, index: usize)
    

    Source

    get

    fn get(self: &Self, index: usize) -> Rc<CompositionVisual>
    

    Source

    set

    fn set(self: &Self, index: usize, value: Rc<CompositionVisual>)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • CompositionVisualCollectionHooks<CompositionVisual>
    • IRegisterForSerialization
    • ICompositionObjectHost
    • ICompositionObjectAnimations
    • AsCompositionObject
    • ICompositionObject
    • ICompositorSerializable

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.