pub trait FileChooserExt: IsA<FileChooser> + 'static {
Show 29 methods
// Provided methods
fn add_filter(&self, filter: &FileFilter) { ... }
fn add_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error> { ... }
fn action(&self) -> FileChooserAction { ... }
fn choice(&self, id: &str) -> Option<GString> { ... }
fn creates_folders(&self) -> bool { ... }
fn current_folder(&self) -> Option<File> { ... }
fn current_name(&self) -> Option<GString> { ... }
fn file(&self) -> Option<File> { ... }
fn files(&self) -> ListModel { ... }
fn filter(&self) -> Option<FileFilter> { ... }
fn filters(&self) -> ListModel { ... }
fn selects_multiple(&self) -> bool { ... }
fn shortcut_folders(&self) -> ListModel { ... }
fn remove_choice(&self, id: &str) { ... }
fn remove_filter(&self, filter: &FileFilter) { ... }
fn remove_shortcut_folder(
&self,
folder: &impl IsA<File>,
) -> Result<(), Error> { ... }
fn set_action(&self, action: FileChooserAction) { ... }
fn set_choice(&self, id: &str, option: &str) { ... }
fn set_create_folders(&self, create_folders: bool) { ... }
fn set_current_name(&self, name: &str) { ... }
fn set_file(&self, file: &impl IsA<File>) -> Result<(), Error> { ... }
fn set_filter(&self, filter: &FileFilter) { ... }
fn set_select_multiple(&self, select_multiple: bool) { ... }
fn connect_action_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_create_folders_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_filters_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_select_multiple_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_shortcut_folders_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
๐Deprecated: Since 4.10
Provided Methodsยง
fn add_filter(&self, filter: &FileFilter)
๐Deprecated: Since 4.10
fn add_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error>
๐Deprecated: Since 4.10
fn action(&self) -> FileChooserAction
๐Deprecated: Since 4.10
fn choice(&self, id: &str) -> Option<GString>
๐Deprecated: Since 4.10
fn creates_folders(&self) -> bool
๐Deprecated: Since 4.10
fn current_folder(&self) -> Option<File>
๐Deprecated: Since 4.10
fn current_name(&self) -> Option<GString>
๐Deprecated: Since 4.10
fn file(&self) -> Option<File>
๐Deprecated: Since 4.10
fn files(&self) -> ListModel
๐Deprecated: Since 4.10
fn filter(&self) -> Option<FileFilter>
๐Deprecated: Since 4.10
fn filters(&self) -> ListModel
๐Deprecated: Since 4.10
fn selects_multiple(&self) -> bool
๐Deprecated: Since 4.10
fn shortcut_folders(&self) -> ListModel
๐Deprecated: Since 4.10
fn remove_choice(&self, id: &str)
๐Deprecated: Since 4.10
fn remove_filter(&self, filter: &FileFilter)
๐Deprecated: Since 4.10
fn remove_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error>
๐Deprecated: Since 4.10
fn set_action(&self, action: FileChooserAction)
๐Deprecated: Since 4.10
fn set_choice(&self, id: &str, option: &str)
๐Deprecated: Since 4.10
fn set_create_folders(&self, create_folders: bool)
๐Deprecated: Since 4.10
fn set_current_name(&self, name: &str)
๐Deprecated: Since 4.10
fn set_file(&self, file: &impl IsA<File>) -> Result<(), Error>
๐Deprecated: Since 4.10
fn set_filter(&self, filter: &FileFilter)
๐Deprecated: Since 4.10
fn set_select_multiple(&self, select_multiple: bool)
๐Deprecated: Since 4.10
fn connect_action_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_create_folders_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_filter_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_filters_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_select_multiple_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_shortcut_folders_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
Dyn Compatibilityยง
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.