OnClicked registers f to be run when the user clicks the Button. Only one function can be registered at a time.
(f func(*Button))
| 50 | // OnClicked registers f to be run when the user clicks the Button. |
| 51 | // Only one function can be registered at a time. |
| 52 | func (b *Button) OnClicked(f func(*Button)) { |
| 53 | b.onClicked = f |
| 54 | } |
| 55 | |
| 56 | //export pkguiDoButtonOnClicked |
| 57 | func pkguiDoButtonOnClicked(bb *C.uiButton, data unsafe.Pointer) { |
no outgoing calls
no test coverage detected