SetColor sets the currently selected color in the ColorButton. Colors are not alpha-premultiplied. TODO rename b or bl
(r, g, bl, a float64)
| 43 | // Colors are not alpha-premultiplied. |
| 44 | // TODO rename b or bl |
| 45 | func (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 |