Struct native_dialog::FileDialog
source · [−]pub struct FileDialog<'a> { /* private fields */ }
Expand description
Builds and shows file dialogs.
Implementations
Sets the default value of the filename text field in the dialog. For open dialogs of macOS and zenity, this is a no-op because there’s no such text field on the dialog.
Resets the default value of the filename field in the dialog.
Sets the default location that the dialog shows at open.
Resets the default location that the dialog shows at open. Without a default location set, the dialog will probably use the current working directory as default location.
Adds a file type filter. The filter must contains at least one extension, otherwise this method will panic. For dialogs that open directories, this is a no-op.
Removes all file type filters.
Sets the owner of the dialog. On Unix and GNU/Linux, this is a no-op.
Sets the owner of the dialog by raw handle. On Unix and GNU/Linux, this is a no-op.
Safety
It’s the caller’s responsibility that ensuring the handle is valid.
Resets the owner of the dialog to nothing.
Shows a dialog that let users to open one file.
Shows a dialog that let users to open multiple files.
Shows a dialog that let users to open one directory.
Shows a dialog that let users to save one file.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for FileDialog<'a>
impl<'a> !Send for FileDialog<'a>
impl<'a> !Sync for FileDialog<'a>
impl<'a> Unpin for FileDialog<'a>
impl<'a> UnwindSafe for FileDialog<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more