testbraille

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testbraille provides helpers for tests that use the braille package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustApply

func MustApply(bc *braille.Canvas, t *faketerm.Terminal)

MustApply applies the canvas on the terminal or panics.

func MustClearPixel

func MustClearPixel(bc *braille.Canvas, p image.Point, opts ...cell.Option)

MustClearPixel clears the specified pixel or panics.

func MustCopyTo

func MustCopyTo(bc *braille.Canvas, dst *canvas.Canvas)

MustCopyTo copies the braille canvas onto the provided canvas or panics.

func MustNew

func MustNew(area image.Rectangle) *braille.Canvas

MustNew returns a new canvas or panics.

func MustSetAreaCellOpts

func MustSetAreaCellOpts(bc *braille.Canvas, cellArea image.Rectangle, opts ...cell.Option)

MustSetAreaCellOpts sets the cell options in the area or panics.

func MustSetCellOpts

func MustSetCellOpts(bc *braille.Canvas, cellPoint image.Point, opts ...cell.Option)

MustSetCellOpts sets the cell options or panics.

func MustSetPixel

func MustSetPixel(bc *braille.Canvas, p image.Point, opts ...cell.Option)

MustSetPixel sets the specified pixel or panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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