styledtext

package
v0.0.0-...-94e82ac Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BorderNone         = 0b000000000
	BorderLeftTop      = 0b000000001
	BorderCenterTop    = 0b000000010
	BorderRightTop     = 0b000000100
	BorderLeftMiddle   = 0b000001000
	BorderRightMiddle  = 0b000100000
	BorderLeftBottom   = 0b001000000
	BorderCenterBottom = 0b010000000
	BorderRightBottom  = 0b100000000
	BorderAll          = 0b111111111
)

Variables

This section is empty.

Functions

func MakeNode

func MakeNode(spans []Span, anchor Anchor, face font.Face, border Border, borderColor color.RGBA) draw.Node

Types

type Anchor

type Anchor int
const (
	AnchorLeft   Anchor = 0b0000
	AnchorCenter Anchor = 0b0001
	AnchorRight  Anchor = 0b0010
	AnchorTop    Anchor = 0b1000
	AnchorMiddle Anchor = 0b0100
	AnchorBottom Anchor = 0b0000
)

type Border

type Border int

type Span

type Span struct {
	Text       string
	Background *ebiten.Image
}

Jump to

Keyboard shortcuts

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