uitext

package
v0.0.0-...-c19e608 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorAsFloat32RGB

func ColorAsFloat32RGB(clr color.Color) float32

func Shader

func Shader() *ebiten.Shader

Types

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

func NewEffectStack

func NewEffectStack() *Stack

func (*Stack) Effect

func (s *Stack) Effect(index int) *TextEffect

func (*Stack) Effects

func (s *Stack) Effects() []*TextEffect

func (*Stack) Pop

func (s *Stack) Pop(index int)

func (*Stack) PushBg

func (s *Stack) PushBg(index int, clr color.Color)

func (*Stack) PushFg

func (s *Stack) PushFg(index int, clr color.Color)

func (*Stack) PushMask

func (s *Stack) PushMask(index int, mask TextMask)

func (*Stack) Reset

func (s *Stack) Reset()

func (*Stack) ResetIndex

func (s *Stack) ResetIndex()

type TextEffect

type TextEffect struct {
	Start   int
	End     int
	Mask    TextMask
	ColorFg color.Color
	ColorBg color.Color
}

type TextMask

type TextMask byte
const (
	TextMaskDefault       TextMask = 0
	TextMaskBold          TextMask = 1
	TextMaskItalic        TextMask = 2
	TextMaskUnderline     TextMask = 4
	TextMaskStrikethrough TextMask = 8
	TextMaskBackground    TextMask = 16
)

Jump to

Keyboard shortcuts

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