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

Method SetColor4

gui/panel.go:434–440  ·  view source on GitHub ↗

SetColor4 sets the color of the panel paddings and content area

(color *math32.Color4)

Source from the content-addressed store, hash-verified

432
433// SetColor4 sets the color of the panel paddings and content area
434func (p *Panel) SetColor4(color *math32.Color4) *Panel {
435
436 p.udata.paddingsColor = *color
437 p.udata.contentColor = *color
438 p.SetChanged(true)
439 return p
440}
441
442// Color4 returns the current color of the panel content area
443func (p *Panel) Color4() math32.Color4 {

Callers

nothing calls this directly

Calls 1

SetChangedMethod · 0.80

Tested by

no test coverage detected