pub struct PickerOptions { /* private fields */ }Expand description
Common options for the picker dialogs.
Implementations§
Source§impl PickerOptions
impl PickerOptions
pub fn set_title(&mut self, value: Option<String>)
Sourcepub fn with_title(self, value: impl Into<String>) -> Self
pub fn with_title(self, value: impl Into<String>) -> Self
Sets title and returns the options.
Sourcepub fn suggested_start_location(&self) -> Option<&Rc<dyn IStorageFolder>>
pub fn suggested_start_location(&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.
pub fn set_suggested_start_location( &mut self, value: Option<Rc<dyn IStorageFolder>>, )
Sourcepub fn with_suggested_start_location(
self,
value: Rc<dyn IStorageFolder>,
) -> Self
pub fn with_suggested_start_location( self, value: Rc<dyn IStorageFolder>, ) -> Self
Sets suggested_start_location
and returns the options.
Sourcepub fn suggested_file_name(&self) -> Option<&str>
pub fn suggested_file_name(&self) -> Option<&str>
The file name that the file picker suggests to the user.
pub fn set_suggested_file_name(&mut self, value: Option<String>)
Sourcepub fn with_suggested_file_name(self, value: impl Into<String>) -> Self
pub fn with_suggested_file_name(self, value: impl Into<String>) -> Self
Sets suggested_file_name and returns
the options.
Trait Implementations§
Source§impl Clone for PickerOptions
impl Clone for PickerOptions
Source§impl Default for PickerOptions
impl Default for PickerOptions
Source§impl From<PickerOptions> for FilePickerOpenOptions
impl From<PickerOptions> for FilePickerOpenOptions
Source§fn from(base: PickerOptions) -> Self
fn from(base: PickerOptions) -> Self
Converts to this type from the input type.
Source§impl From<PickerOptions> for FilePickerSaveOptions
impl From<PickerOptions> for FilePickerSaveOptions
Source§fn from(base: PickerOptions) -> Self
fn from(base: PickerOptions) -> Self
Converts to this type from the input type.
Source§impl From<PickerOptions> for FolderPickerOpenOptions
impl From<PickerOptions> for FolderPickerOpenOptions
Source§fn from(base: PickerOptions) -> Self
fn from(base: PickerOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PickerOptions
impl !Send for PickerOptions
impl !Sync for PickerOptions
impl !UnwindSafe for PickerOptions
impl Freeze for PickerOptions
impl Unpin for PickerOptions
impl UnsafeUnpin for PickerOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more