pub struct FileOpenDialog<W, T = ()> { /* private fields */ }
Expand description
A dialog for specifying a file (or files) to open.
Implementations§
Source§impl<W> FileOpenDialog<W, ()>
impl<W> FileOpenDialog<W, ()>
pub fn new(window: &W) -> FileOpenDialog<W, PathBuf>
pub fn new_multi_select(window: &W) -> FileOpenDialog<W, Vec<PathBuf>>
Source§impl<W, T> FileOpenDialog<W, T>
impl<W, T> FileOpenDialog<W, T>
pub fn title(self, title: impl Into<String>) -> Self
pub fn default_directory(self, path: impl Into<PathBuf>) -> Self
pub fn default_extension(self, ext: impl Into<String>) -> Self
pub fn file_name_label(self, label: impl Into<String>) -> Self
pub fn file_type_index(self, index: usize) -> Self
pub fn file_types(self, file_types: impl FilterSpecs) -> Self
pub fn options(self, options: FileDialogOptions) -> Self
Auto Trait Implementations§
impl<W, T> Freeze for FileOpenDialog<W, T>where
W: Freeze,
impl<W, T> RefUnwindSafe for FileOpenDialog<W, T>where
W: RefUnwindSafe,
T: RefUnwindSafe,
impl<W, T> Send for FileOpenDialog<W, T>
impl<W, T> Sync for FileOpenDialog<W, T>
impl<W, T> Unpin for FileOpenDialog<W, T>
impl<W, T> UnwindSafe for FileOpenDialog<W, T>where
W: UnwindSafe,
T: UnwindSafe,
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