Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic BasicColor
type BasicColor ¶
type BasicColor int
const ( Black BasicColor = iota Red Green Yellow Blue Magenta Cyan White BrightBlack BrightRed BrightGreen BrightYellow BrightBlue BrightMagenta BrightCyan BrightWhite )
type Border ¶
type Border struct {
Chars BorderChars
Style BorderStyle
}
type BorderChars ¶
type BorderStyle ¶
func (BorderStyle) Base ¶
func (s BorderStyle) Base() Style
type Box ¶
type Box struct {
Width int
SizeMode SizeMode
MinWidth int
PaddingX int
PaddingY int
MarginX int
MarginY int
Style BoxStyle
Border Border
Blocks []Block
}
func NewAutoBox ¶
func NewAutoBox() *Box
type InlineSegment ¶
type InlineSegment struct{ Items []Inline }
func (InlineSegment) Width ¶
func (seg InlineSegment) Width() int
type TextBlockSegment ¶
func (TextBlockSegment) Width ¶
func (s TextBlockSegment) Width() int
Click to show internal directories.
Click to hide internal directories.