Documentation
¶
Index ¶
- type Align
- type Box
- func (b *Box) AlignCenter() *Box
- func (b *Box) AlignLeft() *Box
- func (b *Box) AlignRight() *Box
- func (b *Box) Background(bg tcell.Color) *Box
- func (b *Box) Draw()
- func (b *Box) Foreground(fg tcell.Color) *Box
- func (b *Box) Pad(pad int) *Box
- func (b *Box) PadLeft(pad int) *Box
- func (b *Box) PadRight(pad int) *Box
- func (b *Box) Reverse(on bool) *Box
- func (b *Box) Text(text string) *Box
- type Canvas
- type Content
- type Pad
- type Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct { X int Y int W int H int Bg tcell.Color Fg tcell.Color Rev bool Content *Content // contains filtered or unexported fields }
Box is a drawable rectangular area
func (*Box) AlignCenter ¶
AlignCenter sets the content alignment to center for box
func (*Box) AlignRight ¶
AlignRight sets the content alignment to right for box
func (*Box) Background ¶
Background sets the background for box
func (*Box) Foreground ¶
Foreground sets the foreground for box
type Canvas ¶
type Canvas struct {
Screen tcell.Screen
}
Canvas is a wrapper for drawing on tcell.Screen
type Point ¶
type Point struct { X int Y int Bg tcell.Color Fg tcell.Color Rev bool Rune rune // contains filtered or unexported fields }
Point is the smallest drawable point
func (*Point) Background ¶
Background sets the background for point
func (*Point) Foreground ¶
Foreground sets the foreground for point
Click to show internal directories.
Click to hide internal directories.