devicestest

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package devicestest contains non-hardware devices implementations for testing or emulation purpose.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display struct {
	Img *image.NRGBA
}

Display is a fake devices.Display.

func (*Display) Bounds

func (d *Display) Bounds() image.Rectangle

Bounds implements image.Image.

func (*Display) ColorModel

func (d *Display) ColorModel() color.Model

ColorModel implements image.Image.

func (*Display) Draw

func (d *Display) Draw(r image.Rectangle, src image.Image, sp image.Point)

Draw implements draw.Image.

func (*Display) Halt

func (d *Display) Halt() error

Halt implements conn.Resource. It is a noop.

func (*Display) String

func (d *Display) String() string

func (*Display) Write

func (d *Display) Write(pixels []byte) (int, error)

Write implements devices.Display.

Jump to

Keyboard shortcuts

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