miqt/qt6/gen_qdatetimeedit.go

5220 lines
186 KiB
Go
Raw Normal View History

2024-10-20 18:21:03 +13:00
package qt6
/*
#include "gen_qdatetimeedit.h"
#include <stdlib.h>
*/
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
2024-10-20 18:21:03 +13:00
*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)
}
2024-11-19 19:29:06 +13:00
// newQDateTimeEdit constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQDateTimeEdit(h *C.QDateTimeEdit) *QDateTimeEdit {
2024-10-20 18:21:03 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QAbstractSpinBox *C.QAbstractSpinBox = nil
C.QDateTimeEdit_virtbase(h, &outptr_QAbstractSpinBox)
2024-11-19 19:29:06 +13:00
return &QDateTimeEdit{h: h,
2024-12-07 17:15:57 +13:00
QAbstractSpinBox: newQAbstractSpinBox(outptr_QAbstractSpinBox)}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
// UnsafeNewQDateTimeEdit constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQDateTimeEdit(h unsafe.Pointer) *QDateTimeEdit {
return newQDateTimeEdit((*C.QDateTimeEdit)(h))
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit constructs a new QDateTimeEdit object.
func NewQDateTimeEdit(parent *QWidget) *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new(parent.cPointer()))
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit2 constructs a new QDateTimeEdit object.
func NewQDateTimeEdit2() *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new2())
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit3 constructs a new QDateTimeEdit object.
func NewQDateTimeEdit3(dt *QDateTime) *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new3(dt.cPointer()))
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit4 constructs a new QDateTimeEdit object.
func NewQDateTimeEdit4(d QDate) *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new4(d.cPointer()))
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit5 constructs a new QDateTimeEdit object.
func NewQDateTimeEdit5(t QTime) *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new5(t.cPointer()))
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit6 constructs a new QDateTimeEdit object.
func NewQDateTimeEdit6(dt *QDateTime, parent *QWidget) *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new6(dt.cPointer(), parent.cPointer()))
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit7 constructs a new QDateTimeEdit object.
func NewQDateTimeEdit7(d QDate, parent *QWidget) *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new7(d.cPointer(), parent.cPointer()))
2024-10-20 18:21:03 +13:00
}
// NewQDateTimeEdit8 constructs a new QDateTimeEdit object.
func NewQDateTimeEdit8(t QTime, parent *QWidget) *QDateTimeEdit {
2024-11-19 19:29:06 +13:00
return newQDateTimeEdit(C.QDateTimeEdit_new8(t.cPointer(), parent.cPointer()))
2024-10-20 18:21:03 +13:00
}
func (this *QDateTimeEdit) MetaObject() *QMetaObject {
return newQMetaObject(C.QDateTimeEdit_MetaObject(this.h))
2024-10-20 18:21:03 +13:00
}
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 (this *QDateTimeEdit) DateTime() *QDateTime {
_goptr := newQDateTime(C.QDateTimeEdit_DateTime(this.h))
2024-10-20 18:21:03 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QDateTimeEdit) Date() *QDate {
_goptr := newQDate(C.QDateTimeEdit_Date(this.h))
2024-10-20 18:21:03 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QDateTimeEdit) Time() *QTime {
_goptr := newQTime(C.QDateTimeEdit_Time(this.h))
2024-10-20 18:21:03 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QDateTimeEdit) Calendar() *QCalendar {
_goptr := newQCalendar(C.QDateTimeEdit_Calendar(this.h))
2024-10-20 18:21:03 +13:00
_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 {
_goptr := newQDateTime(C.QDateTimeEdit_MinimumDateTime(this.h))
2024-10-20 18:21:03 +13:00
_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 {
_goptr := newQDateTime(C.QDateTimeEdit_MaximumDateTime(this.h))
2024-10-20 18:21:03 +13:00
_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 {
_goptr := newQDate(C.QDateTimeEdit_MinimumDate(this.h))
2024-10-20 18:21:03 +13:00
_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 {
_goptr := newQDate(C.QDateTimeEdit_MaximumDate(this.h))
2024-10-20 18:21:03 +13:00
_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 {
_goptr := newQTime(C.QDateTimeEdit_MinimumTime(this.h))
2024-10-20 18:21:03 +13:00
_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 {
_goptr := newQTime(C.QDateTimeEdit_MaximumTime(this.h))
2024-10-20 18:21:03 +13:00
_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 {
2024-12-07 17:15:57 +13:00
return newQCalendarWidget(C.QDateTimeEdit_CalendarWidget(this.h))
2024-10-20 18:21:03 +13:00
}
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 {
_goptr := newQSize(C.QDateTimeEdit_SizeHint(this.h))
2024-10-20 18:21:03 +13:00
_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 := newQDateTime(dateTime)
2024-10-20 18:21:03 +13:00
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
time_goptr := newQTime(time)
2024-10-20 18:21:03 +13:00
time_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
slotval1 := *time_goptr
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
date_goptr := newQDate(date)
2024-10-20 18:21:03 +13:00
date_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
slotval1 := *date_goptr
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
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) callVirtualBase_SizeHint() *QSize {
2024-10-20 18:21:03 +13:00
_goptr := newQSize(C.QDateTimeEdit_virtualbase_SizeHint(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
2024-10-20 18:21:03 +13:00
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) OnSizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QDateTimeEdit_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_SizeHint)
return virtualReturn.cPointer()
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) callVirtualBase_Clear() {
C.QDateTimeEdit_virtualbase_Clear(unsafe.Pointer(this.h))
}
func (this *QDateTimeEdit) OnClear(slot func(super func())) {
ok := C.QDateTimeEdit_override_virtual_Clear(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Clear)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) callVirtualBase_StepBy(steps int) {
2024-10-20 18:21:03 +13:00
2024-11-19 19:29:06 +13:00
C.QDateTimeEdit_virtualbase_StepBy(unsafe.Pointer(this.h), (C.int)(steps))
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) OnStepBy(slot func(super func(steps int), steps int)) {
ok := C.QDateTimeEdit_override_virtual_StepBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) callVirtualBase_Event(event *QEvent) bool {
return (bool)(C.QDateTimeEdit_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
ok := C.QDateTimeEdit_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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)
2024-10-20 18:21:03 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
2024-10-20 18:21:03 +13:00
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Event, slotval1)
2024-10-20 18:21:03 +13:00
2024-11-19 19:29:06 +13:00
return (C.bool)(virtualReturn)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) callVirtualBase_KeyPressEvent(event *QKeyEvent) {
2024-10-20 18:21:03 +13:00
2024-11-19 19:29:06 +13:00
C.QDateTimeEdit_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer())
2024-10-20 18:21:03 +13:00
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
ok := C.QDateTimeEdit_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := newQKeyEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_KeyPressEvent, slotval1)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := newQWheelEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_WheelEvent, slotval1)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQFocusEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_FocusInEvent, slotval1)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
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) {
ok := C.QDateTimeEdit_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
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) {
ok := C.QDateTimeEdit_override_virtual_Validate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_Fixup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
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))
_goptr := newQDateTime(C.QDateTimeEdit_virtualbase_DateTimeFromText(unsafe.Pointer(this.h), text_ms))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) OnDateTimeFromText(slot func(super func(text string) *QDateTime, text string) *QDateTime) {
ok := C.QDateTimeEdit_override_virtual_DateTimeFromText(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//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)
2024-10-20 18:21:03 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-11-19 19:29:06 +13:00
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()
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) callVirtualBase_TextFromDateTime(dt *QDateTime) string {
var _ms C.struct_miqt_string = C.QDateTimeEdit_virtualbase_TextFromDateTime(unsafe.Pointer(this.h), dt.cPointer())
2024-10-20 18:21:03 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
2024-11-19 19:29:06 +13:00
func (this *QDateTimeEdit) OnTextFromDateTime(slot func(super func(dt *QDateTime) string, dt *QDateTime) string) {
ok := C.QDateTimeEdit_override_virtual_TextFromDateTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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 := newQDateTime(dt)
2024-11-19 19:29:06 +13:00
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) {
ok := C.QDateTimeEdit_override_virtual_StepEnabled(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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)) {
ok := C.QDateTimeEdit_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQMouseEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQPaintEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_PaintEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_InitStyleOption(option *QStyleOptionSpinBox) {
C.QDateTimeEdit_virtualbase_InitStyleOption(unsafe.Pointer(this.h), option.cPointer())
}
func (this *QDateTimeEdit) OnInitStyleOption(slot func(super func(option *QStyleOptionSpinBox), option *QStyleOptionSpinBox)) {
ok := C.QDateTimeEdit_override_virtual_InitStyleOption(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_InitStyleOption
func miqt_exec_callback_QDateTimeEdit_InitStyleOption(self *C.QDateTimeEdit, cb C.intptr_t, option *C.QStyleOptionSpinBox) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(option *QStyleOptionSpinBox), option *QStyleOptionSpinBox))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := newQStyleOptionSpinBox(option)
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_InitStyleOption, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_MinimumSizeHint() *QSize {
_goptr := newQSize(C.QDateTimeEdit_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_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) {
ok := C.QDateTimeEdit_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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 {
_goptr := newQVariant(C.QDateTimeEdit_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-19 19:29:06 +13:00
_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) {
ok := C.QDateTimeEdit_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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)) {
ok := C.QDateTimeEdit_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQResizeEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQKeyEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQFocusEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQContextMenuEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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 := newQEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQCloseEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQHideEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQMouseEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQMouseEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQTimerEvent(event)
2024-11-19 19:29:06 +13:00
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)) {
ok := C.QDateTimeEdit_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//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
2024-12-07 17:15:57 +13:00
slotval1 := newQShowEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ShowEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_DevType() int {
return (int)(C.QDateTimeEdit_virtualbase_DevType(unsafe.Pointer(this.h)))
}
func (this *QDateTimeEdit) OnDevType(slot func(super func() int) int) {
ok := C.QDateTimeEdit_override_virtual_DevType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_DevType
func miqt_exec_callback_QDateTimeEdit_DevType(self *C.QDateTimeEdit, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_DevType)
return (C.int)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_SetVisible(visible bool) {
C.QDateTimeEdit_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible))
}
func (this *QDateTimeEdit) OnSetVisible(slot func(super func(visible bool), visible bool)) {
ok := C.QDateTimeEdit_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_SetVisible
func miqt_exec_callback_QDateTimeEdit_SetVisible(self *C.QDateTimeEdit, cb C.intptr_t, visible C.bool) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-11-19 19:29:06 +13:00
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_SetVisible, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_HeightForWidth(param1 int) int {
return (int)(C.QDateTimeEdit_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QDateTimeEdit) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QDateTimeEdit_override_virtual_HeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
2024-11-19 19:29:06 +13:00
}
}
//export miqt_exec_callback_QDateTimeEdit_HeightForWidth
func miqt_exec_callback_QDateTimeEdit_HeightForWidth(self *C.QDateTimeEdit, cb C.intptr_t, param1 C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-11-19 19:29:06 +13:00
}
2024-12-07 17:15:57 +13:00
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_HasHeightForWidth() bool {
return (bool)(C.QDateTimeEdit_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
}
func (this *QDateTimeEdit) OnHasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QDateTimeEdit_override_virtual_HasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_HasHeightForWidth
func miqt_exec_callback_QDateTimeEdit_HasHeightForWidth(self *C.QDateTimeEdit, cb C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_PaintEngine() *QPaintEngine {
return newQPaintEngine(C.QDateTimeEdit_virtualbase_PaintEngine(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) OnPaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
ok := C.QDateTimeEdit_override_virtual_PaintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_PaintEngine
func miqt_exec_callback_QDateTimeEdit_PaintEngine(self *C.QDateTimeEdit, cb C.intptr_t) *C.QPaintEngine {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_PaintEngine)
return virtualReturn.cPointer()
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
2024-11-19 19:29:06 +13:00
C.QDateTimeEdit_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QDateTimeEdit_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_MouseDoubleClickEvent
func miqt_exec_callback_QDateTimeEdit_MouseDoubleClickEvent(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 := newQMouseEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_EnterEvent(event *QEnterEvent) {
C.QDateTimeEdit_virtualbase_EnterEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnEnterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) {
ok := C.QDateTimeEdit_override_virtual_EnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_EnterEvent
func miqt_exec_callback_QDateTimeEdit_EnterEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QEnterEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEnterEvent), event *QEnterEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEnterEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_EnterEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_LeaveEvent(event *QEvent) {
C.QDateTimeEdit_virtualbase_LeaveEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) OnLeaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QDateTimeEdit_override_virtual_LeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_LeaveEvent
func miqt_exec_callback_QDateTimeEdit_LeaveEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_LeaveEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_MoveEvent(event *QMoveEvent) {
C.QDateTimeEdit_virtualbase_MoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnMoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
ok := C.QDateTimeEdit_override_virtual_MoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_MoveEvent
func miqt_exec_callback_QDateTimeEdit_MoveEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QMoveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMoveEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_MoveEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_TabletEvent(event *QTabletEvent) {
2024-11-19 19:29:06 +13:00
C.QDateTimeEdit_virtualbase_TabletEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) OnTabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
ok := C.QDateTimeEdit_override_virtual_TabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateTimeEdit_TabletEvent
func miqt_exec_callback_QDateTimeEdit_TabletEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QTabletEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQTabletEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_TabletEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) callVirtualBase_ActionEvent(event *QActionEvent) {
2024-11-19 19:29:06 +13:00
C.QDateTimeEdit_virtualbase_ActionEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateTimeEdit) OnActionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
ok := C.QDateTimeEdit_override_virtual_ActionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_ActionEvent
func miqt_exec_callback_QDateTimeEdit_ActionEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QActionEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQActionEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ActionEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
C.QDateTimeEdit_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
ok := C.QDateTimeEdit_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_DragEnterEvent
func miqt_exec_callback_QDateTimeEdit_DragEnterEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QDragEnterEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragEnterEvent), event *QDragEnterEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragEnterEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_DragEnterEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
C.QDateTimeEdit_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
ok := C.QDateTimeEdit_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_DragMoveEvent
func miqt_exec_callback_QDateTimeEdit_DragMoveEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QDragMoveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragMoveEvent), event *QDragMoveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragMoveEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_DragMoveEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
C.QDateTimeEdit_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
ok := C.QDateTimeEdit_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_DragLeaveEvent
func miqt_exec_callback_QDateTimeEdit_DragLeaveEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QDragLeaveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragLeaveEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_DropEvent(event *QDropEvent) {
C.QDateTimeEdit_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
ok := C.QDateTimeEdit_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_DropEvent
func miqt_exec_callback_QDateTimeEdit_DropEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QDropEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDropEvent), event *QDropEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDropEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_DropEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
eventType_alias := C.struct_miqt_string{}
if len(eventType) > 0 {
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
} else {
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
}
eventType_alias.len = C.size_t(len(eventType))
return (bool)(C.QDateTimeEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
}
func (this *QDateTimeEdit) OnNativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) {
ok := C.QDateTimeEdit_override_virtual_NativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_NativeEvent
func miqt_exec_callback_QDateTimeEdit_NativeEvent(self *C.QDateTimeEdit, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var eventType_bytearray C.struct_miqt_string = eventType
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
C.free(unsafe.Pointer(eventType_bytearray.data))
slotval1 := eventType_ret
slotval2 := (unsafe.Pointer)(message)
slotval3 := (*uintptr)(unsafe.Pointer(result))
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QDateTimeEdit) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
return (int)(C.QDateTimeEdit_virtualbase_Metric(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QDateTimeEdit) OnMetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
ok := C.QDateTimeEdit_override_virtual_Metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_Metric
func miqt_exec_callback_QDateTimeEdit_Metric(self *C.QDateTimeEdit, cb C.intptr_t, param1 C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QPaintDevice__PaintDeviceMetric)(param1)
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Metric, slotval1)
return (C.int)(virtualReturn)
}
func (this *QDateTimeEdit) callVirtualBase_InitPainter(painter *QPainter) {
C.QDateTimeEdit_virtualbase_InitPainter(unsafe.Pointer(this.h), painter.cPointer())
}
func (this *QDateTimeEdit) OnInitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
ok := C.QDateTimeEdit_override_virtual_InitPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_InitPainter
func miqt_exec_callback_QDateTimeEdit_InitPainter(self *C.QDateTimeEdit, cb C.intptr_t, painter *C.QPainter) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQPainter(painter)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_InitPainter, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
return newQPaintDevice(C.QDateTimeEdit_virtualbase_Redirected(unsafe.Pointer(this.h), offset.cPointer()))
}
func (this *QDateTimeEdit) OnRedirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
ok := C.QDateTimeEdit_override_virtual_Redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_Redirected
func miqt_exec_callback_QDateTimeEdit_Redirected(self *C.QDateTimeEdit, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQPoint(offset)
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_Redirected, slotval1)
return virtualReturn.cPointer()
}
func (this *QDateTimeEdit) callVirtualBase_SharedPainter() *QPainter {
return newQPainter(C.QDateTimeEdit_virtualbase_SharedPainter(unsafe.Pointer(this.h)))
}
func (this *QDateTimeEdit) OnSharedPainter(slot func(super func() *QPainter) *QPainter) {
ok := C.QDateTimeEdit_override_virtual_SharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_SharedPainter
func miqt_exec_callback_QDateTimeEdit_SharedPainter(self *C.QDateTimeEdit, cb C.intptr_t) *C.QPainter {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_SharedPainter)
return virtualReturn.cPointer()
}
func (this *QDateTimeEdit) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) {
C.QDateTimeEdit_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer())
}
func (this *QDateTimeEdit) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) {
ok := C.QDateTimeEdit_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_InputMethodEvent
func miqt_exec_callback_QDateTimeEdit_InputMethodEvent(self *C.QDateTimeEdit, cb C.intptr_t, param1 *C.QInputMethodEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQInputMethodEvent(param1)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_InputMethodEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
return (bool)(C.QDateTimeEdit_virtualbase_EventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
}
func (this *QDateTimeEdit) OnEventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QDateTimeEdit_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_EventFilter
func miqt_exec_callback_QDateTimeEdit_EventFilter(self *C.QDateTimeEdit, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
slotval2 := newQEvent(event)
virtualReturn := gofunc((&QDateTimeEdit{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QDateTimeEdit) callVirtualBase_ChildEvent(event *QChildEvent) {
C.QDateTimeEdit_virtualbase_ChildEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnChildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
ok := C.QDateTimeEdit_override_virtual_ChildEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_ChildEvent
func miqt_exec_callback_QDateTimeEdit_ChildEvent(self *C.QDateTimeEdit, cb C.intptr_t, event *C.QChildEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQChildEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_CustomEvent(event *QEvent) {
C.QDateTimeEdit_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateTimeEdit) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QDateTimeEdit_override_virtual_CustomEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_CustomEvent
func miqt_exec_callback_QDateTimeEdit_CustomEvent(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 := newQEvent(event)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
C.QDateTimeEdit_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QDateTimeEdit) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QDateTimeEdit_override_virtual_ConnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_ConnectNotify
func miqt_exec_callback_QDateTimeEdit_ConnectNotify(self *C.QDateTimeEdit, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QDateTimeEdit) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
C.QDateTimeEdit_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QDateTimeEdit) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QDateTimeEdit_override_virtual_DisconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateTimeEdit_DisconnectNotify
func miqt_exec_callback_QDateTimeEdit_DisconnectNotify(self *C.QDateTimeEdit, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
gofunc((&QDateTimeEdit{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
// Delete this object from C++ memory.
func (this *QDateTimeEdit) Delete() {
C.QDateTimeEdit_Delete(this.h)
}
// 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
*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) *QTimeEdit {
if h == nil {
return nil
}
var outptr_QDateTimeEdit *C.QDateTimeEdit = nil
C.QTimeEdit_virtbase(h, &outptr_QDateTimeEdit)
return &QTimeEdit{h: h,
QDateTimeEdit: newQDateTimeEdit(outptr_QDateTimeEdit)}
}
// UnsafeNewQTimeEdit constructs the type using only unsafe pointers.
func UnsafeNewQTimeEdit(h unsafe.Pointer) *QTimeEdit {
return newQTimeEdit((*C.QTimeEdit)(h))
}
// NewQTimeEdit constructs a new QTimeEdit object.
func NewQTimeEdit(parent *QWidget) *QTimeEdit {
return newQTimeEdit(C.QTimeEdit_new(parent.cPointer()))
}
// NewQTimeEdit2 constructs a new QTimeEdit object.
func NewQTimeEdit2() *QTimeEdit {
return newQTimeEdit(C.QTimeEdit_new2())
}
// NewQTimeEdit3 constructs a new QTimeEdit object.
func NewQTimeEdit3(time QTime) *QTimeEdit {
return newQTimeEdit(C.QTimeEdit_new3(time.cPointer()))
}
// NewQTimeEdit4 constructs a new QTimeEdit object.
func NewQTimeEdit4(time QTime, parent *QWidget) *QTimeEdit {
return newQTimeEdit(C.QTimeEdit_new4(time.cPointer(), parent.cPointer()))
}
func (this *QTimeEdit) MetaObject() *QMetaObject {
return newQMetaObject(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 (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
time_goptr := newQTime(time)
time_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
slotval1 := *time_goptr
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 (this *QTimeEdit) callVirtualBase_SizeHint() *QSize {
_goptr := newQSize(C.QTimeEdit_virtualbase_SizeHint(unsafe.Pointer(this.h)))
_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) {
ok := C.QTimeEdit_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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())) {
ok := C.QTimeEdit_override_virtual_Clear(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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)) {
ok := C.QTimeEdit_override_virtual_StepBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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) {
ok := C.QTimeEdit_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQEvent(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)) {
ok := C.QTimeEdit_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQKeyEvent(event)
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)) {
ok := C.QTimeEdit_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQWheelEvent(event)
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)) {
ok := C.QTimeEdit_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQFocusEvent(event)
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) {
ok := C.QTimeEdit_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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) {
ok := C.QTimeEdit_override_virtual_Validate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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)) {
ok := C.QTimeEdit_override_virtual_Fixup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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))
_goptr := newQDateTime(C.QTimeEdit_virtualbase_DateTimeFromText(unsafe.Pointer(this.h), text_ms))
_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) {
ok := C.QTimeEdit_override_virtual_DateTimeFromText(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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) {
ok := C.QTimeEdit_override_virtual_TextFromDateTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQDateTime(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) {
ok := C.QTimeEdit_override_virtual_StepEnabled(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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)) {
ok := C.QTimeEdit_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQMouseEvent(event)
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)) {
ok := C.QTimeEdit_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQPaintEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_PaintEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_InitStyleOption(option *QStyleOptionSpinBox) {
C.QTimeEdit_virtualbase_InitStyleOption(unsafe.Pointer(this.h), option.cPointer())
}
func (this *QTimeEdit) OnInitStyleOption(slot func(super func(option *QStyleOptionSpinBox), option *QStyleOptionSpinBox)) {
ok := C.QTimeEdit_override_virtual_InitStyleOption(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_InitStyleOption
func miqt_exec_callback_QTimeEdit_InitStyleOption(self *C.QTimeEdit, cb C.intptr_t, option *C.QStyleOptionSpinBox) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(option *QStyleOptionSpinBox), option *QStyleOptionSpinBox))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQStyleOptionSpinBox(option)
gofunc((&QTimeEdit{h: self}).callVirtualBase_InitStyleOption, slotval1)
}
func (this *QTimeEdit) callVirtualBase_MinimumSizeHint() *QSize {
_goptr := newQSize(C.QTimeEdit_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QTimeEdit) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QTimeEdit_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_MinimumSizeHint
func miqt_exec_callback_QTimeEdit_MinimumSizeHint(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_MinimumSizeHint)
return virtualReturn.cPointer()
}
func (this *QTimeEdit) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant {
_goptr := newQVariant(C.QTimeEdit_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QTimeEdit) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) {
ok := C.QTimeEdit_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_InputMethodQuery
func miqt_exec_callback_QTimeEdit_InputMethodQuery(self *C.QTimeEdit, 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((&QTimeEdit{h: self}).callVirtualBase_InputMethodQuery, slotval1)
return virtualReturn.cPointer()
}
func (this *QTimeEdit) callVirtualBase_ResizeEvent(event *QResizeEvent) {
C.QTimeEdit_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) {
ok := C.QTimeEdit_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_ResizeEvent
func miqt_exec_callback_QTimeEdit_ResizeEvent(self *C.QTimeEdit, 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 := newQResizeEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_ResizeEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) {
C.QTimeEdit_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnKeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
ok := C.QTimeEdit_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_KeyReleaseEvent
func miqt_exec_callback_QTimeEdit_KeyReleaseEvent(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 := newQKeyEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_FocusOutEvent(event *QFocusEvent) {
C.QTimeEdit_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
ok := C.QTimeEdit_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_FocusOutEvent
func miqt_exec_callback_QTimeEdit_FocusOutEvent(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 := newQFocusEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_FocusOutEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_ContextMenuEvent(event *QContextMenuEvent) {
C.QTimeEdit_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnContextMenuEvent(slot func(super func(event *QContextMenuEvent), event *QContextMenuEvent)) {
ok := C.QTimeEdit_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_ContextMenuEvent
func miqt_exec_callback_QTimeEdit_ContextMenuEvent(self *C.QTimeEdit, 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 := newQContextMenuEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_ChangeEvent(event *QEvent) {
C.QTimeEdit_virtualbase_ChangeEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnChangeEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QTimeEdit_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_ChangeEvent
func miqt_exec_callback_QTimeEdit_ChangeEvent(self *C.QTimeEdit, 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 := newQEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_ChangeEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_CloseEvent(event *QCloseEvent) {
C.QTimeEdit_virtualbase_CloseEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnCloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) {
ok := C.QTimeEdit_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_CloseEvent
func miqt_exec_callback_QTimeEdit_CloseEvent(self *C.QTimeEdit, 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 := newQCloseEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_CloseEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_HideEvent(event *QHideEvent) {
C.QTimeEdit_virtualbase_HideEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnHideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) {
ok := C.QTimeEdit_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_HideEvent
func miqt_exec_callback_QTimeEdit_HideEvent(self *C.QTimeEdit, 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 := newQHideEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_HideEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) {
C.QTimeEdit_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QTimeEdit_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_MouseReleaseEvent
func miqt_exec_callback_QTimeEdit_MouseReleaseEvent(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 := newQMouseEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
C.QTimeEdit_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QTimeEdit_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_MouseMoveEvent
func miqt_exec_callback_QTimeEdit_MouseMoveEvent(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 := newQMouseEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_TimerEvent(event *QTimerEvent) {
C.QTimeEdit_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
ok := C.QTimeEdit_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_TimerEvent
func miqt_exec_callback_QTimeEdit_TimerEvent(self *C.QTimeEdit, 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 := newQTimerEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_ShowEvent(event *QShowEvent) {
C.QTimeEdit_virtualbase_ShowEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnShowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) {
ok := C.QTimeEdit_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_ShowEvent
func miqt_exec_callback_QTimeEdit_ShowEvent(self *C.QTimeEdit, 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 := newQShowEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_ShowEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_DevType() int {
return (int)(C.QTimeEdit_virtualbase_DevType(unsafe.Pointer(this.h)))
}
func (this *QTimeEdit) OnDevType(slot func(super func() int) int) {
ok := C.QTimeEdit_override_virtual_DevType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_DevType
func miqt_exec_callback_QTimeEdit_DevType(self *C.QTimeEdit, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_DevType)
return (C.int)(virtualReturn)
}
func (this *QTimeEdit) callVirtualBase_SetVisible(visible bool) {
C.QTimeEdit_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible))
}
func (this *QTimeEdit) OnSetVisible(slot func(super func(visible bool), visible bool)) {
ok := C.QTimeEdit_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_SetVisible
func miqt_exec_callback_QTimeEdit_SetVisible(self *C.QTimeEdit, cb C.intptr_t, visible C.bool) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
gofunc((&QTimeEdit{h: self}).callVirtualBase_SetVisible, slotval1)
}
func (this *QTimeEdit) callVirtualBase_HeightForWidth(param1 int) int {
return (int)(C.QTimeEdit_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QTimeEdit) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QTimeEdit_override_virtual_HeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_HeightForWidth
func miqt_exec_callback_QTimeEdit_HeightForWidth(self *C.QTimeEdit, cb C.intptr_t, param1 C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QTimeEdit) callVirtualBase_HasHeightForWidth() bool {
return (bool)(C.QTimeEdit_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
}
func (this *QTimeEdit) OnHasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QTimeEdit_override_virtual_HasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_HasHeightForWidth
func miqt_exec_callback_QTimeEdit_HasHeightForWidth(self *C.QTimeEdit, cb C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
}
func (this *QTimeEdit) callVirtualBase_PaintEngine() *QPaintEngine {
return newQPaintEngine(C.QTimeEdit_virtualbase_PaintEngine(unsafe.Pointer(this.h)))
}
func (this *QTimeEdit) OnPaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
ok := C.QTimeEdit_override_virtual_PaintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_PaintEngine
func miqt_exec_callback_QTimeEdit_PaintEngine(self *C.QTimeEdit, cb C.intptr_t) *C.QPaintEngine {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_PaintEngine)
return virtualReturn.cPointer()
}
func (this *QTimeEdit) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
C.QTimeEdit_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QTimeEdit_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_MouseDoubleClickEvent
func miqt_exec_callback_QTimeEdit_MouseDoubleClickEvent(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 := newQMouseEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_EnterEvent(event *QEnterEvent) {
C.QTimeEdit_virtualbase_EnterEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnEnterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) {
ok := C.QTimeEdit_override_virtual_EnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_EnterEvent
func miqt_exec_callback_QTimeEdit_EnterEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QEnterEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEnterEvent), event *QEnterEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEnterEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_EnterEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_LeaveEvent(event *QEvent) {
C.QTimeEdit_virtualbase_LeaveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnLeaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QTimeEdit_override_virtual_LeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_LeaveEvent
func miqt_exec_callback_QTimeEdit_LeaveEvent(self *C.QTimeEdit, 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 := newQEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_LeaveEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_MoveEvent(event *QMoveEvent) {
C.QTimeEdit_virtualbase_MoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnMoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
ok := C.QTimeEdit_override_virtual_MoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_MoveEvent
func miqt_exec_callback_QTimeEdit_MoveEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QMoveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMoveEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_MoveEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_TabletEvent(event *QTabletEvent) {
C.QTimeEdit_virtualbase_TabletEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnTabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
ok := C.QTimeEdit_override_virtual_TabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_TabletEvent
func miqt_exec_callback_QTimeEdit_TabletEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QTabletEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQTabletEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_TabletEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_ActionEvent(event *QActionEvent) {
C.QTimeEdit_virtualbase_ActionEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnActionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
ok := C.QTimeEdit_override_virtual_ActionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_ActionEvent
func miqt_exec_callback_QTimeEdit_ActionEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QActionEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQActionEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_ActionEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
C.QTimeEdit_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
ok := C.QTimeEdit_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_DragEnterEvent
func miqt_exec_callback_QTimeEdit_DragEnterEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QDragEnterEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragEnterEvent), event *QDragEnterEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragEnterEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_DragEnterEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
C.QTimeEdit_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
ok := C.QTimeEdit_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_DragMoveEvent
func miqt_exec_callback_QTimeEdit_DragMoveEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QDragMoveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragMoveEvent), event *QDragMoveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragMoveEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_DragMoveEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
C.QTimeEdit_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
ok := C.QTimeEdit_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_DragLeaveEvent
func miqt_exec_callback_QTimeEdit_DragLeaveEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QDragLeaveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragLeaveEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_DropEvent(event *QDropEvent) {
C.QTimeEdit_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
ok := C.QTimeEdit_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_DropEvent
func miqt_exec_callback_QTimeEdit_DropEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QDropEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDropEvent), event *QDropEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDropEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_DropEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
eventType_alias := C.struct_miqt_string{}
if len(eventType) > 0 {
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
} else {
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
}
eventType_alias.len = C.size_t(len(eventType))
return (bool)(C.QTimeEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
}
func (this *QTimeEdit) OnNativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) {
ok := C.QTimeEdit_override_virtual_NativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_NativeEvent
func miqt_exec_callback_QTimeEdit_NativeEvent(self *C.QTimeEdit, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var eventType_bytearray C.struct_miqt_string = eventType
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
C.free(unsafe.Pointer(eventType_bytearray.data))
slotval1 := eventType_ret
slotval2 := (unsafe.Pointer)(message)
slotval3 := (*uintptr)(unsafe.Pointer(result))
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QTimeEdit) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
return (int)(C.QTimeEdit_virtualbase_Metric(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QTimeEdit) OnMetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
ok := C.QTimeEdit_override_virtual_Metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_Metric
func miqt_exec_callback_QTimeEdit_Metric(self *C.QTimeEdit, cb C.intptr_t, param1 C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QPaintDevice__PaintDeviceMetric)(param1)
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_Metric, slotval1)
return (C.int)(virtualReturn)
}
func (this *QTimeEdit) callVirtualBase_InitPainter(painter *QPainter) {
C.QTimeEdit_virtualbase_InitPainter(unsafe.Pointer(this.h), painter.cPointer())
}
func (this *QTimeEdit) OnInitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
ok := C.QTimeEdit_override_virtual_InitPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_InitPainter
func miqt_exec_callback_QTimeEdit_InitPainter(self *C.QTimeEdit, cb C.intptr_t, painter *C.QPainter) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQPainter(painter)
gofunc((&QTimeEdit{h: self}).callVirtualBase_InitPainter, slotval1)
}
func (this *QTimeEdit) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
return newQPaintDevice(C.QTimeEdit_virtualbase_Redirected(unsafe.Pointer(this.h), offset.cPointer()))
}
func (this *QTimeEdit) OnRedirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
ok := C.QTimeEdit_override_virtual_Redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_Redirected
func miqt_exec_callback_QTimeEdit_Redirected(self *C.QTimeEdit, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQPoint(offset)
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_Redirected, slotval1)
return virtualReturn.cPointer()
}
func (this *QTimeEdit) callVirtualBase_SharedPainter() *QPainter {
return newQPainter(C.QTimeEdit_virtualbase_SharedPainter(unsafe.Pointer(this.h)))
}
func (this *QTimeEdit) OnSharedPainter(slot func(super func() *QPainter) *QPainter) {
ok := C.QTimeEdit_override_virtual_SharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_SharedPainter
func miqt_exec_callback_QTimeEdit_SharedPainter(self *C.QTimeEdit, cb C.intptr_t) *C.QPainter {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_SharedPainter)
return virtualReturn.cPointer()
}
func (this *QTimeEdit) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) {
C.QTimeEdit_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer())
}
func (this *QTimeEdit) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) {
ok := C.QTimeEdit_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_InputMethodEvent
func miqt_exec_callback_QTimeEdit_InputMethodEvent(self *C.QTimeEdit, cb C.intptr_t, param1 *C.QInputMethodEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQInputMethodEvent(param1)
gofunc((&QTimeEdit{h: self}).callVirtualBase_InputMethodEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
return (bool)(C.QTimeEdit_virtualbase_EventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
}
func (this *QTimeEdit) OnEventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QTimeEdit_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_EventFilter
func miqt_exec_callback_QTimeEdit_EventFilter(self *C.QTimeEdit, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
slotval2 := newQEvent(event)
virtualReturn := gofunc((&QTimeEdit{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QTimeEdit) callVirtualBase_ChildEvent(event *QChildEvent) {
C.QTimeEdit_virtualbase_ChildEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnChildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
ok := C.QTimeEdit_override_virtual_ChildEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_ChildEvent
func miqt_exec_callback_QTimeEdit_ChildEvent(self *C.QTimeEdit, cb C.intptr_t, event *C.QChildEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQChildEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_CustomEvent(event *QEvent) {
C.QTimeEdit_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QTimeEdit) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QTimeEdit_override_virtual_CustomEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_CustomEvent
func miqt_exec_callback_QTimeEdit_CustomEvent(self *C.QTimeEdit, 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 := newQEvent(event)
gofunc((&QTimeEdit{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QTimeEdit) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
C.QTimeEdit_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QTimeEdit) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QTimeEdit_override_virtual_ConnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_ConnectNotify
func miqt_exec_callback_QTimeEdit_ConnectNotify(self *C.QTimeEdit, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
gofunc((&QTimeEdit{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QTimeEdit) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
C.QTimeEdit_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QTimeEdit) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QTimeEdit_override_virtual_DisconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QTimeEdit_DisconnectNotify
func miqt_exec_callback_QTimeEdit_DisconnectNotify(self *C.QTimeEdit, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
gofunc((&QTimeEdit{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
// Delete this object from C++ memory.
func (this *QTimeEdit) Delete() {
C.QTimeEdit_Delete(this.h)
}
// 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
*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) *QDateEdit {
if h == nil {
return nil
}
var outptr_QDateTimeEdit *C.QDateTimeEdit = nil
C.QDateEdit_virtbase(h, &outptr_QDateTimeEdit)
return &QDateEdit{h: h,
QDateTimeEdit: newQDateTimeEdit(outptr_QDateTimeEdit)}
}
// UnsafeNewQDateEdit constructs the type using only unsafe pointers.
func UnsafeNewQDateEdit(h unsafe.Pointer) *QDateEdit {
return newQDateEdit((*C.QDateEdit)(h))
}
// NewQDateEdit constructs a new QDateEdit object.
func NewQDateEdit(parent *QWidget) *QDateEdit {
return newQDateEdit(C.QDateEdit_new(parent.cPointer()))
}
// NewQDateEdit2 constructs a new QDateEdit object.
func NewQDateEdit2() *QDateEdit {
return newQDateEdit(C.QDateEdit_new2())
}
// NewQDateEdit3 constructs a new QDateEdit object.
func NewQDateEdit3(date QDate) *QDateEdit {
return newQDateEdit(C.QDateEdit_new3(date.cPointer()))
}
// NewQDateEdit4 constructs a new QDateEdit object.
func NewQDateEdit4(date QDate, parent *QWidget) *QDateEdit {
return newQDateEdit(C.QDateEdit_new4(date.cPointer(), parent.cPointer()))
}
func (this *QDateEdit) MetaObject() *QMetaObject {
return newQMetaObject(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 (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
date_goptr := newQDate(date)
date_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
slotval1 := *date_goptr
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 (this *QDateEdit) callVirtualBase_SizeHint() *QSize {
_goptr := newQSize(C.QDateEdit_virtualbase_SizeHint(unsafe.Pointer(this.h)))
_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) {
ok := C.QDateEdit_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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())) {
ok := C.QDateEdit_override_virtual_Clear(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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)) {
ok := C.QDateEdit_override_virtual_StepBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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) {
ok := C.QDateEdit_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQEvent(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)) {
ok := C.QDateEdit_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQKeyEvent(event)
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)) {
ok := C.QDateEdit_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQWheelEvent(event)
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)) {
ok := C.QDateEdit_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQFocusEvent(event)
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) {
ok := C.QDateEdit_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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) {
ok := C.QDateEdit_override_virtual_Validate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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)) {
ok := C.QDateEdit_override_virtual_Fixup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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))
_goptr := newQDateTime(C.QDateEdit_virtualbase_DateTimeFromText(unsafe.Pointer(this.h), text_ms))
_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) {
ok := C.QDateEdit_override_virtual_DateTimeFromText(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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) {
ok := C.QDateEdit_override_virtual_TextFromDateTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQDateTime(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) {
ok := C.QDateEdit_override_virtual_StepEnabled(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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)) {
ok := C.QDateEdit_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQMouseEvent(event)
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)) {
ok := C.QDateEdit_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//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 := newQPaintEvent(event)
gofunc((&QDateEdit{h: self}).callVirtualBase_PaintEvent, slotval1)
}
func (this *QDateEdit) callVirtualBase_InitStyleOption(option *QStyleOptionSpinBox) {
C.QDateEdit_virtualbase_InitStyleOption(unsafe.Pointer(this.h), option.cPointer())
}
func (this *QDateEdit) OnInitStyleOption(slot func(super func(option *QStyleOptionSpinBox), option *QStyleOptionSpinBox)) {
ok := C.QDateEdit_override_virtual_InitStyleOption(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateEdit_InitStyleOption
func miqt_exec_callback_QDateEdit_InitStyleOption(self *C.QDateEdit, cb C.intptr_t, option *C.QStyleOptionSpinBox) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(option *QStyleOptionSpinBox), option *QStyleOptionSpinBox))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQStyleOptionSpinBox(option)
gofunc((&QDateEdit{h: self}).callVirtualBase_InitStyleOption, slotval1)
}
func (this *QDateEdit) callVirtualBase_MinimumSizeHint() *QSize {
_goptr := newQSize(C.QDateEdit_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QDateEdit) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QDateEdit_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateEdit_MinimumSizeHint
func miqt_exec_callback_QDateEdit_MinimumSizeHint(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_MinimumSizeHint)
return virtualReturn.cPointer()
}
func (this *QDateEdit) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant {
_goptr := newQVariant(C.QDateEdit_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QDateEdit) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) {
ok := C.QDateEdit_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateEdit_InputMethodQuery
func miqt_exec_callback_QDateEdit_InputMethodQuery(self *C.QDateEdit, 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((&QDateEdit{h: self}).callVirtualBase_InputMethodQuery, slotval1)
return virtualReturn.cPointer()
}
func (this *QDateEdit) callVirtualBase_ResizeEvent(event *QResizeEvent) {
C.QDateEdit_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateEdit) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) {
ok := C.QDateEdit_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateEdit_ResizeEvent
func miqt_exec_callback_QDateEdit_ResizeEvent(self *C.QDateEdit, 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 := newQResizeEvent(event)
gofunc((&QDateEdit{h: self}).callVirtualBase_ResizeEvent, slotval1)
}
func (this *QDateEdit) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) {
C.QDateEdit_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateEdit) OnKeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
ok := C.QDateEdit_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateEdit_KeyReleaseEvent
func miqt_exec_callback_QDateEdit_KeyReleaseEvent(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 := newQKeyEvent(event)
gofunc((&QDateEdit{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
}
func (this *QDateEdit) callVirtualBase_FocusOutEvent(event *QFocusEvent) {
C.QDateEdit_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateEdit) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
ok := C.QDateEdit_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateEdit_FocusOutEvent
func miqt_exec_callback_QDateEdit_FocusOutEvent(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 := newQFocusEvent(event)
gofunc((&QDateEdit{h: self}).callVirtualBase_FocusOutEvent, slotval1)
}
func (this *QDateEdit) callVirtualBase_ContextMenuEvent(event *QContextMenuEvent) {
C.QDateEdit_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateEdit) OnContextMenuEvent(slot func(super func(event *QContextMenuEvent), event *QContextMenuEvent)) {
ok := C.QDateEdit_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QDateEdit_ContextMenuEvent
func miqt_exec_callback_QDateEdit_ContextMenuEvent(self *C.QDateEdit, 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 := newQContextMenuEvent(event)
gofunc((&QDateEdit{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
}
func (this *QDateEdit) callVirtualBase_ChangeEvent(event *QEvent) {
C.QDateEdit_virtualbase_ChangeEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QDateEdit) OnChangeEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QDateEdit_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_ChangeEvent
func miqt_exec_callback_QDateEdit_ChangeEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
gofunc((&QDateEdit{h: self}).callVirtualBase_ChangeEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_CloseEvent(event *QCloseEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_CloseEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnCloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) {
ok := C.QDateEdit_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_CloseEvent
func miqt_exec_callback_QDateEdit_CloseEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QCloseEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QCloseEvent), event *QCloseEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQCloseEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_CloseEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_HideEvent(event *QHideEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_HideEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnHideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) {
ok := C.QDateEdit_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_HideEvent
func miqt_exec_callback_QDateEdit_HideEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QHideEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QHideEvent), event *QHideEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQHideEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_HideEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QDateEdit_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_MouseReleaseEvent
func miqt_exec_callback_QDateEdit_MouseReleaseEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QMouseEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMouseEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QDateEdit_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_MouseMoveEvent
func miqt_exec_callback_QDateEdit_MouseMoveEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QMouseEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMouseEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_TimerEvent(event *QTimerEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
ok := C.QDateEdit_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_TimerEvent
func miqt_exec_callback_QDateEdit_TimerEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QTimerEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTimerEvent), event *QTimerEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQTimerEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_TimerEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_ShowEvent(event *QShowEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_ShowEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnShowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) {
ok := C.QDateEdit_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_ShowEvent
func miqt_exec_callback_QDateEdit_ShowEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QShowEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QShowEvent), event *QShowEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQShowEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_ShowEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_DevType() int {
2024-11-19 19:29:06 +13:00
return (int)(C.QDateEdit_virtualbase_DevType(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnDevType(slot func(super func() int) int) {
ok := C.QDateEdit_override_virtual_DevType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_DevType
func miqt_exec_callback_QDateEdit_DevType(self *C.QDateEdit, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_DevType)
2024-11-19 19:29:06 +13:00
return (C.int)(virtualReturn)
}
func (this *QDateEdit) callVirtualBase_SetVisible(visible bool) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnSetVisible(slot func(super func(visible bool), visible bool)) {
ok := C.QDateEdit_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_SetVisible
func miqt_exec_callback_QDateEdit_SetVisible(self *C.QDateEdit, cb C.intptr_t, visible C.bool) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_SetVisible, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_HeightForWidth(param1 int) int {
2024-11-19 19:29:06 +13:00
return (int)(C.QDateEdit_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QDateEdit_override_virtual_HeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_HeightForWidth
func miqt_exec_callback_QDateEdit_HeightForWidth(self *C.QDateEdit, cb C.intptr_t, param1 C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_HeightForWidth, slotval1)
2024-11-19 19:29:06 +13:00
return (C.int)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_HasHeightForWidth() bool {
return (bool)(C.QDateEdit_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnHasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QDateEdit_override_virtual_HasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_HasHeightForWidth
func miqt_exec_callback_QDateEdit_HasHeightForWidth(self *C.QDateEdit, cb C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_HasHeightForWidth)
2024-11-19 19:29:06 +13:00
return (C.bool)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_PaintEngine() *QPaintEngine {
2024-11-19 19:29:06 +13:00
return newQPaintEngine(C.QDateEdit_virtualbase_PaintEngine(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnPaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
ok := C.QDateEdit_override_virtual_PaintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_PaintEngine
func miqt_exec_callback_QDateEdit_PaintEngine(self *C.QDateEdit, cb C.intptr_t) *C.QPaintEngine {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_PaintEngine)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QDateEdit_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_MouseDoubleClickEvent
func miqt_exec_callback_QDateEdit_MouseDoubleClickEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-19 19:29:06 +13:00
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
2024-12-07 17:15:57 +13:00
slotval1 := newQMouseEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_EnterEvent(event *QEnterEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_EnterEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnEnterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) {
ok := C.QDateEdit_override_virtual_EnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_EnterEvent
func miqt_exec_callback_QDateEdit_EnterEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QEnterEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEnterEvent), event *QEnterEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEnterEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_EnterEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_LeaveEvent(event *QEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_LeaveEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnLeaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QDateEdit_override_virtual_LeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_LeaveEvent
func miqt_exec_callback_QDateEdit_LeaveEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_LeaveEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_MoveEvent(event *QMoveEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_MoveEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnMoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
ok := C.QDateEdit_override_virtual_MoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
2024-11-19 19:29:06 +13:00
}
}
//export miqt_exec_callback_QDateEdit_MoveEvent
func miqt_exec_callback_QDateEdit_MoveEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QMoveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-11-19 19:29:06 +13:00
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMoveEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_MoveEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_TabletEvent(event *QTabletEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_TabletEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnTabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
ok := C.QDateEdit_override_virtual_TabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_TabletEvent
func miqt_exec_callback_QDateEdit_TabletEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QTabletEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQTabletEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_TabletEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_ActionEvent(event *QActionEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_ActionEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnActionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
ok := C.QDateEdit_override_virtual_ActionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_ActionEvent
func miqt_exec_callback_QDateEdit_ActionEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QActionEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQActionEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_ActionEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
ok := C.QDateEdit_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_DragEnterEvent
func miqt_exec_callback_QDateEdit_DragEnterEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QDragEnterEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragEnterEvent), event *QDragEnterEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragEnterEvent(event)
gofunc((&QDateEdit{h: self}).callVirtualBase_DragEnterEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
ok := C.QDateEdit_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_DragMoveEvent
func miqt_exec_callback_QDateEdit_DragMoveEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QDragMoveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragMoveEvent), event *QDragMoveEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragMoveEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_DragMoveEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
ok := C.QDateEdit_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_DragLeaveEvent
func miqt_exec_callback_QDateEdit_DragLeaveEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QDragLeaveEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDragLeaveEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_DropEvent(event *QDropEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
ok := C.QDateEdit_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_DropEvent
func miqt_exec_callback_QDateEdit_DropEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QDropEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDropEvent), event *QDropEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQDropEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_DropEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
eventType_alias := C.struct_miqt_string{}
if len(eventType) > 0 {
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
} else {
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
}
eventType_alias.len = C.size_t(len(eventType))
2024-11-19 19:29:06 +13:00
return (bool)(C.QDateEdit_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnNativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) {
ok := C.QDateEdit_override_virtual_NativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_NativeEvent
func miqt_exec_callback_QDateEdit_NativeEvent(self *C.QDateEdit, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var eventType_bytearray C.struct_miqt_string = eventType
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
C.free(unsafe.Pointer(eventType_bytearray.data))
slotval1 := eventType_ret
slotval2 := (unsafe.Pointer)(message)
2024-11-19 19:29:06 +13:00
slotval3 := (*uintptr)(unsafe.Pointer(result))
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
2024-11-19 19:29:06 +13:00
return (int)(C.QDateEdit_virtualbase_Metric(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnMetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
ok := C.QDateEdit_override_virtual_Metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_Metric
func miqt_exec_callback_QDateEdit_Metric(self *C.QDateEdit, cb C.intptr_t, param1 C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QPaintDevice__PaintDeviceMetric)(param1)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_Metric, slotval1)
return (C.int)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_InitPainter(painter *QPainter) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_InitPainter(unsafe.Pointer(this.h), painter.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnInitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
ok := C.QDateEdit_override_virtual_InitPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_InitPainter
func miqt_exec_callback_QDateEdit_InitPainter(self *C.QDateEdit, cb C.intptr_t, painter *C.QPainter) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQPainter(painter)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_InitPainter, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
2024-11-19 19:29:06 +13:00
return newQPaintDevice(C.QDateEdit_virtualbase_Redirected(unsafe.Pointer(this.h), offset.cPointer()))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnRedirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
ok := C.QDateEdit_override_virtual_Redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_Redirected
func miqt_exec_callback_QDateEdit_Redirected(self *C.QDateEdit, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQPoint(offset)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_Redirected, slotval1)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_SharedPainter() *QPainter {
2024-11-19 19:29:06 +13:00
return newQPainter(C.QDateEdit_virtualbase_SharedPainter(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnSharedPainter(slot func(super func() *QPainter) *QPainter) {
ok := C.QDateEdit_override_virtual_SharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_SharedPainter
func miqt_exec_callback_QDateEdit_SharedPainter(self *C.QDateEdit, cb C.intptr_t) *C.QPainter {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_SharedPainter)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) {
ok := C.QDateEdit_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_InputMethodEvent
func miqt_exec_callback_QDateEdit_InputMethodEvent(self *C.QDateEdit, cb C.intptr_t, param1 *C.QInputMethodEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQInputMethodEvent(param1)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_InputMethodEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
return (bool)(C.QDateEdit_virtualbase_EventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnEventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QDateEdit_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_EventFilter
func miqt_exec_callback_QDateEdit_EventFilter(self *C.QDateEdit, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
2024-11-19 19:29:06 +13:00
slotval2 := newQEvent(event)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QDateEdit{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_ChildEvent(event *QChildEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_ChildEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnChildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
ok := C.QDateEdit_override_virtual_ChildEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_ChildEvent
func miqt_exec_callback_QDateEdit_ChildEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QChildEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQChildEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_ChildEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_CustomEvent(event *QEvent) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QDateEdit_override_virtual_CustomEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_CustomEvent
func miqt_exec_callback_QDateEdit_CustomEvent(self *C.QDateEdit, cb C.intptr_t, event *C.QEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_CustomEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QDateEdit_override_virtual_ConnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_ConnectNotify
func miqt_exec_callback_QDateEdit_ConnectNotify(self *C.QDateEdit, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_ConnectNotify, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
2024-11-19 19:29:06 +13:00
C.QDateEdit_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QDateEdit) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QDateEdit_override_virtual_DisconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QDateEdit_DisconnectNotify
func miqt_exec_callback_QDateEdit_DisconnectNotify(self *C.QDateEdit, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
2024-11-19 19:29:06 +13:00
gofunc((&QDateEdit{h: self}).callVirtualBase_DisconnectNotify, slotval1)
2024-10-20 18:21:03 +13:00
}
// Delete this object from C++ memory.
func (this *QDateEdit) Delete() {
C.QDateEdit_Delete(this.h)
2024-10-20 18:21:03 +13:00
}
// 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)
})
}