pub struct FileChooser(/* private fields */);
Trait Implementations§
Source§impl Clone for FileChooser
impl Clone for FileChooser
Source§fn clone(&self) -> FileChooser
fn clone(&self) -> FileChooser
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileChooser
impl Debug for FileChooser
Source§impl Display for FileChooser
impl Display for FileChooser
Source§impl Hash for FileChooser
impl Hash for FileChooser
Source§impl Ord for FileChooser
impl Ord for FileChooser
Source§fn cmp(&self, other: &FileChooser) -> Ordering
fn cmp(&self, other: &FileChooser) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for FileChooser
impl<T: ObjectType> PartialEq<T> for FileChooser
Source§impl<T: ObjectType> PartialOrd<T> for FileChooser
impl<T: ObjectType> PartialOrd<T> for FileChooser
Source§impl StaticType for FileChooser
impl StaticType for FileChooser
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for FileChooser
impl IsA<FileChooser> for FileChooserButton
impl IsA<FileChooser> for FileChooserDialog
impl IsA<FileChooser> for FileChooserNative
impl IsA<FileChooser> for FileChooserWidget
Auto Trait Implementations§
impl Freeze for FileChooser
impl RefUnwindSafe for FileChooser
impl !Send for FileChooser
impl !Sync for FileChooser
impl Unpin for FileChooser
impl UnwindSafe for FileChooser
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> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> FileChooserExt for Owhere
O: IsA<FileChooser>,
impl<O> FileChooserExt for Owhere
O: IsA<FileChooser>,
fn add_filter(&self, filter: &FileFilter)
fn add_shortcut_folder<P>(&self, folder: P) -> Result<(), Error>
fn add_shortcut_folder_uri(&self, uri: &str) -> Result<(), Error>
fn get_action(&self) -> FileChooserAction
fn get_choice(&self, id: &str) -> Option<GString>
fn get_create_folders(&self) -> bool
fn get_current_folder(&self) -> Option<PathBuf>
fn get_current_folder_file(&self) -> Option<File>
fn get_current_folder_uri(&self) -> Option<GString>
fn get_current_name(&self) -> Option<GString>
fn get_do_overwrite_confirmation(&self) -> bool
fn get_extra_widget(&self) -> Option<Widget>
fn get_file(&self) -> Option<File>
fn get_filename(&self) -> Option<PathBuf>
fn get_filenames(&self) -> Vec<PathBuf>
fn get_files(&self) -> Vec<File>
fn get_filter(&self) -> Option<FileFilter>
fn get_local_only(&self) -> bool
fn get_preview_file(&self) -> Option<File>
fn get_preview_filename(&self) -> Option<PathBuf>
fn get_preview_uri(&self) -> Option<GString>
fn get_preview_widget(&self) -> Option<Widget>
fn get_preview_widget_active(&self) -> bool
fn get_select_multiple(&self) -> bool
fn get_uri(&self) -> Option<GString>
fn get_uris(&self) -> Vec<GString>
fn get_use_preview_label(&self) -> bool
fn list_filters(&self) -> Vec<FileFilter>
fn list_shortcut_folder_uris(&self) -> Vec<GString>
fn list_shortcut_folders(&self) -> Vec<PathBuf>
fn remove_choice(&self, id: &str)
fn remove_filter(&self, filter: &FileFilter)
fn remove_shortcut_folder<P>(&self, folder: P) -> Result<(), Error>
fn remove_shortcut_folder_uri(&self, uri: &str) -> Result<(), Error>
fn select_all(&self)
fn select_file<P>(&self, file: &P) -> Result<(), Error>
fn select_filename<P>(&self, filename: P) -> bool
fn select_uri(&self, uri: &str) -> bool
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_folder<P>(&self, filename: P) -> bool
fn set_current_folder_file<P>(&self, file: &P) -> Result<(), Error>
fn set_current_folder_uri(&self, uri: &str) -> bool
fn set_current_name<P>(&self, name: P)
fn set_do_overwrite_confirmation(&self, do_overwrite_confirmation: bool)
fn set_extra_widget<P>(&self, extra_widget: &P)
fn set_file<P>(&self, file: &P) -> Result<(), Error>
fn set_filename<P>(&self, filename: P) -> bool
fn set_filter(&self, filter: &FileFilter)
fn set_local_only(&self, local_only: bool)
fn set_preview_widget<P>(&self, preview_widget: &P)
fn set_preview_widget_active(&self, active: bool)
fn set_select_multiple(&self, select_multiple: bool)
fn set_uri(&self, uri: &str) -> bool
fn set_use_preview_label(&self, use_label: bool)
fn unselect_all(&self)
fn unselect_file<P>(&self, file: &P)
fn unselect_filename<P>(&self, filename: P)
fn unselect_uri(&self, uri: &str)
fn connect_confirm_overwrite<F>(&self, f: F) -> SignalHandlerId
fn connect_current_folder_changed<F>(&self, f: F) -> SignalHandlerId
fn connect_file_activated<F>(&self, f: F) -> SignalHandlerId
fn connect_selection_changed<F>(&self, f: F) -> SignalHandlerId
fn connect_update_preview<F>(&self, f: F) -> SignalHandlerId
fn connect_property_action_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_create_folders_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_do_overwrite_confirmation_notify<F>( &self, f: F, ) -> SignalHandlerId
fn connect_property_extra_widget_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_filter_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_local_only_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_preview_widget_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_preview_widget_active_notify<F>( &self, f: F, ) -> SignalHandlerId
fn connect_property_select_multiple_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_use_preview_label_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.