pub struct ManagedFileDialogOptions { /* private fields */ }Expand description
The options of the managed file dialogs.
A record: a copy with a member changed is made with Clone and the
setter (the with expression of the original).
Implementations§
Source§impl ManagedFileDialogOptions
impl ManagedFileDialogOptions
pub fn new() -> Self
pub fn allow_directory_selection(&self) -> bool
pub fn set_allow_directory_selection(&mut self, value: bool)
Sourcepub fn custom_volume_info_provider(
&self,
) -> Option<&Rc<dyn IMountedVolumeInfoProvider>>
pub fn custom_volume_info_provider( &self, ) -> Option<&Rc<dyn IMountedVolumeInfoProvider>>
Allows to redefine how root volumes are populated in the dialog.
pub fn set_custom_volume_info_provider( &mut self, value: Option<Rc<dyn IMountedVolumeInfoProvider>>, )
Sourcepub fn content_root_factory(
&self,
) -> Option<&Rc<dyn Fn() -> Ref<ContentControl>>>
pub fn content_root_factory( &self, ) -> Option<&Rc<dyn Fn() -> Ref<ContentControl>>>
Allows to redefine content root. Can be a custom Window or any ContentControl (Popup hosted).
pub fn set_content_root_factory( &mut self, value: Option<Rc<dyn Fn() -> Ref<ContentControl>>>, )
Trait Implementations§
Source§impl Clone for ManagedFileDialogOptions
impl Clone for ManagedFileDialogOptions
Source§impl Default for ManagedFileDialogOptions
impl Default for ManagedFileDialogOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedFileDialogOptions
impl !Send for ManagedFileDialogOptions
impl !Sync for ManagedFileDialogOptions
impl !UnwindSafe for ManagedFileDialogOptions
impl Freeze for ManagedFileDialogOptions
impl Unpin for ManagedFileDialogOptions
impl UnsafeUnpin for ManagedFileDialogOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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