label

package
v0.0.0-...-b8e8dfc Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2017 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Align

type Align string

Text alignment. A two character string, the first character is horizontal alignment, the second character vertical alignment. For the first character: L (left), C (centered), R (right) For the second character: T (top), C (centered), B (bottom)

type Label

type Label struct {
	Kind   LabelKind
	Text   string
	Img    *image.RGBA
	Color  color.RGBA
	Symbol SymbolType
	Align  Align
}

func C

func C(color color.RGBA) Label

func I

func I(img *image.RGBA) Label

func IT

func IT(img *image.RGBA, text string, align Align) Label

func S

func S(s SymbolType) Label

func ST

func ST(s SymbolType, text string, align Align) Label

func T

func T(text string) Label

func TA

func TA(text string, align Align) Label

type LabelKind

type LabelKind int
const (
	ColorLabel LabelKind = iota
	ImageLabel
	ImageTextLabel
	SymbolLabel
	SymbolTextLabel
	TextLabel
)

type SymbolType

type SymbolType int
const (
	SymbolNone SymbolType = iota
	SymbolX
	SymbolUnderscore
	SymbolCircle
	SymbolCircleFilled
	SymbolRect
	SymbolRectFilled
	SymbolTriangleUp
	SymbolTriangleDown
	SymbolTriangleLeft
	SymbolTriangleRight
	SymbolPlus
	SymbolMinus
)

Jump to

Keyboard shortcuts

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