pub struct Parented<'a, W: ?Sized> { /* private fields */ }Expand description
A FileDialog shown over a window (FileDialog::parent). Its pickers block like the
unparented ones, so call them between frames, not inside one.
Implementations§
Source§impl<W: HasWindowHandle + HasDisplayHandle + ?Sized> Parented<'_, W>
impl<W: HasWindowHandle + HasDisplayHandle + ?Sized> Parented<'_, W>
Sourcepub fn open_files(&self) -> Result<Vec<PathBuf>>
pub fn open_files(&self) -> Result<Vec<PathBuf>>
Ask for one or more existing files, over the parent window.
Sourcepub fn pick_folder(&self) -> Result<PathBuf>
pub fn pick_folder(&self) -> Result<PathBuf>
Ask for a folder, over the parent window.
Auto Trait Implementations§
impl<'a, W> Forget for Parented<'a, W>where
W: ?Sized,
impl<'a, W> Freeze for Parented<'a, W>
impl<'a, W> Move for Parented<'a, W>where
W: ?Sized,
impl<'a, W> RefUnwindSafe for Parented<'a, W>
impl<'a, W> Send for Parented<'a, W>
impl<'a, W> Sync for Parented<'a, W>
impl<'a, W> Unpin for Parented<'a, W>
impl<'a, W> UnsafeUnpin for Parented<'a, W>
impl<'a, W> UnwindSafe for Parented<'a, W>
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