Struct prototty_common::Border
source · pub struct Border {
pub title: Option<String>,
pub padding: BorderPadding,
pub chars: BorderChars,
pub foreground_colour: Rgb24,
pub background_colour: Rgb24,
pub title_colour: Rgb24,
pub bold_title: bool,
pub underline_title: bool,
pub bold_border: bool,
}
Expand description
Decorate another element with a border. It’s possible to give the border a title, in which case the text appears in the top-left corner.
Fields
title: Option<String>
padding: BorderPadding
chars: BorderChars
foreground_colour: Rgb24
background_colour: Rgb24
title_colour: Rgb24
bold_title: bool
underline_title: bool
bold_border: bool
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Border
impl Send for Border
impl Sync for Border
impl Unpin for Border
impl UnwindSafe for Border
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more