FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FileActivatedEventArgs

    struct · ferroui-controls · v0.5.0

    struct FileActivatedEventArgs
    

    The arguments of an activation in which the application is passed one or more files to open. Convert them to ActivatedEventArgs to raise the event.

    View source

    Members

    new

    fn new(files: Vec<Rc<dyn IStorageItem>>) -> Self
    

    Creates the arguments with the files the application was activated with.

    Source

    kind

    fn kind(self: &Self) -> ActivationKind
    

    The kind of activation: ActivationKind::File.

    Source

    files

    fn files(self: &Self) -> &[Rc<dyn IStorageItem>]
    

    The files the application was activated with.

    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
    • From<FileActivatedEventArgs>
    • Clone

    Availability

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