Documentation ¶
Index ¶
- Variables
- func KeyToString(key termbox.Key, ch rune, mod termbox.Modifier) string
- type Alignment
- type Buffer
- func (this *Buffer) Blit(dstr Rect, srcx, srcy int, src *Buffer)
- func (this *Buffer) DrawLabel(dest Rect, params *LabelParams, text []byte)
- func (this *Buffer) Fill(dst Rect, proto termbox.Cell)
- func (this *Buffer) Get(x, y int) *termbox.Cell
- func (this *Buffer) Resize(nw, nh int)
- func (this *Buffer) Set(x, y int, proto termbox.Cell)
- type LabelParams
- type Rect
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLabelParams = LabelParams{ termbox.ColorDefault, termbox.ColorDefault, AlignLeft, '…', false, }
Functions ¶
func KeyToString ¶
Types ¶
type Buffer ¶
type Buffer struct { Cells []termbox.Cell Rect }
func TermboxBuffer ¶
func TermboxBuffer() Buffer
func (*Buffer) DrawLabel ¶
func (this *Buffer) DrawLabel(dest Rect, params *LabelParams, text []byte)
func (*Buffer) Fill ¶
Fills an area which is an intersection between buffer and 'dest' with 'proto'.
type LabelParams ¶
Click to show internal directories.
Click to hide internal directories.