func (e *event) EventUserData() Object { p := ptr(e) if p == nil { return nil } return globalObjectTable.bindObject(C.wxEvent_GetEventUserData(p), false) }
func (e *event) wxUserData() Object { p := wxPtr(e) if p == nil { return nil } return NewObjectFromPtr(C.wxEvent_GetEventUserData(p), false) }
func evtHandlerEventHubFunc(event Event) { v := &variant{} v.bindWxPtr(C.wxEvent_GetEventUserData(wxPtr(event)), false) seq := v.Int64() v.Release() entry := evtHandlerTable[seq] if entry == nil { return } event.setUserData(entry.ud) entry.f(event) // The wxEvent object may be created on stack(ie. Menu event). event.Release() }