SetStyles set the button styles overriding the default style
(bs *ButtonStyles)
| 115 | |
| 116 | // SetStyles set the button styles overriding the default style |
| 117 | func (b *Button) SetStyles(bs *ButtonStyles) { |
| 118 | |
| 119 | b.styles = bs |
| 120 | b.update() |
| 121 | } |
| 122 | |
| 123 | // onCursor process subscribed cursor events |
| 124 | func (b *Button) onCursor(evname string, ev interface{}) { |