FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PickerOptions

    struct · ferroui-base · v0.5.0

    struct PickerOptions
    

    Common options for the picker dialogs.

    View source

    Members

    new

    fn new() -> Self
    

    Creates options with nothing set.

    Source

    title

    fn title(self: &Self) -> Option<&str>
    

    The text that appears in the title bar of a picker.

    Source

    set_title

    fn set_title(self: &mut Self, value: Option<String>)
    

    Source

    with_title

    fn with_title(self: Self, value: impl Into<String>) -> Self
    

    Sets title and returns the options.

    Source

    suggested_start_location

    fn suggested_start_location(self: &Self) -> Option<&Rc<dyn IStorageFolder>>
    

    The initial location where the file open picker looks for files to present to the user. Can be obtained from previously picked folder or using IStorageProvider::try_get_folder_from_path_async or IStorageProvider::try_get_well_known_folder_async.

    Source

    set_suggested_start_location

    fn set_suggested_start_location(self: &mut Self, value: Option<Rc<dyn IStorageFolder>>)
    

    Source

    with_suggested_start_location

    fn with_suggested_start_location(self: Self, value: Rc<dyn IStorageFolder>) -> Self
    

    Sets suggested_start_location and returns the options.

    Source

    suggested_file_name

    fn suggested_file_name(self: &Self) -> Option<&str>
    

    The file name that the file picker suggests to the user.

    Source

    set_suggested_file_name

    fn set_suggested_file_name(self: &mut Self, value: Option<String>)
    

    Source

    with_suggested_file_name

    fn with_suggested_file_name(self: Self, value: impl Into<String>) -> Self
    

    Sets suggested_file_name 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>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • From<PickerOptions>
    • Clone
    • Default

    Availability

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