Struct win_nfd::shobjidl::FileOpenDialog
source · #[repr(transparent)]pub struct FileOpenDialog(_);
Expand description
A File Open Dialog
Implementations§
source§impl FileOpenDialog
impl FileOpenDialog
sourcepub fn new() -> Result<Self, HResult>
pub fn new() -> Result<Self, HResult>
Make a new FileOpenDialog
.
Methods from Deref<Target = FileDialog>§
sourcepub fn set_default_folder(&self, item: ShellItem) -> Result<(), HResult>
pub fn set_default_folder(&self, item: ShellItem) -> Result<(), HResult>
Set the default folder
sourcepub fn set_filetypes(&self, filters: &FileFilters<'_>) -> Result<(), HResult>
pub fn set_filetypes(&self, filters: &FileFilters<'_>) -> Result<(), HResult>
sourcepub fn get_result(&self) -> Result<ShellItem, HResult>
pub fn get_result(&self) -> Result<ShellItem, HResult>
Get single result