Example #1
0
func (self *Button) OnClicked(cb Callback) {
	C.hook(self.obj, EV_CLICKED, unsafe.Pointer(&cb))
}
Example #2
0
func Connect(target EvasObjectInterface, ev string, cb Callback) {
	evStr := C.CString(ev)
	C.hook(target.GetObj(), evStr, unsafe.Pointer(&cb))
	C.free(unsafe.Pointer(evStr))
}