Struct rat_widget::file_dialog::FileDialog
source · pub struct FileDialog<'a> { /* private fields */ }
Expand description
Shows a file dialog.
It can work in Open/Save mode or a separate Directory mode.
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: Style) -> Self
pub fn list_style(self, style: Style) -> Self
Style for the lists.
sourcepub fn path_style(self, style: Style) -> Self
pub fn path_style(self, style: Style) -> Self
Style for path input.
sourcepub fn name_style(self, style: Style) -> Self
pub fn name_style(self, style: Style) -> Self
Style for the save name.
sourcepub fn invalid_style(self, style: Style) -> Self
pub fn invalid_style(self, style: Style) -> Self
Invalid indicator.
sourcepub fn select_style(self, style: Style) -> Self
pub fn select_style(self, style: Style) -> Self
Text selection.
sourcepub fn focus_style(self, style: Style) -> Self
pub fn focus_style(self, style: Style) -> Self
Focused widget.
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<'a> StatefulWidget for FileDialog<'a>
impl<'a> StatefulWidget for FileDialog<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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