pub struct Panel<'a, W> { /* private fields */ }Expand description
A bordered container that renders a child widget inside an inner padded area.
Implementations§
Source§impl<'a, W> Panel<'a, W>
impl<'a, W> Panel<'a, W>
Sourcepub fn border_style(self, style: Style) -> Self
pub fn border_style(self, style: Style) -> Self
Set the style applied to the border lines.
Sourcepub fn border_type(self, border_type: BorderType) -> Self
pub fn border_type(self, border_type: BorderType) -> Self
Set the border line type (e.g. square, rounded, double).
Sourcepub fn title_alignment(self, alignment: Alignment) -> Self
pub fn title_alignment(self, alignment: Alignment) -> Self
Set the horizontal alignment of the title.
Sourcepub fn title_style(self, style: Style) -> Self
pub fn title_style(self, style: Style) -> Self
Set the style applied to the title text.
Sourcepub fn subtitle(self, subtitle: &'a str) -> Self
pub fn subtitle(self, subtitle: &'a str) -> Self
Set the subtitle text displayed on the bottom border.
Sourcepub fn subtitle_alignment(self, alignment: Alignment) -> Self
pub fn subtitle_alignment(self, alignment: Alignment) -> Self
Set the horizontal alignment of the subtitle.
Sourcepub fn subtitle_style(self, style: Style) -> Self
pub fn subtitle_style(self, style: Style) -> Self
Set the style applied to the subtitle text.
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for Panel<'a, W>where
W: Freeze,
impl<'a, W> RefUnwindSafe for Panel<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Panel<'a, W>where
W: Send,
impl<'a, W> Sync for Panel<'a, W>where
W: Sync,
impl<'a, W> Unpin for Panel<'a, W>where
W: Unpin,
impl<'a, W> UnsafeUnpin for Panel<'a, W>where
W: UnsafeUnpin,
impl<'a, W> UnwindSafe for Panel<'a, W>where
W: UnwindSafe,
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