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 RunesToCells ¶
func RunesToCells(input []rune, fg, bg termbox.Attribute) []termbox.Cell
func Screen ¶
func Screen(c SizedCeller)
func StrToCells ¶
func StrToCells(input string, fg, bg termbox.Attribute) []termbox.Cell
Types ¶
type BorderRunes ¶
type Bordered ¶
type Bordered struct { Content Celler Label string Runes BorderRunes BorderFg, BorderBg, LabelFg, LabelBg termbox.Attribute }
func (*Bordered) SizedCells ¶
type HeightCeller ¶
type Padded ¶
type Padded struct { Content SizedCeller Top, Right, Bottom, Left int }
func PaddedEven ¶
func PaddedEven(content SizedCeller, padding int) *Padded
func (*Padded) SizedCells ¶
type SizedCeller ¶
type SizedCeller interface {
SizedCells(x, y, width, height int) []termbox.Cell
}
type VertScroll ¶
type VertScroll struct {
Content HeightCeller
}
func (*VertScroll) Cells ¶
func (vs *VertScroll) Cells(x, y, width, height int) []termbox.Cell
Source Files ¶
Click to show internal directories.
Click to hide internal directories.