Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoApp = errors.New("no app available")
View Source
var ErrUnableToCreateWin = errors.New("unable to create window")
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) EventChannel ¶
func (a *App) EventChannel() <-chan interface{}
type ApplicationEvent ¶
type ApplicationEvent struct {
Event interface{}
}
type Client ¶
type InputEvent ¶
type InputEvent string
type NewWindowEvent ¶
type NewWindowEvent struct {
Window
}
type StateEvent ¶
type StateEvent string
type StreamReader ¶
type StreamReader struct { Data []byte // contains filtered or unexported fields }
func (*StreamReader) ReadEint32 ¶
func (s *StreamReader) ReadEint32() int
func (*StreamReader) ReadInt16 ¶
func (s *StreamReader) ReadInt16() int16
func (*StreamReader) ReadOp ¶
func (s *StreamReader) ReadOp() screen.Op
func (*StreamReader) ReadString ¶
func (s *StreamReader) ReadString() string
func (*StreamReader) ReadUint24 ¶
func (s *StreamReader) ReadUint24() int
func (*StreamReader) ReadUint8 ¶
func (s *StreamReader) ReadUint8() uint8
func (*StreamReader) Remaining ¶
func (s *StreamReader) Remaining() int
type Window ¶
type Window interface { GetID() uintptr PutString(s string, index int, attrs screen.CellAttrs) error PutRepeatedString(s rune, length, index int, attrs screen.CellAttrs) error SetGrid(cols, rows int) error Scroll(delta, top, bottom, left, right int, bg screen.Color) error Clear(bg screen.Color) error Flush(mode int, character string, width int, cursor screen.Vector2, attrs screen.CellAttrs) error SetTitle(title string) error SetIcon(icon string) error Bell(visual bool) error Close() error SendEvent(interface{}) NextEvent() interface{} EventChannel() <-chan interface{} }
type WindowEvent ¶
type WindowEvent struct { Window Event interface{} }
Click to show internal directories.
Click to hide internal directories.