ux

package module
v0.0.0-...-787cded Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 6 Imported by: 1 module, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-ux

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BoxGradient

func BoxGradient(x, y, w, h, r, f int, i, o vgo.Color) vgo.Paint

func CheckJsFiles_throttled

func CheckJsFiles_throttled() bool

func GetTextHeight

func GetTextHeight(text string) float32

func GetTextWidth

func GetTextWidth(text string) float32

func Init

func Init()

func LinearGradient

func LinearGradient(sx, sy, ex, ey int, iColor, oColor vgo.Color) vgo.Paint

func PathWindingHole

func PathWindingHole()

func RGBA

func RGBA(r, g, b, a int) vgo.Color

func RadialGradient

func RadialGradient(cx, cy, inr, outr int, i, o vgo.Color) vgo.Paint

func Uninit

func Uninit()

Types

type Entity

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

func NewEntity

func NewEntity(filename string) *Entity

func (*Entity) Draw

func (e *Entity) Draw(x, y, w, h int, text string)

func (*Entity) SetFloat

func (e *Entity) SetFloat(name string, value float32)

func (*Entity) SetInt

func (e *Entity) SetInt(name string, value int)

type IconTable

type IconTable struct {
	Carrot_Up, Carrot_Down string
	Check                  string
	ChevronRight           string
	CircledCross           string
	Search                 string
	Trash                  string
}
var Icon IconTable

type JsFile

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

func NewJsFile

func NewJsFile(filename string) *JsFile

Jump to

Keyboard shortcuts

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