MCPcopy Index your code
hub / github.com/andlabs/ui / TextColor

Struct TextColor

drawtext.go:130–135  ·  view source on GitHub ↗

TextColor is an Attribute that changes the color of the text it is applied to.

Source from the content-addressed store, hash-verified

128// TextColor is an Attribute that changes the color of the text it is
129// applied to.
130type TextColor struct {
131 R float64
132 G float64
133 B float64
134 A float64
135}
136
137func (c TextColor) toLibui() *C.uiAttribute {
138 return C.uiNewColorAttribute(C.double(c.R), C.double(c.G), C.double(c.B), C.double(c.A))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected