SetStyles set the button styles overriding the default style
(bs *ImageButtonStyles)
| 160 | |
| 161 | // SetStyles set the button styles overriding the default style |
| 162 | func (b *ImageButton) SetStyles(bs *ImageButtonStyles) { |
| 163 | |
| 164 | b.styles = bs |
| 165 | b.update() |
| 166 | } |
| 167 | |
| 168 | // onCursor process subscribed cursor events |
| 169 | func (b *ImageButton) onCursor(evname string, ev interface{}) { |