text

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BoxBorderOffset = 1
View Source
const BoxHorzMargin = 10
View Source
const BoxVertMargin = 3
View Source
const GpBtBottom = '\uE026'
View Source
const GpBtLeft = '\uE029'
View Source
const GpBtRight = '\uE028'
View Source
const GpBtTop = '\uE027'
View Source
const GpShoulderL = '\uE02A'
View Source
const GpShoulderR = '\uE02B'
View Source
const GpShoulders = '\uE02C'
View Source
const GpTriggL = '\uE02D'
View Source
const GpTriggR = '\uE02E'
View Source
const GpTriggers = '\uE02F'
View Source
const HalfSpace = '\u2009' // aka thin space
View Source
const KeyA = '\x06'
View Source
const KeyD = '\x07'
View Source
const KeyI = '\x02'
View Source
const KeyJ = '\x03'
View Source
const KeyL = '\x05'
View Source
const KeyMsgI = '\x10'
View Source
const KeyO = '\x01'
View Source
const KeyP = '\x04'
View Source
const KeyTAB = '\x09'
View Source
const LineHeight = 7
View Source
const LineInterspace = 2
View Source
const Padder = '\u200A' // aka hair space
View Source
const TriangleLeft = '\u2B9C'
View Source
const TriangleLeftWithPad = '\u2B9D'
View Source
const TriangleRight = '\u2B9E'
View Source
const TriangleRightWithPad = '\u2B9F'

Variables

View Source
var BackColor = color.RGBA{20, 20, 20, 255}
View Source
var FrontColor = color.RGBA{255, 255, 255, 255}

Functions

func CenterDraw

func CenterDraw(canvas *ebiten.Image, lines []string, clr color.RGBA, scale int)

for long text and so on

func CenterDrawAt

func CenterDrawAt(canvas *ebiten.Image, x, y int, lines []string, clr color.RGBA, scale int)

func DrawAt

func DrawAt(canvas *ebiten.Image, x, y int, lines []string, clr color.RGBA, scale int)

func DrawBoxAt

func DrawBoxAt(canvas *ebiten.Image, x, y int, lines []string, fillClr, borderClr color.RGBA, scale int)

func DrawCenteredBoxAt

func DrawCenteredBoxAt(canvas *ebiten.Image, x, y int, lines []string, fillClr, borderClr color.RGBA, scale int)

func DrawLine

func DrawLine(canvas *ebiten.Image, line string, ox, oy int, textColor color.RGBA, scale int)

func DrawRectBox

func DrawRectBox(canvas *ebiten.Image, rect image.Rectangle, borderOffset int, fillClr, borderClr color.RGBA, scale int)

func DrawRightBoxAt

func DrawRightBoxAt(canvas *ebiten.Image, x, y int, lines []string, fillClr, borderClr color.RGBA, scale int)

func MeasureLineWidth

func MeasureLineWidth(line string, scale int) int

func RightDrawAt

func RightDrawAt(canvas *ebiten.Image, x, y int, lines []string, clr color.RGBA, scale int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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