Trait FileChooserExt

Source
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ยง

Source

fn add_filter(&self, filter: &FileFilter)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn add_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn action(&self) -> FileChooserAction

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn choice(&self, id: &str) -> Option<GString>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn creates_folders(&self) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn current_folder(&self) -> Option<File>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn current_name(&self) -> Option<GString>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn file(&self) -> Option<File>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn files(&self) -> ListModel

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn filter(&self) -> Option<FileFilter>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn filters(&self) -> ListModel

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn selects_multiple(&self) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn shortcut_folders(&self) -> ListModel

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn remove_choice(&self, id: &str)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn remove_filter(&self, filter: &FileFilter)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn remove_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_action(&self, action: FileChooserAction)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_choice(&self, id: &str, option: &str)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_create_folders(&self, create_folders: bool)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_current_name(&self, name: &str)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_file(&self, file: &impl IsA<File>) -> Result<(), Error>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_filter(&self, filter: &FileFilter)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_select_multiple(&self, select_multiple: bool)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_action_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_create_folders_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_filter_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_filters_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_select_multiple_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.10
Source

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.

Implementorsยง