server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RGB565ToRGBA

func RGB565ToRGBA(c uint16) color.RGBA

func RGBATo565

func RGBATo565(c color.RGBA) uint16

RGBATo565 converts a color.RGBA to uint16 used in the display

Types

type Device

type Device struct {
	Width  int
	Height int

	KeysPressed    map[fyne.KeyName]bool
	TouchPoint     touch.Point
	DragInProgress bool
	// contains filtered or unexported fields
}

func New

func New(w, h int) *Device

func (*Device) Display

func (d *Device) Display() error

func (*Device) DrawRGBBitmap8

func (d *Device) DrawRGBBitmap8(x, y int16, data []uint8, w, h int16) error

func (*Device) DumpPressedKeys

func (d *Device) DumpPressedKeys()

func (*Device) FillRectangle

func (d *Device) FillRectangle(x, y, width, height int16, c color.Color) error

func (*Device) FillScreen

func (d *Device) FillScreen(c color.Color)

func (*Device) SetPixel

func (d *Device) SetPixel(x, y int16, c color.Color)

func (*Device) ShowAndRun

func (d *Device) ShowAndRun()

func (*Device) Size

func (d *Device) Size() (x, y int16)

func (*Device) Update

func (d *Device) Update() error

type Server

type Server struct {
	Device *Device
}

func NewServer

func NewServer(w, h int) *Server

func (*Server) Display

func (s *Server) Display(args, ret *defines.NotImpl) error

func (*Server) DrawRGBBitmap8

func (s *Server) DrawRGBBitmap8(args *defines.DrawRGBBitmap8Args, ret *defines.NotImpl) error

func (*Server) FillRectangle

func (s *Server) FillRectangle(args *defines.FillRectangleArgs, ret *defines.NotImpl) error

func (*Server) FillScreen

func (s *Server) FillScreen(args *defines.FillScreenArgs, ret *defines.NotImpl) error

func (*Server) GetPressedKeys

func (s *Server) GetPressedKeys(args *defines.NotImpl, ret *defines.GetPressedKeysRetval) error

func (*Server) ReadTouchPoint

func (s *Server) ReadTouchPoint(args *defines.NotImpl, ret *touch.Point) error

func (*Server) SetPixel

func (s *Server) SetPixel(args *defines.SetPixelArgs, ret *defines.NotImpl) error

func (*Server) ShowAndRun

func (s *Server) ShowAndRun(args, ret *defines.NotImpl) error

func (*Server) Size

func (s *Server) Size(args *defines.NotImpl, ret *defines.SizeRetval) error

func (*Server) Update

func (s *Server) Update(args *defines.UpdateArgs, ret *defines.NotImpl) error

Jump to

Keyboard shortcuts

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