devicestest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 5 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) 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