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

Struct TextBackground

drawtext.go:143–148  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

141// TextBackground is an Attribute that changes the background
142// color of the text it is applied to.
143type TextBackground struct {
144 R float64
145 G float64
146 B float64
147 A float64
148}
149
150func (b TextBackground) toLibui() *C.uiAttribute {
151 return C.uiNewBackgroundAttribute(C.double(b.R), C.double(b.G), C.double(b.B), C.double(b.A))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected