Documentation ¶
Index ¶
- func DisplayWidth(s string) (ret int)
- func MakeMove(fn func() Point, x, y int) func() Point
- func RuneWidth(r rune) int
- type Backend
- type Box
- func (b *Box) Adjust()
- func (b *Box) BottomCenter() Point
- func (b *Box) BottomLeft() Point
- func (b *Box) BottomRight() Point
- func (b *Box) Center() Point
- func (b *Box) CenterLeft() Point
- func (b *Box) CenterRight() Point
- func (b *Box) Fill()
- func (b *Box) SetAdjust(topLeft, bottomRight func() Point, depends ...*Box)
- func (b *Box) SetFill(fill func(*Box), depends ...*Box)
- func (b *Box) TopCenter() Point
- func (b *Box) TopLeft() Point
- func (b *Box) TopRight() Point
- type Buffer
- type Dependencies
- type DumbBackend
- type ErrorEvent
- type Event
- type Point
- type ResizeEvent
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayWidth ¶
Types ¶
type Box ¶
type Box struct {
// contains filtered or unexported fields
}
func (*Box) BottomCenter ¶
func (*Box) BottomLeft ¶
func (*Box) BottomRight ¶
func (*Box) CenterLeft ¶
func (*Box) CenterRight ¶
type Dependencies ¶
func NewDependencies ¶
func NewDependencies() *Dependencies
func (*Dependencies) Add ¶
func (d *Dependencies) Add(box, depend *Box)
func (*Dependencies) Iter ¶
func (d *Dependencies) Iter(from *Box, fn func(*Box))
type DumbBackend ¶
type DumbBackend struct {
// contains filtered or unexported fields
}
func NewDumbBackend ¶
func NewDumbBackend() *DumbBackend
func (*DumbBackend) Close ¶
func (b *DumbBackend) Close()
func (*DumbBackend) EventsChan ¶
func (b *DumbBackend) EventsChan() chan Event
func (*DumbBackend) Flush ¶
func (b *DumbBackend) Flush(buf *Buffer)
func (*DumbBackend) Resize ¶
func (b *DumbBackend) Resize(width, height int)
func (*DumbBackend) Size ¶
func (b *DumbBackend) Size() (int, int)
type ErrorEvent ¶
type ErrorEvent struct { }
type ResizeEvent ¶
type ResizeEvent struct {
Width, Height int
}
Click to show internal directories.
Click to hide internal directories.