FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InfoBarClosingEventArgs

    struct · ferroui-controls · v0.5.0

    struct InfoBarClosingEventArgs
    

    The arguments of InfoBar::closing (WinUI's InfoBarClosingEventArgs). A handler cancels the closing with set_cancel; the clones of the arguments given to the handlers of markup share the cancellation.

    View source

    Members

    reason

    fn reason(self: &Self) -> InfoBarCloseReason
    

    Why the bar closes.

    Source

    cancel

    fn cancel(self: &Self) -> bool
    

    Whether a handler cancelled the closing.

    Source

    set_cancel

    fn set_cancel(self: &Self, value: bool)
    

    Cancels the closing (true) or lets it happen (false).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • MarkupTyped

    Availability

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