pub struct FileBrowserPopup { /* private fields */ }Implementations§
Source§impl FileBrowserPopup
impl FileBrowserPopup
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 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
pub fn width(self, w: PopupSize) -> Self
pub fn border_color(self, color: Color) -> Self
pub fn border_type(self, bt: BorderType) -> Self
Sourcepub fn bg_color(self, color: Color) -> Self
pub fn bg_color(self, color: Color) -> Self
Background color for the entire popup area (including border).
pub fn padding(self, p: u16) -> Self
pub fn header(self) -> Self
pub fn height(self, h: PopupSize) -> Self
pub fn position(self, x: u16, y: u16) -> Self
pub fn origin(self, x: u16, y: u16) -> Self
pub fn no_background(self) -> Self
pub fn background_dots(self, color: Color, symbol: &str, density: u16) -> Self
pub fn background_pattern(self, pattern: DotPattern) -> Self
pub fn background_spacing(self, density_x: u16, density_y: u16) -> Self
pub fn badges(self, badges: BadgeStack<'static>) -> Self
Source§impl FileBrowserPopup
impl FileBrowserPopup
Sourcepub fn resolve_rect(&self, area: Rect, state: &FileBrowserState) -> Rect
pub fn resolve_rect(&self, area: Rect, state: &FileBrowserState) -> Rect
Resolves the final Rect for this popup within the given area,
using the file browser state for Auto-height resolution.
Trait Implementations§
Source§impl AutoSized for FileBrowserPopup
impl AutoSized for FileBrowserPopup
type State = FileBrowserState
Source§impl Clone for FileBrowserPopup
impl Clone for FileBrowserPopup
Source§fn clone(&self) -> FileBrowserPopup
fn clone(&self) -> FileBrowserPopup
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 FileBrowserPopup
impl Default for FileBrowserPopup
Source§impl StatefulWidget for FileBrowserPopup
impl StatefulWidget for FileBrowserPopup
Auto Trait Implementations§
impl Freeze for FileBrowserPopup
impl RefUnwindSafe for FileBrowserPopup
impl Send for FileBrowserPopup
impl Sync for FileBrowserPopup
impl Unpin for FileBrowserPopup
impl UnsafeUnpin for FileBrowserPopup
impl UnwindSafe for FileBrowserPopup
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