Documentation
¶
Index ¶
- Constants
- func CopyCells(src, dst []termbox.Cell, srcWidth, dstX, dstY, dstWidth int)
- func RunesToCells(input []rune, fg, bg termbox.Attribute) []termbox.Cell
- func Screen(c SizedCeller)
- func SetCells(src []termbox.Cell, srcWidth, dstX, dstY int)
- func StrToCells(input string, fg, bg termbox.Attribute) []termbox.Cell
- func Width(c Celler) (width int, ok bool)
- type BorderRunes
- type Bordered
- type Celler
- type HeightCeller
- type Padded
- type Sized
- type SizedCeller
- type Sizer
- type Text
- type VertScroll
- type Widther
- type Wrapped
Constants ¶
View Source
const ( BorderT = iota BorderTR BorderR BorderBR BorderB BorderBL BorderL BorderTL )
Variables ¶
This section is empty.
Functions ¶
func Screen ¶
func Screen(c SizedCeller)
Types ¶
type BorderRunes ¶
type Bordered ¶
type Bordered struct {
Content Celler
Label string
Runes BorderRunes
BorderFg, BorderBg, LabelFg, LabelBg termbox.Attribute
}
type HeightCeller ¶
type Padded ¶
type Padded struct {
Content SizedCeller
Top, Right, Bottom, Left int
}
func PaddedEven ¶
func PaddedEven(content SizedCeller, padding int) *Padded
type SizedCeller ¶
type VertScroll ¶
type VertScroll struct {
Content HeightCeller
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.