package qt /* #include "gen_qdatetimeedit.h" #include */ import "C" import ( "runtime" "runtime/cgo" "unsafe" ) type QDateTimeEdit__Section int const ( QDateTimeEdit__NoSection QDateTimeEdit__Section = 0 QDateTimeEdit__AmPmSection QDateTimeEdit__Section = 1 QDateTimeEdit__MSecSection QDateTimeEdit__Section = 2 QDateTimeEdit__SecondSection QDateTimeEdit__Section = 4 QDateTimeEdit__MinuteSection QDateTimeEdit__Section = 8 QDateTimeEdit__HourSection QDateTimeEdit__Section = 16 QDateTimeEdit__DaySection QDateTimeEdit__Section = 256 QDateTimeEdit__MonthSection QDateTimeEdit__Section = 512 QDateTimeEdit__YearSection QDateTimeEdit__Section = 1024 QDateTimeEdit__TimeSections_Mask QDateTimeEdit__Section = 31 QDateTimeEdit__DateSections_Mask QDateTimeEdit__Section = 1792 ) type QDateTimeEdit struct { h *C.QDateTimeEdit isSubclass bool *QAbstractSpinBox } func (this *QDateTimeEdit) cPointer() *C.QDateTimeEdit { if this == nil { return nil } return this.h } func (this *QDateTimeEdit) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQDateTimeEdit constructs the type using only CGO pointers. func newQDateTimeEdit(h *C.QDateTimeEdit, h_QAbstractSpinBox *C.QAbstractSpinBox, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QDateTimeEdit { if h == nil { return nil } return &QDateTimeEdit{h: h, QAbstractSpinBox: newQAbstractSpinBox(h_QAbstractSpinBox, h_QWidget, h_QObject, h_QPaintDevice)} } // UnsafeNewQDateTimeEdit constructs the type using only unsafe pointers. func UnsafeNewQDateTimeEdit(h unsafe.Pointer, h_QAbstractSpinBox unsafe.Pointer, h_QWidget unsafe.Pointer, h_QObject unsafe.Pointer, h_QPaintDevice unsafe.Pointer) *QDateTimeEdit { if h == nil { return nil } return &QDateTimeEdit{h: (*C.QDateTimeEdit)(h), QAbstractSpinBox: UnsafeNewQAbstractSpinBox(h_QAbstractSpinBox, h_QWidget, h_QObject, h_QPaintDevice)} } // NewQDateTimeEdit constructs a new QDateTimeEdit object. func NewQDateTimeEdit(parent *QWidget) *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new(parent.cPointer(), &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateTimeEdit2 constructs a new QDateTimeEdit object. func NewQDateTimeEdit2() *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new2(&outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateTimeEdit3 constructs a new QDateTimeEdit object. func NewQDateTimeEdit3(dt *QDateTime) *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new3(dt.cPointer(), &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateTimeEdit4 constructs a new QDateTimeEdit object. func NewQDateTimeEdit4(d *QDate) *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new4(d.cPointer(), &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateTimeEdit5 constructs a new QDateTimeEdit object. func NewQDateTimeEdit5(t *QTime) *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new5(t.cPointer(), &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateTimeEdit6 constructs a new QDateTimeEdit object. func NewQDateTimeEdit6(dt *QDateTime, parent *QWidget) *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new6(dt.cPointer(), parent.cPointer(), &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateTimeEdit7 constructs a new QDateTimeEdit object. func NewQDateTimeEdit7(d *QDate, parent *QWidget) *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new7(d.cPointer(), parent.cPointer(), &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateTimeEdit8 constructs a new QDateTimeEdit object. func NewQDateTimeEdit8(t *QTime, parent *QWidget) *QDateTimeEdit { var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateTimeEdit_new8(t.cPointer(), parent.cPointer(), &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateTimeEdit(outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } func (this *QDateTimeEdit) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QDateTimeEdit_MetaObject(this.h))) } func (this *QDateTimeEdit) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QDateTimeEdit_Metacast(this.h, param1_Cstring)) } func QDateTimeEdit_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QDateTimeEdit_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateTimeEdit_TrUtf8(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QDateTimeEdit_TrUtf8(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateTimeEdit) DateTime() *QDateTime { _ret := C.QDateTimeEdit_DateTime(this.h) _goptr := newQDateTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) Date() *QDate { _ret := C.QDateTimeEdit_Date(this.h) _goptr := newQDate(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) Time() *QTime { _ret := C.QDateTimeEdit_Time(this.h) _goptr := newQTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) Calendar() *QCalendar { _ret := C.QDateTimeEdit_Calendar(this.h) _goptr := newQCalendar(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) SetCalendar(calendar QCalendar) { C.QDateTimeEdit_SetCalendar(this.h, calendar.cPointer()) } func (this *QDateTimeEdit) MinimumDateTime() *QDateTime { _ret := C.QDateTimeEdit_MinimumDateTime(this.h) _goptr := newQDateTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) ClearMinimumDateTime() { C.QDateTimeEdit_ClearMinimumDateTime(this.h) } func (this *QDateTimeEdit) SetMinimumDateTime(dt *QDateTime) { C.QDateTimeEdit_SetMinimumDateTime(this.h, dt.cPointer()) } func (this *QDateTimeEdit) MaximumDateTime() *QDateTime { _ret := C.QDateTimeEdit_MaximumDateTime(this.h) _goptr := newQDateTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) ClearMaximumDateTime() { C.QDateTimeEdit_ClearMaximumDateTime(this.h) } func (this *QDateTimeEdit) SetMaximumDateTime(dt *QDateTime) { C.QDateTimeEdit_SetMaximumDateTime(this.h, dt.cPointer()) } func (this *QDateTimeEdit) SetDateTimeRange(min *QDateTime, max *QDateTime) { C.QDateTimeEdit_SetDateTimeRange(this.h, min.cPointer(), max.cPointer()) } func (this *QDateTimeEdit) MinimumDate() *QDate { _ret := C.QDateTimeEdit_MinimumDate(this.h) _goptr := newQDate(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) SetMinimumDate(min *QDate) { C.QDateTimeEdit_SetMinimumDate(this.h, min.cPointer()) } func (this *QDateTimeEdit) ClearMinimumDate() { C.QDateTimeEdit_ClearMinimumDate(this.h) } func (this *QDateTimeEdit) MaximumDate() *QDate { _ret := C.QDateTimeEdit_MaximumDate(this.h) _goptr := newQDate(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) SetMaximumDate(max *QDate) { C.QDateTimeEdit_SetMaximumDate(this.h, max.cPointer()) } func (this *QDateTimeEdit) ClearMaximumDate() { C.QDateTimeEdit_ClearMaximumDate(this.h) } func (this *QDateTimeEdit) SetDateRange(min *QDate, max *QDate) { C.QDateTimeEdit_SetDateRange(this.h, min.cPointer(), max.cPointer()) } func (this *QDateTimeEdit) MinimumTime() *QTime { _ret := C.QDateTimeEdit_MinimumTime(this.h) _goptr := newQTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) SetMinimumTime(min *QTime) { C.QDateTimeEdit_SetMinimumTime(this.h, min.cPointer()) } func (this *QDateTimeEdit) ClearMinimumTime() { C.QDateTimeEdit_ClearMinimumTime(this.h) } func (this *QDateTimeEdit) MaximumTime() *QTime { _ret := C.QDateTimeEdit_MaximumTime(this.h) _goptr := newQTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) SetMaximumTime(max *QTime) { C.QDateTimeEdit_SetMaximumTime(this.h, max.cPointer()) } func (this *QDateTimeEdit) ClearMaximumTime() { C.QDateTimeEdit_ClearMaximumTime(this.h) } func (this *QDateTimeEdit) SetTimeRange(min *QTime, max *QTime) { C.QDateTimeEdit_SetTimeRange(this.h, min.cPointer(), max.cPointer()) } func (this *QDateTimeEdit) DisplayedSections() QDateTimeEdit__Section { return (QDateTimeEdit__Section)(C.QDateTimeEdit_DisplayedSections(this.h)) } func (this *QDateTimeEdit) CurrentSection() QDateTimeEdit__Section { return (QDateTimeEdit__Section)(C.QDateTimeEdit_CurrentSection(this.h)) } func (this *QDateTimeEdit) SectionAt(index int) QDateTimeEdit__Section { return (QDateTimeEdit__Section)(C.QDateTimeEdit_SectionAt(this.h, (C.int)(index))) } func (this *QDateTimeEdit) SetCurrentSection(section QDateTimeEdit__Section) { C.QDateTimeEdit_SetCurrentSection(this.h, (C.int)(section)) } func (this *QDateTimeEdit) CurrentSectionIndex() int { return (int)(C.QDateTimeEdit_CurrentSectionIndex(this.h)) } func (this *QDateTimeEdit) SetCurrentSectionIndex(index int) { C.QDateTimeEdit_SetCurrentSectionIndex(this.h, (C.int)(index)) } func (this *QDateTimeEdit) CalendarWidget() *QCalendarWidget { return UnsafeNewQCalendarWidget(unsafe.Pointer(C.QDateTimeEdit_CalendarWidget(this.h)), nil, nil, nil) } func (this *QDateTimeEdit) SetCalendarWidget(calendarWidget *QCalendarWidget) { C.QDateTimeEdit_SetCalendarWidget(this.h, calendarWidget.cPointer()) } func (this *QDateTimeEdit) SectionCount() int { return (int)(C.QDateTimeEdit_SectionCount(this.h)) } func (this *QDateTimeEdit) SetSelectedSection(section QDateTimeEdit__Section) { C.QDateTimeEdit_SetSelectedSection(this.h, (C.int)(section)) } func (this *QDateTimeEdit) SectionText(section QDateTimeEdit__Section) string { var _ms C.struct_miqt_string = C.QDateTimeEdit_SectionText(this.h, (C.int)(section)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateTimeEdit) DisplayFormat() string { var _ms C.struct_miqt_string = C.QDateTimeEdit_DisplayFormat(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateTimeEdit) SetDisplayFormat(format string) { format_ms := C.struct_miqt_string{} format_ms.data = C.CString(format) format_ms.len = C.size_t(len(format)) defer C.free(unsafe.Pointer(format_ms.data)) C.QDateTimeEdit_SetDisplayFormat(this.h, format_ms) } func (this *QDateTimeEdit) CalendarPopup() bool { return (bool)(C.QDateTimeEdit_CalendarPopup(this.h)) } func (this *QDateTimeEdit) SetCalendarPopup(enable bool) { C.QDateTimeEdit_SetCalendarPopup(this.h, (C.bool)(enable)) } func (this *QDateTimeEdit) TimeSpec() TimeSpec { return (TimeSpec)(C.QDateTimeEdit_TimeSpec(this.h)) } func (this *QDateTimeEdit) SetTimeSpec(spec TimeSpec) { C.QDateTimeEdit_SetTimeSpec(this.h, (C.int)(spec)) } func (this *QDateTimeEdit) SizeHint() *QSize { _ret := C.QDateTimeEdit_SizeHint(this.h) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) Clear() { C.QDateTimeEdit_Clear(this.h) } func (this *QDateTimeEdit) StepBy(steps int) { C.QDateTimeEdit_StepBy(this.h, (C.int)(steps)) } func (this *QDateTimeEdit) Event(event *QEvent) bool { return (bool)(C.QDateTimeEdit_Event(this.h, event.cPointer())) } func (this *QDateTimeEdit) DateTimeChanged(dateTime *QDateTime) { C.QDateTimeEdit_DateTimeChanged(this.h, dateTime.cPointer()) } func (this *QDateTimeEdit) OnDateTimeChanged(slot func(dateTime *QDateTime)) { C.QDateTimeEdit_connect_DateTimeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_DateTimeChanged func miqt_exec_callback_QDateTimeEdit_DateTimeChanged(cb C.intptr_t, dateTime *C.QDateTime) { gofunc, ok := cgo.Handle(cb).Value().(func(dateTime *QDateTime)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQDateTime(unsafe.Pointer(dateTime)) gofunc(slotval1) } func (this *QDateTimeEdit) TimeChanged(time *QTime) { C.QDateTimeEdit_TimeChanged(this.h, time.cPointer()) } func (this *QDateTimeEdit) OnTimeChanged(slot func(time *QTime)) { C.QDateTimeEdit_connect_TimeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_TimeChanged func miqt_exec_callback_QDateTimeEdit_TimeChanged(cb C.intptr_t, time *C.QTime) { gofunc, ok := cgo.Handle(cb).Value().(func(time *QTime)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQTime(unsafe.Pointer(time)) gofunc(slotval1) } func (this *QDateTimeEdit) DateChanged(date *QDate) { C.QDateTimeEdit_DateChanged(this.h, date.cPointer()) } func (this *QDateTimeEdit) OnDateChanged(slot func(date *QDate)) { C.QDateTimeEdit_connect_DateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_DateChanged func miqt_exec_callback_QDateTimeEdit_DateChanged(cb C.intptr_t, date *C.QDate) { gofunc, ok := cgo.Handle(cb).Value().(func(date *QDate)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQDate(unsafe.Pointer(date)) gofunc(slotval1) } func (this *QDateTimeEdit) SetDateTime(dateTime *QDateTime) { C.QDateTimeEdit_SetDateTime(this.h, dateTime.cPointer()) } func (this *QDateTimeEdit) SetDate(date *QDate) { C.QDateTimeEdit_SetDate(this.h, date.cPointer()) } func (this *QDateTimeEdit) SetTime(time *QTime) { C.QDateTimeEdit_SetTime(this.h, time.cPointer()) } func QDateTimeEdit_Tr2(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateTimeEdit_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateTimeEdit_Tr3(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateTimeEdit_Tr3(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateTimeEdit_TrUtf82(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateTimeEdit_TrUtf82(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateTimeEdit_TrUtf83(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateTimeEdit_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateTimeEdit) callVirtualBase_SizeHint() *QSize { _ret := C.QDateTimeEdit_virtualbase_SizeHint(unsafe.Pointer(this.h)) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) OnSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_SizeHint func miqt_exec_callback_QDateTimeEdit_SizeHint(self *C.QDateTimeEdit, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_SizeHint) return virtualReturn.cPointer() } func (this *QDateTimeEdit) callVirtualBase_Clear() { C.QDateTimeEdit_virtualbase_Clear(unsafe.Pointer(this.h)) } func (this *QDateTimeEdit) OnClear(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_Clear(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_Clear func miqt_exec_callback_QDateTimeEdit_Clear(self *C.QDateTimeEdit, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Clear) } func (this *QDateTimeEdit) callVirtualBase_StepBy(steps int) { C.QDateTimeEdit_virtualbase_StepBy(unsafe.Pointer(this.h), (C.int)(steps)) } func (this *QDateTimeEdit) OnStepBy(slot func(super func(steps int), steps int)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_StepBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_StepBy func miqt_exec_callback_QDateTimeEdit_StepBy(self *C.QDateTimeEdit, cb C.intptr_t, steps C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(steps int), steps int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(steps) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_StepBy, slotval1) } func (this *QDateTimeEdit) callVirtualBase_Event(event *QEvent) bool { return (bool)(C.QDateTimeEdit_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer())) } func (this *QDateTimeEdit) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_Event func miqt_exec_callback_QDateTimeEdit_Event(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQEvent(unsafe.Pointer(event)) virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QDateTimeEdit) callVirtualBase_KeyPressEvent(event *QKeyEvent) { C.QDateTimeEdit_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_KeyPressEvent func miqt_exec_callback_QDateTimeEdit_KeyPressEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_WheelEvent(event *QWheelEvent) { C.QDateTimeEdit_virtualbase_WheelEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnWheelEvent(slot func(super func(event *QWheelEvent), event *QWheelEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_WheelEvent func miqt_exec_callback_QDateTimeEdit_WheelEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QWheelEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QWheelEvent), event *QWheelEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQWheelEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_WheelEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_FocusInEvent(event *QFocusEvent) { C.QDateTimeEdit_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_FocusInEvent func miqt_exec_callback_QDateTimeEdit_FocusInEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_FocusInEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_FocusNextPrevChild(next bool) bool { return (bool)(C.QDateTimeEdit_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next))) } func (this *QDateTimeEdit) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_FocusNextPrevChild func miqt_exec_callback_QDateTimeEdit_FocusNextPrevChild(self *C.QDateTimeEdit, cb C.intptr_t, next C.bool) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (bool)(next) virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_FocusNextPrevChild, slotval1) return (C.bool)(virtualReturn) } func (this *QDateTimeEdit) callVirtualBase_Validate(input string, pos *int) QValidator__State { input_ms := C.struct_miqt_string{} input_ms.data = C.CString(input) input_ms.len = C.size_t(len(input)) defer C.free(unsafe.Pointer(input_ms.data)) return (QValidator__State)(C.QDateTimeEdit_virtualbase_Validate(unsafe.Pointer(this.h), input_ms, (*C.int)(unsafe.Pointer(pos)))) } func (this *QDateTimeEdit) OnValidate(slot func(super func(input string, pos *int) QValidator__State, input string, pos *int) QValidator__State) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_Validate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_Validate func miqt_exec_callback_QDateTimeEdit_Validate(self *C.QDateTimeEdit, cb C.intptr_t, input C.struct_miqt_string, pos *C.int) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func(input string, pos *int) QValidator__State, input string, pos *int) QValidator__State) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var input_ms C.struct_miqt_string = input input_ret := C.GoStringN(input_ms.data, C.int(int64(input_ms.len))) C.free(unsafe.Pointer(input_ms.data)) slotval1 := input_ret slotval2 := (*int)(unsafe.Pointer(pos)) virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Validate, slotval1, slotval2) return (C.int)(virtualReturn) } func (this *QDateTimeEdit) callVirtualBase_Fixup(input string) { input_ms := C.struct_miqt_string{} input_ms.data = C.CString(input) input_ms.len = C.size_t(len(input)) defer C.free(unsafe.Pointer(input_ms.data)) C.QDateTimeEdit_virtualbase_Fixup(unsafe.Pointer(this.h), input_ms) } func (this *QDateTimeEdit) OnFixup(slot func(super func(input string), input string)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_Fixup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_Fixup func miqt_exec_callback_QDateTimeEdit_Fixup(self *C.QDateTimeEdit, cb C.intptr_t, input C.struct_miqt_string) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(input string), input string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var input_ms C.struct_miqt_string = input input_ret := C.GoStringN(input_ms.data, C.int(int64(input_ms.len))) C.free(unsafe.Pointer(input_ms.data)) slotval1 := input_ret gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Fixup, slotval1) } func (this *QDateTimeEdit) callVirtualBase_DateTimeFromText(text string) *QDateTime { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) _ret := C.QDateTimeEdit_virtualbase_DateTimeFromText(unsafe.Pointer(this.h), text_ms) _goptr := newQDateTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) OnDateTimeFromText(slot func(super func(text string) *QDateTime, text string) *QDateTime) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_DateTimeFromText(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_DateTimeFromText func miqt_exec_callback_QDateTimeEdit_DateTimeFromText(self *C.QDateTimeEdit, cb C.intptr_t, text C.struct_miqt_string) *C.QDateTime { gofunc, ok := cgo.Handle(cb).Value().(func(super func(text string) *QDateTime, text string) *QDateTime) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var text_ms C.struct_miqt_string = text text_ret := C.GoStringN(text_ms.data, C.int(int64(text_ms.len))) C.free(unsafe.Pointer(text_ms.data)) slotval1 := text_ret virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_DateTimeFromText, slotval1) return virtualReturn.cPointer() } func (this *QDateTimeEdit) callVirtualBase_TextFromDateTime(dt *QDateTime) string { var _ms C.struct_miqt_string = C.QDateTimeEdit_virtualbase_TextFromDateTime(unsafe.Pointer(this.h), dt.cPointer()) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateTimeEdit) OnTextFromDateTime(slot func(super func(dt *QDateTime) string, dt *QDateTime) string) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_TextFromDateTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_TextFromDateTime func miqt_exec_callback_QDateTimeEdit_TextFromDateTime(self *C.QDateTimeEdit, cb C.intptr_t, dt *C.QDateTime) C.struct_miqt_string { gofunc, ok := cgo.Handle(cb).Value().(func(super func(dt *QDateTime) string, dt *QDateTime) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQDateTime(unsafe.Pointer(dt)) virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_TextFromDateTime, slotval1) virtualReturn_ms := C.struct_miqt_string{} virtualReturn_ms.data = C.CString(virtualReturn) virtualReturn_ms.len = C.size_t(len(virtualReturn)) defer C.free(unsafe.Pointer(virtualReturn_ms.data)) return virtualReturn_ms } func (this *QDateTimeEdit) callVirtualBase_StepEnabled() QAbstractSpinBox__StepEnabledFlag { return (QAbstractSpinBox__StepEnabledFlag)(C.QDateTimeEdit_virtualbase_StepEnabled(unsafe.Pointer(this.h))) } func (this *QDateTimeEdit) OnStepEnabled(slot func(super func() QAbstractSpinBox__StepEnabledFlag) QAbstractSpinBox__StepEnabledFlag) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_StepEnabled(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_StepEnabled func miqt_exec_callback_QDateTimeEdit_StepEnabled(self *C.QDateTimeEdit, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() QAbstractSpinBox__StepEnabledFlag) QAbstractSpinBox__StepEnabledFlag) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_StepEnabled) return (C.int)(virtualReturn) } func (this *QDateTimeEdit) callVirtualBase_MousePressEvent(event *QMouseEvent) { C.QDateTimeEdit_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_MousePressEvent func miqt_exec_callback_QDateTimeEdit_MousePressEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_MousePressEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_PaintEvent(event *QPaintEvent) { C.QDateTimeEdit_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_PaintEvent func miqt_exec_callback_QDateTimeEdit_PaintEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QPaintEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QPaintEvent), event *QPaintEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQPaintEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_PaintEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_MinimumSizeHint() *QSize { _ret := C.QDateTimeEdit_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h)) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_MinimumSizeHint func miqt_exec_callback_QDateTimeEdit_MinimumSizeHint(self *C.QDateTimeEdit, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_MinimumSizeHint) return virtualReturn.cPointer() } func (this *QDateTimeEdit) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant { _ret := C.QDateTimeEdit_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)) _goptr := newQVariant(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateTimeEdit) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_InputMethodQuery func miqt_exec_callback_QDateTimeEdit_InputMethodQuery(self *C.QDateTimeEdit, cb C.intptr_t, param1 C.int) *C.QVariant { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (InputMethodQuery)(param1) virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_InputMethodQuery, slotval1) return virtualReturn.cPointer() } func (this *QDateTimeEdit) callVirtualBase_ResizeEvent(event *QResizeEvent) { C.QDateTimeEdit_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_ResizeEvent func miqt_exec_callback_QDateTimeEdit_ResizeEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QResizeEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QResizeEvent), event *QResizeEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQResizeEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ResizeEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) { C.QDateTimeEdit_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnKeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_KeyReleaseEvent func miqt_exec_callback_QDateTimeEdit_KeyReleaseEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_KeyReleaseEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_FocusOutEvent(event *QFocusEvent) { C.QDateTimeEdit_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_FocusOutEvent func miqt_exec_callback_QDateTimeEdit_FocusOutEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_FocusOutEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_ContextMenuEvent(event *QContextMenuEvent) { C.QDateTimeEdit_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnContextMenuEvent(slot func(super func(event *QContextMenuEvent), event *QContextMenuEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_ContextMenuEvent func miqt_exec_callback_QDateTimeEdit_ContextMenuEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QContextMenuEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QContextMenuEvent), event *QContextMenuEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQContextMenuEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ContextMenuEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_ChangeEvent(event *QEvent) { C.QDateTimeEdit_virtualbase_ChangeEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnChangeEvent(slot func(super func(event *QEvent), event *QEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_ChangeEvent func miqt_exec_callback_QDateTimeEdit_ChangeEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQEvent(unsafe.Pointer(event)) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ChangeEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_CloseEvent(event *QCloseEvent) { C.QDateTimeEdit_virtualbase_CloseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnCloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_CloseEvent func miqt_exec_callback_QDateTimeEdit_CloseEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QCloseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QCloseEvent), event *QCloseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQCloseEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_CloseEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_HideEvent(event *QHideEvent) { C.QDateTimeEdit_virtualbase_HideEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnHideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_HideEvent func miqt_exec_callback_QDateTimeEdit_HideEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QHideEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QHideEvent), event *QHideEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQHideEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_HideEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) { C.QDateTimeEdit_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_MouseReleaseEvent func miqt_exec_callback_QDateTimeEdit_MouseReleaseEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_MouseReleaseEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_MouseMoveEvent(event *QMouseEvent) { C.QDateTimeEdit_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_MouseMoveEvent func miqt_exec_callback_QDateTimeEdit_MouseMoveEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_MouseMoveEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_TimerEvent(event *QTimerEvent) { C.QDateTimeEdit_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_TimerEvent func miqt_exec_callback_QDateTimeEdit_TimerEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QTimerEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTimerEvent), event *QTimerEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQTimerEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_TimerEvent, slotval1) } func (this *QDateTimeEdit) callVirtualBase_ShowEvent(event *QShowEvent) { C.QDateTimeEdit_virtualbase_ShowEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateTimeEdit) OnShowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateTimeEdit_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateTimeEdit_ShowEvent func miqt_exec_callback_QDateTimeEdit_ShowEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QShowEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QShowEvent), event *QShowEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQShowEvent(unsafe.Pointer(event), nil) gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ShowEvent, slotval1) } // Delete this object from C++ memory. func (this *QDateTimeEdit) Delete() { C.QDateTimeEdit_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QDateTimeEdit) GoGC() { runtime.SetFinalizer(this, func(this *QDateTimeEdit) { this.Delete() runtime.KeepAlive(this.h) }) } type QTimeEdit struct { h *C.QTimeEdit isSubclass bool *QDateTimeEdit } func (this *QTimeEdit) cPointer() *C.QTimeEdit { if this == nil { return nil } return this.h } func (this *QTimeEdit) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQTimeEdit constructs the type using only CGO pointers. func newQTimeEdit(h *C.QTimeEdit, h_QDateTimeEdit *C.QDateTimeEdit, h_QAbstractSpinBox *C.QAbstractSpinBox, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QTimeEdit { if h == nil { return nil } return &QTimeEdit{h: h, QDateTimeEdit: newQDateTimeEdit(h_QDateTimeEdit, h_QAbstractSpinBox, h_QWidget, h_QObject, h_QPaintDevice)} } // UnsafeNewQTimeEdit constructs the type using only unsafe pointers. func UnsafeNewQTimeEdit(h unsafe.Pointer, h_QDateTimeEdit unsafe.Pointer, h_QAbstractSpinBox unsafe.Pointer, h_QWidget unsafe.Pointer, h_QObject unsafe.Pointer, h_QPaintDevice unsafe.Pointer) *QTimeEdit { if h == nil { return nil } return &QTimeEdit{h: (*C.QTimeEdit)(h), QDateTimeEdit: UnsafeNewQDateTimeEdit(h_QDateTimeEdit, h_QAbstractSpinBox, h_QWidget, h_QObject, h_QPaintDevice)} } // NewQTimeEdit constructs a new QTimeEdit object. func NewQTimeEdit(parent *QWidget) *QTimeEdit { var outptr_QTimeEdit *C.QTimeEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QTimeEdit_new(parent.cPointer(), &outptr_QTimeEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQTimeEdit(outptr_QTimeEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQTimeEdit2 constructs a new QTimeEdit object. func NewQTimeEdit2() *QTimeEdit { var outptr_QTimeEdit *C.QTimeEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QTimeEdit_new2(&outptr_QTimeEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQTimeEdit(outptr_QTimeEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQTimeEdit3 constructs a new QTimeEdit object. func NewQTimeEdit3(time *QTime) *QTimeEdit { var outptr_QTimeEdit *C.QTimeEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QTimeEdit_new3(time.cPointer(), &outptr_QTimeEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQTimeEdit(outptr_QTimeEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQTimeEdit4 constructs a new QTimeEdit object. func NewQTimeEdit4(time *QTime, parent *QWidget) *QTimeEdit { var outptr_QTimeEdit *C.QTimeEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QTimeEdit_new4(time.cPointer(), parent.cPointer(), &outptr_QTimeEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQTimeEdit(outptr_QTimeEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } func (this *QTimeEdit) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QTimeEdit_MetaObject(this.h))) } func (this *QTimeEdit) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QTimeEdit_Metacast(this.h, param1_Cstring)) } func QTimeEdit_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QTimeEdit_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTimeEdit_TrUtf8(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QTimeEdit_TrUtf8(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QTimeEdit) UserTimeChanged(time *QTime) { C.QTimeEdit_UserTimeChanged(this.h, time.cPointer()) } func (this *QTimeEdit) OnUserTimeChanged(slot func(time *QTime)) { C.QTimeEdit_connect_UserTimeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_UserTimeChanged func miqt_exec_callback_QTimeEdit_UserTimeChanged(cb C.intptr_t, time *C.QTime) { gofunc, ok := cgo.Handle(cb).Value().(func(time *QTime)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQTime(unsafe.Pointer(time)) gofunc(slotval1) } func QTimeEdit_Tr2(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTimeEdit_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTimeEdit_Tr3(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTimeEdit_Tr3(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTimeEdit_TrUtf82(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTimeEdit_TrUtf82(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QTimeEdit_TrUtf83(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QTimeEdit_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QTimeEdit) callVirtualBase_SizeHint() *QSize { _ret := C.QTimeEdit_virtualbase_SizeHint(unsafe.Pointer(this.h)) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTimeEdit) OnSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_SizeHint func miqt_exec_callback_QTimeEdit_SizeHint(self *C.QTimeEdit, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_SizeHint) return virtualReturn.cPointer() } func (this *QTimeEdit) callVirtualBase_Clear() { C.QTimeEdit_virtualbase_Clear(unsafe.Pointer(this.h)) } func (this *QTimeEdit) OnClear(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_Clear(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_Clear func miqt_exec_callback_QTimeEdit_Clear(self *C.QTimeEdit, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QTimeEdit{h: self}).callVirtualBase_Clear) } func (this *QTimeEdit) callVirtualBase_StepBy(steps int) { C.QTimeEdit_virtualbase_StepBy(unsafe.Pointer(this.h), (C.int)(steps)) } func (this *QTimeEdit) OnStepBy(slot func(super func(steps int), steps int)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_StepBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_StepBy func miqt_exec_callback_QTimeEdit_StepBy(self *C.QTimeEdit, cb C.intptr_t, steps C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(steps int), steps int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(steps) gofunc((&QTimeEdit{h: self}).callVirtualBase_StepBy, slotval1) } func (this *QTimeEdit) callVirtualBase_Event(event *QEvent) bool { return (bool)(C.QTimeEdit_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer())) } func (this *QTimeEdit) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_Event func miqt_exec_callback_QTimeEdit_Event(self *C.QTimeEdit, cb C.intptr_t, event *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQEvent(unsafe.Pointer(event)) virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QTimeEdit) callVirtualBase_KeyPressEvent(event *QKeyEvent) { C.QTimeEdit_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QTimeEdit) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_KeyPressEvent func miqt_exec_callback_QTimeEdit_KeyPressEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil) gofunc((&QTimeEdit{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QTimeEdit) callVirtualBase_WheelEvent(event *QWheelEvent) { C.QTimeEdit_virtualbase_WheelEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QTimeEdit) OnWheelEvent(slot func(super func(event *QWheelEvent), event *QWheelEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_WheelEvent func miqt_exec_callback_QTimeEdit_WheelEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QWheelEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QWheelEvent), event *QWheelEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQWheelEvent(unsafe.Pointer(event), nil, nil) gofunc((&QTimeEdit{h: self}).callVirtualBase_WheelEvent, slotval1) } func (this *QTimeEdit) callVirtualBase_FocusInEvent(event *QFocusEvent) { C.QTimeEdit_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QTimeEdit) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_FocusInEvent func miqt_exec_callback_QTimeEdit_FocusInEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil) gofunc((&QTimeEdit{h: self}).callVirtualBase_FocusInEvent, slotval1) } func (this *QTimeEdit) callVirtualBase_FocusNextPrevChild(next bool) bool { return (bool)(C.QTimeEdit_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next))) } func (this *QTimeEdit) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_FocusNextPrevChild func miqt_exec_callback_QTimeEdit_FocusNextPrevChild(self *C.QTimeEdit, cb C.intptr_t, next C.bool) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (bool)(next) virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_FocusNextPrevChild, slotval1) return (C.bool)(virtualReturn) } func (this *QTimeEdit) callVirtualBase_Validate(input string, pos *int) QValidator__State { input_ms := C.struct_miqt_string{} input_ms.data = C.CString(input) input_ms.len = C.size_t(len(input)) defer C.free(unsafe.Pointer(input_ms.data)) return (QValidator__State)(C.QTimeEdit_virtualbase_Validate(unsafe.Pointer(this.h), input_ms, (*C.int)(unsafe.Pointer(pos)))) } func (this *QTimeEdit) OnValidate(slot func(super func(input string, pos *int) QValidator__State, input string, pos *int) QValidator__State) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_Validate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_Validate func miqt_exec_callback_QTimeEdit_Validate(self *C.QTimeEdit, cb C.intptr_t, input C.struct_miqt_string, pos *C.int) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func(input string, pos *int) QValidator__State, input string, pos *int) QValidator__State) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var input_ms C.struct_miqt_string = input input_ret := C.GoStringN(input_ms.data, C.int(int64(input_ms.len))) C.free(unsafe.Pointer(input_ms.data)) slotval1 := input_ret slotval2 := (*int)(unsafe.Pointer(pos)) virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_Validate, slotval1, slotval2) return (C.int)(virtualReturn) } func (this *QTimeEdit) callVirtualBase_Fixup(input string) { input_ms := C.struct_miqt_string{} input_ms.data = C.CString(input) input_ms.len = C.size_t(len(input)) defer C.free(unsafe.Pointer(input_ms.data)) C.QTimeEdit_virtualbase_Fixup(unsafe.Pointer(this.h), input_ms) } func (this *QTimeEdit) OnFixup(slot func(super func(input string), input string)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_Fixup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_Fixup func miqt_exec_callback_QTimeEdit_Fixup(self *C.QTimeEdit, cb C.intptr_t, input C.struct_miqt_string) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(input string), input string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var input_ms C.struct_miqt_string = input input_ret := C.GoStringN(input_ms.data, C.int(int64(input_ms.len))) C.free(unsafe.Pointer(input_ms.data)) slotval1 := input_ret gofunc((&QTimeEdit{h: self}).callVirtualBase_Fixup, slotval1) } func (this *QTimeEdit) callVirtualBase_DateTimeFromText(text string) *QDateTime { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) _ret := C.QTimeEdit_virtualbase_DateTimeFromText(unsafe.Pointer(this.h), text_ms) _goptr := newQDateTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QTimeEdit) OnDateTimeFromText(slot func(super func(text string) *QDateTime, text string) *QDateTime) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_DateTimeFromText(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_DateTimeFromText func miqt_exec_callback_QTimeEdit_DateTimeFromText(self *C.QTimeEdit, cb C.intptr_t, text C.struct_miqt_string) *C.QDateTime { gofunc, ok := cgo.Handle(cb).Value().(func(super func(text string) *QDateTime, text string) *QDateTime) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var text_ms C.struct_miqt_string = text text_ret := C.GoStringN(text_ms.data, C.int(int64(text_ms.len))) C.free(unsafe.Pointer(text_ms.data)) slotval1 := text_ret virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_DateTimeFromText, slotval1) return virtualReturn.cPointer() } func (this *QTimeEdit) callVirtualBase_TextFromDateTime(dt *QDateTime) string { var _ms C.struct_miqt_string = C.QTimeEdit_virtualbase_TextFromDateTime(unsafe.Pointer(this.h), dt.cPointer()) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QTimeEdit) OnTextFromDateTime(slot func(super func(dt *QDateTime) string, dt *QDateTime) string) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_TextFromDateTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_TextFromDateTime func miqt_exec_callback_QTimeEdit_TextFromDateTime(self *C.QTimeEdit, cb C.intptr_t, dt *C.QDateTime) C.struct_miqt_string { gofunc, ok := cgo.Handle(cb).Value().(func(super func(dt *QDateTime) string, dt *QDateTime) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQDateTime(unsafe.Pointer(dt)) virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_TextFromDateTime, slotval1) virtualReturn_ms := C.struct_miqt_string{} virtualReturn_ms.data = C.CString(virtualReturn) virtualReturn_ms.len = C.size_t(len(virtualReturn)) defer C.free(unsafe.Pointer(virtualReturn_ms.data)) return virtualReturn_ms } func (this *QTimeEdit) callVirtualBase_StepEnabled() QAbstractSpinBox__StepEnabledFlag { return (QAbstractSpinBox__StepEnabledFlag)(C.QTimeEdit_virtualbase_StepEnabled(unsafe.Pointer(this.h))) } func (this *QTimeEdit) OnStepEnabled(slot func(super func() QAbstractSpinBox__StepEnabledFlag) QAbstractSpinBox__StepEnabledFlag) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_StepEnabled(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_StepEnabled func miqt_exec_callback_QTimeEdit_StepEnabled(self *C.QTimeEdit, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() QAbstractSpinBox__StepEnabledFlag) QAbstractSpinBox__StepEnabledFlag) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_StepEnabled) return (C.int)(virtualReturn) } func (this *QTimeEdit) callVirtualBase_MousePressEvent(event *QMouseEvent) { C.QTimeEdit_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QTimeEdit) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_MousePressEvent func miqt_exec_callback_QTimeEdit_MousePressEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil) gofunc((&QTimeEdit{h: self}).callVirtualBase_MousePressEvent, slotval1) } func (this *QTimeEdit) callVirtualBase_PaintEvent(event *QPaintEvent) { C.QTimeEdit_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QTimeEdit) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QTimeEdit_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTimeEdit_PaintEvent func miqt_exec_callback_QTimeEdit_PaintEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QPaintEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QPaintEvent), event *QPaintEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQPaintEvent(unsafe.Pointer(event), nil) gofunc((&QTimeEdit{h: self}).callVirtualBase_PaintEvent, slotval1) } // Delete this object from C++ memory. func (this *QTimeEdit) Delete() { C.QTimeEdit_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QTimeEdit) GoGC() { runtime.SetFinalizer(this, func(this *QTimeEdit) { this.Delete() runtime.KeepAlive(this.h) }) } type QDateEdit struct { h *C.QDateEdit isSubclass bool *QDateTimeEdit } func (this *QDateEdit) cPointer() *C.QDateEdit { if this == nil { return nil } return this.h } func (this *QDateEdit) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQDateEdit constructs the type using only CGO pointers. func newQDateEdit(h *C.QDateEdit, h_QDateTimeEdit *C.QDateTimeEdit, h_QAbstractSpinBox *C.QAbstractSpinBox, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QDateEdit { if h == nil { return nil } return &QDateEdit{h: h, QDateTimeEdit: newQDateTimeEdit(h_QDateTimeEdit, h_QAbstractSpinBox, h_QWidget, h_QObject, h_QPaintDevice)} } // UnsafeNewQDateEdit constructs the type using only unsafe pointers. func UnsafeNewQDateEdit(h unsafe.Pointer, h_QDateTimeEdit unsafe.Pointer, h_QAbstractSpinBox unsafe.Pointer, h_QWidget unsafe.Pointer, h_QObject unsafe.Pointer, h_QPaintDevice unsafe.Pointer) *QDateEdit { if h == nil { return nil } return &QDateEdit{h: (*C.QDateEdit)(h), QDateTimeEdit: UnsafeNewQDateTimeEdit(h_QDateTimeEdit, h_QAbstractSpinBox, h_QWidget, h_QObject, h_QPaintDevice)} } // NewQDateEdit constructs a new QDateEdit object. func NewQDateEdit(parent *QWidget) *QDateEdit { var outptr_QDateEdit *C.QDateEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateEdit_new(parent.cPointer(), &outptr_QDateEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateEdit(outptr_QDateEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateEdit2 constructs a new QDateEdit object. func NewQDateEdit2() *QDateEdit { var outptr_QDateEdit *C.QDateEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateEdit_new2(&outptr_QDateEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateEdit(outptr_QDateEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateEdit3 constructs a new QDateEdit object. func NewQDateEdit3(date *QDate) *QDateEdit { var outptr_QDateEdit *C.QDateEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateEdit_new3(date.cPointer(), &outptr_QDateEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateEdit(outptr_QDateEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQDateEdit4 constructs a new QDateEdit object. func NewQDateEdit4(date *QDate, parent *QWidget) *QDateEdit { var outptr_QDateEdit *C.QDateEdit = nil var outptr_QDateTimeEdit *C.QDateTimeEdit = nil var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QDateEdit_new4(date.cPointer(), parent.cPointer(), &outptr_QDateEdit, &outptr_QDateTimeEdit, &outptr_QAbstractSpinBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQDateEdit(outptr_QDateEdit, outptr_QDateTimeEdit, outptr_QAbstractSpinBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } func (this *QDateEdit) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QDateEdit_MetaObject(this.h))) } func (this *QDateEdit) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QDateEdit_Metacast(this.h, param1_Cstring)) } func QDateEdit_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QDateEdit_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateEdit_TrUtf8(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QDateEdit_TrUtf8(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateEdit) UserDateChanged(date *QDate) { C.QDateEdit_UserDateChanged(this.h, date.cPointer()) } func (this *QDateEdit) OnUserDateChanged(slot func(date *QDate)) { C.QDateEdit_connect_UserDateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_UserDateChanged func miqt_exec_callback_QDateEdit_UserDateChanged(cb C.intptr_t, date *C.QDate) { gofunc, ok := cgo.Handle(cb).Value().(func(date *QDate)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQDate(unsafe.Pointer(date)) gofunc(slotval1) } func QDateEdit_Tr2(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateEdit_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateEdit_Tr3(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateEdit_Tr3(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateEdit_TrUtf82(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateEdit_TrUtf82(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QDateEdit_TrUtf83(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QDateEdit_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateEdit) callVirtualBase_SizeHint() *QSize { _ret := C.QDateEdit_virtualbase_SizeHint(unsafe.Pointer(this.h)) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateEdit) OnSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_SizeHint func miqt_exec_callback_QDateEdit_SizeHint(self *C.QDateEdit, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_SizeHint) return virtualReturn.cPointer() } func (this *QDateEdit) callVirtualBase_Clear() { C.QDateEdit_virtualbase_Clear(unsafe.Pointer(this.h)) } func (this *QDateEdit) OnClear(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_Clear(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_Clear func miqt_exec_callback_QDateEdit_Clear(self *C.QDateEdit, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QDateEdit{h: self}).callVirtualBase_Clear) } func (this *QDateEdit) callVirtualBase_StepBy(steps int) { C.QDateEdit_virtualbase_StepBy(unsafe.Pointer(this.h), (C.int)(steps)) } func (this *QDateEdit) OnStepBy(slot func(super func(steps int), steps int)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_StepBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_StepBy func miqt_exec_callback_QDateEdit_StepBy(self *C.QDateEdit, cb C.intptr_t, steps C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(steps int), steps int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(steps) gofunc((&QDateEdit{h: self}).callVirtualBase_StepBy, slotval1) } func (this *QDateEdit) callVirtualBase_Event(event *QEvent) bool { return (bool)(C.QDateEdit_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer())) } func (this *QDateEdit) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_Event func miqt_exec_callback_QDateEdit_Event(self *C.QDateEdit, cb C.intptr_t, event *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQEvent(unsafe.Pointer(event)) virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QDateEdit) callVirtualBase_KeyPressEvent(event *QKeyEvent) { C.QDateEdit_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateEdit) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_KeyPressEvent func miqt_exec_callback_QDateEdit_KeyPressEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateEdit{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QDateEdit) callVirtualBase_WheelEvent(event *QWheelEvent) { C.QDateEdit_virtualbase_WheelEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateEdit) OnWheelEvent(slot func(super func(event *QWheelEvent), event *QWheelEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_WheelEvent func miqt_exec_callback_QDateEdit_WheelEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QWheelEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QWheelEvent), event *QWheelEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQWheelEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateEdit{h: self}).callVirtualBase_WheelEvent, slotval1) } func (this *QDateEdit) callVirtualBase_FocusInEvent(event *QFocusEvent) { C.QDateEdit_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateEdit) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_FocusInEvent func miqt_exec_callback_QDateEdit_FocusInEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil) gofunc((&QDateEdit{h: self}).callVirtualBase_FocusInEvent, slotval1) } func (this *QDateEdit) callVirtualBase_FocusNextPrevChild(next bool) bool { return (bool)(C.QDateEdit_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next))) } func (this *QDateEdit) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_FocusNextPrevChild func miqt_exec_callback_QDateEdit_FocusNextPrevChild(self *C.QDateEdit, cb C.intptr_t, next C.bool) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (bool)(next) virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_FocusNextPrevChild, slotval1) return (C.bool)(virtualReturn) } func (this *QDateEdit) callVirtualBase_Validate(input string, pos *int) QValidator__State { input_ms := C.struct_miqt_string{} input_ms.data = C.CString(input) input_ms.len = C.size_t(len(input)) defer C.free(unsafe.Pointer(input_ms.data)) return (QValidator__State)(C.QDateEdit_virtualbase_Validate(unsafe.Pointer(this.h), input_ms, (*C.int)(unsafe.Pointer(pos)))) } func (this *QDateEdit) OnValidate(slot func(super func(input string, pos *int) QValidator__State, input string, pos *int) QValidator__State) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_Validate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_Validate func miqt_exec_callback_QDateEdit_Validate(self *C.QDateEdit, cb C.intptr_t, input C.struct_miqt_string, pos *C.int) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func(input string, pos *int) QValidator__State, input string, pos *int) QValidator__State) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var input_ms C.struct_miqt_string = input input_ret := C.GoStringN(input_ms.data, C.int(int64(input_ms.len))) C.free(unsafe.Pointer(input_ms.data)) slotval1 := input_ret slotval2 := (*int)(unsafe.Pointer(pos)) virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_Validate, slotval1, slotval2) return (C.int)(virtualReturn) } func (this *QDateEdit) callVirtualBase_Fixup(input string) { input_ms := C.struct_miqt_string{} input_ms.data = C.CString(input) input_ms.len = C.size_t(len(input)) defer C.free(unsafe.Pointer(input_ms.data)) C.QDateEdit_virtualbase_Fixup(unsafe.Pointer(this.h), input_ms) } func (this *QDateEdit) OnFixup(slot func(super func(input string), input string)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_Fixup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_Fixup func miqt_exec_callback_QDateEdit_Fixup(self *C.QDateEdit, cb C.intptr_t, input C.struct_miqt_string) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(input string), input string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var input_ms C.struct_miqt_string = input input_ret := C.GoStringN(input_ms.data, C.int(int64(input_ms.len))) C.free(unsafe.Pointer(input_ms.data)) slotval1 := input_ret gofunc((&QDateEdit{h: self}).callVirtualBase_Fixup, slotval1) } func (this *QDateEdit) callVirtualBase_DateTimeFromText(text string) *QDateTime { text_ms := C.struct_miqt_string{} text_ms.data = C.CString(text) text_ms.len = C.size_t(len(text)) defer C.free(unsafe.Pointer(text_ms.data)) _ret := C.QDateEdit_virtualbase_DateTimeFromText(unsafe.Pointer(this.h), text_ms) _goptr := newQDateTime(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QDateEdit) OnDateTimeFromText(slot func(super func(text string) *QDateTime, text string) *QDateTime) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_DateTimeFromText(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_DateTimeFromText func miqt_exec_callback_QDateEdit_DateTimeFromText(self *C.QDateEdit, cb C.intptr_t, text C.struct_miqt_string) *C.QDateTime { gofunc, ok := cgo.Handle(cb).Value().(func(super func(text string) *QDateTime, text string) *QDateTime) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var text_ms C.struct_miqt_string = text text_ret := C.GoStringN(text_ms.data, C.int(int64(text_ms.len))) C.free(unsafe.Pointer(text_ms.data)) slotval1 := text_ret virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_DateTimeFromText, slotval1) return virtualReturn.cPointer() } func (this *QDateEdit) callVirtualBase_TextFromDateTime(dt *QDateTime) string { var _ms C.struct_miqt_string = C.QDateEdit_virtualbase_TextFromDateTime(unsafe.Pointer(this.h), dt.cPointer()) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QDateEdit) OnTextFromDateTime(slot func(super func(dt *QDateTime) string, dt *QDateTime) string) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_TextFromDateTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_TextFromDateTime func miqt_exec_callback_QDateEdit_TextFromDateTime(self *C.QDateEdit, cb C.intptr_t, dt *C.QDateTime) C.struct_miqt_string { gofunc, ok := cgo.Handle(cb).Value().(func(super func(dt *QDateTime) string, dt *QDateTime) string) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQDateTime(unsafe.Pointer(dt)) virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_TextFromDateTime, slotval1) virtualReturn_ms := C.struct_miqt_string{} virtualReturn_ms.data = C.CString(virtualReturn) virtualReturn_ms.len = C.size_t(len(virtualReturn)) defer C.free(unsafe.Pointer(virtualReturn_ms.data)) return virtualReturn_ms } func (this *QDateEdit) callVirtualBase_StepEnabled() QAbstractSpinBox__StepEnabledFlag { return (QAbstractSpinBox__StepEnabledFlag)(C.QDateEdit_virtualbase_StepEnabled(unsafe.Pointer(this.h))) } func (this *QDateEdit) OnStepEnabled(slot func(super func() QAbstractSpinBox__StepEnabledFlag) QAbstractSpinBox__StepEnabledFlag) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_StepEnabled(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_StepEnabled func miqt_exec_callback_QDateEdit_StepEnabled(self *C.QDateEdit, cb C.intptr_t) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func() QAbstractSpinBox__StepEnabledFlag) QAbstractSpinBox__StepEnabledFlag) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_StepEnabled) return (C.int)(virtualReturn) } func (this *QDateEdit) callVirtualBase_MousePressEvent(event *QMouseEvent) { C.QDateEdit_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateEdit) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_MousePressEvent func miqt_exec_callback_QDateEdit_MousePressEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil) gofunc((&QDateEdit{h: self}).callVirtualBase_MousePressEvent, slotval1) } func (this *QDateEdit) callVirtualBase_PaintEvent(event *QPaintEvent) { C.QDateEdit_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QDateEdit) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QDateEdit_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDateEdit_PaintEvent func miqt_exec_callback_QDateEdit_PaintEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QPaintEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QPaintEvent), event *QPaintEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQPaintEvent(unsafe.Pointer(event), nil) gofunc((&QDateEdit{h: self}).callVirtualBase_PaintEvent, slotval1) } // Delete this object from C++ memory. func (this *QDateEdit) Delete() { C.QDateEdit_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QDateEdit) GoGC() { runtime.SetFinalizer(this, func(this *QDateEdit) { this.Delete() runtime.KeepAlive(this.h) }) }