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

Method SetBordersColor

gui/panel.go:398–402  ·  view source on GitHub ↗

SetBordersColor sets the color of this panel borders The borders opacity is set to 1.0 (full opaque)

(color *math32.Color)

Source from the content-addressed store, hash-verified

396// SetBordersColor sets the color of this panel borders
397// The borders opacity is set to 1.0 (full opaque)
398func (p *Panel) SetBordersColor(color *math32.Color) {
399
400 p.udata.bordersColor = math32.Color4{color.R, color.G, color.B, 1}
401 p.SetChanged(true)
402}
403
404// SetBordersColor4 sets the color and opacity of this panel borders
405func (p *Panel) SetBordersColor4(color *math32.Color4) {

Callers

nothing calls this directly

Calls 1

SetChangedMethod · 0.80

Tested by

no test coverage detected