Struct gtk4::builders::FileChooserNativeBuilder
source · pub struct FileChooserNativeBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct FileChooserNative
objects.
Implementations§
source§impl FileChooserNativeBuilder
impl FileChooserNativeBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new FileChooserNativeBuilder
.
sourcepub fn build(self) -> FileChooserNative
pub fn build(self) -> FileChooserNative
Build the FileChooserNative
.
sourcepub fn accept_label(self, accept_label: &str) -> Self
pub fn accept_label(self, accept_label: &str) -> Self
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
pub fn cancel_label(self, cancel_label: &str) -> Self
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
pub fn modal(self, modal: bool) -> Self
Whether the window should be modal with respect to its transient parent.
sourcepub fn transient_for(self, transient_for: &impl IsA<Window>) -> Self
pub fn transient_for(self, transient_for: &impl IsA<Window>) -> Self
The transient parent of the dialog, or None
for none.
sourcepub fn action(self, action: FileChooserAction) -> Self
pub fn action(self, action: FileChooserAction) -> Self
The type of operation that the file chooser is performing.
sourcepub fn create_folders(self, create_folders: bool) -> Self
pub fn create_folders(self, create_folders: bool) -> Self
Whether a file chooser not in FileChooserAction::Open
mode
will offer the user to create new folders.
sourcepub fn filter(self, filter: &FileFilter) -> Self
pub fn filter(self, filter: &FileFilter) -> Self
The current filter for selecting files that are displayed.
sourcepub fn select_multiple(self, select_multiple: bool) -> Self
pub fn select_multiple(self, select_multiple: bool) -> Self
Whether to allow multiple files to be selected.
Trait Implementations§
source§impl Clone for FileChooserNativeBuilder
impl Clone for FileChooserNativeBuilder
source§fn clone(&self) -> FileChooserNativeBuilder
fn clone(&self) -> FileChooserNativeBuilder
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 Default for FileChooserNativeBuilder
impl Default for FileChooserNativeBuilder
source§fn default() -> FileChooserNativeBuilder
fn default() -> FileChooserNativeBuilder
Returns the “default value” for a type. Read more