Example #1
0
func (h *evtHandler) QueueEvent(event Event) {
	p := wxPtr(h)
	if p == nil {
		return
	}
	event.unhold()
	C.wxEvtHandler_QueueEvent(p, C.WxObjectPtr(wxPtr(event)))
}
Example #2
0
func (h *evtHandler) QueueEvent(event Event) {
	p := ptr(h)
	if p == nil {
		return
	}
	globalObjectTable.unhold(event)
	C.wxEvtHandler_QueueEvent(p, C.WxObjectPtr(ptr(event)))
}