pub struct FilePicker {
pub dir_style: Style,
pub file_style: Style,
pub cursor_style: Style,
pub header_style: Style,
pub show_header: bool,
pub dir_prefix: &'static str,
pub file_prefix: &'static str,
}Expand description
Fields§
§dir_style: StyleStyle for directory entries.
file_style: StyleStyle for file entries.
cursor_style: StyleStyle for the cursor row.
header_style: StyleStyle for the header (current directory).
show_header: boolWhether to show the current directory path as a header.
dir_prefix: &'static strPrefix for directory entries.
file_prefix: &'static strPrefix for file entries.
Implementations§
Source§impl FilePicker
impl FilePicker
Sourcepub fn file_style(self, style: Style) -> Self
pub fn file_style(self, style: Style) -> Self
Set the file entry style.
Sourcepub fn cursor_style(self, style: Style) -> Self
pub fn cursor_style(self, style: Style) -> Self
Set the cursor (highlight) style.
Sourcepub fn header_style(self, style: Style) -> Self
pub fn header_style(self, style: Style) -> Self
Set the header style.
Sourcepub fn show_header(self, show: bool) -> Self
pub fn show_header(self, show: bool) -> Self
Toggle header display.
Trait Implementations§
Source§impl Clone for FilePicker
impl Clone for FilePicker
Source§fn clone(&self) -> FilePicker
fn clone(&self) -> FilePicker
Returns a duplicate 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 Debug for FilePicker
impl Debug for FilePicker
Source§impl Default for FilePicker
impl Default for FilePicker
Source§impl StatefulWidget for FilePicker
impl StatefulWidget for FilePicker
Auto Trait Implementations§
impl Freeze for FilePicker
impl RefUnwindSafe for FilePicker
impl Send for FilePicker
impl Sync for FilePicker
impl Unpin for FilePicker
impl UnwindSafe for FilePicker
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