drawfcall

package
Version: v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Rerror
	Trdmouse
	Rrdmouse
	Tmoveto
	Rmoveto
	Tcursor
	Rcursor
	Tbouncemouse
	Rbouncemouse
	Trdkbd
	Rrdkbd
	Tlabel
	Rlabel
	Tinit
	Rinit
	Trdsnarf
	Rrdsnarf
	Twrsnarf
	Rwrsnarf
	Trddraw
	Rrddraw
	Twrdraw
	Rwrdraw
	Ttop
	Rtop
	Tresize
	Rresize
	Tcursor2
	Rcursor2
	Tctxt
	Rctxt
	Trdkbd4
	Rrdkbd4
	Tmax
)
View Source
const MAXMSG = 4 << 20

Variables

This section is empty.

Functions

func ReadMsg

func ReadMsg(r io.Reader) ([]byte, error)

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func New

func New() (*Conn, error)

func (*Conn) BounceMouse

func (c *Conn) BounceMouse(m *Mouse) error

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Cursor

func (c *Conn) Cursor(cursor *Cursor) error

func (*Conn) Cursor2

func (c *Conn) Cursor2(cursor *Cursor, cursor2 *Cursor2) error

func (*Conn) Init

func (c *Conn) Init(label, winsize string) error

func (*Conn) Label

func (c *Conn) Label(label string) error

func (*Conn) MoveTo

func (c *Conn) MoveTo(p image.Point) error

func (*Conn) RPC

func (c *Conn) RPC(tx, rx *Msg) error

func (*Conn) ReadDraw

func (c *Conn) ReadDraw(b []byte) (int, error)

func (*Conn) ReadKbd

func (c *Conn) ReadKbd() (r rune, err error)

func (*Conn) ReadMouse

func (c *Conn) ReadMouse() (m Mouse, resized bool, err error)

func (*Conn) ReadSnarf

func (c *Conn) ReadSnarf(b []byte) (int, int, error)

Return values are bytes copied, actual size, error.

func (*Conn) Resize

func (c *Conn) Resize(r image.Rectangle) error

func (*Conn) Top

func (c *Conn) Top() error

func (*Conn) WriteDraw

func (c *Conn) WriteDraw(b []byte) (int, error)

func (*Conn) WriteSnarf

func (c *Conn) WriteSnarf(snarf []byte) error

type Cursor

type Cursor struct {
	image.Point
	White [32]byte
	Black [32]byte
}

type Cursor2

type Cursor2 struct {
	image.Point
	White [128]byte
	Black [128]byte
}

type Mouse

type Mouse struct {
	image.Point
	Buttons int
	Msec    uint32
}

type Msg

type Msg struct {
	Type    uint8
	Tag     uint8
	Mouse   Mouse
	Resized bool
	Cursor  Cursor
	Cursor2 Cursor2
	Arrow   bool
	Rune    rune
	Winsize string
	Label   string
	Snarf   []byte
	Error   string
	ID      string
	Data    []byte
	Count   int
	Rect    image.Rectangle
}

func (*Msg) Marshal

func (m *Msg) Marshal() []byte

func (*Msg) Size

func (m *Msg) Size() int

func (*Msg) String

func (m *Msg) String() string

func (*Msg) Unmarshal

func (m *Msg) Unmarshal(b []byte) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL