PickerOptions
struct · ferroui-base · v0.5.0
struct PickerOptions
Common options for the picker dialogs.
Members
newtitleset_titlewith_titlesuggested_start_locationset_suggested_start_locationwith_suggested_start_locationsuggested_file_nameset_suggested_file_namewith_suggested_file_name
new
fn new() -> Self
Creates options with nothing set.
title
fn title(self: &Self) -> Option<&str>
The text that appears in the title bar of a picker.
set_title
fn set_title(self: &mut Self, value: Option<String>)
with_title
fn with_title(self: Self, value: impl Into<String>) -> Self
Sets title and returns the options.
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.
set_suggested_start_location
fn set_suggested_start_location(self: &mut Self, value: Option<Rc<dyn IStorageFolder>>)
with_suggested_start_location
fn with_suggested_start_location(self: Self, value: Rc<dyn IStorageFolder>) -> Self
Sets suggested_start_location
and returns the options.
suggested_file_name
fn suggested_file_name(self: &Self) -> Option<&str>
The file name that the file picker suggests to the user.
set_suggested_file_name
fn set_suggested_file_name(self: &mut Self, value: Option<String>)
with_suggested_file_name
fn with_suggested_file_name(self: Self, value: impl Into<String>) -> Self
Sets suggested_file_name and returns
the options.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherFrom<PickerOptions>CloneDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.