Documentation
¶
Index ¶
- type Packet
- func (p *Packet) AddCRNL() *Packet
- func (p *Packet) AddColorText(color string) *Packet
- func (p *Packet) AddGoto(x, y vector.Int) *Packet
- func (p *Packet) AddId(id string) *Packet
- func (p *Packet) AddPacket(pkt *Packet) *Packet
- func (p *Packet) AddReset() *Packet
- func (p *Packet) CRNL() *Packet
- func (p *Packet) ClearScreen() *Packet
- func (p *Packet) ColorText(color string) *Packet
- func (p *Packet) ExtendedInput(text string) *Packet
- func (p *Packet) Goto(x, y vector.Int) *Packet
- func (p *Packet) GotoDisableCenterHeight() *Packet
- func (p *Packet) GotoDisableCenterWidth() *Packet
- func (p *Packet) GotoDisableLenOffset() *Packet
- func (p *Packet) GotoEnableCenterHeight() *Packet
- func (p *Packet) GotoEnableCenterWidth() *Packet
- func (p *Packet) GotoEnableLenOffset() *Packet
- func (p *Packet) Input(r rune) *Packet
- func (p *Packet) InputArea(color string, size int) *Packet
- func (p *Packet) InputLine(text string) *Packet
- func (p *Packet) Mouse(x, y vector.Int, btn int) *Packet
- func (p *Packet) Reset() *Packet
- func (p *Packet) ResetPkt() *Packet
- func (p *Packet) RmAllPackets() *Packet
- func (p *Packet) RmCRNL() *Packet
- func (p *Packet) RmColorText() *Packet
- func (p *Packet) RmGoto() *Packet
- func (p *Packet) RmId() *Packet
- func (p *Packet) RmPacket(idx int) *Packet
- func (p *Packet) RmReset() *Packet
- func (p *Packet) SetId(id string) *Packet
- func (p *Packet) Text(text string) *Packet
- func (p *Packet) Tile(symbol, color string) *Packet
- func (p *Packet) TileMap(col []*Packet) *Packet
- func (p *Packet) TileRow(row []*Packet) *Packet
- func (p *Packet) ToJSON() []byte
- type PacketVector
- type PacketVectorCentering
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct { Type string `json:"type"` Id string `json:"id,omitempty"` TextData string `json:"text,omitempty"` Color string `json:"color,omitempty"` ResetAfter bool `json:"reset,omitempty"` CRNLAfter bool `json:"crnl,omitempty"` ByteData [][]byte `json:"json,omitempty"` Rune rune `json:"rune,omitempty"` MousePos *vector.Vector `json:"mpos,omitempty"` MouseBtn int `json:"mbtn,omitempty"` Go_to *PacketVector `json:"goto,omitempty"` }
func PacketFromJSON ¶
func (*Packet) AddColorText ¶
func (*Packet) ClearScreen ¶
func (*Packet) ExtendedInput ¶
func (*Packet) GotoDisableCenterHeight ¶
func (*Packet) GotoDisableCenterWidth ¶
func (*Packet) GotoDisableLenOffset ¶
func (*Packet) GotoEnableCenterHeight ¶
func (*Packet) GotoEnableCenterWidth ¶
func (*Packet) GotoEnableLenOffset ¶
func (*Packet) RmAllPackets ¶
func (*Packet) RmColorText ¶
type PacketVector ¶
type PacketVector struct { vector.Vector Center *PacketVectorCentering `json:"center,omitempty"` LengthOffset bool `json:"len_offset,omitempty"` }
type PacketVectorCentering ¶
Click to show internal directories.
Click to hide internal directories.