Documentation ¶
Overview ¶
Package testdraw provides helpers for tests that use the draw package.
Index ¶
- func MustBorder(c *canvas.Canvas, border image.Rectangle, opts ...draw.BorderOption)
- func MustBrailleCircle(bc *braille.Canvas, mid image.Point, radius int, ...)
- func MustBrailleLine(bc *braille.Canvas, start, end image.Point, opts ...draw.BrailleLineOption)
- func MustHVLines(c *canvas.Canvas, lines []draw.HVLine, opts ...draw.HVLineOption)
- func MustRectangle(c *canvas.Canvas, r image.Rectangle, opts ...draw.RectangleOption)
- func MustResizeNeeded(cvs *canvas.Canvas)
- func MustText(c *canvas.Canvas, text string, start image.Point, opts ...draw.TextOption)
- func MustVerticalText(c *canvas.Canvas, text string, start image.Point, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustBorder ¶
MustBorder draws border on the canvas or panics.
func MustBrailleCircle ¶
func MustBrailleCircle(bc *braille.Canvas, mid image.Point, radius int, opts ...draw.BrailleCircleOption)
MustBrailleCircle draws the braille circle or panics.
func MustBrailleLine ¶
MustBrailleLine draws the braille line or panics.
func MustHVLines ¶
MustHVLines draws the vertical / horizontal lines or panics.
func MustRectangle ¶
MustRectangle draws the rectangle on the canvas or panics.
func MustResizeNeeded ¶
MustResizeNeeded draws the character or panics.
func MustVerticalText ¶
func MustVerticalText(c *canvas.Canvas, text string, start image.Point, opts ...draw.VerticalTextOption)
MustVerticalText draws the vertical text on the canvas or panics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.