#[non_exhaustive]pub enum BorderType {
Plain,
Rounded,
Double,
Thick,
}Expand description
The box-drawing glyph set BoxBorder, Panel, and
Modal draw their corners and edges with.
BorderType::Plain is the default: the single-line set every one of these widgets drew
before this type existed, so adding it is purely additive. The other three variants exist to
make nested or stateful boxes visually distinct at a glance: an outer BorderType::Double
around an inner BorderType::Plain reads instantly, where two identical single lines don’t,
and double/thick borders are a legible way to mark an active pane even on a 16-color terminal
where Theme alone can’t carry that distinction.
Covers four of ratatui’s six BorderType variants (Plain, Rounded, Double, Thick);
QuadrantInside/QuadrantOutside are omitted since nothing here has a use for them yet. Each
variant maps directly to a BorderSet in
retroglyph_core::symbols::border, the shared glyph tables every crate draws borders from.
§Examples
use retroglyph_ui::widget::{BorderType, BoxBorder};
let border = BoxBorder::new().border_type(BorderType::Rounded);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Plain
Single-line box-drawing glyphs: ┌─┐│└┘.
Rounded
Single-line glyphs with rounded corners: ╭─╮│╰╯.
Double
Double-line box-drawing glyphs: ╔═╗║╚╝.
Thick
Heavy single-line box-drawing glyphs: ┏━┓┃┗┛.