FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CancelEventArgs

    struct · ferroui-base · v0.5.0

    struct CancelEventArgs
    

    The data of a cancellable event (the counterpart of the platform's cancel event args).

    The args are a reference object: a copy shares the cancel flag with the args it was made from, so that a handler given a copy cancels the event, and copies compare by identity.

    View source

    Members

    new

    fn new() -> Self
    

    Creates args of an event that is not cancelled.

    Source

    cancel

    fn cancel(self: &Self) -> bool
    

    Whether the event should be cancelled.

    Source

    set_cancel

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

    Source

    Trait implementations

    Availability

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