FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CancelRoutedEventArgs

    struct · ferroui-base · v0.5.0

    struct CancelRoutedEventArgs
    

    Provides state information and data specific to a cancelable routed event.

    View source

    Members

    new

    fn new() -> Self
    

    Creates args with no routed event.

    Source

    with_event

    fn with_event<T: ?Sized>(routed_event: &RoutedEvent<T>) -> Self
    

    Creates args for a routed event.

    Source

    with_event_and_source

    fn with_event_and_source<T: ?Sized>(routed_event: &RoutedEvent<T>, source: impl Into<Nullable<FerroObject>>) -> Self
    

    Creates args for a routed event with a source.

    Source

    cancel

    fn cancel(self: &Self) -> bool
    

    Whether the routed event should be canceled.

    Source

    set_cancel

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

    Sets whether the routed event should be canceled.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default
    • Deref
    • IRoutedEventArgs

    Availability

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