| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Brick.Widgets.Border.Style
Description
This module provides styles for borders as used in terminal
applications. Your mileage may vary on some of the fancier styles
due to varying support for some border characters in the fonts your
users may be using. Because of this, we provide the ascii style in
addition to the Unicode styles. The unicode style is also a safe
bet.
To use these in your widgets, see
withBorderStyle. By default, widgets rendered
without a specified border style use unicode via the Default
instance provided by BorderStyle.
- data BorderStyle = BorderStyle {
- bsCornerTL :: Char
- bsCornerTR :: Char
- bsCornerBR :: Char
- bsCornerBL :: Char
- bsIntersectFull :: Char
- bsIntersectL :: Char
- bsIntersectR :: Char
- bsIntersectT :: Char
- bsIntersectB :: Char
- bsHorizontal :: Char
- bsVertical :: Char
- borderStyleFromChar :: Char -> BorderStyle
- ascii :: BorderStyle
- unicode :: BorderStyle
- unicodeBold :: BorderStyle
- unicodeRounded :: BorderStyle
- defaultBorderStyle :: BorderStyle
Documentation
data BorderStyle #
A border style for use in any widget that needs to render borders in a consistent style.
Constructors
| BorderStyle | |
Fields
| |
Instances
borderStyleFromChar :: Char -> BorderStyle #
Make a border style using the specified character everywhere.
ascii :: BorderStyle #
An ASCII border style which will work in any terminal.
unicode :: BorderStyle #
A unicode border style with real corner and intersection characters.
A unicode border style in a bold typeface.
unicodeRounded :: BorderStyle #
A unicode border style with rounded corners.