screen

package
v0.0.0-...-ea7d579 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawBoundedText

func DrawBoundedText(s tcell.Screen, x1, y1, x2, y2 int, style tcell.Style, typeTest tt.TypingTest)

func DrawBox

func DrawBox(s tcell.Screen, x1, y1, x2, y2 int, style tcell.Style)

func DrawLegend

func DrawLegend(screen tcell.Screen, style tcell.Style)

func DrawResults

func DrawResults(screen tcell.Screen, style tcell.Style, typeTest tt.TypingTest)

func DrawText

func DrawText(s tcell.Screen, x, y int, style tcell.Style, text string)

func GetLogoCoords

func GetLogoCoords(screen tcell.Screen) (logoX, logoY int)

func GetMidScreenCoords

func GetMidScreenCoords(screen tcell.Screen) (midX int, midY int)

func GetTypingBoxCoords

func GetTypingBoxCoords(screen tcell.Screen, text string) (startX, startY, endX, endY int)

func UpdateTypingBox

func UpdateTypingBox(screen tcell.Screen, style tcell.Style, typeTest tt.TypingTest)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳