MCPcopy
hub / github.com/g3n/engine / SetBgColor4

Method SetBgColor4

gui/label.go:144–150  ·  view source on GitHub ↗

SetBgColor4 sets the background color.

(color *math32.Color4)

Source from the content-addressed store, hash-verified

142
143// SetBgColor4 sets the background color.
144func (l *Label) SetBgColor4(color *math32.Color4) *Label {
145
146 l.style.BgColor = *color
147 l.Panel.SetColor4(&l.style.BgColor)
148 l.SetText(l.text)
149 return l
150}
151
152// BgColor returns returns the background color.
153func (l *Label) BgColor() math32.Color4 {

Callers 3

buildLabelFunction · 0.95
applyStyleMethod · 0.45
applyStyleMethod · 0.45

Calls 2

SetTextMethod · 0.95
SetColor4Method · 0.45

Tested by

no test coverage detected