pub enum FileDialogType {
OpenFile,
SaveFile,
OpenFolder,
}
Expand description
Mode of the file dialog
A file dialog may either be used for getting a file (OpenFile
), getting a directory (OpenFolder
) or
saving a file (SaveFile
). When creating a new file dialog, you must set
its mode by one of the enums below.
§Example
extern crate nvdialog_rs;
use nvdialog_rs::{
FileDialog,
FileDialogType
}
fn main() {
let dialog = FileDialog::new(
"Choose a file",
&FileDialogType::OpenFile
);
println!("Filename: {:?}", dialog.retrieve_filename());
}
Variants§
Auto Trait Implementations§
impl Freeze for FileDialogType
impl RefUnwindSafe for FileDialogType
impl Send for FileDialogType
impl Sync for FileDialogType
impl Unpin for FileDialogType
impl UnwindSafe for FileDialogType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more