MCPcopy Create free account
hub / github.com/andlabs/ui / SetColor

Method SetColor

colorbutton.go:45–47  ·  view source on GitHub ↗

SetColor sets the currently selected color in the ColorButton. Colors are not alpha-premultiplied. TODO rename b or bl

(r, g, bl, a float64)

Source from the content-addressed store, hash-verified

43// Colors are not alpha-premultiplied.
44// TODO rename b or bl
45func (b *ColorButton) SetColor(r, g, bl, a float64) {
46 C.uiColorButtonSetColor(b.b, C.double(r), C.double(g), C.double(bl), C.double(a))
47}
48
49// OnChanged registers f to be run when the user changes the
50// currently selected color in the ColorButton. Only one function

Callers 1

setupUIFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected