pub struct ImNativeFileDialog<T> { /* private fields */ }
Expand description

A wrapper around FileDialog for use with immediate mode gui libraries. The show*() methods create a FileDialog in a new thread, and the result is returned to this object via crossbeam_channel, ready to be polled by the ui using ImNativeFileDialog::check()

Implementations

Shows a dialog that let users to open multiple files using FileDialog::show_open_multiple_file().

Shows a dialog that let users to open one directory using FileDialog::show_open_single_dir().

Shows a dialog that let users to open one file using FileDialog::show_open_single_file().

Shows a dialog that let users to save one file using FileDialog::show_save_single_file().

Set a callback to use for this dialog which will be called immediately upon dialog close in the dialog monitoring thread.

Show a customized version of FileDialog, use the run closure to customize the dialog and show the dialog. This closure runs in its own thread.

Check if the dialog is complete. If it is complete it will return Some with the result of the dialog, otherwise will return None. This will update the status of ImNativeFileDialog::is_open().

Returns true if the dialog is currently open, otherwise returns false. Requires a previous call of ImNativeFileDialog::check() to update the current status.

Trait Implementations

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 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.