pub struct FileChooserNativeBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct FileChooserNative
objects.
Implementations§
Source§impl FileChooserNativeBuilder
impl FileChooserNativeBuilder
Sourcepub fn accept_label(self, accept_label: impl Into<GString>) -> Self
👎Deprecated: Since 4.10
pub fn accept_label(self, accept_label: impl Into<GString>) -> 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: impl Into<GString>) -> Self
👎Deprecated: Since 4.10
pub fn cancel_label(self, cancel_label: impl Into<GString>) -> 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
👎Deprecated: Since 4.10
pub fn modal(self, modal: bool) -> Self
Whether the window should be modal with respect to its transient parent.
Sourcepub fn title(self, title: impl Into<GString>) -> Self
👎Deprecated: Since 4.10
pub fn title(self, title: impl Into<GString>) -> Self
The title of the dialog window
Sourcepub fn transient_for(self, transient_for: &impl IsA<Window>) -> Self
👎Deprecated: Since 4.10
pub fn transient_for(self, transient_for: &impl IsA<Window>) -> Self
The transient parent of the dialog, or None
for none.
Sourcepub fn visible(self, visible: bool) -> Self
👎Deprecated: Since 4.10
pub fn visible(self, visible: bool) -> Self
Whether the window is currently visible.
Sourcepub fn action(self, action: FileChooserAction) -> Self
👎Deprecated: Since 4.10
pub fn action(self, action: FileChooserAction) -> Self
The type of operation that the file chooser is performing.
Use FileDialog
instead
Sourcepub fn create_folders(self, create_folders: bool) -> Self
👎Deprecated: Since 4.10
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.
Use FileDialog
instead
Sourcepub fn filter(self, filter: &FileFilter) -> Self
👎Deprecated: Since 4.10
pub fn filter(self, filter: &FileFilter) -> Self
The current filter for selecting files that are displayed.
Use FileDialog
instead
Sourcepub fn select_multiple(self, select_multiple: bool) -> Self
👎Deprecated: Since 4.10
pub fn select_multiple(self, select_multiple: bool) -> Self
Whether to allow multiple files to be selected.
Use FileDialog
instead
Sourcepub fn build(self) -> FileChooserNative
👎Deprecated: Since 4.10
pub fn build(self) -> FileChooserNative
Build the FileChooserNative
.