pub struct Container { /* private fields */ }Expand description
A container widget with optional border, title, and padding.
Implementations§
Source§impl Container
impl Container
Sourcepub fn border(self, style: BorderStyle) -> Self
pub fn border(self, style: BorderStyle) -> Self
Set the border style.
Sourcepub fn border_style(self, style: Style) -> Self
pub fn border_style(self, style: Style) -> Self
Set the border color/style.
Sourcepub fn title(self, title: impl Into<String>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
Set the title displayed in the top border.
Sourcepub fn title_style(self, style: Style) -> Self
pub fn title_style(self, style: Style) -> Self
Set the title style.
Sourcepub fn inner_area(&self, area: Rect) -> Rect
pub fn inner_area(&self, area: Rect) -> Rect
Calculate the inner area (after border and padding).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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