edwoodtest

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Overview

Package edwoodtest contains utility functions that help with testing Edwood.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDisplay

func NewDisplay() draw.Display

NewDisplay returns a mock draw.Display.

func NewFont

func NewFont(width, height int) draw.Font

NewFont returns a draw.Font that mocks a fixed-width font.

func NewImage

func NewImage(display draw.Display, name string, r image.Rectangle) draw.Image

NewImage returns a mock draw.Image with the given bounds.

func NiceColourName added in v0.3.1

func NiceColourName(num draw.Color) string

Types

type GettableDrawOps added in v0.3.1

type GettableDrawOps interface {
	DrawOps() []string
	Clear()
}

GettableDrawOps display implementations can provide a list of the executed draw ops.

Jump to

Keyboard shortcuts

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