FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DrawerClosingEventArgs

    struct · ferroui-controls · v0.5.0

    struct DrawerClosingEventArgs
    

    Provides data for the Closing routed event of the drawer page.

    The cancel flag is shared: a clone is another handle to the same args.

    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 the routed event associated with these event data.

    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 closing should be cancelled.

    Source

    set_cancel

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

    Sets whether the closing should be cancelled.

    Source

    Trait implementations

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

    Availability

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