Struct gtk4::builders::FileDialogBuilder
source · pub struct FileDialogBuilder { /* private fields */ }
Available on crate feature
v4_10
only.Expand description
A builder-pattern type to construct FileDialog
objects.
Implementations§
source§impl FileDialogBuilder
impl FileDialogBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new FileDialogBuilder
.
sourcepub fn build(self) -> FileDialog
pub fn build(self) -> FileDialog
Build the FileDialog
.
pub fn accept_label(self, accept_label: &str) -> Self
pub fn default_filter(self, default_filter: &FileFilter) -> Self
pub fn filters(self, filters: &impl IsA<ListModel>) -> Self
pub fn initial_file(self, initial_file: &impl IsA<File>) -> Self
pub fn initial_folder(self, initial_folder: &impl IsA<File>) -> Self
pub fn initial_name(self, initial_name: &str) -> Self
pub fn modal(self, modal: bool) -> Self
pub fn shortcut_folders(self, shortcut_folders: &impl IsA<ListModel>) -> Self
pub fn title(self, title: &str) -> Self
Trait Implementations§
source§impl Clone for FileDialogBuilder
impl Clone for FileDialogBuilder
source§fn clone(&self) -> FileDialogBuilder
fn clone(&self) -> FileDialogBuilder
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 FileDialogBuilder
impl Default for FileDialogBuilder
source§fn default() -> FileDialogBuilder
fn default() -> FileDialogBuilder
Returns the “default value” for a type. Read more