FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FilePickerOpenOptions

    struct · ferroui-base · v0.5.0

    struct FilePickerOpenOptions
    

    Options class for the IStorageProvider::open_file_picker_async method.

    View source

    Members

    new

    fn new() -> Self
    

    Creates options with nothing set.

    Source

    suggested_file_type

    fn suggested_file_type(self: &Self) -> Option<&Rc<FilePickerFileType>>
    

    The file type that should be preselected when the dialog is opened.

    This value should reference one of the items in file_type_filter. If not set, the first file type may be selected by default.

    Source

    set_suggested_file_type

    fn set_suggested_file_type(self: &mut Self, value: Option<Rc<FilePickerFileType>>)
    

    Source

    with_suggested_file_type

    fn with_suggested_file_type(self: Self, value: Rc<FilePickerFileType>) -> Self
    

    Sets suggested_file_type and returns the options.

    Source

    allow_multiple

    fn allow_multiple(self: &Self) -> bool
    

    An option indicating whether the open picker allows users to select multiple files.

    Source

    set_allow_multiple

    fn set_allow_multiple(self: &mut Self, value: bool)
    

    Source

    with_allow_multiple

    fn with_allow_multiple(self: Self, value: bool) -> Self
    

    Sets allow_multiple and returns the options.

    Source

    file_type_filter

    fn file_type_filter(self: &Self) -> Option<&[Rc<FilePickerFileType>]>
    

    The collection of file types that the file open picker displays.

    Source

    set_file_type_filter

    fn set_file_type_filter(self: &mut Self, value: Option<Vec<Rc<FilePickerFileType>>>)
    

    Source

    with_file_type_filter

    fn with_file_type_filter(self: Self, value: Vec<Rc<FilePickerFileType>>) -> Self
    

    Sets file_type_filter and returns the options.

    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
    • DerefMut
    • From<PickerOptions>

    Availability

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