FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    items

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

    A snapshot of the shapes, for enumeration.

    Source

    append

    fn append(self: &Self, item: Rc<CompositionShape>)
    

    Append: adds a shape at the end (drawn last).

    Source

    add

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

    Source

    clear

    fn clear(self: &Self)
    

    Source

    contains

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

    Source

    remove

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

    Source

    count

    fn count(self: &Self) -> usize
    

    Size of the WinUI vector.

    Source

    index_of

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

    Source

    insert

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

    Source

    remove_at

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

    Source

    get

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

    Source

    set

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

    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
    • CompositionShapeCollectionHooks<CompositionShape>
    • IRegisterForSerialization
    • ICompositionObjectHost
    • ICompositionObjectAnimations
    • AsCompositionObject
    • ICompositionObject
    • ICompositorSerializable

    Availability

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