pub struct FileDialogBuilder { /* private fields */ }
Available on crate feature v4_10 only.
Expand description

A builder-pattern type to construct FileDialog objects.

Implementations§

Create a new FileDialogBuilder.

Build the FileDialog.

Label for the file chooser’s accept button.

The default filter, that is, the filter that is initially active in the file chooser dialog.

If the default filter is None, the first filter of property::FileDialog::filters is used as the default filter. If that property contains no filter, the dialog will be unfiltered.

If property::FileDialog::filters is not None, the default filter should be part of the list. If it is not, the dialog may choose to not make it available.

The list of filters.

See property::FileDialog::default-filter about how those two properties interact.

The inital file, that is, the file that is initially selected in the file chooser dialog

This is a utility property that sets both property::FileDialog::initial-folder and property::FileDialog::initial-name.

The inital folder, that is, the directory that is initially opened in the file chooser dialog

The inital name, that is, the filename that is initially selected in the file chooser dialog.

Whether the file chooser dialog is modal.

The list of shortcut folders.

A title that may be shown on the file chooser dialog.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.