package qt6 /* #include "gen_qwizard.h" #include */ import "C" import ( "runtime" "runtime/cgo" "unsafe" ) type QWizard__WizardButton int const ( QWizard__BackButton QWizard__WizardButton = 0 QWizard__NextButton QWizard__WizardButton = 1 QWizard__CommitButton QWizard__WizardButton = 2 QWizard__FinishButton QWizard__WizardButton = 3 QWizard__CancelButton QWizard__WizardButton = 4 QWizard__HelpButton QWizard__WizardButton = 5 QWizard__CustomButton1 QWizard__WizardButton = 6 QWizard__CustomButton2 QWizard__WizardButton = 7 QWizard__CustomButton3 QWizard__WizardButton = 8 QWizard__Stretch QWizard__WizardButton = 9 QWizard__NoButton QWizard__WizardButton = -1 QWizard__NStandardButtons QWizard__WizardButton = 6 QWizard__NButtons QWizard__WizardButton = 9 ) type QWizard__WizardPixmap int const ( QWizard__WatermarkPixmap QWizard__WizardPixmap = 0 QWizard__LogoPixmap QWizard__WizardPixmap = 1 QWizard__BannerPixmap QWizard__WizardPixmap = 2 QWizard__BackgroundPixmap QWizard__WizardPixmap = 3 QWizard__NPixmaps QWizard__WizardPixmap = 4 ) type QWizard__WizardStyle int const ( QWizard__ClassicStyle QWizard__WizardStyle = 0 QWizard__ModernStyle QWizard__WizardStyle = 1 QWizard__MacStyle QWizard__WizardStyle = 2 QWizard__AeroStyle QWizard__WizardStyle = 3 QWizard__NStyles QWizard__WizardStyle = 4 ) type QWizard__WizardOption int const ( QWizard__IndependentPages QWizard__WizardOption = 1 QWizard__IgnoreSubTitles QWizard__WizardOption = 2 QWizard__ExtendedWatermarkPixmap QWizard__WizardOption = 4 QWizard__NoDefaultButton QWizard__WizardOption = 8 QWizard__NoBackButtonOnStartPage QWizard__WizardOption = 16 QWizard__NoBackButtonOnLastPage QWizard__WizardOption = 32 QWizard__DisabledBackButtonOnLastPage QWizard__WizardOption = 64 QWizard__HaveNextButtonOnLastPage QWizard__WizardOption = 128 QWizard__HaveFinishButtonOnEarlyPages QWizard__WizardOption = 256 QWizard__NoCancelButton QWizard__WizardOption = 512 QWizard__CancelButtonOnLeft QWizard__WizardOption = 1024 QWizard__HaveHelpButton QWizard__WizardOption = 2048 QWizard__HelpButtonOnRight QWizard__WizardOption = 4096 QWizard__HaveCustomButton1 QWizard__WizardOption = 8192 QWizard__HaveCustomButton2 QWizard__WizardOption = 16384 QWizard__HaveCustomButton3 QWizard__WizardOption = 32768 QWizard__NoCancelButtonOnLastPage QWizard__WizardOption = 65536 ) type QWizard struct { h *C.QWizard isSubclass bool *QDialog } func (this *QWizard) cPointer() *C.QWizard { if this == nil { return nil } return this.h } func (this *QWizard) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQWizard constructs the type using only CGO pointers. func newQWizard(h *C.QWizard) *QWizard { if h == nil { return nil } var outptr_QDialog *C.QDialog = nil C.QWizard_virtbase(h, &outptr_QDialog) return &QWizard{h: h, QDialog: newQDialog(outptr_QDialog)} } // UnsafeNewQWizard constructs the type using only unsafe pointers. func UnsafeNewQWizard(h unsafe.Pointer) *QWizard { return newQWizard((*C.QWizard)(h)) } // NewQWizard constructs a new QWizard object. func NewQWizard(parent *QWidget) *QWizard { ret := newQWizard(C.QWizard_new(parent.cPointer())) ret.isSubclass = true return ret } // NewQWizard2 constructs a new QWizard object. func NewQWizard2() *QWizard { ret := newQWizard(C.QWizard_new2()) ret.isSubclass = true return ret } // NewQWizard3 constructs a new QWizard object. func NewQWizard3(parent *QWidget, flags WindowType) *QWizard { ret := newQWizard(C.QWizard_new3(parent.cPointer(), (C.int)(flags))) ret.isSubclass = true return ret } func (this *QWizard) MetaObject() *QMetaObject { return newQMetaObject(C.QWizard_MetaObject(this.h)) } func (this *QWizard) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QWizard_Metacast(this.h, param1_Cstring)) } func QWizard_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QWizard_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QWizard) AddPage(page *QWizardPage) int { return (int)(C.QWizard_AddPage(this.h, page.cPointer())) } func (this *QWizard) SetPage(id int, page *QWizardPage) { C.QWizard_SetPage(this.h, (C.int)(id), page.cPointer()) } func (this *QWizard) RemovePage(id int) { C.QWizard_RemovePage(this.h, (C.int)(id)) } func (this *QWizard) Page(id int) *QWizardPage { return newQWizardPage(C.QWizard_Page(this.h, (C.int)(id))) } func (this *QWizard) HasVisitedPage(id int) bool { return (bool)(C.QWizard_HasVisitedPage(this.h, (C.int)(id))) } func (this *QWizard) VisitedIds() []int { var _ma C.struct_miqt_array = C.QWizard_VisitedIds(this.h) _ret := make([]int, int(_ma.len)) _outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = (int)(_outCast[i]) } return _ret } func (this *QWizard) PageIds() []int { var _ma C.struct_miqt_array = C.QWizard_PageIds(this.h) _ret := make([]int, int(_ma.len)) _outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _ret[i] = (int)(_outCast[i]) } return _ret } func (this *QWizard) SetStartId(id int) { C.QWizard_SetStartId(this.h, (C.int)(id)) } func (this *QWizard) StartId() int { return (int)(C.QWizard_StartId(this.h)) } func (this *QWizard) CurrentPage() *QWizardPage { return newQWizardPage(C.QWizard_CurrentPage(this.h)) } func (this *QWizard) CurrentId() int { return (int)(C.QWizard_CurrentId(this.h)) } func (this *QWizard) ValidateCurrentPage() bool { return (bool)(C.QWizard_ValidateCurrentPage(this.h)) } func (this *QWizard) NextId() int { return (int)(C.QWizard_NextId(this.h)) } func (this *QWizard) SetField(name string, value *QVariant) { name_ms := C.struct_miqt_string{} name_ms.data = C.CString(name) name_ms.len = C.size_t(len(name)) defer C.free(unsafe.Pointer(name_ms.data)) C.QWizard_SetField(this.h, name_ms, value.cPointer()) } func (this *QWizard) Field(name string) *QVariant { name_ms := C.struct_miqt_string{} name_ms.data = C.CString(name) name_ms.len = C.size_t(len(name)) defer C.free(unsafe.Pointer(name_ms.data)) _goptr := newQVariant(C.QWizard_Field(this.h, name_ms)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizard) SetWizardStyle(style QWizard__WizardStyle) { C.QWizard_SetWizardStyle(this.h, (C.int)(style)) } func (this *QWizard) WizardStyle() QWizard__WizardStyle { return (QWizard__WizardStyle)(C.QWizard_WizardStyle(this.h)) } func (this *QWizard) SetOption(option QWizard__WizardOption) { C.QWizard_SetOption(this.h, (C.int)(option)) } func (this *QWizard) TestOption(option QWizard__WizardOption) bool { return (bool)(C.QWizard_TestOption(this.h, (C.int)(option))) } func (this *QWizard) SetOptions(options QWizard__WizardOption) { C.QWizard_SetOptions(this.h, (C.int)(options)) } func (this *QWizard) Options() QWizard__WizardOption { return (QWizard__WizardOption)(C.QWizard_Options(this.h)) } func (this *QWizard) SetButtonText(which QWizard__WizardButton, text string) { 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)) C.QWizard_SetButtonText(this.h, (C.int)(which), text_ms) } func (this *QWizard) ButtonText(which QWizard__WizardButton) string { var _ms C.struct_miqt_string = C.QWizard_ButtonText(this.h, (C.int)(which)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QWizard) SetButtonLayout(layout []QWizard__WizardButton) { layout_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(layout)))) defer C.free(unsafe.Pointer(layout_CArray)) for i := range layout { layout_CArray[i] = (C.int)(layout[i]) } layout_ma := C.struct_miqt_array{len: C.size_t(len(layout)), data: unsafe.Pointer(layout_CArray)} C.QWizard_SetButtonLayout(this.h, layout_ma) } func (this *QWizard) SetButton(which QWizard__WizardButton, button *QAbstractButton) { C.QWizard_SetButton(this.h, (C.int)(which), button.cPointer()) } func (this *QWizard) Button(which QWizard__WizardButton) *QAbstractButton { return newQAbstractButton(C.QWizard_Button(this.h, (C.int)(which))) } func (this *QWizard) SetTitleFormat(format TextFormat) { C.QWizard_SetTitleFormat(this.h, (C.int)(format)) } func (this *QWizard) TitleFormat() TextFormat { return (TextFormat)(C.QWizard_TitleFormat(this.h)) } func (this *QWizard) SetSubTitleFormat(format TextFormat) { C.QWizard_SetSubTitleFormat(this.h, (C.int)(format)) } func (this *QWizard) SubTitleFormat() TextFormat { return (TextFormat)(C.QWizard_SubTitleFormat(this.h)) } func (this *QWizard) SetPixmap(which QWizard__WizardPixmap, pixmap *QPixmap) { C.QWizard_SetPixmap(this.h, (C.int)(which), pixmap.cPointer()) } func (this *QWizard) Pixmap(which QWizard__WizardPixmap) *QPixmap { _goptr := newQPixmap(C.QWizard_Pixmap(this.h, (C.int)(which))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizard) SetSideWidget(widget *QWidget) { C.QWizard_SetSideWidget(this.h, widget.cPointer()) } func (this *QWizard) SideWidget() *QWidget { return newQWidget(C.QWizard_SideWidget(this.h)) } func (this *QWizard) SetDefaultProperty(className string, property string, changedSignal string) { className_Cstring := C.CString(className) defer C.free(unsafe.Pointer(className_Cstring)) property_Cstring := C.CString(property) defer C.free(unsafe.Pointer(property_Cstring)) changedSignal_Cstring := C.CString(changedSignal) defer C.free(unsafe.Pointer(changedSignal_Cstring)) C.QWizard_SetDefaultProperty(this.h, className_Cstring, property_Cstring, changedSignal_Cstring) } func (this *QWizard) SetVisible(visible bool) { C.QWizard_SetVisible(this.h, (C.bool)(visible)) } func (this *QWizard) SizeHint() *QSize { _goptr := newQSize(C.QWizard_SizeHint(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizard) CurrentIdChanged(id int) { C.QWizard_CurrentIdChanged(this.h, (C.int)(id)) } func (this *QWizard) OnCurrentIdChanged(slot func(id int)) { C.QWizard_connect_CurrentIdChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_CurrentIdChanged func miqt_exec_callback_QWizard_CurrentIdChanged(cb C.intptr_t, id C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(id int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(id) gofunc(slotval1) } func (this *QWizard) HelpRequested() { C.QWizard_HelpRequested(this.h) } func (this *QWizard) OnHelpRequested(slot func()) { C.QWizard_connect_HelpRequested(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_HelpRequested func miqt_exec_callback_QWizard_HelpRequested(cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc() } func (this *QWizard) CustomButtonClicked(which int) { C.QWizard_CustomButtonClicked(this.h, (C.int)(which)) } func (this *QWizard) OnCustomButtonClicked(slot func(which int)) { C.QWizard_connect_CustomButtonClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_CustomButtonClicked func miqt_exec_callback_QWizard_CustomButtonClicked(cb C.intptr_t, which C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(which int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(which) gofunc(slotval1) } func (this *QWizard) PageAdded(id int) { C.QWizard_PageAdded(this.h, (C.int)(id)) } func (this *QWizard) OnPageAdded(slot func(id int)) { C.QWizard_connect_PageAdded(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_PageAdded func miqt_exec_callback_QWizard_PageAdded(cb C.intptr_t, id C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(id int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(id) gofunc(slotval1) } func (this *QWizard) PageRemoved(id int) { C.QWizard_PageRemoved(this.h, (C.int)(id)) } func (this *QWizard) OnPageRemoved(slot func(id int)) { C.QWizard_connect_PageRemoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_PageRemoved func miqt_exec_callback_QWizard_PageRemoved(cb C.intptr_t, id C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(id int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(id) gofunc(slotval1) } func (this *QWizard) Back() { C.QWizard_Back(this.h) } func (this *QWizard) Next() { C.QWizard_Next(this.h) } func (this *QWizard) SetCurrentId(id int) { C.QWizard_SetCurrentId(this.h, (C.int)(id)) } func (this *QWizard) Restart() { C.QWizard_Restart(this.h) } func QWizard_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.QWizard_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QWizard_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.QWizard_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 *QWizard) SetOption2(option QWizard__WizardOption, on bool) { C.QWizard_SetOption2(this.h, (C.int)(option), (C.bool)(on)) } func (this *QWizard) callVirtualBase_ValidateCurrentPage() bool { return (bool)(C.QWizard_virtualbase_ValidateCurrentPage(unsafe.Pointer(this.h))) } func (this *QWizard) OnValidateCurrentPage(slot func(super func() bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_ValidateCurrentPage(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_ValidateCurrentPage func miqt_exec_callback_QWizard_ValidateCurrentPage(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_ValidateCurrentPage) return (C.bool)(virtualReturn) } func (this *QWizard) callVirtualBase_NextId() int { return (int)(C.QWizard_virtualbase_NextId(unsafe.Pointer(this.h))) } func (this *QWizard) OnNextId(slot func(super func() int) int) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_NextId(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_NextId func miqt_exec_callback_QWizard_NextId(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_NextId) return (C.int)(virtualReturn) } func (this *QWizard) callVirtualBase_SetVisible(visible bool) { C.QWizard_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible)) } func (this *QWizard) OnSetVisible(slot func(super func(visible bool), visible bool)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_SetVisible func miqt_exec_callback_QWizard_SetVisible(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_SetVisible, slotval1) } func (this *QWizard) callVirtualBase_SizeHint() *QSize { _goptr := newQSize(C.QWizard_virtualbase_SizeHint(unsafe.Pointer(this.h))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizard) OnSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_SizeHint func miqt_exec_callback_QWizard_SizeHint(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_SizeHint) return virtualReturn.cPointer() } func (this *QWizard) callVirtualBase_Event(event *QEvent) bool { return (bool)(C.QWizard_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer())) } func (this *QWizard) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_Event func miqt_exec_callback_QWizard_Event(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QWizard) callVirtualBase_ResizeEvent(event *QResizeEvent) { C.QWizard_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizard) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_ResizeEvent func miqt_exec_callback_QWizard_ResizeEvent(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_ResizeEvent, slotval1) } func (this *QWizard) callVirtualBase_PaintEvent(event *QPaintEvent) { C.QWizard_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizard) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_PaintEvent func miqt_exec_callback_QWizard_PaintEvent(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_PaintEvent, slotval1) } func (this *QWizard) callVirtualBase_Done(result int) { C.QWizard_virtualbase_Done(unsafe.Pointer(this.h), (C.int)(result)) } func (this *QWizard) OnDone(slot func(super func(result int), result int)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_Done(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_Done func miqt_exec_callback_QWizard_Done(self *C.QWizard, cb C.intptr_t, result C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(result int), result int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(result) gofunc((&QWizard{h: self}).callVirtualBase_Done, slotval1) } func (this *QWizard) callVirtualBase_InitializePage(id int) { C.QWizard_virtualbase_InitializePage(unsafe.Pointer(this.h), (C.int)(id)) } func (this *QWizard) OnInitializePage(slot func(super func(id int), id int)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_InitializePage(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_InitializePage func miqt_exec_callback_QWizard_InitializePage(self *C.QWizard, cb C.intptr_t, id C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(id int), id int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(id) gofunc((&QWizard{h: self}).callVirtualBase_InitializePage, slotval1) } func (this *QWizard) callVirtualBase_CleanupPage(id int) { C.QWizard_virtualbase_CleanupPage(unsafe.Pointer(this.h), (C.int)(id)) } func (this *QWizard) OnCleanupPage(slot func(super func(id int), id int)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_CleanupPage(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_CleanupPage func miqt_exec_callback_QWizard_CleanupPage(self *C.QWizard, cb C.intptr_t, id C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(id int), id int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(id) gofunc((&QWizard{h: self}).callVirtualBase_CleanupPage, slotval1) } func (this *QWizard) callVirtualBase_MinimumSizeHint() *QSize { _goptr := newQSize(C.QWizard_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizard) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_MinimumSizeHint func miqt_exec_callback_QWizard_MinimumSizeHint(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_MinimumSizeHint) return virtualReturn.cPointer() } func (this *QWizard) callVirtualBase_Open() { C.QWizard_virtualbase_Open(unsafe.Pointer(this.h)) } func (this *QWizard) OnOpen(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_Open(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_Open func miqt_exec_callback_QWizard_Open(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_Open) } func (this *QWizard) callVirtualBase_Exec() int { return (int)(C.QWizard_virtualbase_Exec(unsafe.Pointer(this.h))) } func (this *QWizard) OnExec(slot func(super func() int) int) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_Exec(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_Exec func miqt_exec_callback_QWizard_Exec(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_Exec) return (C.int)(virtualReturn) } func (this *QWizard) callVirtualBase_Accept() { C.QWizard_virtualbase_Accept(unsafe.Pointer(this.h)) } func (this *QWizard) OnAccept(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_Accept(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_Accept func miqt_exec_callback_QWizard_Accept(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_Accept) } func (this *QWizard) callVirtualBase_Reject() { C.QWizard_virtualbase_Reject(unsafe.Pointer(this.h)) } func (this *QWizard) OnReject(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_Reject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_Reject func miqt_exec_callback_QWizard_Reject(self *C.QWizard, 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((&QWizard{h: self}).callVirtualBase_Reject) } func (this *QWizard) callVirtualBase_KeyPressEvent(param1 *QKeyEvent) { C.QWizard_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QWizard) OnKeyPressEvent(slot func(super func(param1 *QKeyEvent), param1 *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_KeyPressEvent func miqt_exec_callback_QWizard_KeyPressEvent(self *C.QWizard, cb C.intptr_t, param1 *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QKeyEvent), param1 *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQKeyEvent(param1) gofunc((&QWizard{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QWizard) callVirtualBase_CloseEvent(param1 *QCloseEvent) { C.QWizard_virtualbase_CloseEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QWizard) OnCloseEvent(slot func(super func(param1 *QCloseEvent), param1 *QCloseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_CloseEvent func miqt_exec_callback_QWizard_CloseEvent(self *C.QWizard, cb C.intptr_t, param1 *C.QCloseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QCloseEvent), param1 *QCloseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQCloseEvent(param1) gofunc((&QWizard{h: self}).callVirtualBase_CloseEvent, slotval1) } func (this *QWizard) callVirtualBase_ShowEvent(param1 *QShowEvent) { C.QWizard_virtualbase_ShowEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QWizard) OnShowEvent(slot func(super func(param1 *QShowEvent), param1 *QShowEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_ShowEvent func miqt_exec_callback_QWizard_ShowEvent(self *C.QWizard, cb C.intptr_t, param1 *C.QShowEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QShowEvent), param1 *QShowEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQShowEvent(param1) gofunc((&QWizard{h: self}).callVirtualBase_ShowEvent, slotval1) } func (this *QWizard) callVirtualBase_ContextMenuEvent(param1 *QContextMenuEvent) { C.QWizard_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QWizard) OnContextMenuEvent(slot func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_ContextMenuEvent func miqt_exec_callback_QWizard_ContextMenuEvent(self *C.QWizard, cb C.intptr_t, param1 *C.QContextMenuEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQContextMenuEvent(param1) gofunc((&QWizard{h: self}).callVirtualBase_ContextMenuEvent, slotval1) } func (this *QWizard) callVirtualBase_EventFilter(param1 *QObject, param2 *QEvent) bool { return (bool)(C.QWizard_virtualbase_EventFilter(unsafe.Pointer(this.h), param1.cPointer(), param2.cPointer())) } func (this *QWizard) OnEventFilter(slot func(super func(param1 *QObject, param2 *QEvent) bool, param1 *QObject, param2 *QEvent) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizard_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizard_EventFilter func miqt_exec_callback_QWizard_EventFilter(self *C.QWizard, cb C.intptr_t, param1 *C.QObject, param2 *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QObject, param2 *QEvent) bool, param1 *QObject, param2 *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQObject(param1) slotval2 := newQEvent(param2) virtualReturn := gofunc((&QWizard{h: self}).callVirtualBase_EventFilter, slotval1, slotval2) return (C.bool)(virtualReturn) } // Delete this object from C++ memory. func (this *QWizard) Delete() { C.QWizard_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QWizard) GoGC() { runtime.SetFinalizer(this, func(this *QWizard) { this.Delete() runtime.KeepAlive(this.h) }) } type QWizardPage struct { h *C.QWizardPage isSubclass bool *QWidget } func (this *QWizardPage) cPointer() *C.QWizardPage { if this == nil { return nil } return this.h } func (this *QWizardPage) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQWizardPage constructs the type using only CGO pointers. func newQWizardPage(h *C.QWizardPage) *QWizardPage { if h == nil { return nil } var outptr_QWidget *C.QWidget = nil C.QWizardPage_virtbase(h, &outptr_QWidget) return &QWizardPage{h: h, QWidget: newQWidget(outptr_QWidget)} } // UnsafeNewQWizardPage constructs the type using only unsafe pointers. func UnsafeNewQWizardPage(h unsafe.Pointer) *QWizardPage { return newQWizardPage((*C.QWizardPage)(h)) } // NewQWizardPage constructs a new QWizardPage object. func NewQWizardPage(parent *QWidget) *QWizardPage { ret := newQWizardPage(C.QWizardPage_new(parent.cPointer())) ret.isSubclass = true return ret } // NewQWizardPage2 constructs a new QWizardPage object. func NewQWizardPage2() *QWizardPage { ret := newQWizardPage(C.QWizardPage_new2()) ret.isSubclass = true return ret } func (this *QWizardPage) MetaObject() *QMetaObject { return newQMetaObject(C.QWizardPage_MetaObject(this.h)) } func (this *QWizardPage) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QWizardPage_Metacast(this.h, param1_Cstring)) } func QWizardPage_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QWizardPage_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QWizardPage) SetTitle(title string) { title_ms := C.struct_miqt_string{} title_ms.data = C.CString(title) title_ms.len = C.size_t(len(title)) defer C.free(unsafe.Pointer(title_ms.data)) C.QWizardPage_SetTitle(this.h, title_ms) } func (this *QWizardPage) Title() string { var _ms C.struct_miqt_string = C.QWizardPage_Title(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QWizardPage) SetSubTitle(subTitle string) { subTitle_ms := C.struct_miqt_string{} subTitle_ms.data = C.CString(subTitle) subTitle_ms.len = C.size_t(len(subTitle)) defer C.free(unsafe.Pointer(subTitle_ms.data)) C.QWizardPage_SetSubTitle(this.h, subTitle_ms) } func (this *QWizardPage) SubTitle() string { var _ms C.struct_miqt_string = C.QWizardPage_SubTitle(this.h) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QWizardPage) SetPixmap(which QWizard__WizardPixmap, pixmap *QPixmap) { C.QWizardPage_SetPixmap(this.h, (C.int)(which), pixmap.cPointer()) } func (this *QWizardPage) Pixmap(which QWizard__WizardPixmap) *QPixmap { _goptr := newQPixmap(C.QWizardPage_Pixmap(this.h, (C.int)(which))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizardPage) SetFinalPage(finalPage bool) { C.QWizardPage_SetFinalPage(this.h, (C.bool)(finalPage)) } func (this *QWizardPage) IsFinalPage() bool { return (bool)(C.QWizardPage_IsFinalPage(this.h)) } func (this *QWizardPage) SetCommitPage(commitPage bool) { C.QWizardPage_SetCommitPage(this.h, (C.bool)(commitPage)) } func (this *QWizardPage) IsCommitPage() bool { return (bool)(C.QWizardPage_IsCommitPage(this.h)) } func (this *QWizardPage) SetButtonText(which QWizard__WizardButton, text string) { 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)) C.QWizardPage_SetButtonText(this.h, (C.int)(which), text_ms) } func (this *QWizardPage) ButtonText(which QWizard__WizardButton) string { var _ms C.struct_miqt_string = C.QWizardPage_ButtonText(this.h, (C.int)(which)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QWizardPage) InitializePage() { C.QWizardPage_InitializePage(this.h) } func (this *QWizardPage) CleanupPage() { C.QWizardPage_CleanupPage(this.h) } func (this *QWizardPage) ValidatePage() bool { return (bool)(C.QWizardPage_ValidatePage(this.h)) } func (this *QWizardPage) IsComplete() bool { return (bool)(C.QWizardPage_IsComplete(this.h)) } func (this *QWizardPage) NextId() int { return (int)(C.QWizardPage_NextId(this.h)) } func (this *QWizardPage) CompleteChanged() { C.QWizardPage_CompleteChanged(this.h) } func (this *QWizardPage) OnCompleteChanged(slot func()) { C.QWizardPage_connect_CompleteChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_CompleteChanged func miqt_exec_callback_QWizardPage_CompleteChanged(cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc() } func QWizardPage_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.QWizardPage_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QWizardPage_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.QWizardPage_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 *QWizardPage) callVirtualBase_InitializePage() { C.QWizardPage_virtualbase_InitializePage(unsafe.Pointer(this.h)) } func (this *QWizardPage) OnInitializePage(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_InitializePage(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_InitializePage func miqt_exec_callback_QWizardPage_InitializePage(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_InitializePage) } func (this *QWizardPage) callVirtualBase_CleanupPage() { C.QWizardPage_virtualbase_CleanupPage(unsafe.Pointer(this.h)) } func (this *QWizardPage) OnCleanupPage(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_CleanupPage(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_CleanupPage func miqt_exec_callback_QWizardPage_CleanupPage(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_CleanupPage) } func (this *QWizardPage) callVirtualBase_ValidatePage() bool { return (bool)(C.QWizardPage_virtualbase_ValidatePage(unsafe.Pointer(this.h))) } func (this *QWizardPage) OnValidatePage(slot func(super func() bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_ValidatePage(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_ValidatePage func miqt_exec_callback_QWizardPage_ValidatePage(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_ValidatePage) return (C.bool)(virtualReturn) } func (this *QWizardPage) callVirtualBase_IsComplete() bool { return (bool)(C.QWizardPage_virtualbase_IsComplete(unsafe.Pointer(this.h))) } func (this *QWizardPage) OnIsComplete(slot func(super func() bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_IsComplete(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_IsComplete func miqt_exec_callback_QWizardPage_IsComplete(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_IsComplete) return (C.bool)(virtualReturn) } func (this *QWizardPage) callVirtualBase_NextId() int { return (int)(C.QWizardPage_virtualbase_NextId(unsafe.Pointer(this.h))) } func (this *QWizardPage) OnNextId(slot func(super func() int) int) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_NextId(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_NextId func miqt_exec_callback_QWizardPage_NextId(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_NextId) return (C.int)(virtualReturn) } func (this *QWizardPage) callVirtualBase_DevType() int { return (int)(C.QWizardPage_virtualbase_DevType(unsafe.Pointer(this.h))) } func (this *QWizardPage) OnDevType(slot func(super func() int) int) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_DevType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_DevType func miqt_exec_callback_QWizardPage_DevType(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_DevType) return (C.int)(virtualReturn) } func (this *QWizardPage) callVirtualBase_SetVisible(visible bool) { C.QWizardPage_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible)) } func (this *QWizardPage) OnSetVisible(slot func(super func(visible bool), visible bool)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_SetVisible func miqt_exec_callback_QWizardPage_SetVisible(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_SetVisible, slotval1) } func (this *QWizardPage) callVirtualBase_SizeHint() *QSize { _goptr := newQSize(C.QWizardPage_virtualbase_SizeHint(unsafe.Pointer(this.h))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizardPage) OnSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_SizeHint func miqt_exec_callback_QWizardPage_SizeHint(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_SizeHint) return virtualReturn.cPointer() } func (this *QWizardPage) callVirtualBase_MinimumSizeHint() *QSize { _goptr := newQSize(C.QWizardPage_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QWizardPage) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_MinimumSizeHint func miqt_exec_callback_QWizardPage_MinimumSizeHint(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_MinimumSizeHint) return virtualReturn.cPointer() } func (this *QWizardPage) callVirtualBase_HeightForWidth(param1 int) int { return (int)(C.QWizardPage_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1))) } func (this *QWizardPage) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_HeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_HeightForWidth func miqt_exec_callback_QWizardPage_HeightForWidth(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_HeightForWidth, slotval1) return (C.int)(virtualReturn) } func (this *QWizardPage) callVirtualBase_HasHeightForWidth() bool { return (bool)(C.QWizardPage_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h))) } func (this *QWizardPage) OnHasHeightForWidth(slot func(super func() bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_HasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_HasHeightForWidth func miqt_exec_callback_QWizardPage_HasHeightForWidth(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_HasHeightForWidth) return (C.bool)(virtualReturn) } func (this *QWizardPage) callVirtualBase_PaintEngine() *QPaintEngine { return newQPaintEngine(C.QWizardPage_virtualbase_PaintEngine(unsafe.Pointer(this.h))) } func (this *QWizardPage) OnPaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_PaintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_PaintEngine func miqt_exec_callback_QWizardPage_PaintEngine(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_PaintEngine) return virtualReturn.cPointer() } func (this *QWizardPage) callVirtualBase_Event(event *QEvent) bool { return (bool)(C.QWizardPage_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer())) } func (this *QWizardPage) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_Event func miqt_exec_callback_QWizardPage_Event(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QWizardPage) callVirtualBase_MousePressEvent(event *QMouseEvent) { C.QWizardPage_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_MousePressEvent func miqt_exec_callback_QWizardPage_MousePressEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_MousePressEvent, slotval1) } func (this *QWizardPage) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) { C.QWizardPage_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_MouseReleaseEvent func miqt_exec_callback_QWizardPage_MouseReleaseEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_MouseReleaseEvent, slotval1) } func (this *QWizardPage) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) { C.QWizardPage_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_MouseDoubleClickEvent func miqt_exec_callback_QWizardPage_MouseDoubleClickEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1) } func (this *QWizardPage) callVirtualBase_MouseMoveEvent(event *QMouseEvent) { C.QWizardPage_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_MouseMoveEvent func miqt_exec_callback_QWizardPage_MouseMoveEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_MouseMoveEvent, slotval1) } func (this *QWizardPage) callVirtualBase_WheelEvent(event *QWheelEvent) { C.QWizardPage_virtualbase_WheelEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnWheelEvent(slot func(super func(event *QWheelEvent), event *QWheelEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_WheelEvent func miqt_exec_callback_QWizardPage_WheelEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_WheelEvent, slotval1) } func (this *QWizardPage) callVirtualBase_KeyPressEvent(event *QKeyEvent) { C.QWizardPage_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_KeyPressEvent func miqt_exec_callback_QWizardPage_KeyPressEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QWizardPage) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) { C.QWizardPage_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnKeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_KeyReleaseEvent func miqt_exec_callback_QWizardPage_KeyReleaseEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_KeyReleaseEvent, slotval1) } func (this *QWizardPage) callVirtualBase_FocusInEvent(event *QFocusEvent) { C.QWizardPage_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_FocusInEvent func miqt_exec_callback_QWizardPage_FocusInEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_FocusInEvent, slotval1) } func (this *QWizardPage) callVirtualBase_FocusOutEvent(event *QFocusEvent) { C.QWizardPage_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_FocusOutEvent func miqt_exec_callback_QWizardPage_FocusOutEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_FocusOutEvent, slotval1) } func (this *QWizardPage) callVirtualBase_EnterEvent(event *QEnterEvent) { C.QWizardPage_virtualbase_EnterEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnEnterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_EnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_EnterEvent func miqt_exec_callback_QWizardPage_EnterEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_EnterEvent, slotval1) } func (this *QWizardPage) callVirtualBase_LeaveEvent(event *QEvent) { C.QWizardPage_virtualbase_LeaveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnLeaveEvent(slot func(super func(event *QEvent), event *QEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_LeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_LeaveEvent func miqt_exec_callback_QWizardPage_LeaveEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_LeaveEvent, slotval1) } func (this *QWizardPage) callVirtualBase_PaintEvent(event *QPaintEvent) { C.QWizardPage_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_PaintEvent func miqt_exec_callback_QWizardPage_PaintEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_PaintEvent, slotval1) } func (this *QWizardPage) callVirtualBase_MoveEvent(event *QMoveEvent) { C.QWizardPage_virtualbase_MoveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnMoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_MoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_MoveEvent func miqt_exec_callback_QWizardPage_MoveEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_MoveEvent, slotval1) } func (this *QWizardPage) callVirtualBase_ResizeEvent(event *QResizeEvent) { C.QWizardPage_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_ResizeEvent func miqt_exec_callback_QWizardPage_ResizeEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_ResizeEvent, slotval1) } func (this *QWizardPage) callVirtualBase_CloseEvent(event *QCloseEvent) { C.QWizardPage_virtualbase_CloseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnCloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_CloseEvent func miqt_exec_callback_QWizardPage_CloseEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_CloseEvent, slotval1) } func (this *QWizardPage) callVirtualBase_ContextMenuEvent(event *QContextMenuEvent) { C.QWizardPage_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnContextMenuEvent(slot func(super func(event *QContextMenuEvent), event *QContextMenuEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_ContextMenuEvent func miqt_exec_callback_QWizardPage_ContextMenuEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_ContextMenuEvent, slotval1) } func (this *QWizardPage) callVirtualBase_TabletEvent(event *QTabletEvent) { C.QWizardPage_virtualbase_TabletEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnTabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_TabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_TabletEvent func miqt_exec_callback_QWizardPage_TabletEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_TabletEvent, slotval1) } func (this *QWizardPage) callVirtualBase_ActionEvent(event *QActionEvent) { C.QWizardPage_virtualbase_ActionEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnActionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_ActionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_ActionEvent func miqt_exec_callback_QWizardPage_ActionEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_ActionEvent, slotval1) } func (this *QWizardPage) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) { C.QWizardPage_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_DragEnterEvent func miqt_exec_callback_QWizardPage_DragEnterEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_DragEnterEvent, slotval1) } func (this *QWizardPage) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) { C.QWizardPage_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_DragMoveEvent func miqt_exec_callback_QWizardPage_DragMoveEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_DragMoveEvent, slotval1) } func (this *QWizardPage) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) { C.QWizardPage_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_DragLeaveEvent func miqt_exec_callback_QWizardPage_DragLeaveEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_DragLeaveEvent, slotval1) } func (this *QWizardPage) callVirtualBase_DropEvent(event *QDropEvent) { C.QWizardPage_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_DropEvent func miqt_exec_callback_QWizardPage_DropEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_DropEvent, slotval1) } func (this *QWizardPage) callVirtualBase_ShowEvent(event *QShowEvent) { C.QWizardPage_virtualbase_ShowEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnShowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_ShowEvent func miqt_exec_callback_QWizardPage_ShowEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_ShowEvent, slotval1) } func (this *QWizardPage) callVirtualBase_HideEvent(event *QHideEvent) { C.QWizardPage_virtualbase_HideEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QWizardPage) OnHideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_HideEvent func miqt_exec_callback_QWizardPage_HideEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_HideEvent, slotval1) } func (this *QWizardPage) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool { eventType_alias := C.struct_miqt_string{} eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0])) eventType_alias.len = C.size_t(len(eventType)) return (bool)(C.QWizardPage_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result)))) } func (this *QWizardPage) OnNativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_NativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_NativeEvent func miqt_exec_callback_QWizardPage_NativeEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3) return (C.bool)(virtualReturn) } func (this *QWizardPage) callVirtualBase_ChangeEvent(param1 *QEvent) { C.QWizardPage_virtualbase_ChangeEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QWizardPage) OnChangeEvent(slot func(super func(param1 *QEvent), param1 *QEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_ChangeEvent func miqt_exec_callback_QWizardPage_ChangeEvent(self *C.QWizardPage, cb C.intptr_t, param1 *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QEvent), param1 *QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQEvent(param1) gofunc((&QWizardPage{h: self}).callVirtualBase_ChangeEvent, slotval1) } func (this *QWizardPage) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int { return (int)(C.QWizardPage_virtualbase_Metric(unsafe.Pointer(this.h), (C.int)(param1))) } func (this *QWizardPage) OnMetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_Metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_Metric func miqt_exec_callback_QWizardPage_Metric(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_Metric, slotval1) return (C.int)(virtualReturn) } func (this *QWizardPage) callVirtualBase_InitPainter(painter *QPainter) { C.QWizardPage_virtualbase_InitPainter(unsafe.Pointer(this.h), painter.cPointer()) } func (this *QWizardPage) OnInitPainter(slot func(super func(painter *QPainter), painter *QPainter)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_InitPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_InitPainter func miqt_exec_callback_QWizardPage_InitPainter(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_InitPainter, slotval1) } func (this *QWizardPage) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice { return newQPaintDevice(C.QWizardPage_virtualbase_Redirected(unsafe.Pointer(this.h), offset.cPointer())) } func (this *QWizardPage) OnRedirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_Redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_Redirected func miqt_exec_callback_QWizardPage_Redirected(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_Redirected, slotval1) return virtualReturn.cPointer() } func (this *QWizardPage) callVirtualBase_SharedPainter() *QPainter { return newQPainter(C.QWizardPage_virtualbase_SharedPainter(unsafe.Pointer(this.h))) } func (this *QWizardPage) OnSharedPainter(slot func(super func() *QPainter) *QPainter) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_SharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_SharedPainter func miqt_exec_callback_QWizardPage_SharedPainter(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_SharedPainter) return virtualReturn.cPointer() } func (this *QWizardPage) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) { C.QWizardPage_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QWizardPage) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_InputMethodEvent func miqt_exec_callback_QWizardPage_InputMethodEvent(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_InputMethodEvent, slotval1) } func (this *QWizardPage) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant { _goptr := newQVariant(C.QWizardPage_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 *QWizardPage) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_InputMethodQuery func miqt_exec_callback_QWizardPage_InputMethodQuery(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_InputMethodQuery, slotval1) return virtualReturn.cPointer() } func (this *QWizardPage) callVirtualBase_FocusNextPrevChild(next bool) bool { return (bool)(C.QWizardPage_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next))) } func (this *QWizardPage) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QWizardPage_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWizardPage_FocusNextPrevChild func miqt_exec_callback_QWizardPage_FocusNextPrevChild(self *C.QWizardPage, 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((&QWizardPage{h: self}).callVirtualBase_FocusNextPrevChild, slotval1) return (C.bool)(virtualReturn) } // Delete this object from C++ memory. func (this *QWizardPage) Delete() { C.QWizardPage_Delete(this.h, C.bool(this.isSubclass)) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted // from C++ memory once it is unreachable from Go memory. func (this *QWizardPage) GoGC() { runtime.SetFinalizer(this, func(this *QWizardPage) { this.Delete() runtime.KeepAlive(this.h) }) }