pub struct ManagedFileChooserSources { /* private fields */ }Expand description
The places the managed file chooser offers as quick links: the folders of the user and the mounted volumes. Each source can be replaced; an instance registered with the locator is used instead of the default one.
Internal upstream; public here for the platform backends.
Implementations§
Source§impl ManagedFileChooserSources
impl ManagedFileChooserSources
pub fn new() -> Self
pub fn get_user_directories( &self, ) -> Rc<dyn Fn() -> Vec<ManagedFileChooserNavigationItem>>
pub fn set_get_user_directories( &self, value: Rc<dyn Fn() -> Vec<ManagedFileChooserNavigationItem>>, )
pub fn get_file_system_roots( &self, ) -> Rc<dyn Fn() -> Vec<ManagedFileChooserNavigationItem>>
pub fn set_get_file_system_roots( &self, value: Rc<dyn Fn() -> Vec<ManagedFileChooserNavigationItem>>, )
pub fn get_all_items_delegate( &self, ) -> Rc<dyn Fn(&ManagedFileChooserSources) -> Vec<ManagedFileChooserNavigationItem>>
pub fn set_get_all_items_delegate( &self, value: Rc<dyn Fn(&ManagedFileChooserSources) -> Vec<ManagedFileChooserNavigationItem>>, )
pub fn get_all_items(&self) -> Vec<ManagedFileChooserNavigationItem>
Sourcepub fn mounted_volumes() -> FerroList<MountedVolumeInfo>
pub fn mounted_volumes() -> FerroList<MountedVolumeInfo>
The mounted volumes, filled by the mounted volume info provider (one list per thread: the static collection of the original).
pub fn default_get_all_items( sources: &ManagedFileChooserSources, ) -> Vec<ManagedFileChooserNavigationItem>
pub fn default_get_user_directories() -> Vec<ManagedFileChooserNavigationItem>
pub fn default_get_file_system_roots() -> Vec<ManagedFileChooserNavigationItem>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ManagedFileChooserSources
impl !RefUnwindSafe for ManagedFileChooserSources
impl !Send for ManagedFileChooserSources
impl !Sync for ManagedFileChooserSources
impl !UnwindSafe for ManagedFileChooserSources
impl Unpin for ManagedFileChooserSources
impl UnsafeUnpin for ManagedFileChooserSources
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