pub struct FileDialog<'a> { /* private fields */ }
Expand description
Shows a file dialog.
-
Display modes
- Open
- Save
- Directory
-
Define your roots or let them provide by dirs and sysinfo You need the feature “user_directories” for the latter.
- Standard roots are
- Last - The directory choosen the last time the dialog was opened.
- Start - The start directory provided by the application.
- Standard roots are
-
Create new directories.
-
Quick jump between lists with F1..F5.
Implementations§
Source§impl<'a> FileDialog<'a>
impl<'a> FileDialog<'a>
Sourcepub fn cancel_text(self, txt: &'a str) -> Self
pub fn cancel_text(self, txt: &'a str) -> Self
Text for the cancel button.
Sourcepub fn list_style(self, style: ListStyle) -> Self
pub fn list_style(self, style: ListStyle) -> Self
Style for the lists.
Sourcepub fn roots_style(self, style: ListStyle) -> Self
pub fn roots_style(self, style: ListStyle) -> Self
Filesystem roots style.
Sourcepub fn text_style(self, style: TextStyle) -> Self
pub fn text_style(self, style: TextStyle) -> Self
Textfield style.
Button style.
Sourcepub fn styles(self, styles: FileDialogStyle) -> Self
pub fn styles(self, styles: FileDialogStyle) -> Self
All styles.
Trait Implementations§
Source§impl<'a> Clone for FileDialog<'a>
impl<'a> Clone for FileDialog<'a>
Source§fn clone(&self) -> FileDialog<'a>
fn clone(&self) -> FileDialog<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for FileDialog<'a>
impl<'a> Debug for FileDialog<'a>
Source§impl<'a> Default for FileDialog<'a>
impl<'a> Default for FileDialog<'a>
Source§fn default() -> FileDialog<'a>
fn default() -> FileDialog<'a>
Returns the “default value” for a type. Read more
Source§impl StatefulWidget for FileDialog<'_>
impl StatefulWidget for FileDialog<'_>
Auto Trait Implementations§
impl<'a> Freeze for FileDialog<'a>
impl<'a> RefUnwindSafe for FileDialog<'a>
impl<'a> Send for FileDialog<'a>
impl<'a> Sync for FileDialog<'a>
impl<'a> Unpin for FileDialog<'a>
impl<'a> UnwindSafe for FileDialog<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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