pub struct FileBrowser { /* private fields */ }Expand description
Widget que renderiza una lista de archivos con iconos y estilos.
No incluye chrome de popup. Usá FileBrowserPopup
para agregar título, borde, posición, etc.
§Render
Toma los items de FileBrowserState::items y los estiliza según
dir_style (para directorios) y file_style (para archivos).
El filtro por nombre no está disponible en este widget;
está implementado en FileBrowserPopup.
Implementations§
Source§impl FileBrowser
impl FileBrowser
pub fn new() -> Self
pub fn dir_style(self, style: Style) -> Self
pub fn file_style(self, style: Style) -> Self
pub fn highlight_style(self, style: Style) -> Self
pub fn highlight_symbol(self, symbol: &str) -> Self
pub fn dir_icon(self, icon: &str) -> Self
pub fn file_icon(self, icon: &str) -> Self
pub fn max_selected(self, max: usize) -> Self
pub fn no_max_selected(self) -> Self
Trait Implementations§
Source§impl Clone for FileBrowser
impl Clone for FileBrowser
Source§fn clone(&self) -> FileBrowser
fn clone(&self) -> FileBrowser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for FileBrowser
impl Default for FileBrowser
Source§impl StatefulWidget for FileBrowser
impl StatefulWidget for FileBrowser
Auto Trait Implementations§
impl Freeze for FileBrowser
impl RefUnwindSafe for FileBrowser
impl Send for FileBrowser
impl Sync for FileBrowser
impl Unpin for FileBrowser
impl UnsafeUnpin for FileBrowser
impl UnwindSafe for FileBrowser
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