FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ActivatedEventArgs

    struct · ferroui-controls · v0.5.0

    struct ActivatedEventArgs
    

    Event arguments for the activated and deactivated events of an activatable lifetime.

    The arguments of the more specific activations are reached through the as_* methods.

    View source

    Members

    new

    fn new(kind: ActivationKind) -> Self
    

    Creates the arguments of an activation of the given kind.

    Source

    kind

    fn kind(self: &Self) -> ActivationKind
    

    The kind of activation.

    Source

    as_protocol_activated

    fn as_protocol_activated(self: &Self) -> Option<&ProtocolActivatedEventArgs>
    

    The arguments as those of a protocol activation, if that is what they are.

    Source

    as_file_activated

    fn as_file_activated(self: &Self) -> Option<&FileActivatedEventArgs>
    

    The arguments as those of a file activation, if that is what they are.

    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
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • From<ProtocolActivatedEventArgs>
    • From<FileActivatedEventArgs>

    Availability

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