pub struct FileChooserNative(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Clone for FileChooserNative
impl Clone for FileChooserNative
Source§fn clone(&self) -> FileChooserNative
fn clone(&self) -> FileChooserNative
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 FileChooserNative
impl Debug for FileChooserNative
Source§impl Display for FileChooserNative
impl Display for FileChooserNative
Source§impl Hash for FileChooserNative
impl Hash for FileChooserNative
Source§impl Ord for FileChooserNative
impl Ord for FileChooserNative
Source§fn cmp(&self, other: &FileChooserNative) -> Ordering
fn cmp(&self, other: &FileChooserNative) -> 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 FileChooserNative
impl<T: ObjectType> PartialEq<T> for FileChooserNative
Source§impl<T: ObjectType> PartialOrd<T> for FileChooserNative
impl<T: ObjectType> PartialOrd<T> for FileChooserNative
Source§impl StaticType for FileChooserNative
impl StaticType for FileChooserNative
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for FileChooserNative
impl IsA<FileChooser> for FileChooserNative
impl IsA<NativeDialog> for FileChooserNative
Auto Trait Implementations§
impl Freeze for FileChooserNative
impl RefUnwindSafe for FileChooserNative
impl !Send for FileChooserNative
impl !Sync for FileChooserNative
impl Unpin for FileChooserNative
impl UnwindSafe for FileChooserNative
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<O> FileChooserNativeExt for Owhere
O: IsA<FileChooserNative>,
impl<O> FileChooserNativeExt for Owhere
O: IsA<FileChooserNative>,
fn get_accept_label(&self) -> Option<GString>
fn get_cancel_label(&self) -> Option<GString>
fn set_accept_label(&self, accept_label: Option<&str>)
fn set_cancel_label(&self, cancel_label: Option<&str>)
fn get_property_accept_label(&self) -> Option<GString>
fn set_property_accept_label(&self, accept_label: Option<&str>)
fn get_property_cancel_label(&self) -> Option<GString>
fn set_property_cancel_label(&self, cancel_label: Option<&str>)
fn connect_property_accept_label_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_cancel_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<O> NativeDialogExt for Owhere
O: IsA<NativeDialog>,
impl<O> NativeDialogExt for Owhere
O: IsA<NativeDialog>,
fn destroy(&self)
fn get_modal(&self) -> bool
fn get_title(&self) -> Option<GString>
fn get_transient_for(&self) -> Option<Window>
fn get_visible(&self) -> bool
fn hide(&self)
fn run(&self) -> i32
fn set_modal(&self, modal: bool)
fn set_title(&self, title: &str)
fn set_transient_for<P>(&self, parent: Option<&P>)
fn show(&self)
fn set_property_visible(&self, visible: bool)
fn connect_response<F>(&self, f: F) -> SignalHandlerId
fn connect_property_modal_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_title_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_transient_for_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_visible_notify<F>(&self, f: F) -> SignalHandlerId
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
.