FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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).

    Source

    add

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

    Add: adds a visual; a visual that is in the collection already is not added again.

    Source

    remove

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

    Remove: removes a visual; false when it was not in the collection.

    Source

    remove_all

    fn remove_all(self: &Self)
    

    RemoveAll.

    Source

    count

    fn count(self: &Self) -> usize
    

    Count.

    Source

    contains

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

    Whether the visual is in the collection (compared by reference).

    Source

    is_disposed

    fn is_disposed(self: &Self) -> bool
    

    Source

    dispose

    fn dispose(self: &Self)
    

    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
    • VisualUnorderedCollectionHooks<CompositionVisual>
    • IRegisterForSerialization
    • ICompositionObjectHost
    • ICompositionObjectAnimations
    • AsCompositionObject
    • ICompositionObject
    • ICompositorSerializable

    Availability

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