pub struct FileDialogOptions(/* private fields */);Expand description
Options for file dialog.
See documentation for _FILEOPENDIALOGOPTIONS for more information on the winapi implementation.
Implementations§
Source§impl FileDialogOptions
impl FileDialogOptions
Include system and hidden items.
Maps to FOS_FORCESHOWHIDDEN in winapi.
Examples found in repository?
examples/hello.rs (line 58)
53 fn command(&self, id: u32) {
54 match id {
55 0x100 => self.handle.borrow().close(),
56 0x101 => {
57 let mut options = FileDialogOptions::default();
58 options.set_show_hidden();
59 let filename = self.handle.borrow().file_dialog(FileDialogType::Open, options);
60 println!("result: {:?}", filename);
61 }
62 _ => println!("unexpected id {}", id),
63 }
64 }Trait Implementations§
Source§impl Default for FileDialogOptions
impl Default for FileDialogOptions
Source§fn default() -> FileDialogOptions
fn default() -> FileDialogOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileDialogOptions
impl RefUnwindSafe for FileDialogOptions
impl Send for FileDialogOptions
impl Sync for FileDialogOptions
impl Unpin for FileDialogOptions
impl UnwindSafe for FileDialogOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more