draw

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TitleBarPixels int = 3

TitleBarPixels is the height of the title bar in "pixels"

Variables

This section is empty.

Functions

func ClearImage added in v0.6.7

func ClearImage(s tcell.Screen)

ClearImage clears all rows where the image would be drawn.

func ClearRow added in v0.6.7

func ClearRow(s tcell.Screen, start, end int)

ClearRow clears a single row of a Screen.

func Error added in v0.6.2

func Error(s tcell.Screen, err error)

Error draws an error to the screen.

An error should be drawn if an image *cannot* be drawn. An error should not be drawn *over* an image.

func Image

func Image(s tcell.Screen, rgbRunes conversion.RGBRunes, center image.Point)

Image draws an image to a screen.

Center is the center of the image relative to the screen's center, with center = 0, 0 meaning that the image is perfectly centered in the screen.

func Redraw

func Redraw(s tcell.Screen, title string, rgbRunes conversion.RGBRunes, center image.Point)

func Title

func Title(s tcell.Screen, title string)

Title draws an image title to a screen.

Types

This section is empty.

Jump to

Keyboard shortcuts

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