Panes/src/borders.zig

66 lines
1.2 KiB
Zig
Raw Normal View History

2024-07-25 19:48:17 +00:00
pub const Border = struct {
top_left: u21,
top_right: u21,
bottom_left: u21,
bottom_right: u21,
top: u21,
bottom: u21,
left: u21,
right: u21,
};
pub const BasicBorder = Border{
.top_left = '┌',
.top_right = '┐',
.bottom_left = '└',
.bottom_right = '┘',
.top = '─',
.bottom = '─',
.left = '│',
.right = '│',
};
pub const BoldBorder = Border{
.top_left = '┏',
.top_right = '┓',
.bottom_left = '┗',
.bottom_right = '┛',
.top = '━',
.bottom = '━',
.left = '┃',
.right = '┃',
};
pub const DoubleBorder = Border{
.top_left = '╔',
.top_right = '╗',
.bottom_left = '╚',
.bottom_right = '╝',
.top = '═',
.bottom = '═',
.left = '║',
.right = '║',
};
pub const BigBorder = Border{
.top_left = '▛',
.top_right = '▜',
.bottom_left = '▙',
.bottom_right = '▟',
.top = '▀',
.bottom = '▄',
.left = '▌',
.right = '▐',
};
2024-10-11 15:11:51 +00:00
pub const RoundBorder = Border{
.top_left = '╭',
.top_right = '╮',
.bottom_left = '╰',
.bottom_right = '╯',
.top = '─',
.bottom = '─',
.left = '│',
.right = '│',
};