Struct gtk::builders::FileChooserNativeBuilder
source · [−]pub struct FileChooserNativeBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct FileChooserNative
objects.
Implementations
sourceimpl FileChooserNativeBuilder
impl FileChooserNativeBuilder
sourcepub fn new() -> Self
Available on crate feature v3_20
only.
pub fn new() -> Self
v3_20
only.Create a new FileChooserNativeBuilder
.
sourcepub fn build(self) -> FileChooserNative
Available on crate feature v3_20
only.
pub fn build(self) -> FileChooserNative
v3_20
only.Build the FileChooserNative
.
sourcepub fn accept_label(self, accept_label: &str) -> Self
Available on crate feature v3_20
only.
pub fn accept_label(self, accept_label: &str) -> Self
v3_20
only.The text used for the label on the accept button in the dialog, or
None
to use the default text.
sourcepub fn cancel_label(self, cancel_label: &str) -> Self
Available on crate feature v3_20
only.
pub fn cancel_label(self, cancel_label: &str) -> Self
v3_20
only.The text used for the label on the cancel button in the dialog, or
None
to use the default text.
sourcepub fn modal(self, modal: bool) -> Self
Available on crate feature v3_20
only.
pub fn modal(self, modal: bool) -> Self
v3_20
only.Whether the window should be modal with respect to its transient parent.
sourcepub fn title(self, title: &str) -> Self
Available on crate feature v3_20
only.
pub fn title(self, title: &str) -> Self
v3_20
only.The title of the dialog window
sourcepub fn transient_for(self, transient_for: &impl IsA<Window>) -> Self
Available on crate feature v3_20
only.
pub fn transient_for(self, transient_for: &impl IsA<Window>) -> Self
v3_20
only.The transient parent of the dialog, or None
for none.
sourcepub fn visible(self, visible: bool) -> Self
Available on crate feature v3_20
only.
pub fn visible(self, visible: bool) -> Self
v3_20
only.Whether the window is currenlty visible.
pub fn action(self, action: FileChooserAction) -> Self
v3_20
only.sourcepub fn create_folders(self, create_folders: bool) -> Self
Available on crate feature v3_20
only.
pub fn create_folders(self, create_folders: bool) -> Self
v3_20
only.Whether a file chooser not in FileChooserAction::Open
mode
will offer the user to create new folders.
sourcepub fn do_overwrite_confirmation(self, do_overwrite_confirmation: bool) -> Self
Available on crate feature v3_20
only.
pub fn do_overwrite_confirmation(self, do_overwrite_confirmation: bool) -> Self
v3_20
only.Whether a file chooser in FileChooserAction::Save
mode
will present an overwrite confirmation dialog if the user
selects a file name that already exists.
pub fn extra_widget(self, extra_widget: &impl IsA<Widget>) -> Self
v3_20
only.pub fn filter(self, filter: &FileFilter) -> Self
v3_20
only.pub fn local_only(self, local_only: bool) -> Self
v3_20
only.pub fn preview_widget(self, preview_widget: &impl IsA<Widget>) -> Self
v3_20
only.pub fn preview_widget_active(self, preview_widget_active: bool) -> Self
v3_20
only.pub fn select_multiple(self, select_multiple: bool) -> Self
v3_20
only.v3_20
only.pub fn use_preview_label(self, use_preview_label: bool) -> Self
v3_20
only.Trait Implementations
sourceimpl Clone for FileChooserNativeBuilder
Available on crate feature v3_20
only.
impl Clone for FileChooserNativeBuilder
v3_20
only.sourcefn clone(&self) -> FileChooserNativeBuilder
fn clone(&self) -> FileChooserNativeBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for FileChooserNativeBuilder
Available on crate feature v3_20
only.
impl Default for FileChooserNativeBuilder
v3_20
only.sourcefn default() -> FileChooserNativeBuilder
fn default() -> FileChooserNativeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileChooserNativeBuilder
impl !Send for FileChooserNativeBuilder
impl !Sync for FileChooserNativeBuilder
impl Unpin for FileChooserNativeBuilder
impl UnwindSafe for FileChooserNativeBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more