From 0e705a4e6ed5df9a2f8465f55f5a623ded6bfe8c Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 13 Oct 2024 18:31:18 +1300 Subject: [PATCH 1/3] handbindings: avoid unsafe.Pointer when marshalling cgo.Handle --- cmd/handbindings/binding.cpp | 4 ++-- cmd/handbindings/binding.go | 6 +++--- cmd/handbindings/binding.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/handbindings/binding.cpp b/cmd/handbindings/binding.cpp index 0606778..549e1c0 100644 --- a/cmd/handbindings/binding.cpp +++ b/cmd/handbindings/binding.cpp @@ -4,7 +4,7 @@ #include extern "C" { - extern void miqt_exec_callback(void* cb, int argc, void* argv); + extern void miqt_exec_callback(intptr_t cb, int argc, void* argv); } PQApplication QApplication_new(int* argc, char** argv) { @@ -28,7 +28,7 @@ void QPushButton_show(PQPushButton self) { static_cast(self)->show(); } -void QPushButton_connect_pressed(PQPushButton self, void* cb) { +void QPushButton_connect_pressed(PQPushButton self, intptr_t cb) { QPushButton::connect(static_cast(self), &QPushButton::pressed, [=]() { miqt_exec_callback(cb, 0, nullptr); }); diff --git a/cmd/handbindings/binding.go b/cmd/handbindings/binding.go index 64e2a77..16d05e4 100644 --- a/cmd/handbindings/binding.go +++ b/cmd/handbindings/binding.go @@ -28,11 +28,11 @@ func CArray(data []string) (C.int, **C.char) { type CallbackFunc func(argc C.int, args *C.void) //export miqt_exec_callback -func miqt_exec_callback(cb *C.void, argc C.int, args *C.void) { +func miqt_exec_callback(cb C.intptr_t, argc C.int, args *C.void) { // Our CABI for all callbacks is void(int, void*). // Our Go ABI is CallbackFunc // Then the Go bindings can unmarshal the arguments and C.free() them as necessary - cfunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(CallbackFunc) + cfunc, ok := (cgo.Handle(cb)).Value().(CallbackFunc) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -105,6 +105,6 @@ func (this *QPushButton) OnPressed(cb func()) { cb() } - C.QPushButton_connect_pressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(cbWrapper)))) + C.QPushButton_connect_pressed(this.h, C.intptr_t(cgo.NewHandle(cbWrapper))) // TODO allow disconnect'ing, or tie lifespan for handle.Delete(), ... } diff --git a/cmd/handbindings/binding.h b/cmd/handbindings/binding.h index e45a089..28d75d2 100644 --- a/cmd/handbindings/binding.h +++ b/cmd/handbindings/binding.h @@ -23,7 +23,7 @@ PQPushButton QPushButton_new(const char* label, PQWidget parent); void QPushButton_show(PQPushButton self); -void QPushButton_connect_pressed(PQPushButton self, void* cb); +void QPushButton_connect_pressed(PQPushButton self, intptr_t cb); int QApplication_exec(PQApplication self); From 0154e3507be729e3b6336482f11407b418ed334c Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 13 Oct 2024 19:05:52 +1300 Subject: [PATCH 2/3] genbindings: marshal cgo.Handle via intptr_t instead of void* --- cmd/genbindings/emitcabi.go | 6 +++--- cmd/genbindings/emitgo.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/genbindings/emitcabi.go b/cmd/genbindings/emitcabi.go index 2acfc79..0354172 100644 --- a/cmd/genbindings/emitcabi.go +++ b/cmd/genbindings/emitcabi.go @@ -546,7 +546,7 @@ extern "C" { ret.WriteString(fmt.Sprintf("%s %s_%s(%s);\n", m.ReturnType.RenderTypeCabi(), cClassName, m.SafeMethodName(), emitParametersCabi(m, ifv(m.IsConst, "const ", "")+cClassName+"*"))) if m.IsSignal { - ret.WriteString(fmt.Sprintf("%s %s_connect_%s(%s* self, void* slot);\n", m.ReturnType.RenderTypeCabi(), cClassName, m.SafeMethodName(), cClassName)) + ret.WriteString(fmt.Sprintf("%s %s_connect_%s(%s* self, intptr_t slot);\n", m.ReturnType.RenderTypeCabi(), cClassName, m.SafeMethodName(), cClassName)) } } @@ -691,7 +691,7 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) { exactSignal := `static_cast(&` + c.ClassName + `::` + m.CppCallTarget() + `)` paramArgs := []string{"slot"} - paramArgDefs := []string{"void* cb"} + paramArgDefs := []string{"intptr_t cb"} var signalCode string @@ -704,7 +704,7 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) { signalCode += "\t\t" + bindingFunc + "(" + strings.Join(paramArgs, `, `) + ");\n" ret.WriteString( - `void ` + cClassName + `_connect_` + m.SafeMethodName() + `(` + cClassName + `* self, void* slot) {` + "\n" + + `void ` + cClassName + `_connect_` + m.SafeMethodName() + `(` + cClassName + `* self, intptr_t slot) {` + "\n" + "\t" + c.ClassName + `::connect(self, ` + exactSignal + `, self, [=](` + emitParametersCpp(m) + `) {` + "\n" + signalCode + "\t});\n" + diff --git a/cmd/genbindings/emitgo.go b/cmd/genbindings/emitgo.go index 37d982f..79096ab 100644 --- a/cmd/genbindings/emitgo.go +++ b/cmd/genbindings/emitgo.go @@ -612,12 +612,12 @@ import "C" } ret.WriteString(`func (this *` + goClassName + `) On` + m.SafeMethodName() + `(slot func(` + emitParametersGo(m.Parameters) + `)) { - C.` + goClassName + `_connect_` + m.SafeMethodName() + `(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.` + goClassName + `_connect_` + m.SafeMethodName() + `(this.h, C.intptr_t(cgo.NewHandle(slot)) ) } //export miqt_exec_callback_` + goClassName + `_` + m.SafeMethodName() + ` - func miqt_exec_callback_` + goClassName + `_` + m.SafeMethodName() + `(cb *C.void` + ifv(len(m.Parameters) > 0, ", ", "") + strings.Join(cgoNamedParams, `, `) + `) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(` + emitParametersGo(m.Parameters) + `)) + func miqt_exec_callback_` + goClassName + `_` + m.SafeMethodName() + `(cb C.intptr_t` + ifv(len(m.Parameters) > 0, ", ", "") + strings.Join(cgoNamedParams, `, `) + `) { + gofunc, ok := cgo.Handle(cb).Value().(func(` + emitParametersGo(m.Parameters) + `)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } From 594631ddbbed662260928b5ee0065b85949688a2 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 13 Oct 2024 19:06:06 +1300 Subject: [PATCH 3/3] qt: rebuild (marshal slot callbacks with intptr_t) --- qt/gen_qabstractanimation.cpp | 12 +-- qt/gen_qabstractanimation.go | 36 ++++---- qt/gen_qabstractanimation.h | 12 +-- qt/gen_qabstractbutton.cpp | 10 +-- qt/gen_qabstractbutton.go | 30 +++---- qt/gen_qabstractbutton.h | 10 +-- qt/gen_qabstracteventdispatcher.cpp | 4 +- qt/gen_qabstracteventdispatcher.go | 12 +-- qt/gen_qabstracteventdispatcher.h | 4 +- qt/gen_qabstractitemdelegate.cpp | 8 +- qt/gen_qabstractitemdelegate.go | 24 +++--- qt/gen_qabstractitemdelegate.h | 8 +- qt/gen_qabstractitemmodel.cpp | 18 ++-- qt/gen_qabstractitemmodel.go | 54 ++++++------ qt/gen_qabstractitemmodel.h | 18 ++-- qt/gen_qabstractitemview.cpp | 14 +-- qt/gen_qabstractitemview.go | 42 ++++----- qt/gen_qabstractitemview.h | 14 +-- qt/gen_qabstractslider.cpp | 12 +-- qt/gen_qabstractslider.go | 36 ++++---- qt/gen_qabstractslider.h | 12 +-- qt/gen_qabstractspinbox.cpp | 2 +- qt/gen_qabstractspinbox.go | 6 +- qt/gen_qabstractspinbox.h | 2 +- qt/gen_qabstractstate.cpp | 2 +- qt/gen_qabstractstate.go | 6 +- qt/gen_qabstractstate.h | 2 +- qt/gen_qabstracttextdocumentlayout.cpp | 10 +-- qt/gen_qabstracttextdocumentlayout.go | 30 +++---- qt/gen_qabstracttextdocumentlayout.h | 10 +-- qt/gen_qaction.cpp | 10 +-- qt/gen_qaction.go | 30 +++---- qt/gen_qaction.h | 10 +-- qt/gen_qactiongroup.cpp | 4 +- qt/gen_qactiongroup.go | 12 +-- qt/gen_qactiongroup.h | 4 +- qt/gen_qapplication.cpp | 2 +- qt/gen_qapplication.go | 6 +- qt/gen_qapplication.h | 2 +- qt/gen_qbuttongroup.cpp | 24 +++--- qt/gen_qbuttongroup.go | 72 ++++++++-------- qt/gen_qbuttongroup.h | 24 +++--- qt/gen_qcalendarwidget.cpp | 8 +- qt/gen_qcalendarwidget.go | 24 +++--- qt/gen_qcalendarwidget.h | 8 +- qt/gen_qcheckbox.cpp | 2 +- qt/gen_qcheckbox.go | 6 +- qt/gen_qcheckbox.h | 2 +- qt/gen_qclipboard.cpp | 8 +- qt/gen_qclipboard.go | 24 +++--- qt/gen_qclipboard.h | 8 +- qt/gen_qcolordialog.cpp | 4 +- qt/gen_qcolordialog.go | 12 +-- qt/gen_qcolordialog.h | 4 +- qt/gen_qcolumnview.cpp | 2 +- qt/gen_qcolumnview.go | 6 +- qt/gen_qcolumnview.h | 2 +- qt/gen_qcombobox.cpp | 20 ++--- qt/gen_qcombobox.go | 60 ++++++------- qt/gen_qcombobox.h | 20 ++--- qt/gen_qcompleter.cpp | 8 +- qt/gen_qcompleter.go | 24 +++--- qt/gen_qcompleter.h | 8 +- qt/gen_qcoreapplication.cpp | 8 +- qt/gen_qcoreapplication.go | 24 +++--- qt/gen_qcoreapplication.h | 8 +- qt/gen_qdatawidgetmapper.cpp | 2 +- qt/gen_qdatawidgetmapper.go | 6 +- qt/gen_qdatawidgetmapper.h | 2 +- qt/gen_qdatetimeedit.cpp | 10 +-- qt/gen_qdatetimeedit.go | 30 +++---- qt/gen_qdatetimeedit.h | 10 +-- qt/gen_qdesktopwidget.cpp | 8 +- qt/gen_qdesktopwidget.go | 24 +++--- qt/gen_qdesktopwidget.h | 8 +- qt/gen_qdialog.cpp | 6 +- qt/gen_qdialog.go | 18 ++-- qt/gen_qdialog.h | 6 +- qt/gen_qdialogbuttonbox.cpp | 8 +- qt/gen_qdialogbuttonbox.go | 24 +++--- qt/gen_qdialogbuttonbox.h | 8 +- qt/gen_qdockwidget.cpp | 10 +-- qt/gen_qdockwidget.go | 30 +++---- qt/gen_qdockwidget.h | 10 +-- qt/gen_qdrag.cpp | 4 +- qt/gen_qdrag.go | 12 +-- qt/gen_qdrag.h | 4 +- qt/gen_qfiledialog.cpp | 18 ++-- qt/gen_qfiledialog.go | 54 ++++++------ qt/gen_qfiledialog.h | 18 ++-- qt/gen_qfilesystemmodel.cpp | 6 +- qt/gen_qfilesystemmodel.go | 18 ++-- qt/gen_qfilesystemmodel.h | 6 +- qt/gen_qfontcombobox.cpp | 2 +- qt/gen_qfontcombobox.go | 6 +- qt/gen_qfontcombobox.h | 2 +- qt/gen_qfontdialog.cpp | 4 +- qt/gen_qfontdialog.go | 12 +-- qt/gen_qfontdialog.h | 4 +- qt/gen_qfuturewatcher.cpp | 20 ++--- qt/gen_qfuturewatcher.go | 60 ++++++------- qt/gen_qfuturewatcher.h | 20 ++--- qt/gen_qgraphicseffect.cpp | 20 ++--- qt/gen_qgraphicseffect.go | 60 ++++++------- qt/gen_qgraphicseffect.h | 20 ++--- qt/gen_qgraphicsitem.cpp | 28 +++--- qt/gen_qgraphicsitem.go | 84 +++++++++--------- qt/gen_qgraphicsitem.h | 28 +++--- qt/gen_qgraphicsscene.cpp | 8 +- qt/gen_qgraphicsscene.go | 24 +++--- qt/gen_qgraphicsscene.h | 8 +- qt/gen_qgraphicstransform.cpp | 16 ++-- qt/gen_qgraphicstransform.go | 48 +++++------ qt/gen_qgraphicstransform.h | 16 ++-- qt/gen_qgraphicsview.cpp | 2 +- qt/gen_qgraphicsview.go | 6 +- qt/gen_qgraphicsview.h | 2 +- qt/gen_qgraphicswidget.cpp | 4 +- qt/gen_qgraphicswidget.go | 12 +-- qt/gen_qgraphicswidget.h | 4 +- qt/gen_qgroupbox.cpp | 6 +- qt/gen_qgroupbox.go | 18 ++-- qt/gen_qgroupbox.h | 6 +- qt/gen_qguiapplication.cpp | 28 +++--- qt/gen_qguiapplication.go | 84 +++++++++--------- qt/gen_qguiapplication.h | 28 +++--- qt/gen_qheaderview.cpp | 20 ++--- qt/gen_qheaderview.go | 60 ++++++------- qt/gen_qheaderview.h | 20 ++--- qt/gen_qinputdialog.cpp | 12 +-- qt/gen_qinputdialog.go | 36 ++++---- qt/gen_qinputdialog.h | 12 +-- qt/gen_qinputmethod.cpp | 16 ++-- qt/gen_qinputmethod.go | 48 +++++------ qt/gen_qinputmethod.h | 16 ++-- qt/gen_qiodevice.cpp | 12 +-- qt/gen_qiodevice.go | 36 ++++---- qt/gen_qiodevice.h | 12 +-- qt/gen_qitemselectionmodel.cpp | 8 +- qt/gen_qitemselectionmodel.go | 24 +++--- qt/gen_qitemselectionmodel.h | 8 +- qt/gen_qkeysequenceedit.cpp | 4 +- qt/gen_qkeysequenceedit.go | 12 +-- qt/gen_qkeysequenceedit.h | 4 +- qt/gen_qlabel.cpp | 4 +- qt/gen_qlabel.go | 12 +-- qt/gen_qlabel.h | 4 +- qt/gen_qlcdnumber.cpp | 2 +- qt/gen_qlcdnumber.go | 6 +- qt/gen_qlcdnumber.h | 2 +- qt/gen_qlineedit.cpp | 14 +-- qt/gen_qlineedit.go | 42 ++++----- qt/gen_qlineedit.h | 14 +-- qt/gen_qlistview.cpp | 2 +- qt/gen_qlistview.go | 6 +- qt/gen_qlistview.h | 2 +- qt/gen_qlistwidget.cpp | 20 ++--- qt/gen_qlistwidget.go | 60 ++++++------- qt/gen_qlistwidget.h | 20 ++--- qt/gen_qmainwindow.cpp | 6 +- qt/gen_qmainwindow.go | 18 ++-- qt/gen_qmainwindow.h | 6 +- qt/gen_qmdiarea.cpp | 2 +- qt/gen_qmdiarea.go | 6 +- qt/gen_qmdiarea.h | 2 +- qt/gen_qmdisubwindow.cpp | 4 +- qt/gen_qmdisubwindow.go | 12 +-- qt/gen_qmdisubwindow.h | 4 +- qt/gen_qmenu.cpp | 8 +- qt/gen_qmenu.go | 24 +++--- qt/gen_qmenu.h | 8 +- qt/gen_qmenubar.cpp | 4 +- qt/gen_qmenubar.go | 12 +-- qt/gen_qmenubar.h | 4 +- qt/gen_qmessagebox.cpp | 2 +- qt/gen_qmessagebox.go | 6 +- qt/gen_qmessagebox.h | 2 +- qt/gen_qmovie.cpp | 14 +-- qt/gen_qmovie.go | 42 ++++----- qt/gen_qmovie.h | 14 +-- qt/gen_qobject.cpp | 4 +- qt/gen_qobject.go | 12 +-- qt/gen_qobject.h | 4 +- qt/gen_qoffscreensurface.cpp | 2 +- qt/gen_qoffscreensurface.go | 6 +- qt/gen_qoffscreensurface.h | 2 +- qt/gen_qplaintextedit.cpp | 18 ++-- qt/gen_qplaintextedit.go | 54 ++++++------ qt/gen_qplaintextedit.h | 18 ++-- qt/gen_qprocess.cpp | 8 +- qt/gen_qprocess.go | 24 +++--- qt/gen_qprocess.h | 8 +- qt/gen_qprogressbar.cpp | 2 +- qt/gen_qprogressbar.go | 6 +- qt/gen_qprogressbar.h | 2 +- qt/gen_qprogressdialog.cpp | 2 +- qt/gen_qprogressdialog.go | 6 +- qt/gen_qprogressdialog.h | 2 +- qt/gen_qscreen.cpp | 18 ++-- qt/gen_qscreen.go | 54 ++++++------ qt/gen_qscreen.h | 18 ++-- qt/gen_qscroller.cpp | 4 +- qt/gen_qscroller.go | 12 +-- qt/gen_qscroller.h | 4 +- qt/gen_qsequentialanimationgroup.cpp | 2 +- qt/gen_qsequentialanimationgroup.go | 6 +- qt/gen_qsequentialanimationgroup.h | 2 +- qt/gen_qshortcut.cpp | 4 +- qt/gen_qshortcut.go | 12 +-- qt/gen_qshortcut.h | 4 +- qt/gen_qsignalmapper.cpp | 16 ++-- qt/gen_qsignalmapper.go | 48 +++++------ qt/gen_qsignalmapper.h | 16 ++-- qt/gen_qsortfilterproxymodel.cpp | 14 +-- qt/gen_qsortfilterproxymodel.go | 42 ++++----- qt/gen_qsortfilterproxymodel.h | 14 +-- qt/gen_qspinbox.cpp | 12 +-- qt/gen_qspinbox.go | 36 ++++---- qt/gen_qspinbox.h | 12 +-- qt/gen_qsplashscreen.cpp | 2 +- qt/gen_qsplashscreen.go | 6 +- qt/gen_qsplashscreen.h | 2 +- qt/gen_qsplitter.cpp | 2 +- qt/gen_qsplitter.go | 6 +- qt/gen_qsplitter.h | 2 +- qt/gen_qstackedlayout.cpp | 4 +- qt/gen_qstackedlayout.go | 12 +-- qt/gen_qstackedlayout.h | 4 +- qt/gen_qstackedwidget.cpp | 4 +- qt/gen_qstackedwidget.go | 12 +-- qt/gen_qstackedwidget.h | 4 +- qt/gen_qstandarditemmodel.cpp | 2 +- qt/gen_qstandarditemmodel.go | 6 +- qt/gen_qstandarditemmodel.h | 2 +- qt/gen_qstatemachine.cpp | 2 +- qt/gen_qstatemachine.go | 6 +- qt/gen_qstatemachine.h | 2 +- qt/gen_qstatusbar.cpp | 2 +- qt/gen_qstatusbar.go | 6 +- qt/gen_qstatusbar.h | 2 +- qt/gen_qstylehints.cpp | 22 ++--- qt/gen_qstylehints.go | 66 +++++++------- qt/gen_qstylehints.h | 22 ++--- qt/gen_qsystemtrayicon.cpp | 4 +- qt/gen_qsystemtrayicon.go | 12 +-- qt/gen_qsystemtrayicon.h | 4 +- qt/gen_qtabbar.cpp | 10 +-- qt/gen_qtabbar.go | 30 +++---- qt/gen_qtabbar.h | 10 +-- qt/gen_qtablewidget.cpp | 30 +++---- qt/gen_qtablewidget.go | 90 +++++++++---------- qt/gen_qtablewidget.h | 30 +++---- qt/gen_qtabwidget.cpp | 8 +- qt/gen_qtabwidget.go | 24 +++--- qt/gen_qtabwidget.h | 8 +- qt/gen_qtextbrowser.cpp | 14 +-- qt/gen_qtextbrowser.go | 42 ++++----- qt/gen_qtextbrowser.h | 14 +-- qt/gen_qtextdocument.cpp | 20 ++--- qt/gen_qtextdocument.go | 60 ++++++------- qt/gen_qtextdocument.h | 20 ++--- qt/gen_qtextedit.cpp | 14 +-- qt/gen_qtextedit.go | 42 ++++----- qt/gen_qtextedit.h | 14 +-- qt/gen_qtoolbar.cpp | 16 ++-- qt/gen_qtoolbar.go | 48 +++++------ qt/gen_qtoolbar.h | 16 ++-- qt/gen_qtoolbox.cpp | 2 +- qt/gen_qtoolbox.go | 6 +- qt/gen_qtoolbox.h | 2 +- qt/gen_qtoolbutton.cpp | 2 +- qt/gen_qtoolbutton.go | 6 +- qt/gen_qtoolbutton.h | 2 +- qt/gen_qtreeview.cpp | 4 +- qt/gen_qtreeview.go | 12 +-- qt/gen_qtreeview.h | 4 +- qt/gen_qtreewidget.cpp | 20 ++--- qt/gen_qtreewidget.go | 60 ++++++------- qt/gen_qtreewidget.h | 20 ++--- qt/gen_qundogroup.cpp | 14 +-- qt/gen_qundogroup.go | 42 ++++----- qt/gen_qundogroup.h | 14 +-- qt/gen_qundostack.cpp | 12 +-- qt/gen_qundostack.go | 36 ++++---- qt/gen_qundostack.h | 12 +-- qt/gen_qvalidator.cpp | 18 ++-- qt/gen_qvalidator.go | 54 ++++++------ qt/gen_qvalidator.h | 18 ++-- qt/gen_qvariantanimation.cpp | 2 +- qt/gen_qvariantanimation.go | 6 +- qt/gen_qvariantanimation.h | 2 +- qt/gen_qwidget.cpp | 8 +- qt/gen_qwidget.go | 24 +++--- qt/gen_qwidget.h | 8 +- qt/gen_qwindow.cpp | 38 ++++----- qt/gen_qwindow.go | 114 ++++++++++++------------- qt/gen_qwindow.h | 38 ++++----- qt/gen_qwizard.cpp | 12 +-- qt/gen_qwizard.go | 36 ++++---- qt/gen_qwizard.h | 12 +-- 300 files changed, 2375 insertions(+), 2375 deletions(-) diff --git a/qt/gen_qabstractanimation.cpp b/qt/gen_qabstractanimation.cpp index 4a70573..e8ef02a 100644 --- a/qt/gen_qabstractanimation.cpp +++ b/qt/gen_qabstractanimation.cpp @@ -82,7 +82,7 @@ void QAbstractAnimation_Finished(QAbstractAnimation* self) { self->finished(); } -void QAbstractAnimation_connect_Finished(QAbstractAnimation* self, void* slot) { +void QAbstractAnimation_connect_Finished(QAbstractAnimation* self, intptr_t slot) { QAbstractAnimation::connect(self, static_cast(&QAbstractAnimation::finished), self, [=]() { miqt_exec_callback_QAbstractAnimation_Finished(slot); }); @@ -92,7 +92,7 @@ void QAbstractAnimation_StateChanged(QAbstractAnimation* self, int newState, int self->stateChanged(static_cast(newState), static_cast(oldState)); } -void QAbstractAnimation_connect_StateChanged(QAbstractAnimation* self, void* slot) { +void QAbstractAnimation_connect_StateChanged(QAbstractAnimation* self, intptr_t slot) { QAbstractAnimation::connect(self, static_cast(&QAbstractAnimation::stateChanged), self, [=](QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QAbstractAnimation::State newState_ret = newState; int sigval1 = static_cast(newState_ret); @@ -106,7 +106,7 @@ void QAbstractAnimation_CurrentLoopChanged(QAbstractAnimation* self, int current self->currentLoopChanged(static_cast(currentLoop)); } -void QAbstractAnimation_connect_CurrentLoopChanged(QAbstractAnimation* self, void* slot) { +void QAbstractAnimation_connect_CurrentLoopChanged(QAbstractAnimation* self, intptr_t slot) { QAbstractAnimation::connect(self, static_cast(&QAbstractAnimation::currentLoopChanged), self, [=](int currentLoop) { int sigval1 = currentLoop; miqt_exec_callback_QAbstractAnimation_CurrentLoopChanged(slot, sigval1); @@ -117,7 +117,7 @@ void QAbstractAnimation_DirectionChanged(QAbstractAnimation* self, int param1) { self->directionChanged(static_cast(param1)); } -void QAbstractAnimation_connect_DirectionChanged(QAbstractAnimation* self, void* slot) { +void QAbstractAnimation_connect_DirectionChanged(QAbstractAnimation* self, intptr_t slot) { QAbstractAnimation::connect(self, static_cast(&QAbstractAnimation::directionChanged), self, [=](QAbstractAnimation::Direction param1) { QAbstractAnimation::Direction param1_ret = param1; int sigval1 = static_cast(param1_ret); @@ -249,7 +249,7 @@ void QAnimationDriver_Started(QAnimationDriver* self) { self->started(); } -void QAnimationDriver_connect_Started(QAnimationDriver* self, void* slot) { +void QAnimationDriver_connect_Started(QAnimationDriver* self, intptr_t slot) { QAnimationDriver::connect(self, static_cast(&QAnimationDriver::started), self, [=]() { miqt_exec_callback_QAnimationDriver_Started(slot); }); @@ -259,7 +259,7 @@ void QAnimationDriver_Stopped(QAnimationDriver* self) { self->stopped(); } -void QAnimationDriver_connect_Stopped(QAnimationDriver* self, void* slot) { +void QAnimationDriver_connect_Stopped(QAnimationDriver* self, intptr_t slot) { QAnimationDriver::connect(self, static_cast(&QAnimationDriver::stopped), self, [=]() { miqt_exec_callback_QAnimationDriver_Stopped(slot); }); diff --git a/qt/gen_qabstractanimation.go b/qt/gen_qabstractanimation.go index 9357509..c8d24c5 100644 --- a/qt/gen_qabstractanimation.go +++ b/qt/gen_qabstractanimation.go @@ -135,12 +135,12 @@ func (this *QAbstractAnimation) Finished() { C.QAbstractAnimation_Finished(this.h) } func (this *QAbstractAnimation) OnFinished(slot func()) { - C.QAbstractAnimation_connect_Finished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractAnimation_connect_Finished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractAnimation_Finished -func miqt_exec_callback_QAbstractAnimation_Finished(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractAnimation_Finished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -152,12 +152,12 @@ func (this *QAbstractAnimation) StateChanged(newState QAbstractAnimation__State, C.QAbstractAnimation_StateChanged(this.h, (C.int)(newState), (C.int)(oldState)) } func (this *QAbstractAnimation) OnStateChanged(slot func(newState QAbstractAnimation__State, oldState QAbstractAnimation__State)) { - C.QAbstractAnimation_connect_StateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractAnimation_connect_StateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractAnimation_StateChanged -func miqt_exec_callback_QAbstractAnimation_StateChanged(cb *C.void, newState C.int, oldState C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newState QAbstractAnimation__State, oldState QAbstractAnimation__State)) +func miqt_exec_callback_QAbstractAnimation_StateChanged(cb C.intptr_t, newState C.int, oldState C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(newState QAbstractAnimation__State, oldState QAbstractAnimation__State)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -174,12 +174,12 @@ func (this *QAbstractAnimation) CurrentLoopChanged(currentLoop int) { C.QAbstractAnimation_CurrentLoopChanged(this.h, (C.int)(currentLoop)) } func (this *QAbstractAnimation) OnCurrentLoopChanged(slot func(currentLoop int)) { - C.QAbstractAnimation_connect_CurrentLoopChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractAnimation_connect_CurrentLoopChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractAnimation_CurrentLoopChanged -func miqt_exec_callback_QAbstractAnimation_CurrentLoopChanged(cb *C.void, currentLoop C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(currentLoop int)) +func miqt_exec_callback_QAbstractAnimation_CurrentLoopChanged(cb C.intptr_t, currentLoop C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(currentLoop int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -194,12 +194,12 @@ func (this *QAbstractAnimation) DirectionChanged(param1 QAbstractAnimation__Dire C.QAbstractAnimation_DirectionChanged(this.h, (C.int)(param1)) } func (this *QAbstractAnimation) OnDirectionChanged(slot func(param1 QAbstractAnimation__Direction)) { - C.QAbstractAnimation_connect_DirectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractAnimation_connect_DirectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractAnimation_DirectionChanged -func miqt_exec_callback_QAbstractAnimation_DirectionChanged(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 QAbstractAnimation__Direction)) +func miqt_exec_callback_QAbstractAnimation_DirectionChanged(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 QAbstractAnimation__Direction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -391,12 +391,12 @@ func (this *QAnimationDriver) Started() { C.QAnimationDriver_Started(this.h) } func (this *QAnimationDriver) OnStarted(slot func()) { - C.QAnimationDriver_connect_Started(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAnimationDriver_connect_Started(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAnimationDriver_Started -func miqt_exec_callback_QAnimationDriver_Started(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAnimationDriver_Started(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -408,12 +408,12 @@ func (this *QAnimationDriver) Stopped() { C.QAnimationDriver_Stopped(this.h) } func (this *QAnimationDriver) OnStopped(slot func()) { - C.QAnimationDriver_connect_Stopped(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAnimationDriver_connect_Stopped(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAnimationDriver_Stopped -func miqt_exec_callback_QAnimationDriver_Stopped(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAnimationDriver_Stopped(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractanimation.h b/qt/gen_qabstractanimation.h index 5a5e171..cec4126 100644 --- a/qt/gen_qabstractanimation.h +++ b/qt/gen_qabstractanimation.h @@ -43,13 +43,13 @@ int QAbstractAnimation_CurrentLoop(const QAbstractAnimation* self); int QAbstractAnimation_Duration(const QAbstractAnimation* self); int QAbstractAnimation_TotalDuration(const QAbstractAnimation* self); void QAbstractAnimation_Finished(QAbstractAnimation* self); -void QAbstractAnimation_connect_Finished(QAbstractAnimation* self, void* slot); +void QAbstractAnimation_connect_Finished(QAbstractAnimation* self, intptr_t slot); void QAbstractAnimation_StateChanged(QAbstractAnimation* self, int newState, int oldState); -void QAbstractAnimation_connect_StateChanged(QAbstractAnimation* self, void* slot); +void QAbstractAnimation_connect_StateChanged(QAbstractAnimation* self, intptr_t slot); void QAbstractAnimation_CurrentLoopChanged(QAbstractAnimation* self, int currentLoop); -void QAbstractAnimation_connect_CurrentLoopChanged(QAbstractAnimation* self, void* slot); +void QAbstractAnimation_connect_CurrentLoopChanged(QAbstractAnimation* self, intptr_t slot); void QAbstractAnimation_DirectionChanged(QAbstractAnimation* self, int param1); -void QAbstractAnimation_connect_DirectionChanged(QAbstractAnimation* self, void* slot); +void QAbstractAnimation_connect_DirectionChanged(QAbstractAnimation* self, intptr_t slot); void QAbstractAnimation_Start(QAbstractAnimation* self); void QAbstractAnimation_Pause(QAbstractAnimation* self); void QAbstractAnimation_Resume(QAbstractAnimation* self); @@ -77,9 +77,9 @@ long long QAnimationDriver_Elapsed(const QAnimationDriver* self); void QAnimationDriver_SetStartTime(QAnimationDriver* self, long long startTime); long long QAnimationDriver_StartTime(const QAnimationDriver* self); void QAnimationDriver_Started(QAnimationDriver* self); -void QAnimationDriver_connect_Started(QAnimationDriver* self, void* slot); +void QAnimationDriver_connect_Started(QAnimationDriver* self, intptr_t slot); void QAnimationDriver_Stopped(QAnimationDriver* self); -void QAnimationDriver_connect_Stopped(QAnimationDriver* self, void* slot); +void QAnimationDriver_connect_Stopped(QAnimationDriver* self, intptr_t slot); struct miqt_string* QAnimationDriver_Tr2(const char* s, const char* c); struct miqt_string* QAnimationDriver_Tr3(const char* s, const char* c, int n); struct miqt_string* QAnimationDriver_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qabstractbutton.cpp b/qt/gen_qabstractbutton.cpp index 8105db7..3df0002 100644 --- a/qt/gen_qabstractbutton.cpp +++ b/qt/gen_qabstractbutton.cpp @@ -145,7 +145,7 @@ void QAbstractButton_Pressed(QAbstractButton* self) { self->pressed(); } -void QAbstractButton_connect_Pressed(QAbstractButton* self, void* slot) { +void QAbstractButton_connect_Pressed(QAbstractButton* self, intptr_t slot) { QAbstractButton::connect(self, static_cast(&QAbstractButton::pressed), self, [=]() { miqt_exec_callback_QAbstractButton_Pressed(slot); }); @@ -155,7 +155,7 @@ void QAbstractButton_Released(QAbstractButton* self) { self->released(); } -void QAbstractButton_connect_Released(QAbstractButton* self, void* slot) { +void QAbstractButton_connect_Released(QAbstractButton* self, intptr_t slot) { QAbstractButton::connect(self, static_cast(&QAbstractButton::released), self, [=]() { miqt_exec_callback_QAbstractButton_Released(slot); }); @@ -165,7 +165,7 @@ void QAbstractButton_Clicked(QAbstractButton* self) { self->clicked(); } -void QAbstractButton_connect_Clicked(QAbstractButton* self, void* slot) { +void QAbstractButton_connect_Clicked(QAbstractButton* self, intptr_t slot) { QAbstractButton::connect(self, static_cast(&QAbstractButton::clicked), self, [=]() { miqt_exec_callback_QAbstractButton_Clicked(slot); }); @@ -175,7 +175,7 @@ void QAbstractButton_Toggled(QAbstractButton* self, bool checked) { self->toggled(checked); } -void QAbstractButton_connect_Toggled(QAbstractButton* self, void* slot) { +void QAbstractButton_connect_Toggled(QAbstractButton* self, intptr_t slot) { QAbstractButton::connect(self, static_cast(&QAbstractButton::toggled), self, [=](bool checked) { bool sigval1 = checked; miqt_exec_callback_QAbstractButton_Toggled(slot, sigval1); @@ -218,7 +218,7 @@ void QAbstractButton_Clicked1(QAbstractButton* self, bool checked) { self->clicked(checked); } -void QAbstractButton_connect_Clicked1(QAbstractButton* self, void* slot) { +void QAbstractButton_connect_Clicked1(QAbstractButton* self, intptr_t slot) { QAbstractButton::connect(self, static_cast(&QAbstractButton::clicked), self, [=](bool checked) { bool sigval1 = checked; miqt_exec_callback_QAbstractButton_Clicked1(slot, sigval1); diff --git a/qt/gen_qabstractbutton.go b/qt/gen_qabstractbutton.go index 64d9eb3..8bbf7a8 100644 --- a/qt/gen_qabstractbutton.go +++ b/qt/gen_qabstractbutton.go @@ -187,12 +187,12 @@ func (this *QAbstractButton) Pressed() { C.QAbstractButton_Pressed(this.h) } func (this *QAbstractButton) OnPressed(slot func()) { - C.QAbstractButton_connect_Pressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractButton_connect_Pressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractButton_Pressed -func miqt_exec_callback_QAbstractButton_Pressed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractButton_Pressed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -204,12 +204,12 @@ func (this *QAbstractButton) Released() { C.QAbstractButton_Released(this.h) } func (this *QAbstractButton) OnReleased(slot func()) { - C.QAbstractButton_connect_Released(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractButton_connect_Released(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractButton_Released -func miqt_exec_callback_QAbstractButton_Released(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractButton_Released(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -221,12 +221,12 @@ func (this *QAbstractButton) Clicked() { C.QAbstractButton_Clicked(this.h) } func (this *QAbstractButton) OnClicked(slot func()) { - C.QAbstractButton_connect_Clicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractButton_connect_Clicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractButton_Clicked -func miqt_exec_callback_QAbstractButton_Clicked(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractButton_Clicked(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -238,12 +238,12 @@ func (this *QAbstractButton) Toggled(checked bool) { C.QAbstractButton_Toggled(this.h, (C.bool)(checked)) } func (this *QAbstractButton) OnToggled(slot func(checked bool)) { - C.QAbstractButton_connect_Toggled(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractButton_connect_Toggled(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractButton_Toggled -func miqt_exec_callback_QAbstractButton_Toggled(cb *C.void, checked C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(checked bool)) +func miqt_exec_callback_QAbstractButton_Toggled(cb C.intptr_t, checked C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(checked bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -306,12 +306,12 @@ func (this *QAbstractButton) Clicked1(checked bool) { C.QAbstractButton_Clicked1(this.h, (C.bool)(checked)) } func (this *QAbstractButton) OnClicked1(slot func(checked bool)) { - C.QAbstractButton_connect_Clicked1(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractButton_connect_Clicked1(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractButton_Clicked1 -func miqt_exec_callback_QAbstractButton_Clicked1(cb *C.void, checked C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(checked bool)) +func miqt_exec_callback_QAbstractButton_Clicked1(cb C.intptr_t, checked C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(checked bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractbutton.h b/qt/gen_qabstractbutton.h index 2f01ab5..da72c53 100644 --- a/qt/gen_qabstractbutton.h +++ b/qt/gen_qabstractbutton.h @@ -60,20 +60,20 @@ void QAbstractButton_Click(QAbstractButton* self); void QAbstractButton_Toggle(QAbstractButton* self); void QAbstractButton_SetChecked(QAbstractButton* self, bool checked); void QAbstractButton_Pressed(QAbstractButton* self); -void QAbstractButton_connect_Pressed(QAbstractButton* self, void* slot); +void QAbstractButton_connect_Pressed(QAbstractButton* self, intptr_t slot); void QAbstractButton_Released(QAbstractButton* self); -void QAbstractButton_connect_Released(QAbstractButton* self, void* slot); +void QAbstractButton_connect_Released(QAbstractButton* self, intptr_t slot); void QAbstractButton_Clicked(QAbstractButton* self); -void QAbstractButton_connect_Clicked(QAbstractButton* self, void* slot); +void QAbstractButton_connect_Clicked(QAbstractButton* self, intptr_t slot); void QAbstractButton_Toggled(QAbstractButton* self, bool checked); -void QAbstractButton_connect_Toggled(QAbstractButton* self, void* slot); +void QAbstractButton_connect_Toggled(QAbstractButton* self, intptr_t slot); struct miqt_string* QAbstractButton_Tr2(const char* s, const char* c); struct miqt_string* QAbstractButton_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractButton_TrUtf82(const char* s, const char* c); struct miqt_string* QAbstractButton_TrUtf83(const char* s, const char* c, int n); void QAbstractButton_AnimateClick1(QAbstractButton* self, int msec); void QAbstractButton_Clicked1(QAbstractButton* self, bool checked); -void QAbstractButton_connect_Clicked1(QAbstractButton* self, void* slot); +void QAbstractButton_connect_Clicked1(QAbstractButton* self, intptr_t slot); void QAbstractButton_Delete(QAbstractButton* self); #ifdef __cplusplus diff --git a/qt/gen_qabstracteventdispatcher.cpp b/qt/gen_qabstracteventdispatcher.cpp index 8ad79dc..ea3d5ee 100644 --- a/qt/gen_qabstracteventdispatcher.cpp +++ b/qt/gen_qabstracteventdispatcher.cpp @@ -125,7 +125,7 @@ void QAbstractEventDispatcher_AboutToBlock(QAbstractEventDispatcher* self) { self->aboutToBlock(); } -void QAbstractEventDispatcher_connect_AboutToBlock(QAbstractEventDispatcher* self, void* slot) { +void QAbstractEventDispatcher_connect_AboutToBlock(QAbstractEventDispatcher* self, intptr_t slot) { QAbstractEventDispatcher::connect(self, static_cast(&QAbstractEventDispatcher::aboutToBlock), self, [=]() { miqt_exec_callback_QAbstractEventDispatcher_AboutToBlock(slot); }); @@ -135,7 +135,7 @@ void QAbstractEventDispatcher_Awake(QAbstractEventDispatcher* self) { self->awake(); } -void QAbstractEventDispatcher_connect_Awake(QAbstractEventDispatcher* self, void* slot) { +void QAbstractEventDispatcher_connect_Awake(QAbstractEventDispatcher* self, intptr_t slot) { QAbstractEventDispatcher::connect(self, static_cast(&QAbstractEventDispatcher::awake), self, [=]() { miqt_exec_callback_QAbstractEventDispatcher_Awake(slot); }); diff --git a/qt/gen_qabstracteventdispatcher.go b/qt/gen_qabstracteventdispatcher.go index 60d54be..6c842ce 100644 --- a/qt/gen_qabstracteventdispatcher.go +++ b/qt/gen_qabstracteventdispatcher.go @@ -155,12 +155,12 @@ func (this *QAbstractEventDispatcher) AboutToBlock() { C.QAbstractEventDispatcher_AboutToBlock(this.h) } func (this *QAbstractEventDispatcher) OnAboutToBlock(slot func()) { - C.QAbstractEventDispatcher_connect_AboutToBlock(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractEventDispatcher_connect_AboutToBlock(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractEventDispatcher_AboutToBlock -func miqt_exec_callback_QAbstractEventDispatcher_AboutToBlock(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractEventDispatcher_AboutToBlock(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -172,12 +172,12 @@ func (this *QAbstractEventDispatcher) Awake() { C.QAbstractEventDispatcher_Awake(this.h) } func (this *QAbstractEventDispatcher) OnAwake(slot func()) { - C.QAbstractEventDispatcher_connect_Awake(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractEventDispatcher_connect_Awake(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractEventDispatcher_Awake -func miqt_exec_callback_QAbstractEventDispatcher_Awake(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractEventDispatcher_Awake(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstracteventdispatcher.h b/qt/gen_qabstracteventdispatcher.h index bb01f57..f21e63a 100644 --- a/qt/gen_qabstracteventdispatcher.h +++ b/qt/gen_qabstracteventdispatcher.h @@ -61,9 +61,9 @@ void QAbstractEventDispatcher_InstallNativeEventFilter(QAbstractEventDispatcher* void QAbstractEventDispatcher_RemoveNativeEventFilter(QAbstractEventDispatcher* self, QAbstractNativeEventFilter* filterObj); bool QAbstractEventDispatcher_FilterNativeEvent(QAbstractEventDispatcher* self, QByteArray* eventType, void* message, long* result); void QAbstractEventDispatcher_AboutToBlock(QAbstractEventDispatcher* self); -void QAbstractEventDispatcher_connect_AboutToBlock(QAbstractEventDispatcher* self, void* slot); +void QAbstractEventDispatcher_connect_AboutToBlock(QAbstractEventDispatcher* self, intptr_t slot); void QAbstractEventDispatcher_Awake(QAbstractEventDispatcher* self); -void QAbstractEventDispatcher_connect_Awake(QAbstractEventDispatcher* self, void* slot); +void QAbstractEventDispatcher_connect_Awake(QAbstractEventDispatcher* self, intptr_t slot); struct miqt_string* QAbstractEventDispatcher_Tr2(const char* s, const char* c); struct miqt_string* QAbstractEventDispatcher_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractEventDispatcher_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qabstractitemdelegate.cpp b/qt/gen_qabstractitemdelegate.cpp index ec564d5..2affb2e 100644 --- a/qt/gen_qabstractitemdelegate.cpp +++ b/qt/gen_qabstractitemdelegate.cpp @@ -101,7 +101,7 @@ void QAbstractItemDelegate_CommitData(QAbstractItemDelegate* self, QWidget* edit self->commitData(editor); } -void QAbstractItemDelegate_connect_CommitData(QAbstractItemDelegate* self, void* slot) { +void QAbstractItemDelegate_connect_CommitData(QAbstractItemDelegate* self, intptr_t slot) { QAbstractItemDelegate::connect(self, static_cast(&QAbstractItemDelegate::commitData), self, [=](QWidget* editor) { QWidget* sigval1 = editor; miqt_exec_callback_QAbstractItemDelegate_CommitData(slot, sigval1); @@ -112,7 +112,7 @@ void QAbstractItemDelegate_CloseEditor(QAbstractItemDelegate* self, QWidget* edi self->closeEditor(editor); } -void QAbstractItemDelegate_connect_CloseEditor(QAbstractItemDelegate* self, void* slot) { +void QAbstractItemDelegate_connect_CloseEditor(QAbstractItemDelegate* self, intptr_t slot) { QAbstractItemDelegate::connect(self, static_cast(&QAbstractItemDelegate::closeEditor), self, [=](QWidget* editor) { QWidget* sigval1 = editor; miqt_exec_callback_QAbstractItemDelegate_CloseEditor(slot, sigval1); @@ -123,7 +123,7 @@ void QAbstractItemDelegate_SizeHintChanged(QAbstractItemDelegate* self, QModelIn self->sizeHintChanged(*param1); } -void QAbstractItemDelegate_connect_SizeHintChanged(QAbstractItemDelegate* self, void* slot) { +void QAbstractItemDelegate_connect_SizeHintChanged(QAbstractItemDelegate* self, intptr_t slot) { QAbstractItemDelegate::connect(self, static_cast(&QAbstractItemDelegate::sizeHintChanged), self, [=](const QModelIndex& param1) { const QModelIndex& param1_ret = param1; // Cast returned reference into pointer @@ -164,7 +164,7 @@ void QAbstractItemDelegate_CloseEditor2(QAbstractItemDelegate* self, QWidget* ed self->closeEditor(editor, static_cast(hint)); } -void QAbstractItemDelegate_connect_CloseEditor2(QAbstractItemDelegate* self, void* slot) { +void QAbstractItemDelegate_connect_CloseEditor2(QAbstractItemDelegate* self, intptr_t slot) { QAbstractItemDelegate::connect(self, static_cast(&QAbstractItemDelegate::closeEditor), self, [=](QWidget* editor, QAbstractItemDelegate::EndEditHint hint) { QWidget* sigval1 = editor; QAbstractItemDelegate::EndEditHint hint_ret = hint; diff --git a/qt/gen_qabstractitemdelegate.go b/qt/gen_qabstractitemdelegate.go index 1fe3305..6b04c8e 100644 --- a/qt/gen_qabstractitemdelegate.go +++ b/qt/gen_qabstractitemdelegate.go @@ -138,12 +138,12 @@ func (this *QAbstractItemDelegate) CommitData(editor *QWidget) { C.QAbstractItemDelegate_CommitData(this.h, editor.cPointer()) } func (this *QAbstractItemDelegate) OnCommitData(slot func(editor *QWidget)) { - C.QAbstractItemDelegate_connect_CommitData(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemDelegate_connect_CommitData(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemDelegate_CommitData -func miqt_exec_callback_QAbstractItemDelegate_CommitData(cb *C.void, editor *C.QWidget) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(editor *QWidget)) +func miqt_exec_callback_QAbstractItemDelegate_CommitData(cb C.intptr_t, editor *C.QWidget) { + gofunc, ok := cgo.Handle(cb).Value().(func(editor *QWidget)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -158,12 +158,12 @@ func (this *QAbstractItemDelegate) CloseEditor(editor *QWidget) { C.QAbstractItemDelegate_CloseEditor(this.h, editor.cPointer()) } func (this *QAbstractItemDelegate) OnCloseEditor(slot func(editor *QWidget)) { - C.QAbstractItemDelegate_connect_CloseEditor(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemDelegate_connect_CloseEditor(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemDelegate_CloseEditor -func miqt_exec_callback_QAbstractItemDelegate_CloseEditor(cb *C.void, editor *C.QWidget) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(editor *QWidget)) +func miqt_exec_callback_QAbstractItemDelegate_CloseEditor(cb C.intptr_t, editor *C.QWidget) { + gofunc, ok := cgo.Handle(cb).Value().(func(editor *QWidget)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -178,12 +178,12 @@ func (this *QAbstractItemDelegate) SizeHintChanged(param1 *QModelIndex) { C.QAbstractItemDelegate_SizeHintChanged(this.h, param1.cPointer()) } func (this *QAbstractItemDelegate) OnSizeHintChanged(slot func(param1 *QModelIndex)) { - C.QAbstractItemDelegate_connect_SizeHintChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemDelegate_connect_SizeHintChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemDelegate_SizeHintChanged -func miqt_exec_callback_QAbstractItemDelegate_SizeHintChanged(cb *C.void, param1 *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QModelIndex)) +func miqt_exec_callback_QAbstractItemDelegate_SizeHintChanged(cb C.intptr_t, param1 *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -242,12 +242,12 @@ func (this *QAbstractItemDelegate) CloseEditor2(editor *QWidget, hint QAbstractI C.QAbstractItemDelegate_CloseEditor2(this.h, editor.cPointer(), (C.int)(hint)) } func (this *QAbstractItemDelegate) OnCloseEditor2(slot func(editor *QWidget, hint QAbstractItemDelegate__EndEditHint)) { - C.QAbstractItemDelegate_connect_CloseEditor2(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemDelegate_connect_CloseEditor2(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemDelegate_CloseEditor2 -func miqt_exec_callback_QAbstractItemDelegate_CloseEditor2(cb *C.void, editor *C.QWidget, hint C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(editor *QWidget, hint QAbstractItemDelegate__EndEditHint)) +func miqt_exec_callback_QAbstractItemDelegate_CloseEditor2(cb C.intptr_t, editor *C.QWidget, hint C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(editor *QWidget, hint QAbstractItemDelegate__EndEditHint)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractitemdelegate.h b/qt/gen_qabstractitemdelegate.h index 04e05e0..ef0c455 100644 --- a/qt/gen_qabstractitemdelegate.h +++ b/qt/gen_qabstractitemdelegate.h @@ -57,17 +57,17 @@ struct miqt_string* QAbstractItemDelegate_ElidedText(QFontMetrics* fontMetrics, bool QAbstractItemDelegate_HelpEvent(QAbstractItemDelegate* self, QHelpEvent* event, QAbstractItemView* view, QStyleOptionViewItem* option, QModelIndex* index); struct miqt_array* QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self); void QAbstractItemDelegate_CommitData(QAbstractItemDelegate* self, QWidget* editor); -void QAbstractItemDelegate_connect_CommitData(QAbstractItemDelegate* self, void* slot); +void QAbstractItemDelegate_connect_CommitData(QAbstractItemDelegate* self, intptr_t slot); void QAbstractItemDelegate_CloseEditor(QAbstractItemDelegate* self, QWidget* editor); -void QAbstractItemDelegate_connect_CloseEditor(QAbstractItemDelegate* self, void* slot); +void QAbstractItemDelegate_connect_CloseEditor(QAbstractItemDelegate* self, intptr_t slot); void QAbstractItemDelegate_SizeHintChanged(QAbstractItemDelegate* self, QModelIndex* param1); -void QAbstractItemDelegate_connect_SizeHintChanged(QAbstractItemDelegate* self, void* slot); +void QAbstractItemDelegate_connect_SizeHintChanged(QAbstractItemDelegate* self, intptr_t slot); struct miqt_string* QAbstractItemDelegate_Tr2(const char* s, const char* c); struct miqt_string* QAbstractItemDelegate_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractItemDelegate_TrUtf82(const char* s, const char* c); struct miqt_string* QAbstractItemDelegate_TrUtf83(const char* s, const char* c, int n); void QAbstractItemDelegate_CloseEditor2(QAbstractItemDelegate* self, QWidget* editor, int hint); -void QAbstractItemDelegate_connect_CloseEditor2(QAbstractItemDelegate* self, void* slot); +void QAbstractItemDelegate_connect_CloseEditor2(QAbstractItemDelegate* self, intptr_t slot); void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self); #ifdef __cplusplus diff --git a/qt/gen_qabstractitemmodel.cpp b/qt/gen_qabstractitemmodel.cpp index c180a0a..8b63487 100644 --- a/qt/gen_qabstractitemmodel.cpp +++ b/qt/gen_qabstractitemmodel.cpp @@ -399,7 +399,7 @@ void QAbstractItemModel_DataChanged(QAbstractItemModel* self, QModelIndex* topLe self->dataChanged(*topLeft, *bottomRight); } -void QAbstractItemModel_connect_DataChanged(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_DataChanged(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&)>(&QAbstractItemModel::dataChanged), self, [=](const QModelIndex& topLeft, const QModelIndex& bottomRight) { const QModelIndex& topLeft_ret = topLeft; // Cast returned reference into pointer @@ -415,7 +415,7 @@ void QAbstractItemModel_HeaderDataChanged(QAbstractItemModel* self, int orientat self->headerDataChanged(static_cast(orientation), static_cast(first), static_cast(last)); } -void QAbstractItemModel_connect_HeaderDataChanged(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_HeaderDataChanged(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast(&QAbstractItemModel::headerDataChanged), self, [=](Qt::Orientation orientation, int first, int last) { Qt::Orientation orientation_ret = orientation; int sigval1 = static_cast(orientation_ret); @@ -429,7 +429,7 @@ void QAbstractItemModel_LayoutChanged(QAbstractItemModel* self) { self->layoutChanged(); } -void QAbstractItemModel_connect_LayoutChanged(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_LayoutChanged(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutChanged), self, [=]() { miqt_exec_callback_QAbstractItemModel_LayoutChanged(slot); }); @@ -439,7 +439,7 @@ void QAbstractItemModel_LayoutAboutToBeChanged(QAbstractItemModel* self) { self->layoutAboutToBeChanged(); } -void QAbstractItemModel_connect_LayoutAboutToBeChanged(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_LayoutAboutToBeChanged(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutAboutToBeChanged), self, [=]() { miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged(slot); }); @@ -593,7 +593,7 @@ void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topL self->dataChanged(*topLeft, *bottomRight, roles_QList); } -void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&)>(&QAbstractItemModel::dataChanged), self, [=](const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) { const QModelIndex& topLeft_ret = topLeft; // Cast returned reference into pointer @@ -625,7 +625,7 @@ void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_arr self->layoutChanged(parents_QList); } -void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutChanged), self, [=](const QList& parents) { const QList& parents_ret = parents; // Convert QList<> from C++ memory to manually-managed C memory @@ -651,7 +651,7 @@ void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_arr self->layoutChanged(parents_QList, static_cast(hint)); } -void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutChanged), self, [=](const QList& parents, QAbstractItemModel::LayoutChangeHint hint) { const QList& parents_ret = parents; // Convert QList<> from C++ memory to manually-managed C memory @@ -679,7 +679,7 @@ void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct self->layoutAboutToBeChanged(parents_QList); } -void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutAboutToBeChanged), self, [=](const QList& parents) { const QList& parents_ret = parents; // Convert QList<> from C++ memory to manually-managed C memory @@ -705,7 +705,7 @@ void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct self->layoutAboutToBeChanged(parents_QList, static_cast(hint)); } -void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self, void* slot) { +void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self, intptr_t slot) { QAbstractItemModel::connect(self, static_cast&, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutAboutToBeChanged), self, [=](const QList& parents, QAbstractItemModel::LayoutChangeHint hint) { const QList& parents_ret = parents; // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qabstractitemmodel.go b/qt/gen_qabstractitemmodel.go index 04a323c..da2f83e 100644 --- a/qt/gen_qabstractitemmodel.go +++ b/qt/gen_qabstractitemmodel.go @@ -569,12 +569,12 @@ func (this *QAbstractItemModel) DataChanged(topLeft *QModelIndex, bottomRight *Q C.QAbstractItemModel_DataChanged(this.h, topLeft.cPointer(), bottomRight.cPointer()) } func (this *QAbstractItemModel) OnDataChanged(slot func(topLeft *QModelIndex, bottomRight *QModelIndex)) { - C.QAbstractItemModel_connect_DataChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_DataChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_DataChanged -func miqt_exec_callback_QAbstractItemModel_DataChanged(cb *C.void, topLeft *C.QModelIndex, bottomRight *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(topLeft *QModelIndex, bottomRight *QModelIndex)) +func miqt_exec_callback_QAbstractItemModel_DataChanged(cb C.intptr_t, topLeft *C.QModelIndex, bottomRight *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(topLeft *QModelIndex, bottomRight *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -590,12 +590,12 @@ func (this *QAbstractItemModel) HeaderDataChanged(orientation Orientation, first C.QAbstractItemModel_HeaderDataChanged(this.h, (C.int)(orientation), (C.int)(first), (C.int)(last)) } func (this *QAbstractItemModel) OnHeaderDataChanged(slot func(orientation Orientation, first int, last int)) { - C.QAbstractItemModel_connect_HeaderDataChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_HeaderDataChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_HeaderDataChanged -func miqt_exec_callback_QAbstractItemModel_HeaderDataChanged(cb *C.void, orientation C.int, first C.int, last C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(orientation Orientation, first int, last int)) +func miqt_exec_callback_QAbstractItemModel_HeaderDataChanged(cb C.intptr_t, orientation C.int, first C.int, last C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(orientation Orientation, first int, last int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -614,12 +614,12 @@ func (this *QAbstractItemModel) LayoutChanged() { C.QAbstractItemModel_LayoutChanged(this.h) } func (this *QAbstractItemModel) OnLayoutChanged(slot func()) { - C.QAbstractItemModel_connect_LayoutChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_LayoutChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_LayoutChanged -func miqt_exec_callback_QAbstractItemModel_LayoutChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractItemModel_LayoutChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -631,12 +631,12 @@ func (this *QAbstractItemModel) LayoutAboutToBeChanged() { C.QAbstractItemModel_LayoutAboutToBeChanged(this.h) } func (this *QAbstractItemModel) OnLayoutAboutToBeChanged(slot func()) { - C.QAbstractItemModel_connect_LayoutAboutToBeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_LayoutAboutToBeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged -func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -821,12 +821,12 @@ func (this *QAbstractItemModel) DataChanged3(topLeft *QModelIndex, bottomRight * C.QAbstractItemModel_DataChanged3(this.h, topLeft.cPointer(), bottomRight.cPointer(), roles_ma) } func (this *QAbstractItemModel) OnDataChanged3(slot func(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int)) { - C.QAbstractItemModel_connect_DataChanged3(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_DataChanged3(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_DataChanged3 -func miqt_exec_callback_QAbstractItemModel_DataChanged3(cb *C.void, topLeft *C.QModelIndex, bottomRight *C.QModelIndex, roles *C.struct_miqt_array) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int)) +func miqt_exec_callback_QAbstractItemModel_DataChanged3(cb C.intptr_t, topLeft *C.QModelIndex, bottomRight *C.QModelIndex, roles *C.struct_miqt_array) { + gofunc, ok := cgo.Handle(cb).Value().(func(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -858,12 +858,12 @@ func (this *QAbstractItemModel) LayoutChanged1(parents []QPersistentModelIndex) C.QAbstractItemModel_LayoutChanged1(this.h, parents_ma) } func (this *QAbstractItemModel) OnLayoutChanged1(slot func(parents []QPersistentModelIndex)) { - C.QAbstractItemModel_connect_LayoutChanged1(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_LayoutChanged1(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_LayoutChanged1 -func miqt_exec_callback_QAbstractItemModel_LayoutChanged1(cb *C.void, parents *C.struct_miqt_array) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(parents []QPersistentModelIndex)) +func miqt_exec_callback_QAbstractItemModel_LayoutChanged1(cb C.intptr_t, parents *C.struct_miqt_array) { + gofunc, ok := cgo.Handle(cb).Value().(func(parents []QPersistentModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -896,12 +896,12 @@ func (this *QAbstractItemModel) LayoutChanged2(parents []QPersistentModelIndex, C.QAbstractItemModel_LayoutChanged2(this.h, parents_ma, (C.int)(hint)) } func (this *QAbstractItemModel) OnLayoutChanged2(slot func(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint)) { - C.QAbstractItemModel_connect_LayoutChanged2(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_LayoutChanged2(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_LayoutChanged2 -func miqt_exec_callback_QAbstractItemModel_LayoutChanged2(cb *C.void, parents *C.struct_miqt_array, hint C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint)) +func miqt_exec_callback_QAbstractItemModel_LayoutChanged2(cb C.intptr_t, parents *C.struct_miqt_array, hint C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -936,12 +936,12 @@ func (this *QAbstractItemModel) LayoutAboutToBeChanged1(parents []QPersistentMod C.QAbstractItemModel_LayoutAboutToBeChanged1(this.h, parents_ma) } func (this *QAbstractItemModel) OnLayoutAboutToBeChanged1(slot func(parents []QPersistentModelIndex)) { - C.QAbstractItemModel_connect_LayoutAboutToBeChanged1(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_LayoutAboutToBeChanged1(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1 -func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1(cb *C.void, parents *C.struct_miqt_array) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(parents []QPersistentModelIndex)) +func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1(cb C.intptr_t, parents *C.struct_miqt_array) { + gofunc, ok := cgo.Handle(cb).Value().(func(parents []QPersistentModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -974,12 +974,12 @@ func (this *QAbstractItemModel) LayoutAboutToBeChanged2(parents []QPersistentMod C.QAbstractItemModel_LayoutAboutToBeChanged2(this.h, parents_ma, (C.int)(hint)) } func (this *QAbstractItemModel) OnLayoutAboutToBeChanged2(slot func(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint)) { - C.QAbstractItemModel_connect_LayoutAboutToBeChanged2(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemModel_connect_LayoutAboutToBeChanged2(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged2 -func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged2(cb *C.void, parents *C.struct_miqt_array, hint C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint)) +func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged2(cb C.intptr_t, parents *C.struct_miqt_array, hint C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractitemmodel.h b/qt/gen_qabstractitemmodel.h index 9e6529c..4e9a43e 100644 --- a/qt/gen_qabstractitemmodel.h +++ b/qt/gen_qabstractitemmodel.h @@ -123,13 +123,13 @@ struct miqt_array* QAbstractItemModel_Match(const QAbstractItemModel* self, QMod QSize* QAbstractItemModel_Span(const QAbstractItemModel* self, QModelIndex* index); bool QAbstractItemModel_CheckIndex(const QAbstractItemModel* self, QModelIndex* index); void QAbstractItemModel_DataChanged(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight); -void QAbstractItemModel_connect_DataChanged(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_DataChanged(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_HeaderDataChanged(QAbstractItemModel* self, int orientation, int first, int last); -void QAbstractItemModel_connect_HeaderDataChanged(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_HeaderDataChanged(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_LayoutChanged(QAbstractItemModel* self); -void QAbstractItemModel_connect_LayoutChanged(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_LayoutChanged(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_LayoutAboutToBeChanged(QAbstractItemModel* self); -void QAbstractItemModel_connect_LayoutAboutToBeChanged(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_LayoutAboutToBeChanged(QAbstractItemModel* self, intptr_t slot); bool QAbstractItemModel_Submit(QAbstractItemModel* self); void QAbstractItemModel_Revert(QAbstractItemModel* self); struct miqt_string* QAbstractItemModel_Tr2(const char* s, const char* c); @@ -158,15 +158,15 @@ struct miqt_array* QAbstractItemModel_Match4(const QAbstractItemModel* self, QMo struct miqt_array* QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); bool QAbstractItemModel_CheckIndex2(const QAbstractItemModel* self, QModelIndex* index, int options); void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array* /* of int */ roles); -void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array* /* of QPersistentModelIndex* */ parents); -void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array* /* of QPersistentModelIndex* */ parents, int hint); -void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array* /* of QPersistentModelIndex* */ parents); -void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array* /* of QPersistentModelIndex* */ parents, int hint); -void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self, void* slot); +void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_Delete(QAbstractItemModel* self); QMetaObject* QAbstractTableModel_MetaObject(const QAbstractTableModel* self); diff --git a/qt/gen_qabstractitemview.cpp b/qt/gen_qabstractitemview.cpp index e3302ab..be7f882 100644 --- a/qt/gen_qabstractitemview.cpp +++ b/qt/gen_qabstractitemview.cpp @@ -331,7 +331,7 @@ void QAbstractItemView_Pressed(QAbstractItemView* self, QModelIndex* index) { self->pressed(*index); } -void QAbstractItemView_connect_Pressed(QAbstractItemView* self, void* slot) { +void QAbstractItemView_connect_Pressed(QAbstractItemView* self, intptr_t slot) { QAbstractItemView::connect(self, static_cast(&QAbstractItemView::pressed), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer @@ -344,7 +344,7 @@ void QAbstractItemView_Clicked(QAbstractItemView* self, QModelIndex* index) { self->clicked(*index); } -void QAbstractItemView_connect_Clicked(QAbstractItemView* self, void* slot) { +void QAbstractItemView_connect_Clicked(QAbstractItemView* self, intptr_t slot) { QAbstractItemView::connect(self, static_cast(&QAbstractItemView::clicked), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer @@ -357,7 +357,7 @@ void QAbstractItemView_DoubleClicked(QAbstractItemView* self, QModelIndex* index self->doubleClicked(*index); } -void QAbstractItemView_connect_DoubleClicked(QAbstractItemView* self, void* slot) { +void QAbstractItemView_connect_DoubleClicked(QAbstractItemView* self, intptr_t slot) { QAbstractItemView::connect(self, static_cast(&QAbstractItemView::doubleClicked), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer @@ -370,7 +370,7 @@ void QAbstractItemView_Activated(QAbstractItemView* self, QModelIndex* index) { self->activated(*index); } -void QAbstractItemView_connect_Activated(QAbstractItemView* self, void* slot) { +void QAbstractItemView_connect_Activated(QAbstractItemView* self, intptr_t slot) { QAbstractItemView::connect(self, static_cast(&QAbstractItemView::activated), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer @@ -383,7 +383,7 @@ void QAbstractItemView_Entered(QAbstractItemView* self, QModelIndex* index) { self->entered(*index); } -void QAbstractItemView_connect_Entered(QAbstractItemView* self, void* slot) { +void QAbstractItemView_connect_Entered(QAbstractItemView* self, intptr_t slot) { QAbstractItemView::connect(self, static_cast(&QAbstractItemView::entered), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer @@ -396,7 +396,7 @@ void QAbstractItemView_ViewportEntered(QAbstractItemView* self) { self->viewportEntered(); } -void QAbstractItemView_connect_ViewportEntered(QAbstractItemView* self, void* slot) { +void QAbstractItemView_connect_ViewportEntered(QAbstractItemView* self, intptr_t slot) { QAbstractItemView::connect(self, static_cast(&QAbstractItemView::viewportEntered), self, [=]() { miqt_exec_callback_QAbstractItemView_ViewportEntered(slot); }); @@ -406,7 +406,7 @@ void QAbstractItemView_IconSizeChanged(QAbstractItemView* self, QSize* size) { self->iconSizeChanged(*size); } -void QAbstractItemView_connect_IconSizeChanged(QAbstractItemView* self, void* slot) { +void QAbstractItemView_connect_IconSizeChanged(QAbstractItemView* self, intptr_t slot) { QAbstractItemView::connect(self, static_cast(&QAbstractItemView::iconSizeChanged), self, [=](const QSize& size) { const QSize& size_ret = size; // Cast returned reference into pointer diff --git a/qt/gen_qabstractitemview.go b/qt/gen_qabstractitemview.go index 0e4fe2a..4df7c9b 100644 --- a/qt/gen_qabstractitemview.go +++ b/qt/gen_qabstractitemview.go @@ -428,12 +428,12 @@ func (this *QAbstractItemView) Pressed(index *QModelIndex) { C.QAbstractItemView_Pressed(this.h, index.cPointer()) } func (this *QAbstractItemView) OnPressed(slot func(index *QModelIndex)) { - C.QAbstractItemView_connect_Pressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemView_connect_Pressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemView_Pressed -func miqt_exec_callback_QAbstractItemView_Pressed(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QAbstractItemView_Pressed(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -448,12 +448,12 @@ func (this *QAbstractItemView) Clicked(index *QModelIndex) { C.QAbstractItemView_Clicked(this.h, index.cPointer()) } func (this *QAbstractItemView) OnClicked(slot func(index *QModelIndex)) { - C.QAbstractItemView_connect_Clicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemView_connect_Clicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemView_Clicked -func miqt_exec_callback_QAbstractItemView_Clicked(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QAbstractItemView_Clicked(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -468,12 +468,12 @@ func (this *QAbstractItemView) DoubleClicked(index *QModelIndex) { C.QAbstractItemView_DoubleClicked(this.h, index.cPointer()) } func (this *QAbstractItemView) OnDoubleClicked(slot func(index *QModelIndex)) { - C.QAbstractItemView_connect_DoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemView_connect_DoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemView_DoubleClicked -func miqt_exec_callback_QAbstractItemView_DoubleClicked(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QAbstractItemView_DoubleClicked(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -488,12 +488,12 @@ func (this *QAbstractItemView) Activated(index *QModelIndex) { C.QAbstractItemView_Activated(this.h, index.cPointer()) } func (this *QAbstractItemView) OnActivated(slot func(index *QModelIndex)) { - C.QAbstractItemView_connect_Activated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemView_connect_Activated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemView_Activated -func miqt_exec_callback_QAbstractItemView_Activated(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QAbstractItemView_Activated(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -508,12 +508,12 @@ func (this *QAbstractItemView) Entered(index *QModelIndex) { C.QAbstractItemView_Entered(this.h, index.cPointer()) } func (this *QAbstractItemView) OnEntered(slot func(index *QModelIndex)) { - C.QAbstractItemView_connect_Entered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemView_connect_Entered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemView_Entered -func miqt_exec_callback_QAbstractItemView_Entered(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QAbstractItemView_Entered(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -528,12 +528,12 @@ func (this *QAbstractItemView) ViewportEntered() { C.QAbstractItemView_ViewportEntered(this.h) } func (this *QAbstractItemView) OnViewportEntered(slot func()) { - C.QAbstractItemView_connect_ViewportEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemView_connect_ViewportEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemView_ViewportEntered -func miqt_exec_callback_QAbstractItemView_ViewportEntered(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractItemView_ViewportEntered(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -545,12 +545,12 @@ func (this *QAbstractItemView) IconSizeChanged(size *QSize) { C.QAbstractItemView_IconSizeChanged(this.h, size.cPointer()) } func (this *QAbstractItemView) OnIconSizeChanged(slot func(size *QSize)) { - C.QAbstractItemView_connect_IconSizeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractItemView_connect_IconSizeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractItemView_IconSizeChanged -func miqt_exec_callback_QAbstractItemView_IconSizeChanged(cb *C.void, size *C.QSize) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(size *QSize)) +func miqt_exec_callback_QAbstractItemView_IconSizeChanged(cb C.intptr_t, size *C.QSize) { + gofunc, ok := cgo.Handle(cb).Value().(func(size *QSize)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractitemview.h b/qt/gen_qabstractitemview.h index fe663ec..6b99c80 100644 --- a/qt/gen_qabstractitemview.h +++ b/qt/gen_qabstractitemview.h @@ -114,19 +114,19 @@ void QAbstractItemView_ScrollToTop(QAbstractItemView* self); void QAbstractItemView_ScrollToBottom(QAbstractItemView* self); void QAbstractItemView_Update(QAbstractItemView* self, QModelIndex* index); void QAbstractItemView_Pressed(QAbstractItemView* self, QModelIndex* index); -void QAbstractItemView_connect_Pressed(QAbstractItemView* self, void* slot); +void QAbstractItemView_connect_Pressed(QAbstractItemView* self, intptr_t slot); void QAbstractItemView_Clicked(QAbstractItemView* self, QModelIndex* index); -void QAbstractItemView_connect_Clicked(QAbstractItemView* self, void* slot); +void QAbstractItemView_connect_Clicked(QAbstractItemView* self, intptr_t slot); void QAbstractItemView_DoubleClicked(QAbstractItemView* self, QModelIndex* index); -void QAbstractItemView_connect_DoubleClicked(QAbstractItemView* self, void* slot); +void QAbstractItemView_connect_DoubleClicked(QAbstractItemView* self, intptr_t slot); void QAbstractItemView_Activated(QAbstractItemView* self, QModelIndex* index); -void QAbstractItemView_connect_Activated(QAbstractItemView* self, void* slot); +void QAbstractItemView_connect_Activated(QAbstractItemView* self, intptr_t slot); void QAbstractItemView_Entered(QAbstractItemView* self, QModelIndex* index); -void QAbstractItemView_connect_Entered(QAbstractItemView* self, void* slot); +void QAbstractItemView_connect_Entered(QAbstractItemView* self, intptr_t slot); void QAbstractItemView_ViewportEntered(QAbstractItemView* self); -void QAbstractItemView_connect_ViewportEntered(QAbstractItemView* self, void* slot); +void QAbstractItemView_connect_ViewportEntered(QAbstractItemView* self, intptr_t slot); void QAbstractItemView_IconSizeChanged(QAbstractItemView* self, QSize* size); -void QAbstractItemView_connect_IconSizeChanged(QAbstractItemView* self, void* slot); +void QAbstractItemView_connect_IconSizeChanged(QAbstractItemView* self, intptr_t slot); struct miqt_string* QAbstractItemView_Tr2(const char* s, const char* c); struct miqt_string* QAbstractItemView_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractItemView_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qabstractslider.cpp b/qt/gen_qabstractslider.cpp index c16f0ae..8f2d559 100644 --- a/qt/gen_qabstractslider.cpp +++ b/qt/gen_qabstractslider.cpp @@ -139,7 +139,7 @@ void QAbstractSlider_ValueChanged(QAbstractSlider* self, int value) { self->valueChanged(static_cast(value)); } -void QAbstractSlider_connect_ValueChanged(QAbstractSlider* self, void* slot) { +void QAbstractSlider_connect_ValueChanged(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::valueChanged), self, [=](int value) { int sigval1 = value; miqt_exec_callback_QAbstractSlider_ValueChanged(slot, sigval1); @@ -150,7 +150,7 @@ void QAbstractSlider_SliderPressed(QAbstractSlider* self) { self->sliderPressed(); } -void QAbstractSlider_connect_SliderPressed(QAbstractSlider* self, void* slot) { +void QAbstractSlider_connect_SliderPressed(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::sliderPressed), self, [=]() { miqt_exec_callback_QAbstractSlider_SliderPressed(slot); }); @@ -160,7 +160,7 @@ void QAbstractSlider_SliderMoved(QAbstractSlider* self, int position) { self->sliderMoved(static_cast(position)); } -void QAbstractSlider_connect_SliderMoved(QAbstractSlider* self, void* slot) { +void QAbstractSlider_connect_SliderMoved(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::sliderMoved), self, [=](int position) { int sigval1 = position; miqt_exec_callback_QAbstractSlider_SliderMoved(slot, sigval1); @@ -171,7 +171,7 @@ void QAbstractSlider_SliderReleased(QAbstractSlider* self) { self->sliderReleased(); } -void QAbstractSlider_connect_SliderReleased(QAbstractSlider* self, void* slot) { +void QAbstractSlider_connect_SliderReleased(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::sliderReleased), self, [=]() { miqt_exec_callback_QAbstractSlider_SliderReleased(slot); }); @@ -181,7 +181,7 @@ void QAbstractSlider_RangeChanged(QAbstractSlider* self, int min, int max) { self->rangeChanged(static_cast(min), static_cast(max)); } -void QAbstractSlider_connect_RangeChanged(QAbstractSlider* self, void* slot) { +void QAbstractSlider_connect_RangeChanged(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::rangeChanged), self, [=](int min, int max) { int sigval1 = min; int sigval2 = max; @@ -193,7 +193,7 @@ void QAbstractSlider_ActionTriggered(QAbstractSlider* self, int action) { self->actionTriggered(static_cast(action)); } -void QAbstractSlider_connect_ActionTriggered(QAbstractSlider* self, void* slot) { +void QAbstractSlider_connect_ActionTriggered(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::actionTriggered), self, [=](int action) { int sigval1 = action; miqt_exec_callback_QAbstractSlider_ActionTriggered(slot, sigval1); diff --git a/qt/gen_qabstractslider.go b/qt/gen_qabstractslider.go index 1c8e3f3..4aeaceb 100644 --- a/qt/gen_qabstractslider.go +++ b/qt/gen_qabstractslider.go @@ -190,12 +190,12 @@ func (this *QAbstractSlider) ValueChanged(value int) { C.QAbstractSlider_ValueChanged(this.h, (C.int)(value)) } func (this *QAbstractSlider) OnValueChanged(slot func(value int)) { - C.QAbstractSlider_connect_ValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractSlider_connect_ValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractSlider_ValueChanged -func miqt_exec_callback_QAbstractSlider_ValueChanged(cb *C.void, value C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(value int)) +func miqt_exec_callback_QAbstractSlider_ValueChanged(cb C.intptr_t, value C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(value int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -210,12 +210,12 @@ func (this *QAbstractSlider) SliderPressed() { C.QAbstractSlider_SliderPressed(this.h) } func (this *QAbstractSlider) OnSliderPressed(slot func()) { - C.QAbstractSlider_connect_SliderPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractSlider_connect_SliderPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractSlider_SliderPressed -func miqt_exec_callback_QAbstractSlider_SliderPressed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractSlider_SliderPressed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -227,12 +227,12 @@ func (this *QAbstractSlider) SliderMoved(position int) { C.QAbstractSlider_SliderMoved(this.h, (C.int)(position)) } func (this *QAbstractSlider) OnSliderMoved(slot func(position int)) { - C.QAbstractSlider_connect_SliderMoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractSlider_connect_SliderMoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractSlider_SliderMoved -func miqt_exec_callback_QAbstractSlider_SliderMoved(cb *C.void, position C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(position int)) +func miqt_exec_callback_QAbstractSlider_SliderMoved(cb C.intptr_t, position C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -247,12 +247,12 @@ func (this *QAbstractSlider) SliderReleased() { C.QAbstractSlider_SliderReleased(this.h) } func (this *QAbstractSlider) OnSliderReleased(slot func()) { - C.QAbstractSlider_connect_SliderReleased(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractSlider_connect_SliderReleased(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractSlider_SliderReleased -func miqt_exec_callback_QAbstractSlider_SliderReleased(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractSlider_SliderReleased(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -264,12 +264,12 @@ func (this *QAbstractSlider) RangeChanged(min int, max int) { C.QAbstractSlider_RangeChanged(this.h, (C.int)(min), (C.int)(max)) } func (this *QAbstractSlider) OnRangeChanged(slot func(min int, max int)) { - C.QAbstractSlider_connect_RangeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractSlider_connect_RangeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractSlider_RangeChanged -func miqt_exec_callback_QAbstractSlider_RangeChanged(cb *C.void, min C.int, max C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(min int, max int)) +func miqt_exec_callback_QAbstractSlider_RangeChanged(cb C.intptr_t, min C.int, max C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(min int, max int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -286,12 +286,12 @@ func (this *QAbstractSlider) ActionTriggered(action int) { C.QAbstractSlider_ActionTriggered(this.h, (C.int)(action)) } func (this *QAbstractSlider) OnActionTriggered(slot func(action int)) { - C.QAbstractSlider_connect_ActionTriggered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractSlider_connect_ActionTriggered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractSlider_ActionTriggered -func miqt_exec_callback_QAbstractSlider_ActionTriggered(cb *C.void, action C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(action int)) +func miqt_exec_callback_QAbstractSlider_ActionTriggered(cb C.intptr_t, action C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(action int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractslider.h b/qt/gen_qabstractslider.h index b477f84..999adc4 100644 --- a/qt/gen_qabstractslider.h +++ b/qt/gen_qabstractslider.h @@ -54,17 +54,17 @@ void QAbstractSlider_SetValue(QAbstractSlider* self, int value); void QAbstractSlider_SetOrientation(QAbstractSlider* self, int orientation); void QAbstractSlider_SetRange(QAbstractSlider* self, int min, int max); void QAbstractSlider_ValueChanged(QAbstractSlider* self, int value); -void QAbstractSlider_connect_ValueChanged(QAbstractSlider* self, void* slot); +void QAbstractSlider_connect_ValueChanged(QAbstractSlider* self, intptr_t slot); void QAbstractSlider_SliderPressed(QAbstractSlider* self); -void QAbstractSlider_connect_SliderPressed(QAbstractSlider* self, void* slot); +void QAbstractSlider_connect_SliderPressed(QAbstractSlider* self, intptr_t slot); void QAbstractSlider_SliderMoved(QAbstractSlider* self, int position); -void QAbstractSlider_connect_SliderMoved(QAbstractSlider* self, void* slot); +void QAbstractSlider_connect_SliderMoved(QAbstractSlider* self, intptr_t slot); void QAbstractSlider_SliderReleased(QAbstractSlider* self); -void QAbstractSlider_connect_SliderReleased(QAbstractSlider* self, void* slot); +void QAbstractSlider_connect_SliderReleased(QAbstractSlider* self, intptr_t slot); void QAbstractSlider_RangeChanged(QAbstractSlider* self, int min, int max); -void QAbstractSlider_connect_RangeChanged(QAbstractSlider* self, void* slot); +void QAbstractSlider_connect_RangeChanged(QAbstractSlider* self, intptr_t slot); void QAbstractSlider_ActionTriggered(QAbstractSlider* self, int action); -void QAbstractSlider_connect_ActionTriggered(QAbstractSlider* self, void* slot); +void QAbstractSlider_connect_ActionTriggered(QAbstractSlider* self, intptr_t slot); struct miqt_string* QAbstractSlider_Tr2(const char* s, const char* c); struct miqt_string* QAbstractSlider_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractSlider_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qabstractspinbox.cpp b/qt/gen_qabstractspinbox.cpp index e7979a1..e93a23e 100644 --- a/qt/gen_qabstractspinbox.cpp +++ b/qt/gen_qabstractspinbox.cpp @@ -194,7 +194,7 @@ void QAbstractSpinBox_EditingFinished(QAbstractSpinBox* self) { self->editingFinished(); } -void QAbstractSpinBox_connect_EditingFinished(QAbstractSpinBox* self, void* slot) { +void QAbstractSpinBox_connect_EditingFinished(QAbstractSpinBox* self, intptr_t slot) { QAbstractSpinBox::connect(self, static_cast(&QAbstractSpinBox::editingFinished), self, [=]() { miqt_exec_callback_QAbstractSpinBox_EditingFinished(slot); }); diff --git a/qt/gen_qabstractspinbox.go b/qt/gen_qabstractspinbox.go index 15d1bee..1b4c565 100644 --- a/qt/gen_qabstractspinbox.go +++ b/qt/gen_qabstractspinbox.go @@ -268,12 +268,12 @@ func (this *QAbstractSpinBox) EditingFinished() { C.QAbstractSpinBox_EditingFinished(this.h) } func (this *QAbstractSpinBox) OnEditingFinished(slot func()) { - C.QAbstractSpinBox_connect_EditingFinished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractSpinBox_connect_EditingFinished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractSpinBox_EditingFinished -func miqt_exec_callback_QAbstractSpinBox_EditingFinished(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractSpinBox_EditingFinished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractspinbox.h b/qt/gen_qabstractspinbox.h index 74f314b..a984658 100644 --- a/qt/gen_qabstractspinbox.h +++ b/qt/gen_qabstractspinbox.h @@ -70,7 +70,7 @@ void QAbstractSpinBox_StepDown(QAbstractSpinBox* self); void QAbstractSpinBox_SelectAll(QAbstractSpinBox* self); void QAbstractSpinBox_Clear(QAbstractSpinBox* self); void QAbstractSpinBox_EditingFinished(QAbstractSpinBox* self); -void QAbstractSpinBox_connect_EditingFinished(QAbstractSpinBox* self, void* slot); +void QAbstractSpinBox_connect_EditingFinished(QAbstractSpinBox* self, intptr_t slot); struct miqt_string* QAbstractSpinBox_Tr2(const char* s, const char* c); struct miqt_string* QAbstractSpinBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractSpinBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qabstractstate.cpp b/qt/gen_qabstractstate.cpp index 35c9a95..bf38d43 100644 --- a/qt/gen_qabstractstate.cpp +++ b/qt/gen_qabstractstate.cpp @@ -47,7 +47,7 @@ void QAbstractState_ActiveChanged(QAbstractState* self, bool active) { self->activeChanged(active); } -void QAbstractState_connect_ActiveChanged(QAbstractState* self, void* slot) { +void QAbstractState_connect_ActiveChanged(QAbstractState* self, intptr_t slot) { QAbstractState::connect(self, static_cast(&QAbstractState::activeChanged), self, [=](bool active) { bool sigval1 = active; miqt_exec_callback_QAbstractState_ActiveChanged(slot, sigval1); diff --git a/qt/gen_qabstractstate.go b/qt/gen_qabstractstate.go index a1b6e24..1613fa0 100644 --- a/qt/gen_qabstractstate.go +++ b/qt/gen_qabstractstate.go @@ -81,12 +81,12 @@ func (this *QAbstractState) ActiveChanged(active bool) { C.QAbstractState_ActiveChanged(this.h, (C.bool)(active)) } func (this *QAbstractState) OnActiveChanged(slot func(active bool)) { - C.QAbstractState_connect_ActiveChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractState_connect_ActiveChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractState_ActiveChanged -func miqt_exec_callback_QAbstractState_ActiveChanged(cb *C.void, active C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(active bool)) +func miqt_exec_callback_QAbstractState_ActiveChanged(cb C.intptr_t, active C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(active bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstractstate.h b/qt/gen_qabstractstate.h index f9d35c7..ca5be45 100644 --- a/qt/gen_qabstractstate.h +++ b/qt/gen_qabstractstate.h @@ -33,7 +33,7 @@ QState* QAbstractState_ParentState(const QAbstractState* self); QStateMachine* QAbstractState_Machine(const QAbstractState* self); bool QAbstractState_Active(const QAbstractState* self); void QAbstractState_ActiveChanged(QAbstractState* self, bool active); -void QAbstractState_connect_ActiveChanged(QAbstractState* self, void* slot); +void QAbstractState_connect_ActiveChanged(QAbstractState* self, intptr_t slot); struct miqt_string* QAbstractState_Tr2(const char* s, const char* c); struct miqt_string* QAbstractState_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractState_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qabstracttextdocumentlayout.cpp b/qt/gen_qabstracttextdocumentlayout.cpp index 1d1d164..3d37392 100644 --- a/qt/gen_qabstracttextdocumentlayout.cpp +++ b/qt/gen_qabstracttextdocumentlayout.cpp @@ -116,7 +116,7 @@ void QAbstractTextDocumentLayout_Update(QAbstractTextDocumentLayout* self) { self->update(); } -void QAbstractTextDocumentLayout_connect_Update(QAbstractTextDocumentLayout* self, void* slot) { +void QAbstractTextDocumentLayout_connect_Update(QAbstractTextDocumentLayout* self, intptr_t slot) { QAbstractTextDocumentLayout::connect(self, static_cast(&QAbstractTextDocumentLayout::update), self, [=]() { miqt_exec_callback_QAbstractTextDocumentLayout_Update(slot); }); @@ -126,7 +126,7 @@ void QAbstractTextDocumentLayout_UpdateBlock(QAbstractTextDocumentLayout* self, self->updateBlock(*block); } -void QAbstractTextDocumentLayout_connect_UpdateBlock(QAbstractTextDocumentLayout* self, void* slot) { +void QAbstractTextDocumentLayout_connect_UpdateBlock(QAbstractTextDocumentLayout* self, intptr_t slot) { QAbstractTextDocumentLayout::connect(self, static_cast(&QAbstractTextDocumentLayout::updateBlock), self, [=](const QTextBlock& block) { const QTextBlock& block_ret = block; // Cast returned reference into pointer @@ -139,7 +139,7 @@ void QAbstractTextDocumentLayout_DocumentSizeChanged(QAbstractTextDocumentLayout self->documentSizeChanged(*newSize); } -void QAbstractTextDocumentLayout_connect_DocumentSizeChanged(QAbstractTextDocumentLayout* self, void* slot) { +void QAbstractTextDocumentLayout_connect_DocumentSizeChanged(QAbstractTextDocumentLayout* self, intptr_t slot) { QAbstractTextDocumentLayout::connect(self, static_cast(&QAbstractTextDocumentLayout::documentSizeChanged), self, [=](const QSizeF& newSize) { const QSizeF& newSize_ret = newSize; // Cast returned reference into pointer @@ -152,7 +152,7 @@ void QAbstractTextDocumentLayout_PageCountChanged(QAbstractTextDocumentLayout* s self->pageCountChanged(static_cast(newPages)); } -void QAbstractTextDocumentLayout_connect_PageCountChanged(QAbstractTextDocumentLayout* self, void* slot) { +void QAbstractTextDocumentLayout_connect_PageCountChanged(QAbstractTextDocumentLayout* self, intptr_t slot) { QAbstractTextDocumentLayout::connect(self, static_cast(&QAbstractTextDocumentLayout::pageCountChanged), self, [=](int newPages) { int sigval1 = newPages; miqt_exec_callback_QAbstractTextDocumentLayout_PageCountChanged(slot, sigval1); @@ -195,7 +195,7 @@ void QAbstractTextDocumentLayout_Update1(QAbstractTextDocumentLayout* self, QRec self->update(*param1); } -void QAbstractTextDocumentLayout_connect_Update1(QAbstractTextDocumentLayout* self, void* slot) { +void QAbstractTextDocumentLayout_connect_Update1(QAbstractTextDocumentLayout* self, intptr_t slot) { QAbstractTextDocumentLayout::connect(self, static_cast(&QAbstractTextDocumentLayout::update), self, [=](const QRectF& param1) { const QRectF& param1_ret = param1; // Cast returned reference into pointer diff --git a/qt/gen_qabstracttextdocumentlayout.go b/qt/gen_qabstracttextdocumentlayout.go index 255e9ba..b6e9621 100644 --- a/qt/gen_qabstracttextdocumentlayout.go +++ b/qt/gen_qabstracttextdocumentlayout.go @@ -154,12 +154,12 @@ func (this *QAbstractTextDocumentLayout) Update() { C.QAbstractTextDocumentLayout_Update(this.h) } func (this *QAbstractTextDocumentLayout) OnUpdate(slot func()) { - C.QAbstractTextDocumentLayout_connect_Update(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractTextDocumentLayout_connect_Update(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractTextDocumentLayout_Update -func miqt_exec_callback_QAbstractTextDocumentLayout_Update(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAbstractTextDocumentLayout_Update(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -171,12 +171,12 @@ func (this *QAbstractTextDocumentLayout) UpdateBlock(block *QTextBlock) { C.QAbstractTextDocumentLayout_UpdateBlock(this.h, block.cPointer()) } func (this *QAbstractTextDocumentLayout) OnUpdateBlock(slot func(block *QTextBlock)) { - C.QAbstractTextDocumentLayout_connect_UpdateBlock(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractTextDocumentLayout_connect_UpdateBlock(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractTextDocumentLayout_UpdateBlock -func miqt_exec_callback_QAbstractTextDocumentLayout_UpdateBlock(cb *C.void, block *C.QTextBlock) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(block *QTextBlock)) +func miqt_exec_callback_QAbstractTextDocumentLayout_UpdateBlock(cb C.intptr_t, block *C.QTextBlock) { + gofunc, ok := cgo.Handle(cb).Value().(func(block *QTextBlock)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -191,12 +191,12 @@ func (this *QAbstractTextDocumentLayout) DocumentSizeChanged(newSize *QSizeF) { C.QAbstractTextDocumentLayout_DocumentSizeChanged(this.h, newSize.cPointer()) } func (this *QAbstractTextDocumentLayout) OnDocumentSizeChanged(slot func(newSize *QSizeF)) { - C.QAbstractTextDocumentLayout_connect_DocumentSizeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractTextDocumentLayout_connect_DocumentSizeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractTextDocumentLayout_DocumentSizeChanged -func miqt_exec_callback_QAbstractTextDocumentLayout_DocumentSizeChanged(cb *C.void, newSize *C.QSizeF) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newSize *QSizeF)) +func miqt_exec_callback_QAbstractTextDocumentLayout_DocumentSizeChanged(cb C.intptr_t, newSize *C.QSizeF) { + gofunc, ok := cgo.Handle(cb).Value().(func(newSize *QSizeF)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -211,12 +211,12 @@ func (this *QAbstractTextDocumentLayout) PageCountChanged(newPages int) { C.QAbstractTextDocumentLayout_PageCountChanged(this.h, (C.int)(newPages)) } func (this *QAbstractTextDocumentLayout) OnPageCountChanged(slot func(newPages int)) { - C.QAbstractTextDocumentLayout_connect_PageCountChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractTextDocumentLayout_connect_PageCountChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractTextDocumentLayout_PageCountChanged -func miqt_exec_callback_QAbstractTextDocumentLayout_PageCountChanged(cb *C.void, newPages C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newPages int)) +func miqt_exec_callback_QAbstractTextDocumentLayout_PageCountChanged(cb C.intptr_t, newPages C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(newPages int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -279,12 +279,12 @@ func (this *QAbstractTextDocumentLayout) Update1(param1 *QRectF) { C.QAbstractTextDocumentLayout_Update1(this.h, param1.cPointer()) } func (this *QAbstractTextDocumentLayout) OnUpdate1(slot func(param1 *QRectF)) { - C.QAbstractTextDocumentLayout_connect_Update1(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAbstractTextDocumentLayout_connect_Update1(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAbstractTextDocumentLayout_Update1 -func miqt_exec_callback_QAbstractTextDocumentLayout_Update1(cb *C.void, param1 *C.QRectF) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QRectF)) +func miqt_exec_callback_QAbstractTextDocumentLayout_Update1(cb C.intptr_t, param1 *C.QRectF) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QRectF)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qabstracttextdocumentlayout.h b/qt/gen_qabstracttextdocumentlayout.h index 78d3df7..981fded 100644 --- a/qt/gen_qabstracttextdocumentlayout.h +++ b/qt/gen_qabstracttextdocumentlayout.h @@ -76,20 +76,20 @@ void QAbstractTextDocumentLayout_RegisterHandler(QAbstractTextDocumentLayout* se void QAbstractTextDocumentLayout_UnregisterHandler(QAbstractTextDocumentLayout* self, int objectType); QTextObjectInterface* QAbstractTextDocumentLayout_HandlerForObject(const QAbstractTextDocumentLayout* self, int objectType); void QAbstractTextDocumentLayout_Update(QAbstractTextDocumentLayout* self); -void QAbstractTextDocumentLayout_connect_Update(QAbstractTextDocumentLayout* self, void* slot); +void QAbstractTextDocumentLayout_connect_Update(QAbstractTextDocumentLayout* self, intptr_t slot); void QAbstractTextDocumentLayout_UpdateBlock(QAbstractTextDocumentLayout* self, QTextBlock* block); -void QAbstractTextDocumentLayout_connect_UpdateBlock(QAbstractTextDocumentLayout* self, void* slot); +void QAbstractTextDocumentLayout_connect_UpdateBlock(QAbstractTextDocumentLayout* self, intptr_t slot); void QAbstractTextDocumentLayout_DocumentSizeChanged(QAbstractTextDocumentLayout* self, QSizeF* newSize); -void QAbstractTextDocumentLayout_connect_DocumentSizeChanged(QAbstractTextDocumentLayout* self, void* slot); +void QAbstractTextDocumentLayout_connect_DocumentSizeChanged(QAbstractTextDocumentLayout* self, intptr_t slot); void QAbstractTextDocumentLayout_PageCountChanged(QAbstractTextDocumentLayout* self, int newPages); -void QAbstractTextDocumentLayout_connect_PageCountChanged(QAbstractTextDocumentLayout* self, void* slot); +void QAbstractTextDocumentLayout_connect_PageCountChanged(QAbstractTextDocumentLayout* self, intptr_t slot); struct miqt_string* QAbstractTextDocumentLayout_Tr2(const char* s, const char* c); struct miqt_string* QAbstractTextDocumentLayout_Tr3(const char* s, const char* c, int n); struct miqt_string* QAbstractTextDocumentLayout_TrUtf82(const char* s, const char* c); struct miqt_string* QAbstractTextDocumentLayout_TrUtf83(const char* s, const char* c, int n); void QAbstractTextDocumentLayout_UnregisterHandler2(QAbstractTextDocumentLayout* self, int objectType, QObject* component); void QAbstractTextDocumentLayout_Update1(QAbstractTextDocumentLayout* self, QRectF* param1); -void QAbstractTextDocumentLayout_connect_Update1(QAbstractTextDocumentLayout* self, void* slot); +void QAbstractTextDocumentLayout_connect_Update1(QAbstractTextDocumentLayout* self, intptr_t slot); void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self); QSizeF* QTextObjectInterface_IntrinsicSize(QTextObjectInterface* self, QTextDocument* doc, int posInDocument, QTextFormat* format); diff --git a/qt/gen_qaction.cpp b/qt/gen_qaction.cpp index 475e577..74e899f 100644 --- a/qt/gen_qaction.cpp +++ b/qt/gen_qaction.cpp @@ -351,7 +351,7 @@ void QAction_Changed(QAction* self) { self->changed(); } -void QAction_connect_Changed(QAction* self, void* slot) { +void QAction_connect_Changed(QAction* self, intptr_t slot) { QAction::connect(self, static_cast(&QAction::changed), self, [=]() { miqt_exec_callback_QAction_Changed(slot); }); @@ -361,7 +361,7 @@ void QAction_Triggered(QAction* self) { self->triggered(); } -void QAction_connect_Triggered(QAction* self, void* slot) { +void QAction_connect_Triggered(QAction* self, intptr_t slot) { QAction::connect(self, static_cast(&QAction::triggered), self, [=]() { miqt_exec_callback_QAction_Triggered(slot); }); @@ -371,7 +371,7 @@ void QAction_Hovered(QAction* self) { self->hovered(); } -void QAction_connect_Hovered(QAction* self, void* slot) { +void QAction_connect_Hovered(QAction* self, intptr_t slot) { QAction::connect(self, static_cast(&QAction::hovered), self, [=]() { miqt_exec_callback_QAction_Hovered(slot); }); @@ -381,7 +381,7 @@ void QAction_Toggled(QAction* self, bool param1) { self->toggled(param1); } -void QAction_connect_Toggled(QAction* self, void* slot) { +void QAction_connect_Toggled(QAction* self, intptr_t slot) { QAction::connect(self, static_cast(&QAction::toggled), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QAction_Toggled(slot, sigval1); @@ -424,7 +424,7 @@ void QAction_Triggered1(QAction* self, bool checked) { self->triggered(checked); } -void QAction_connect_Triggered1(QAction* self, void* slot) { +void QAction_connect_Triggered1(QAction* self, intptr_t slot) { QAction::connect(self, static_cast(&QAction::triggered), self, [=](bool checked) { bool sigval1 = checked; miqt_exec_callback_QAction_Triggered1(slot, sigval1); diff --git a/qt/gen_qaction.go b/qt/gen_qaction.go index dc99d66..9d82c3b 100644 --- a/qt/gen_qaction.go +++ b/qt/gen_qaction.go @@ -433,12 +433,12 @@ func (this *QAction) Changed() { C.QAction_Changed(this.h) } func (this *QAction) OnChanged(slot func()) { - C.QAction_connect_Changed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAction_connect_Changed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAction_Changed -func miqt_exec_callback_QAction_Changed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAction_Changed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -450,12 +450,12 @@ func (this *QAction) Triggered() { C.QAction_Triggered(this.h) } func (this *QAction) OnTriggered(slot func()) { - C.QAction_connect_Triggered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAction_connect_Triggered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAction_Triggered -func miqt_exec_callback_QAction_Triggered(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAction_Triggered(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -467,12 +467,12 @@ func (this *QAction) Hovered() { C.QAction_Hovered(this.h) } func (this *QAction) OnHovered(slot func()) { - C.QAction_connect_Hovered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAction_connect_Hovered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAction_Hovered -func miqt_exec_callback_QAction_Hovered(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QAction_Hovered(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -484,12 +484,12 @@ func (this *QAction) Toggled(param1 bool) { C.QAction_Toggled(this.h, (C.bool)(param1)) } func (this *QAction) OnToggled(slot func(param1 bool)) { - C.QAction_connect_Toggled(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAction_connect_Toggled(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAction_Toggled -func miqt_exec_callback_QAction_Toggled(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QAction_Toggled(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -552,12 +552,12 @@ func (this *QAction) Triggered1(checked bool) { C.QAction_Triggered1(this.h, (C.bool)(checked)) } func (this *QAction) OnTriggered1(slot func(checked bool)) { - C.QAction_connect_Triggered1(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QAction_connect_Triggered1(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QAction_Triggered1 -func miqt_exec_callback_QAction_Triggered1(cb *C.void, checked C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(checked bool)) +func miqt_exec_callback_QAction_Triggered1(cb C.intptr_t, checked C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(checked bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qaction.h b/qt/gen_qaction.h index 4d07586..a7a5348 100644 --- a/qt/gen_qaction.h +++ b/qt/gen_qaction.h @@ -106,20 +106,20 @@ void QAction_SetEnabled(QAction* self, bool enabled); void QAction_SetDisabled(QAction* self, bool b); void QAction_SetVisible(QAction* self, bool visible); void QAction_Changed(QAction* self); -void QAction_connect_Changed(QAction* self, void* slot); +void QAction_connect_Changed(QAction* self, intptr_t slot); void QAction_Triggered(QAction* self); -void QAction_connect_Triggered(QAction* self, void* slot); +void QAction_connect_Triggered(QAction* self, intptr_t slot); void QAction_Hovered(QAction* self); -void QAction_connect_Hovered(QAction* self, void* slot); +void QAction_connect_Hovered(QAction* self, intptr_t slot); void QAction_Toggled(QAction* self, bool param1); -void QAction_connect_Toggled(QAction* self, void* slot); +void QAction_connect_Toggled(QAction* self, intptr_t slot); struct miqt_string* QAction_Tr2(const char* s, const char* c); struct miqt_string* QAction_Tr3(const char* s, const char* c, int n); struct miqt_string* QAction_TrUtf82(const char* s, const char* c); struct miqt_string* QAction_TrUtf83(const char* s, const char* c, int n); bool QAction_ShowStatusText1(QAction* self, QWidget* widget); void QAction_Triggered1(QAction* self, bool checked); -void QAction_connect_Triggered1(QAction* self, void* slot); +void QAction_connect_Triggered1(QAction* self, intptr_t slot); void QAction_Delete(QAction* self); #ifdef __cplusplus diff --git a/qt/gen_qactiongroup.cpp b/qt/gen_qactiongroup.cpp index 62c274e..1bd8ad0 100644 --- a/qt/gen_qactiongroup.cpp +++ b/qt/gen_qactiongroup.cpp @@ -113,7 +113,7 @@ void QActionGroup_Triggered(QActionGroup* self, QAction* param1) { self->triggered(param1); } -void QActionGroup_connect_Triggered(QActionGroup* self, void* slot) { +void QActionGroup_connect_Triggered(QActionGroup* self, intptr_t slot) { QActionGroup::connect(self, static_cast(&QActionGroup::triggered), self, [=](QAction* param1) { QAction* sigval1 = param1; miqt_exec_callback_QActionGroup_Triggered(slot, sigval1); @@ -124,7 +124,7 @@ void QActionGroup_Hovered(QActionGroup* self, QAction* param1) { self->hovered(param1); } -void QActionGroup_connect_Hovered(QActionGroup* self, void* slot) { +void QActionGroup_connect_Hovered(QActionGroup* self, intptr_t slot) { QActionGroup::connect(self, static_cast(&QActionGroup::hovered), self, [=](QAction* param1) { QAction* sigval1 = param1; miqt_exec_callback_QActionGroup_Hovered(slot, sigval1); diff --git a/qt/gen_qactiongroup.go b/qt/gen_qactiongroup.go index a5a4738..0cc8e10 100644 --- a/qt/gen_qactiongroup.go +++ b/qt/gen_qactiongroup.go @@ -154,12 +154,12 @@ func (this *QActionGroup) Triggered(param1 *QAction) { C.QActionGroup_Triggered(this.h, param1.cPointer()) } func (this *QActionGroup) OnTriggered(slot func(param1 *QAction)) { - C.QActionGroup_connect_Triggered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QActionGroup_connect_Triggered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QActionGroup_Triggered -func miqt_exec_callback_QActionGroup_Triggered(cb *C.void, param1 *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QAction)) +func miqt_exec_callback_QActionGroup_Triggered(cb C.intptr_t, param1 *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -174,12 +174,12 @@ func (this *QActionGroup) Hovered(param1 *QAction) { C.QActionGroup_Hovered(this.h, param1.cPointer()) } func (this *QActionGroup) OnHovered(slot func(param1 *QAction)) { - C.QActionGroup_connect_Hovered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QActionGroup_connect_Hovered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QActionGroup_Hovered -func miqt_exec_callback_QActionGroup_Hovered(cb *C.void, param1 *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QAction)) +func miqt_exec_callback_QActionGroup_Hovered(cb C.intptr_t, param1 *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qactiongroup.h b/qt/gen_qactiongroup.h index f941a02..9660b97 100644 --- a/qt/gen_qactiongroup.h +++ b/qt/gen_qactiongroup.h @@ -48,9 +48,9 @@ void QActionGroup_SetVisible(QActionGroup* self, bool visible); void QActionGroup_SetExclusive(QActionGroup* self, bool exclusive); void QActionGroup_SetExclusionPolicy(QActionGroup* self, int policy); void QActionGroup_Triggered(QActionGroup* self, QAction* param1); -void QActionGroup_connect_Triggered(QActionGroup* self, void* slot); +void QActionGroup_connect_Triggered(QActionGroup* self, intptr_t slot); void QActionGroup_Hovered(QActionGroup* self, QAction* param1); -void QActionGroup_connect_Hovered(QActionGroup* self, void* slot); +void QActionGroup_connect_Hovered(QActionGroup* self, intptr_t slot); struct miqt_string* QActionGroup_Tr2(const char* s, const char* c); struct miqt_string* QActionGroup_Tr3(const char* s, const char* c, int n); struct miqt_string* QActionGroup_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qapplication.cpp b/qt/gen_qapplication.cpp index 90ac3a4..f2c60a1 100644 --- a/qt/gen_qapplication.cpp +++ b/qt/gen_qapplication.cpp @@ -260,7 +260,7 @@ void QApplication_FocusChanged(QApplication* self, QWidget* old, QWidget* now) { self->focusChanged(old, now); } -void QApplication_connect_FocusChanged(QApplication* self, void* slot) { +void QApplication_connect_FocusChanged(QApplication* self, intptr_t slot) { QApplication::connect(self, static_cast(&QApplication::focusChanged), self, [=](QWidget* old, QWidget* now) { QWidget* sigval1 = old; QWidget* sigval2 = now; diff --git a/qt/gen_qapplication.go b/qt/gen_qapplication.go index 4d56597..8b5eeb7 100644 --- a/qt/gen_qapplication.go +++ b/qt/gen_qapplication.go @@ -335,12 +335,12 @@ func (this *QApplication) FocusChanged(old *QWidget, now *QWidget) { C.QApplication_FocusChanged(this.h, old.cPointer(), now.cPointer()) } func (this *QApplication) OnFocusChanged(slot func(old *QWidget, now *QWidget)) { - C.QApplication_connect_FocusChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QApplication_connect_FocusChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QApplication_FocusChanged -func miqt_exec_callback_QApplication_FocusChanged(cb *C.void, old *C.QWidget, now *C.QWidget) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(old *QWidget, now *QWidget)) +func miqt_exec_callback_QApplication_FocusChanged(cb C.intptr_t, old *C.QWidget, now *C.QWidget) { + gofunc, ok := cgo.Handle(cb).Value().(func(old *QWidget, now *QWidget)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qapplication.h b/qt/gen_qapplication.h index 82f3577..e7fab50 100644 --- a/qt/gen_qapplication.h +++ b/qt/gen_qapplication.h @@ -97,7 +97,7 @@ void QApplication_SetEffectEnabled(int param1); int QApplication_Exec(); bool QApplication_Notify(QApplication* self, QObject* param1, QEvent* param2); void QApplication_FocusChanged(QApplication* self, QWidget* old, QWidget* now); -void QApplication_connect_FocusChanged(QApplication* self, void* slot); +void QApplication_connect_FocusChanged(QApplication* self, intptr_t slot); struct miqt_string* QApplication_StyleSheet(const QApplication* self); void QApplication_SetStyleSheet(QApplication* self, struct miqt_string* sheet); void QApplication_SetAutoSipEnabled(QApplication* self, const bool enabled); diff --git a/qt/gen_qbuttongroup.cpp b/qt/gen_qbuttongroup.cpp index f73bc25..b5716dc 100644 --- a/qt/gen_qbuttongroup.cpp +++ b/qt/gen_qbuttongroup.cpp @@ -93,7 +93,7 @@ void QButtonGroup_ButtonClicked(QButtonGroup* self, QAbstractButton* param1) { self->buttonClicked(param1); } -void QButtonGroup_connect_ButtonClicked(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonClicked(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonClicked), self, [=](QAbstractButton* param1) { QAbstractButton* sigval1 = param1; miqt_exec_callback_QButtonGroup_ButtonClicked(slot, sigval1); @@ -104,7 +104,7 @@ void QButtonGroup_ButtonPressed(QButtonGroup* self, QAbstractButton* param1) { self->buttonPressed(param1); } -void QButtonGroup_connect_ButtonPressed(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonPressed(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonPressed), self, [=](QAbstractButton* param1) { QAbstractButton* sigval1 = param1; miqt_exec_callback_QButtonGroup_ButtonPressed(slot, sigval1); @@ -115,7 +115,7 @@ void QButtonGroup_ButtonReleased(QButtonGroup* self, QAbstractButton* param1) { self->buttonReleased(param1); } -void QButtonGroup_connect_ButtonReleased(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonReleased(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonReleased), self, [=](QAbstractButton* param1) { QAbstractButton* sigval1 = param1; miqt_exec_callback_QButtonGroup_ButtonReleased(slot, sigval1); @@ -126,7 +126,7 @@ void QButtonGroup_ButtonToggled(QButtonGroup* self, QAbstractButton* param1, boo self->buttonToggled(param1, param2); } -void QButtonGroup_connect_ButtonToggled(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonToggled(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonToggled), self, [=](QAbstractButton* param1, bool param2) { QAbstractButton* sigval1 = param1; bool sigval2 = param2; @@ -138,7 +138,7 @@ void QButtonGroup_IdClicked(QButtonGroup* self, int param1) { self->idClicked(static_cast(param1)); } -void QButtonGroup_connect_IdClicked(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_IdClicked(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::idClicked), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QButtonGroup_IdClicked(slot, sigval1); @@ -149,7 +149,7 @@ void QButtonGroup_IdPressed(QButtonGroup* self, int param1) { self->idPressed(static_cast(param1)); } -void QButtonGroup_connect_IdPressed(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_IdPressed(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::idPressed), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QButtonGroup_IdPressed(slot, sigval1); @@ -160,7 +160,7 @@ void QButtonGroup_IdReleased(QButtonGroup* self, int param1) { self->idReleased(static_cast(param1)); } -void QButtonGroup_connect_IdReleased(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_IdReleased(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::idReleased), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QButtonGroup_IdReleased(slot, sigval1); @@ -171,7 +171,7 @@ void QButtonGroup_IdToggled(QButtonGroup* self, int param1, bool param2) { self->idToggled(static_cast(param1), param2); } -void QButtonGroup_connect_IdToggled(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_IdToggled(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::idToggled), self, [=](int param1, bool param2) { int sigval1 = param1; bool sigval2 = param2; @@ -183,7 +183,7 @@ void QButtonGroup_ButtonClickedWithInt(QButtonGroup* self, int param1) { self->buttonClicked(static_cast(param1)); } -void QButtonGroup_connect_ButtonClickedWithInt(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonClickedWithInt(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonClicked), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QButtonGroup_ButtonClickedWithInt(slot, sigval1); @@ -194,7 +194,7 @@ void QButtonGroup_ButtonPressedWithInt(QButtonGroup* self, int param1) { self->buttonPressed(static_cast(param1)); } -void QButtonGroup_connect_ButtonPressedWithInt(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonPressedWithInt(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonPressed), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QButtonGroup_ButtonPressedWithInt(slot, sigval1); @@ -205,7 +205,7 @@ void QButtonGroup_ButtonReleasedWithInt(QButtonGroup* self, int param1) { self->buttonReleased(static_cast(param1)); } -void QButtonGroup_connect_ButtonReleasedWithInt(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonReleasedWithInt(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonReleased), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QButtonGroup_ButtonReleasedWithInt(slot, sigval1); @@ -216,7 +216,7 @@ void QButtonGroup_ButtonToggled2(QButtonGroup* self, int param1, bool param2) { self->buttonToggled(static_cast(param1), param2); } -void QButtonGroup_connect_ButtonToggled2(QButtonGroup* self, void* slot) { +void QButtonGroup_connect_ButtonToggled2(QButtonGroup* self, intptr_t slot) { QButtonGroup::connect(self, static_cast(&QButtonGroup::buttonToggled), self, [=](int param1, bool param2) { int sigval1 = param1; bool sigval2 = param2; diff --git a/qt/gen_qbuttongroup.go b/qt/gen_qbuttongroup.go index 8c01848..e257d96 100644 --- a/qt/gen_qbuttongroup.go +++ b/qt/gen_qbuttongroup.go @@ -128,12 +128,12 @@ func (this *QButtonGroup) ButtonClicked(param1 *QAbstractButton) { C.QButtonGroup_ButtonClicked(this.h, param1.cPointer()) } func (this *QButtonGroup) OnButtonClicked(slot func(param1 *QAbstractButton)) { - C.QButtonGroup_connect_ButtonClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonClicked -func miqt_exec_callback_QButtonGroup_ButtonClicked(cb *C.void, param1 *C.QAbstractButton) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QAbstractButton)) +func miqt_exec_callback_QButtonGroup_ButtonClicked(cb C.intptr_t, param1 *C.QAbstractButton) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QAbstractButton)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -148,12 +148,12 @@ func (this *QButtonGroup) ButtonPressed(param1 *QAbstractButton) { C.QButtonGroup_ButtonPressed(this.h, param1.cPointer()) } func (this *QButtonGroup) OnButtonPressed(slot func(param1 *QAbstractButton)) { - C.QButtonGroup_connect_ButtonPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonPressed -func miqt_exec_callback_QButtonGroup_ButtonPressed(cb *C.void, param1 *C.QAbstractButton) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QAbstractButton)) +func miqt_exec_callback_QButtonGroup_ButtonPressed(cb C.intptr_t, param1 *C.QAbstractButton) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QAbstractButton)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -168,12 +168,12 @@ func (this *QButtonGroup) ButtonReleased(param1 *QAbstractButton) { C.QButtonGroup_ButtonReleased(this.h, param1.cPointer()) } func (this *QButtonGroup) OnButtonReleased(slot func(param1 *QAbstractButton)) { - C.QButtonGroup_connect_ButtonReleased(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonReleased(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonReleased -func miqt_exec_callback_QButtonGroup_ButtonReleased(cb *C.void, param1 *C.QAbstractButton) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QAbstractButton)) +func miqt_exec_callback_QButtonGroup_ButtonReleased(cb C.intptr_t, param1 *C.QAbstractButton) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QAbstractButton)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -188,12 +188,12 @@ func (this *QButtonGroup) ButtonToggled(param1 *QAbstractButton, param2 bool) { C.QButtonGroup_ButtonToggled(this.h, param1.cPointer(), (C.bool)(param2)) } func (this *QButtonGroup) OnButtonToggled(slot func(param1 *QAbstractButton, param2 bool)) { - C.QButtonGroup_connect_ButtonToggled(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonToggled(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonToggled -func miqt_exec_callback_QButtonGroup_ButtonToggled(cb *C.void, param1 *C.QAbstractButton, param2 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QAbstractButton, param2 bool)) +func miqt_exec_callback_QButtonGroup_ButtonToggled(cb C.intptr_t, param1 *C.QAbstractButton, param2 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QAbstractButton, param2 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -209,12 +209,12 @@ func (this *QButtonGroup) IdClicked(param1 int) { C.QButtonGroup_IdClicked(this.h, (C.int)(param1)) } func (this *QButtonGroup) OnIdClicked(slot func(param1 int)) { - C.QButtonGroup_connect_IdClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_IdClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_IdClicked -func miqt_exec_callback_QButtonGroup_IdClicked(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QButtonGroup_IdClicked(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -229,12 +229,12 @@ func (this *QButtonGroup) IdPressed(param1 int) { C.QButtonGroup_IdPressed(this.h, (C.int)(param1)) } func (this *QButtonGroup) OnIdPressed(slot func(param1 int)) { - C.QButtonGroup_connect_IdPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_IdPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_IdPressed -func miqt_exec_callback_QButtonGroup_IdPressed(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QButtonGroup_IdPressed(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -249,12 +249,12 @@ func (this *QButtonGroup) IdReleased(param1 int) { C.QButtonGroup_IdReleased(this.h, (C.int)(param1)) } func (this *QButtonGroup) OnIdReleased(slot func(param1 int)) { - C.QButtonGroup_connect_IdReleased(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_IdReleased(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_IdReleased -func miqt_exec_callback_QButtonGroup_IdReleased(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QButtonGroup_IdReleased(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -269,12 +269,12 @@ func (this *QButtonGroup) IdToggled(param1 int, param2 bool) { C.QButtonGroup_IdToggled(this.h, (C.int)(param1), (C.bool)(param2)) } func (this *QButtonGroup) OnIdToggled(slot func(param1 int, param2 bool)) { - C.QButtonGroup_connect_IdToggled(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_IdToggled(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_IdToggled -func miqt_exec_callback_QButtonGroup_IdToggled(cb *C.void, param1 C.int, param2 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int, param2 bool)) +func miqt_exec_callback_QButtonGroup_IdToggled(cb C.intptr_t, param1 C.int, param2 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int, param2 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -291,12 +291,12 @@ func (this *QButtonGroup) ButtonClickedWithInt(param1 int) { C.QButtonGroup_ButtonClickedWithInt(this.h, (C.int)(param1)) } func (this *QButtonGroup) OnButtonClickedWithInt(slot func(param1 int)) { - C.QButtonGroup_connect_ButtonClickedWithInt(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonClickedWithInt(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonClickedWithInt -func miqt_exec_callback_QButtonGroup_ButtonClickedWithInt(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QButtonGroup_ButtonClickedWithInt(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -311,12 +311,12 @@ func (this *QButtonGroup) ButtonPressedWithInt(param1 int) { C.QButtonGroup_ButtonPressedWithInt(this.h, (C.int)(param1)) } func (this *QButtonGroup) OnButtonPressedWithInt(slot func(param1 int)) { - C.QButtonGroup_connect_ButtonPressedWithInt(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonPressedWithInt(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonPressedWithInt -func miqt_exec_callback_QButtonGroup_ButtonPressedWithInt(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QButtonGroup_ButtonPressedWithInt(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -331,12 +331,12 @@ func (this *QButtonGroup) ButtonReleasedWithInt(param1 int) { C.QButtonGroup_ButtonReleasedWithInt(this.h, (C.int)(param1)) } func (this *QButtonGroup) OnButtonReleasedWithInt(slot func(param1 int)) { - C.QButtonGroup_connect_ButtonReleasedWithInt(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonReleasedWithInt(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonReleasedWithInt -func miqt_exec_callback_QButtonGroup_ButtonReleasedWithInt(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QButtonGroup_ButtonReleasedWithInt(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -351,12 +351,12 @@ func (this *QButtonGroup) ButtonToggled2(param1 int, param2 bool) { C.QButtonGroup_ButtonToggled2(this.h, (C.int)(param1), (C.bool)(param2)) } func (this *QButtonGroup) OnButtonToggled2(slot func(param1 int, param2 bool)) { - C.QButtonGroup_connect_ButtonToggled2(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QButtonGroup_connect_ButtonToggled2(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QButtonGroup_ButtonToggled2 -func miqt_exec_callback_QButtonGroup_ButtonToggled2(cb *C.void, param1 C.int, param2 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int, param2 bool)) +func miqt_exec_callback_QButtonGroup_ButtonToggled2(cb C.intptr_t, param1 C.int, param2 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int, param2 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qbuttongroup.h b/qt/gen_qbuttongroup.h index 72a475a..e3ec139 100644 --- a/qt/gen_qbuttongroup.h +++ b/qt/gen_qbuttongroup.h @@ -42,29 +42,29 @@ void QButtonGroup_SetId(QButtonGroup* self, QAbstractButton* button, int id); int QButtonGroup_Id(const QButtonGroup* self, QAbstractButton* button); int QButtonGroup_CheckedId(const QButtonGroup* self); void QButtonGroup_ButtonClicked(QButtonGroup* self, QAbstractButton* param1); -void QButtonGroup_connect_ButtonClicked(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonClicked(QButtonGroup* self, intptr_t slot); void QButtonGroup_ButtonPressed(QButtonGroup* self, QAbstractButton* param1); -void QButtonGroup_connect_ButtonPressed(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonPressed(QButtonGroup* self, intptr_t slot); void QButtonGroup_ButtonReleased(QButtonGroup* self, QAbstractButton* param1); -void QButtonGroup_connect_ButtonReleased(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonReleased(QButtonGroup* self, intptr_t slot); void QButtonGroup_ButtonToggled(QButtonGroup* self, QAbstractButton* param1, bool param2); -void QButtonGroup_connect_ButtonToggled(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonToggled(QButtonGroup* self, intptr_t slot); void QButtonGroup_IdClicked(QButtonGroup* self, int param1); -void QButtonGroup_connect_IdClicked(QButtonGroup* self, void* slot); +void QButtonGroup_connect_IdClicked(QButtonGroup* self, intptr_t slot); void QButtonGroup_IdPressed(QButtonGroup* self, int param1); -void QButtonGroup_connect_IdPressed(QButtonGroup* self, void* slot); +void QButtonGroup_connect_IdPressed(QButtonGroup* self, intptr_t slot); void QButtonGroup_IdReleased(QButtonGroup* self, int param1); -void QButtonGroup_connect_IdReleased(QButtonGroup* self, void* slot); +void QButtonGroup_connect_IdReleased(QButtonGroup* self, intptr_t slot); void QButtonGroup_IdToggled(QButtonGroup* self, int param1, bool param2); -void QButtonGroup_connect_IdToggled(QButtonGroup* self, void* slot); +void QButtonGroup_connect_IdToggled(QButtonGroup* self, intptr_t slot); void QButtonGroup_ButtonClickedWithInt(QButtonGroup* self, int param1); -void QButtonGroup_connect_ButtonClickedWithInt(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonClickedWithInt(QButtonGroup* self, intptr_t slot); void QButtonGroup_ButtonPressedWithInt(QButtonGroup* self, int param1); -void QButtonGroup_connect_ButtonPressedWithInt(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonPressedWithInt(QButtonGroup* self, intptr_t slot); void QButtonGroup_ButtonReleasedWithInt(QButtonGroup* self, int param1); -void QButtonGroup_connect_ButtonReleasedWithInt(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonReleasedWithInt(QButtonGroup* self, intptr_t slot); void QButtonGroup_ButtonToggled2(QButtonGroup* self, int param1, bool param2); -void QButtonGroup_connect_ButtonToggled2(QButtonGroup* self, void* slot); +void QButtonGroup_connect_ButtonToggled2(QButtonGroup* self, intptr_t slot); struct miqt_string* QButtonGroup_Tr2(const char* s, const char* c); struct miqt_string* QButtonGroup_Tr3(const char* s, const char* c, int n); struct miqt_string* QButtonGroup_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qcalendarwidget.cpp b/qt/gen_qcalendarwidget.cpp index 40e1a5b..3091ff9 100644 --- a/qt/gen_qcalendarwidget.cpp +++ b/qt/gen_qcalendarwidget.cpp @@ -218,7 +218,7 @@ void QCalendarWidget_SelectionChanged(QCalendarWidget* self) { self->selectionChanged(); } -void QCalendarWidget_connect_SelectionChanged(QCalendarWidget* self, void* slot) { +void QCalendarWidget_connect_SelectionChanged(QCalendarWidget* self, intptr_t slot) { QCalendarWidget::connect(self, static_cast(&QCalendarWidget::selectionChanged), self, [=]() { miqt_exec_callback_QCalendarWidget_SelectionChanged(slot); }); @@ -228,7 +228,7 @@ void QCalendarWidget_Clicked(QCalendarWidget* self, QDate* date) { self->clicked(*date); } -void QCalendarWidget_connect_Clicked(QCalendarWidget* self, void* slot) { +void QCalendarWidget_connect_Clicked(QCalendarWidget* self, intptr_t slot) { QCalendarWidget::connect(self, static_cast(&QCalendarWidget::clicked), self, [=](const QDate& date) { const QDate& date_ret = date; // Cast returned reference into pointer @@ -241,7 +241,7 @@ void QCalendarWidget_Activated(QCalendarWidget* self, QDate* date) { self->activated(*date); } -void QCalendarWidget_connect_Activated(QCalendarWidget* self, void* slot) { +void QCalendarWidget_connect_Activated(QCalendarWidget* self, intptr_t slot) { QCalendarWidget::connect(self, static_cast(&QCalendarWidget::activated), self, [=](const QDate& date) { const QDate& date_ret = date; // Cast returned reference into pointer @@ -254,7 +254,7 @@ void QCalendarWidget_CurrentPageChanged(QCalendarWidget* self, int year, int mon self->currentPageChanged(static_cast(year), static_cast(month)); } -void QCalendarWidget_connect_CurrentPageChanged(QCalendarWidget* self, void* slot) { +void QCalendarWidget_connect_CurrentPageChanged(QCalendarWidget* self, intptr_t slot) { QCalendarWidget::connect(self, static_cast(&QCalendarWidget::currentPageChanged), self, [=](int year, int month) { int sigval1 = year; int sigval2 = month; diff --git a/qt/gen_qcalendarwidget.go b/qt/gen_qcalendarwidget.go index 2939dfc..9f3fa93 100644 --- a/qt/gen_qcalendarwidget.go +++ b/qt/gen_qcalendarwidget.go @@ -299,12 +299,12 @@ func (this *QCalendarWidget) SelectionChanged() { C.QCalendarWidget_SelectionChanged(this.h) } func (this *QCalendarWidget) OnSelectionChanged(slot func()) { - C.QCalendarWidget_connect_SelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCalendarWidget_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCalendarWidget_SelectionChanged -func miqt_exec_callback_QCalendarWidget_SelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QCalendarWidget_SelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -316,12 +316,12 @@ func (this *QCalendarWidget) Clicked(date *QDate) { C.QCalendarWidget_Clicked(this.h, date.cPointer()) } func (this *QCalendarWidget) OnClicked(slot func(date *QDate)) { - C.QCalendarWidget_connect_Clicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCalendarWidget_connect_Clicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCalendarWidget_Clicked -func miqt_exec_callback_QCalendarWidget_Clicked(cb *C.void, date *C.QDate) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(date *QDate)) +func miqt_exec_callback_QCalendarWidget_Clicked(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?)") } @@ -336,12 +336,12 @@ func (this *QCalendarWidget) Activated(date *QDate) { C.QCalendarWidget_Activated(this.h, date.cPointer()) } func (this *QCalendarWidget) OnActivated(slot func(date *QDate)) { - C.QCalendarWidget_connect_Activated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCalendarWidget_connect_Activated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCalendarWidget_Activated -func miqt_exec_callback_QCalendarWidget_Activated(cb *C.void, date *C.QDate) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(date *QDate)) +func miqt_exec_callback_QCalendarWidget_Activated(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?)") } @@ -356,12 +356,12 @@ func (this *QCalendarWidget) CurrentPageChanged(year int, month int) { C.QCalendarWidget_CurrentPageChanged(this.h, (C.int)(year), (C.int)(month)) } func (this *QCalendarWidget) OnCurrentPageChanged(slot func(year int, month int)) { - C.QCalendarWidget_connect_CurrentPageChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCalendarWidget_connect_CurrentPageChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCalendarWidget_CurrentPageChanged -func miqt_exec_callback_QCalendarWidget_CurrentPageChanged(cb *C.void, year C.int, month C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(year int, month int)) +func miqt_exec_callback_QCalendarWidget_CurrentPageChanged(cb C.intptr_t, year C.int, month C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(year int, month int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qcalendarwidget.h b/qt/gen_qcalendarwidget.h index 4e144cc..f5ba92e 100644 --- a/qt/gen_qcalendarwidget.h +++ b/qt/gen_qcalendarwidget.h @@ -80,13 +80,13 @@ void QCalendarWidget_ShowPreviousYear(QCalendarWidget* self); void QCalendarWidget_ShowSelectedDate(QCalendarWidget* self); void QCalendarWidget_ShowToday(QCalendarWidget* self); void QCalendarWidget_SelectionChanged(QCalendarWidget* self); -void QCalendarWidget_connect_SelectionChanged(QCalendarWidget* self, void* slot); +void QCalendarWidget_connect_SelectionChanged(QCalendarWidget* self, intptr_t slot); void QCalendarWidget_Clicked(QCalendarWidget* self, QDate* date); -void QCalendarWidget_connect_Clicked(QCalendarWidget* self, void* slot); +void QCalendarWidget_connect_Clicked(QCalendarWidget* self, intptr_t slot); void QCalendarWidget_Activated(QCalendarWidget* self, QDate* date); -void QCalendarWidget_connect_Activated(QCalendarWidget* self, void* slot); +void QCalendarWidget_connect_Activated(QCalendarWidget* self, intptr_t slot); void QCalendarWidget_CurrentPageChanged(QCalendarWidget* self, int year, int month); -void QCalendarWidget_connect_CurrentPageChanged(QCalendarWidget* self, void* slot); +void QCalendarWidget_connect_CurrentPageChanged(QCalendarWidget* self, intptr_t slot); struct miqt_string* QCalendarWidget_Tr2(const char* s, const char* c); struct miqt_string* QCalendarWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QCalendarWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qcheckbox.cpp b/qt/gen_qcheckbox.cpp index 6d3045d..34a8022 100644 --- a/qt/gen_qcheckbox.cpp +++ b/qt/gen_qcheckbox.cpp @@ -78,7 +78,7 @@ void QCheckBox_StateChanged(QCheckBox* self, int param1) { self->stateChanged(static_cast(param1)); } -void QCheckBox_connect_StateChanged(QCheckBox* self, void* slot) { +void QCheckBox_connect_StateChanged(QCheckBox* self, intptr_t slot) { QCheckBox::connect(self, static_cast(&QCheckBox::stateChanged), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QCheckBox_StateChanged(slot, sigval1); diff --git a/qt/gen_qcheckbox.go b/qt/gen_qcheckbox.go index 415c777..5c82e71 100644 --- a/qt/gen_qcheckbox.go +++ b/qt/gen_qcheckbox.go @@ -127,12 +127,12 @@ func (this *QCheckBox) StateChanged(param1 int) { C.QCheckBox_StateChanged(this.h, (C.int)(param1)) } func (this *QCheckBox) OnStateChanged(slot func(param1 int)) { - C.QCheckBox_connect_StateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCheckBox_connect_StateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCheckBox_StateChanged -func miqt_exec_callback_QCheckBox_StateChanged(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QCheckBox_StateChanged(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qcheckbox.h b/qt/gen_qcheckbox.h index 83e996e..364ba7e 100644 --- a/qt/gen_qcheckbox.h +++ b/qt/gen_qcheckbox.h @@ -40,7 +40,7 @@ bool QCheckBox_IsTristate(const QCheckBox* self); int QCheckBox_CheckState(const QCheckBox* self); void QCheckBox_SetCheckState(QCheckBox* self, int state); void QCheckBox_StateChanged(QCheckBox* self, int param1); -void QCheckBox_connect_StateChanged(QCheckBox* self, void* slot); +void QCheckBox_connect_StateChanged(QCheckBox* self, intptr_t slot); struct miqt_string* QCheckBox_Tr2(const char* s, const char* c); struct miqt_string* QCheckBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QCheckBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qclipboard.cpp b/qt/gen_qclipboard.cpp index 90a7140..6e1b3fe 100644 --- a/qt/gen_qclipboard.cpp +++ b/qt/gen_qclipboard.cpp @@ -104,7 +104,7 @@ void QClipboard_Changed(QClipboard* self, int mode) { self->changed(static_cast(mode)); } -void QClipboard_connect_Changed(QClipboard* self, void* slot) { +void QClipboard_connect_Changed(QClipboard* self, intptr_t slot) { QClipboard::connect(self, static_cast(&QClipboard::changed), self, [=](QClipboard::Mode mode) { QClipboard::Mode mode_ret = mode; int sigval1 = static_cast(mode_ret); @@ -116,7 +116,7 @@ void QClipboard_SelectionChanged(QClipboard* self) { self->selectionChanged(); } -void QClipboard_connect_SelectionChanged(QClipboard* self, void* slot) { +void QClipboard_connect_SelectionChanged(QClipboard* self, intptr_t slot) { QClipboard::connect(self, static_cast(&QClipboard::selectionChanged), self, [=]() { miqt_exec_callback_QClipboard_SelectionChanged(slot); }); @@ -126,7 +126,7 @@ void QClipboard_FindBufferChanged(QClipboard* self) { self->findBufferChanged(); } -void QClipboard_connect_FindBufferChanged(QClipboard* self, void* slot) { +void QClipboard_connect_FindBufferChanged(QClipboard* self, intptr_t slot) { QClipboard::connect(self, static_cast(&QClipboard::findBufferChanged), self, [=]() { miqt_exec_callback_QClipboard_FindBufferChanged(slot); }); @@ -136,7 +136,7 @@ void QClipboard_DataChanged(QClipboard* self) { self->dataChanged(); } -void QClipboard_connect_DataChanged(QClipboard* self, void* slot) { +void QClipboard_connect_DataChanged(QClipboard* self, intptr_t slot) { QClipboard::connect(self, static_cast(&QClipboard::dataChanged), self, [=]() { miqt_exec_callback_QClipboard_DataChanged(slot); }); diff --git a/qt/gen_qclipboard.go b/qt/gen_qclipboard.go index 4521e4a..593af5c 100644 --- a/qt/gen_qclipboard.go +++ b/qt/gen_qclipboard.go @@ -153,12 +153,12 @@ func (this *QClipboard) Changed(mode QClipboard__Mode) { C.QClipboard_Changed(this.h, (C.int)(mode)) } func (this *QClipboard) OnChanged(slot func(mode QClipboard__Mode)) { - C.QClipboard_connect_Changed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QClipboard_connect_Changed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QClipboard_Changed -func miqt_exec_callback_QClipboard_Changed(cb *C.void, mode C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(mode QClipboard__Mode)) +func miqt_exec_callback_QClipboard_Changed(cb C.intptr_t, mode C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(mode QClipboard__Mode)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -173,12 +173,12 @@ func (this *QClipboard) SelectionChanged() { C.QClipboard_SelectionChanged(this.h) } func (this *QClipboard) OnSelectionChanged(slot func()) { - C.QClipboard_connect_SelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QClipboard_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QClipboard_SelectionChanged -func miqt_exec_callback_QClipboard_SelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QClipboard_SelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -190,12 +190,12 @@ func (this *QClipboard) FindBufferChanged() { C.QClipboard_FindBufferChanged(this.h) } func (this *QClipboard) OnFindBufferChanged(slot func()) { - C.QClipboard_connect_FindBufferChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QClipboard_connect_FindBufferChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QClipboard_FindBufferChanged -func miqt_exec_callback_QClipboard_FindBufferChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QClipboard_FindBufferChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -207,12 +207,12 @@ func (this *QClipboard) DataChanged() { C.QClipboard_DataChanged(this.h) } func (this *QClipboard) OnDataChanged(slot func()) { - C.QClipboard_connect_DataChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QClipboard_connect_DataChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QClipboard_DataChanged -func miqt_exec_callback_QClipboard_DataChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QClipboard_DataChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qclipboard.h b/qt/gen_qclipboard.h index c6487de..d67da54 100644 --- a/qt/gen_qclipboard.h +++ b/qt/gen_qclipboard.h @@ -47,13 +47,13 @@ QPixmap* QClipboard_Pixmap(const QClipboard* self); void QClipboard_SetImage(QClipboard* self, QImage* param1); void QClipboard_SetPixmap(QClipboard* self, QPixmap* param1); void QClipboard_Changed(QClipboard* self, int mode); -void QClipboard_connect_Changed(QClipboard* self, void* slot); +void QClipboard_connect_Changed(QClipboard* self, intptr_t slot); void QClipboard_SelectionChanged(QClipboard* self); -void QClipboard_connect_SelectionChanged(QClipboard* self, void* slot); +void QClipboard_connect_SelectionChanged(QClipboard* self, intptr_t slot); void QClipboard_FindBufferChanged(QClipboard* self); -void QClipboard_connect_FindBufferChanged(QClipboard* self, void* slot); +void QClipboard_connect_FindBufferChanged(QClipboard* self, intptr_t slot); void QClipboard_DataChanged(QClipboard* self); -void QClipboard_connect_DataChanged(QClipboard* self, void* slot); +void QClipboard_connect_DataChanged(QClipboard* self, intptr_t slot); struct miqt_string* QClipboard_Tr2(const char* s, const char* c); struct miqt_string* QClipboard_Tr3(const char* s, const char* c, int n); struct miqt_string* QClipboard_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qcolordialog.cpp b/qt/gen_qcolordialog.cpp index 705a2e6..124ae5a 100644 --- a/qt/gen_qcolordialog.cpp +++ b/qt/gen_qcolordialog.cpp @@ -113,7 +113,7 @@ void QColorDialog_CurrentColorChanged(QColorDialog* self, QColor* color) { self->currentColorChanged(*color); } -void QColorDialog_connect_CurrentColorChanged(QColorDialog* self, void* slot) { +void QColorDialog_connect_CurrentColorChanged(QColorDialog* self, intptr_t slot) { QColorDialog::connect(self, static_cast(&QColorDialog::currentColorChanged), self, [=](const QColor& color) { const QColor& color_ret = color; // Cast returned reference into pointer @@ -126,7 +126,7 @@ void QColorDialog_ColorSelected(QColorDialog* self, QColor* color) { self->colorSelected(*color); } -void QColorDialog_connect_ColorSelected(QColorDialog* self, void* slot) { +void QColorDialog_connect_ColorSelected(QColorDialog* self, intptr_t slot) { QColorDialog::connect(self, static_cast(&QColorDialog::colorSelected), self, [=](const QColor& color) { const QColor& color_ret = color; // Cast returned reference into pointer diff --git a/qt/gen_qcolordialog.go b/qt/gen_qcolordialog.go index 9afa3b1..575d9e9 100644 --- a/qt/gen_qcolordialog.go +++ b/qt/gen_qcolordialog.go @@ -176,12 +176,12 @@ func (this *QColorDialog) CurrentColorChanged(color *QColor) { C.QColorDialog_CurrentColorChanged(this.h, color.cPointer()) } func (this *QColorDialog) OnCurrentColorChanged(slot func(color *QColor)) { - C.QColorDialog_connect_CurrentColorChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QColorDialog_connect_CurrentColorChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QColorDialog_CurrentColorChanged -func miqt_exec_callback_QColorDialog_CurrentColorChanged(cb *C.void, color *C.QColor) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(color *QColor)) +func miqt_exec_callback_QColorDialog_CurrentColorChanged(cb C.intptr_t, color *C.QColor) { + gofunc, ok := cgo.Handle(cb).Value().(func(color *QColor)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -196,12 +196,12 @@ func (this *QColorDialog) ColorSelected(color *QColor) { C.QColorDialog_ColorSelected(this.h, color.cPointer()) } func (this *QColorDialog) OnColorSelected(slot func(color *QColor)) { - C.QColorDialog_connect_ColorSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QColorDialog_connect_ColorSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QColorDialog_ColorSelected -func miqt_exec_callback_QColorDialog_ColorSelected(cb *C.void, color *C.QColor) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(color *QColor)) +func miqt_exec_callback_QColorDialog_ColorSelected(cb C.intptr_t, color *C.QColor) { + gofunc, ok := cgo.Handle(cb).Value().(func(color *QColor)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qcolordialog.h b/qt/gen_qcolordialog.h index 68b0301..6902036 100644 --- a/qt/gen_qcolordialog.h +++ b/qt/gen_qcolordialog.h @@ -49,9 +49,9 @@ void QColorDialog_SetCustomColor(int index, QColor* color); QColor* QColorDialog_StandardColor(int index); void QColorDialog_SetStandardColor(int index, QColor* color); void QColorDialog_CurrentColorChanged(QColorDialog* self, QColor* color); -void QColorDialog_connect_CurrentColorChanged(QColorDialog* self, void* slot); +void QColorDialog_connect_CurrentColorChanged(QColorDialog* self, intptr_t slot); void QColorDialog_ColorSelected(QColorDialog* self, QColor* color); -void QColorDialog_connect_ColorSelected(QColorDialog* self, void* slot); +void QColorDialog_connect_ColorSelected(QColorDialog* self, intptr_t slot); struct miqt_string* QColorDialog_Tr2(const char* s, const char* c); struct miqt_string* QColorDialog_Tr3(const char* s, const char* c, int n); struct miqt_string* QColorDialog_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qcolumnview.cpp b/qt/gen_qcolumnview.cpp index 699b7ae..698b295 100644 --- a/qt/gen_qcolumnview.cpp +++ b/qt/gen_qcolumnview.cpp @@ -49,7 +49,7 @@ void QColumnView_UpdatePreviewWidget(QColumnView* self, QModelIndex* index) { self->updatePreviewWidget(*index); } -void QColumnView_connect_UpdatePreviewWidget(QColumnView* self, void* slot) { +void QColumnView_connect_UpdatePreviewWidget(QColumnView* self, intptr_t slot) { QColumnView::connect(self, static_cast(&QColumnView::updatePreviewWidget), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer diff --git a/qt/gen_qcolumnview.go b/qt/gen_qcolumnview.go index 1bea152..c3cfd25 100644 --- a/qt/gen_qcolumnview.go +++ b/qt/gen_qcolumnview.go @@ -81,12 +81,12 @@ func (this *QColumnView) UpdatePreviewWidget(index *QModelIndex) { C.QColumnView_UpdatePreviewWidget(this.h, index.cPointer()) } func (this *QColumnView) OnUpdatePreviewWidget(slot func(index *QModelIndex)) { - C.QColumnView_connect_UpdatePreviewWidget(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QColumnView_connect_UpdatePreviewWidget(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QColumnView_UpdatePreviewWidget -func miqt_exec_callback_QColumnView_UpdatePreviewWidget(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QColumnView_UpdatePreviewWidget(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qcolumnview.h b/qt/gen_qcolumnview.h index e84c4a2..4473eba 100644 --- a/qt/gen_qcolumnview.h +++ b/qt/gen_qcolumnview.h @@ -42,7 +42,7 @@ void* QColumnView_Metacast(QColumnView* self, const char* param1); struct miqt_string* QColumnView_Tr(const char* s); struct miqt_string* QColumnView_TrUtf8(const char* s); void QColumnView_UpdatePreviewWidget(QColumnView* self, QModelIndex* index); -void QColumnView_connect_UpdatePreviewWidget(QColumnView* self, void* slot); +void QColumnView_connect_UpdatePreviewWidget(QColumnView* self, intptr_t slot); QModelIndex* QColumnView_IndexAt(const QColumnView* self, QPoint* point); void QColumnView_ScrollTo(QColumnView* self, QModelIndex* index); QSize* QColumnView_SizeHint(const QColumnView* self); diff --git a/qt/gen_qcombobox.cpp b/qt/gen_qcombobox.cpp index 96bc235..e925ea2 100644 --- a/qt/gen_qcombobox.cpp +++ b/qt/gen_qcombobox.cpp @@ -378,7 +378,7 @@ void QComboBox_EditTextChanged(QComboBox* self, struct miqt_string* param1) { self->editTextChanged(param1_QString); } -void QComboBox_connect_EditTextChanged(QComboBox* self, void* slot) { +void QComboBox_connect_EditTextChanged(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::editTextChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -392,7 +392,7 @@ void QComboBox_Activated(QComboBox* self, int index) { self->activated(static_cast(index)); } -void QComboBox_connect_Activated(QComboBox* self, void* slot) { +void QComboBox_connect_Activated(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::activated), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QComboBox_Activated(slot, sigval1); @@ -404,7 +404,7 @@ void QComboBox_TextActivated(QComboBox* self, struct miqt_string* param1) { self->textActivated(param1_QString); } -void QComboBox_connect_TextActivated(QComboBox* self, void* slot) { +void QComboBox_connect_TextActivated(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::textActivated), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -418,7 +418,7 @@ void QComboBox_Highlighted(QComboBox* self, int index) { self->highlighted(static_cast(index)); } -void QComboBox_connect_Highlighted(QComboBox* self, void* slot) { +void QComboBox_connect_Highlighted(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::highlighted), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QComboBox_Highlighted(slot, sigval1); @@ -430,7 +430,7 @@ void QComboBox_TextHighlighted(QComboBox* self, struct miqt_string* param1) { self->textHighlighted(param1_QString); } -void QComboBox_connect_TextHighlighted(QComboBox* self, void* slot) { +void QComboBox_connect_TextHighlighted(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::textHighlighted), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -444,7 +444,7 @@ void QComboBox_CurrentIndexChanged(QComboBox* self, int index) { self->currentIndexChanged(static_cast(index)); } -void QComboBox_connect_CurrentIndexChanged(QComboBox* self, void* slot) { +void QComboBox_connect_CurrentIndexChanged(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::currentIndexChanged), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QComboBox_CurrentIndexChanged(slot, sigval1); @@ -456,7 +456,7 @@ void QComboBox_CurrentIndexChangedWithQString(QComboBox* self, struct miqt_strin self->currentIndexChanged(param1_QString); } -void QComboBox_connect_CurrentIndexChangedWithQString(QComboBox* self, void* slot) { +void QComboBox_connect_CurrentIndexChangedWithQString(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::currentIndexChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -471,7 +471,7 @@ void QComboBox_CurrentTextChanged(QComboBox* self, struct miqt_string* param1) { self->currentTextChanged(param1_QString); } -void QComboBox_connect_CurrentTextChanged(QComboBox* self, void* slot) { +void QComboBox_connect_CurrentTextChanged(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::currentTextChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -486,7 +486,7 @@ void QComboBox_ActivatedWithQString(QComboBox* self, struct miqt_string* param1) self->activated(param1_QString); } -void QComboBox_connect_ActivatedWithQString(QComboBox* self, void* slot) { +void QComboBox_connect_ActivatedWithQString(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::activated), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -501,7 +501,7 @@ void QComboBox_HighlightedWithQString(QComboBox* self, struct miqt_string* param self->highlighted(param1_QString); } -void QComboBox_connect_HighlightedWithQString(QComboBox* self, void* slot) { +void QComboBox_connect_HighlightedWithQString(QComboBox* self, intptr_t slot) { QComboBox::connect(self, static_cast(&QComboBox::highlighted), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qcombobox.go b/qt/gen_qcombobox.go index c90af26..776f3e5 100644 --- a/qt/gen_qcombobox.go +++ b/qt/gen_qcombobox.go @@ -466,12 +466,12 @@ func (this *QComboBox) EditTextChanged(param1 string) { C.QComboBox_EditTextChanged(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QComboBox) OnEditTextChanged(slot func(param1 string)) { - C.QComboBox_connect_EditTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_EditTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_EditTextChanged -func miqt_exec_callback_QComboBox_EditTextChanged(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QComboBox_EditTextChanged(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -489,12 +489,12 @@ func (this *QComboBox) Activated(index int) { C.QComboBox_Activated(this.h, (C.int)(index)) } func (this *QComboBox) OnActivated(slot func(index int)) { - C.QComboBox_connect_Activated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_Activated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_Activated -func miqt_exec_callback_QComboBox_Activated(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QComboBox_Activated(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -511,12 +511,12 @@ func (this *QComboBox) TextActivated(param1 string) { C.QComboBox_TextActivated(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QComboBox) OnTextActivated(slot func(param1 string)) { - C.QComboBox_connect_TextActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_TextActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_TextActivated -func miqt_exec_callback_QComboBox_TextActivated(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QComboBox_TextActivated(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -534,12 +534,12 @@ func (this *QComboBox) Highlighted(index int) { C.QComboBox_Highlighted(this.h, (C.int)(index)) } func (this *QComboBox) OnHighlighted(slot func(index int)) { - C.QComboBox_connect_Highlighted(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_Highlighted(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_Highlighted -func miqt_exec_callback_QComboBox_Highlighted(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QComboBox_Highlighted(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -556,12 +556,12 @@ func (this *QComboBox) TextHighlighted(param1 string) { C.QComboBox_TextHighlighted(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QComboBox) OnTextHighlighted(slot func(param1 string)) { - C.QComboBox_connect_TextHighlighted(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_TextHighlighted(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_TextHighlighted -func miqt_exec_callback_QComboBox_TextHighlighted(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QComboBox_TextHighlighted(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -579,12 +579,12 @@ func (this *QComboBox) CurrentIndexChanged(index int) { C.QComboBox_CurrentIndexChanged(this.h, (C.int)(index)) } func (this *QComboBox) OnCurrentIndexChanged(slot func(index int)) { - C.QComboBox_connect_CurrentIndexChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_CurrentIndexChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_CurrentIndexChanged -func miqt_exec_callback_QComboBox_CurrentIndexChanged(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QComboBox_CurrentIndexChanged(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -601,12 +601,12 @@ func (this *QComboBox) CurrentIndexChangedWithQString(param1 string) { C.QComboBox_CurrentIndexChangedWithQString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QComboBox) OnCurrentIndexChangedWithQString(slot func(param1 string)) { - C.QComboBox_connect_CurrentIndexChangedWithQString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_CurrentIndexChangedWithQString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_CurrentIndexChangedWithQString -func miqt_exec_callback_QComboBox_CurrentIndexChangedWithQString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QComboBox_CurrentIndexChangedWithQString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -626,12 +626,12 @@ func (this *QComboBox) CurrentTextChanged(param1 string) { C.QComboBox_CurrentTextChanged(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QComboBox) OnCurrentTextChanged(slot func(param1 string)) { - C.QComboBox_connect_CurrentTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_CurrentTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_CurrentTextChanged -func miqt_exec_callback_QComboBox_CurrentTextChanged(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QComboBox_CurrentTextChanged(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -651,12 +651,12 @@ func (this *QComboBox) ActivatedWithQString(param1 string) { C.QComboBox_ActivatedWithQString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QComboBox) OnActivatedWithQString(slot func(param1 string)) { - C.QComboBox_connect_ActivatedWithQString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_ActivatedWithQString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_ActivatedWithQString -func miqt_exec_callback_QComboBox_ActivatedWithQString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QComboBox_ActivatedWithQString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -676,12 +676,12 @@ func (this *QComboBox) HighlightedWithQString(param1 string) { C.QComboBox_HighlightedWithQString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QComboBox) OnHighlightedWithQString(slot func(param1 string)) { - C.QComboBox_connect_HighlightedWithQString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QComboBox_connect_HighlightedWithQString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QComboBox_HighlightedWithQString -func miqt_exec_callback_QComboBox_HighlightedWithQString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QComboBox_HighlightedWithQString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qcombobox.h b/qt/gen_qcombobox.h index 8242a1f..cd42a6d 100644 --- a/qt/gen_qcombobox.h +++ b/qt/gen_qcombobox.h @@ -124,25 +124,25 @@ void QComboBox_SetEditText(QComboBox* self, struct miqt_string* text); void QComboBox_SetCurrentIndex(QComboBox* self, int index); void QComboBox_SetCurrentText(QComboBox* self, struct miqt_string* text); void QComboBox_EditTextChanged(QComboBox* self, struct miqt_string* param1); -void QComboBox_connect_EditTextChanged(QComboBox* self, void* slot); +void QComboBox_connect_EditTextChanged(QComboBox* self, intptr_t slot); void QComboBox_Activated(QComboBox* self, int index); -void QComboBox_connect_Activated(QComboBox* self, void* slot); +void QComboBox_connect_Activated(QComboBox* self, intptr_t slot); void QComboBox_TextActivated(QComboBox* self, struct miqt_string* param1); -void QComboBox_connect_TextActivated(QComboBox* self, void* slot); +void QComboBox_connect_TextActivated(QComboBox* self, intptr_t slot); void QComboBox_Highlighted(QComboBox* self, int index); -void QComboBox_connect_Highlighted(QComboBox* self, void* slot); +void QComboBox_connect_Highlighted(QComboBox* self, intptr_t slot); void QComboBox_TextHighlighted(QComboBox* self, struct miqt_string* param1); -void QComboBox_connect_TextHighlighted(QComboBox* self, void* slot); +void QComboBox_connect_TextHighlighted(QComboBox* self, intptr_t slot); void QComboBox_CurrentIndexChanged(QComboBox* self, int index); -void QComboBox_connect_CurrentIndexChanged(QComboBox* self, void* slot); +void QComboBox_connect_CurrentIndexChanged(QComboBox* self, intptr_t slot); void QComboBox_CurrentIndexChangedWithQString(QComboBox* self, struct miqt_string* param1); -void QComboBox_connect_CurrentIndexChangedWithQString(QComboBox* self, void* slot); +void QComboBox_connect_CurrentIndexChangedWithQString(QComboBox* self, intptr_t slot); void QComboBox_CurrentTextChanged(QComboBox* self, struct miqt_string* param1); -void QComboBox_connect_CurrentTextChanged(QComboBox* self, void* slot); +void QComboBox_connect_CurrentTextChanged(QComboBox* self, intptr_t slot); void QComboBox_ActivatedWithQString(QComboBox* self, struct miqt_string* param1); -void QComboBox_connect_ActivatedWithQString(QComboBox* self, void* slot); +void QComboBox_connect_ActivatedWithQString(QComboBox* self, intptr_t slot); void QComboBox_HighlightedWithQString(QComboBox* self, struct miqt_string* param1); -void QComboBox_connect_HighlightedWithQString(QComboBox* self, void* slot); +void QComboBox_connect_HighlightedWithQString(QComboBox* self, intptr_t slot); struct miqt_string* QComboBox_Tr2(const char* s, const char* c); struct miqt_string* QComboBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QComboBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qcompleter.cpp b/qt/gen_qcompleter.cpp index a82e4f0..7c2d988 100644 --- a/qt/gen_qcompleter.cpp +++ b/qt/gen_qcompleter.cpp @@ -238,7 +238,7 @@ void QCompleter_Activated(QCompleter* self, struct miqt_string* text) { self->activated(text_QString); } -void QCompleter_connect_Activated(QCompleter* self, void* slot) { +void QCompleter_connect_Activated(QCompleter* self, intptr_t slot) { QCompleter::connect(self, static_cast(&QCompleter::activated), self, [=](const QString& text) { const QString text_ret = text; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -252,7 +252,7 @@ void QCompleter_ActivatedWithIndex(QCompleter* self, QModelIndex* index) { self->activated(*index); } -void QCompleter_connect_ActivatedWithIndex(QCompleter* self, void* slot) { +void QCompleter_connect_ActivatedWithIndex(QCompleter* self, intptr_t slot) { QCompleter::connect(self, static_cast(&QCompleter::activated), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer @@ -266,7 +266,7 @@ void QCompleter_Highlighted(QCompleter* self, struct miqt_string* text) { self->highlighted(text_QString); } -void QCompleter_connect_Highlighted(QCompleter* self, void* slot) { +void QCompleter_connect_Highlighted(QCompleter* self, intptr_t slot) { QCompleter::connect(self, static_cast(&QCompleter::highlighted), self, [=](const QString& text) { const QString text_ret = text; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -280,7 +280,7 @@ void QCompleter_HighlightedWithIndex(QCompleter* self, QModelIndex* index) { self->highlighted(*index); } -void QCompleter_connect_HighlightedWithIndex(QCompleter* self, void* slot) { +void QCompleter_connect_HighlightedWithIndex(QCompleter* self, intptr_t slot) { QCompleter::connect(self, static_cast(&QCompleter::highlighted), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer diff --git a/qt/gen_qcompleter.go b/qt/gen_qcompleter.go index 6cf6155..098836d 100644 --- a/qt/gen_qcompleter.go +++ b/qt/gen_qcompleter.go @@ -301,12 +301,12 @@ func (this *QCompleter) Activated(text string) { C.QCompleter_Activated(this.h, (*C.struct_miqt_string)(text_ms)) } func (this *QCompleter) OnActivated(slot func(text string)) { - C.QCompleter_connect_Activated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCompleter_connect_Activated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCompleter_Activated -func miqt_exec_callback_QCompleter_Activated(cb *C.void, text *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(text string)) +func miqt_exec_callback_QCompleter_Activated(cb C.intptr_t, text *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(text string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -324,12 +324,12 @@ func (this *QCompleter) ActivatedWithIndex(index *QModelIndex) { C.QCompleter_ActivatedWithIndex(this.h, index.cPointer()) } func (this *QCompleter) OnActivatedWithIndex(slot func(index *QModelIndex)) { - C.QCompleter_connect_ActivatedWithIndex(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCompleter_connect_ActivatedWithIndex(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCompleter_ActivatedWithIndex -func miqt_exec_callback_QCompleter_ActivatedWithIndex(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QCompleter_ActivatedWithIndex(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -346,12 +346,12 @@ func (this *QCompleter) Highlighted(text string) { C.QCompleter_Highlighted(this.h, (*C.struct_miqt_string)(text_ms)) } func (this *QCompleter) OnHighlighted(slot func(text string)) { - C.QCompleter_connect_Highlighted(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCompleter_connect_Highlighted(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCompleter_Highlighted -func miqt_exec_callback_QCompleter_Highlighted(cb *C.void, text *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(text string)) +func miqt_exec_callback_QCompleter_Highlighted(cb C.intptr_t, text *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(text string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -369,12 +369,12 @@ func (this *QCompleter) HighlightedWithIndex(index *QModelIndex) { C.QCompleter_HighlightedWithIndex(this.h, index.cPointer()) } func (this *QCompleter) OnHighlightedWithIndex(slot func(index *QModelIndex)) { - C.QCompleter_connect_HighlightedWithIndex(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCompleter_connect_HighlightedWithIndex(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCompleter_HighlightedWithIndex -func miqt_exec_callback_QCompleter_HighlightedWithIndex(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QCompleter_HighlightedWithIndex(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qcompleter.h b/qt/gen_qcompleter.h index 08d1dca..0bd2022 100644 --- a/qt/gen_qcompleter.h +++ b/qt/gen_qcompleter.h @@ -77,13 +77,13 @@ void QCompleter_SetWrapAround(QCompleter* self, bool wrap); struct miqt_string* QCompleter_PathFromIndex(const QCompleter* self, QModelIndex* index); struct miqt_array* QCompleter_SplitPath(const QCompleter* self, struct miqt_string* path); void QCompleter_Activated(QCompleter* self, struct miqt_string* text); -void QCompleter_connect_Activated(QCompleter* self, void* slot); +void QCompleter_connect_Activated(QCompleter* self, intptr_t slot); void QCompleter_ActivatedWithIndex(QCompleter* self, QModelIndex* index); -void QCompleter_connect_ActivatedWithIndex(QCompleter* self, void* slot); +void QCompleter_connect_ActivatedWithIndex(QCompleter* self, intptr_t slot); void QCompleter_Highlighted(QCompleter* self, struct miqt_string* text); -void QCompleter_connect_Highlighted(QCompleter* self, void* slot); +void QCompleter_connect_Highlighted(QCompleter* self, intptr_t slot); void QCompleter_HighlightedWithIndex(QCompleter* self, QModelIndex* index); -void QCompleter_connect_HighlightedWithIndex(QCompleter* self, void* slot); +void QCompleter_connect_HighlightedWithIndex(QCompleter* self, intptr_t slot); struct miqt_string* QCompleter_Tr2(const char* s, const char* c); struct miqt_string* QCompleter_Tr3(const char* s, const char* c, int n); struct miqt_string* QCompleter_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qcoreapplication.cpp b/qt/gen_qcoreapplication.cpp index d687fa3..c04aaec 100644 --- a/qt/gen_qcoreapplication.cpp +++ b/qt/gen_qcoreapplication.cpp @@ -282,7 +282,7 @@ void QCoreApplication_OrganizationNameChanged(QCoreApplication* self) { self->organizationNameChanged(); } -void QCoreApplication_connect_OrganizationNameChanged(QCoreApplication* self, void* slot) { +void QCoreApplication_connect_OrganizationNameChanged(QCoreApplication* self, intptr_t slot) { QCoreApplication::connect(self, static_cast(&QCoreApplication::organizationNameChanged), self, [=]() { miqt_exec_callback_QCoreApplication_OrganizationNameChanged(slot); }); @@ -292,7 +292,7 @@ void QCoreApplication_OrganizationDomainChanged(QCoreApplication* self) { self->organizationDomainChanged(); } -void QCoreApplication_connect_OrganizationDomainChanged(QCoreApplication* self, void* slot) { +void QCoreApplication_connect_OrganizationDomainChanged(QCoreApplication* self, intptr_t slot) { QCoreApplication::connect(self, static_cast(&QCoreApplication::organizationDomainChanged), self, [=]() { miqt_exec_callback_QCoreApplication_OrganizationDomainChanged(slot); }); @@ -302,7 +302,7 @@ void QCoreApplication_ApplicationNameChanged(QCoreApplication* self) { self->applicationNameChanged(); } -void QCoreApplication_connect_ApplicationNameChanged(QCoreApplication* self, void* slot) { +void QCoreApplication_connect_ApplicationNameChanged(QCoreApplication* self, intptr_t slot) { QCoreApplication::connect(self, static_cast(&QCoreApplication::applicationNameChanged), self, [=]() { miqt_exec_callback_QCoreApplication_ApplicationNameChanged(slot); }); @@ -312,7 +312,7 @@ void QCoreApplication_ApplicationVersionChanged(QCoreApplication* self) { self->applicationVersionChanged(); } -void QCoreApplication_connect_ApplicationVersionChanged(QCoreApplication* self, void* slot) { +void QCoreApplication_connect_ApplicationVersionChanged(QCoreApplication* self, intptr_t slot) { QCoreApplication::connect(self, static_cast(&QCoreApplication::applicationVersionChanged), self, [=]() { miqt_exec_callback_QCoreApplication_ApplicationVersionChanged(slot); }); diff --git a/qt/gen_qcoreapplication.go b/qt/gen_qcoreapplication.go index b799226..23d60c0 100644 --- a/qt/gen_qcoreapplication.go +++ b/qt/gen_qcoreapplication.go @@ -344,12 +344,12 @@ func (this *QCoreApplication) OrganizationNameChanged() { C.QCoreApplication_OrganizationNameChanged(this.h) } func (this *QCoreApplication) OnOrganizationNameChanged(slot func()) { - C.QCoreApplication_connect_OrganizationNameChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCoreApplication_connect_OrganizationNameChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCoreApplication_OrganizationNameChanged -func miqt_exec_callback_QCoreApplication_OrganizationNameChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QCoreApplication_OrganizationNameChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -361,12 +361,12 @@ func (this *QCoreApplication) OrganizationDomainChanged() { C.QCoreApplication_OrganizationDomainChanged(this.h) } func (this *QCoreApplication) OnOrganizationDomainChanged(slot func()) { - C.QCoreApplication_connect_OrganizationDomainChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCoreApplication_connect_OrganizationDomainChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCoreApplication_OrganizationDomainChanged -func miqt_exec_callback_QCoreApplication_OrganizationDomainChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QCoreApplication_OrganizationDomainChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -378,12 +378,12 @@ func (this *QCoreApplication) ApplicationNameChanged() { C.QCoreApplication_ApplicationNameChanged(this.h) } func (this *QCoreApplication) OnApplicationNameChanged(slot func()) { - C.QCoreApplication_connect_ApplicationNameChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCoreApplication_connect_ApplicationNameChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCoreApplication_ApplicationNameChanged -func miqt_exec_callback_QCoreApplication_ApplicationNameChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QCoreApplication_ApplicationNameChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -395,12 +395,12 @@ func (this *QCoreApplication) ApplicationVersionChanged() { C.QCoreApplication_ApplicationVersionChanged(this.h) } func (this *QCoreApplication) OnApplicationVersionChanged(slot func()) { - C.QCoreApplication_connect_ApplicationVersionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QCoreApplication_connect_ApplicationVersionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QCoreApplication_ApplicationVersionChanged -func miqt_exec_callback_QCoreApplication_ApplicationVersionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QCoreApplication_ApplicationVersionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qcoreapplication.h b/qt/gen_qcoreapplication.h index 0b45b04..a520014 100644 --- a/qt/gen_qcoreapplication.h +++ b/qt/gen_qcoreapplication.h @@ -82,13 +82,13 @@ bool QCoreApplication_IsQuitLockEnabled(); void QCoreApplication_SetQuitLockEnabled(bool enabled); void QCoreApplication_Quit(); void QCoreApplication_OrganizationNameChanged(QCoreApplication* self); -void QCoreApplication_connect_OrganizationNameChanged(QCoreApplication* self, void* slot); +void QCoreApplication_connect_OrganizationNameChanged(QCoreApplication* self, intptr_t slot); void QCoreApplication_OrganizationDomainChanged(QCoreApplication* self); -void QCoreApplication_connect_OrganizationDomainChanged(QCoreApplication* self, void* slot); +void QCoreApplication_connect_OrganizationDomainChanged(QCoreApplication* self, intptr_t slot); void QCoreApplication_ApplicationNameChanged(QCoreApplication* self); -void QCoreApplication_connect_ApplicationNameChanged(QCoreApplication* self, void* slot); +void QCoreApplication_connect_ApplicationNameChanged(QCoreApplication* self, intptr_t slot); void QCoreApplication_ApplicationVersionChanged(QCoreApplication* self); -void QCoreApplication_connect_ApplicationVersionChanged(QCoreApplication* self, void* slot); +void QCoreApplication_connect_ApplicationVersionChanged(QCoreApplication* self, intptr_t slot); struct miqt_string* QCoreApplication_Tr2(const char* s, const char* c); struct miqt_string* QCoreApplication_Tr3(const char* s, const char* c, int n); struct miqt_string* QCoreApplication_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qdatawidgetmapper.cpp b/qt/gen_qdatawidgetmapper.cpp index 19db662..a57ad43 100644 --- a/qt/gen_qdatawidgetmapper.cpp +++ b/qt/gen_qdatawidgetmapper.cpp @@ -153,7 +153,7 @@ void QDataWidgetMapper_CurrentIndexChanged(QDataWidgetMapper* self, int index) { self->currentIndexChanged(static_cast(index)); } -void QDataWidgetMapper_connect_CurrentIndexChanged(QDataWidgetMapper* self, void* slot) { +void QDataWidgetMapper_connect_CurrentIndexChanged(QDataWidgetMapper* self, intptr_t slot) { QDataWidgetMapper::connect(self, static_cast(&QDataWidgetMapper::currentIndexChanged), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QDataWidgetMapper_CurrentIndexChanged(slot, sigval1); diff --git a/qt/gen_qdatawidgetmapper.go b/qt/gen_qdatawidgetmapper.go index 32fc8b0..c9ddb1e 100644 --- a/qt/gen_qdatawidgetmapper.go +++ b/qt/gen_qdatawidgetmapper.go @@ -198,12 +198,12 @@ func (this *QDataWidgetMapper) CurrentIndexChanged(index int) { C.QDataWidgetMapper_CurrentIndexChanged(this.h, (C.int)(index)) } func (this *QDataWidgetMapper) OnCurrentIndexChanged(slot func(index int)) { - C.QDataWidgetMapper_connect_CurrentIndexChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDataWidgetMapper_connect_CurrentIndexChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDataWidgetMapper_CurrentIndexChanged -func miqt_exec_callback_QDataWidgetMapper_CurrentIndexChanged(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QDataWidgetMapper_CurrentIndexChanged(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qdatawidgetmapper.h b/qt/gen_qdatawidgetmapper.h index 460d566..f001bce 100644 --- a/qt/gen_qdatawidgetmapper.h +++ b/qt/gen_qdatawidgetmapper.h @@ -66,7 +66,7 @@ void QDataWidgetMapper_ToPrevious(QDataWidgetMapper* self); void QDataWidgetMapper_SetCurrentIndex(QDataWidgetMapper* self, int index); void QDataWidgetMapper_SetCurrentModelIndex(QDataWidgetMapper* self, QModelIndex* index); void QDataWidgetMapper_CurrentIndexChanged(QDataWidgetMapper* self, int index); -void QDataWidgetMapper_connect_CurrentIndexChanged(QDataWidgetMapper* self, void* slot); +void QDataWidgetMapper_connect_CurrentIndexChanged(QDataWidgetMapper* self, intptr_t slot); struct miqt_string* QDataWidgetMapper_Tr2(const char* s, const char* c); struct miqt_string* QDataWidgetMapper_Tr3(const char* s, const char* c, int n); struct miqt_string* QDataWidgetMapper_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qdatetimeedit.cpp b/qt/gen_qdatetimeedit.cpp index b60e478..6ba6696 100644 --- a/qt/gen_qdatetimeedit.cpp +++ b/qt/gen_qdatetimeedit.cpp @@ -274,7 +274,7 @@ void QDateTimeEdit_DateTimeChanged(QDateTimeEdit* self, QDateTime* dateTime) { self->dateTimeChanged(*dateTime); } -void QDateTimeEdit_connect_DateTimeChanged(QDateTimeEdit* self, void* slot) { +void QDateTimeEdit_connect_DateTimeChanged(QDateTimeEdit* self, intptr_t slot) { QDateTimeEdit::connect(self, static_cast(&QDateTimeEdit::dateTimeChanged), self, [=](const QDateTime& dateTime) { const QDateTime& dateTime_ret = dateTime; // Cast returned reference into pointer @@ -287,7 +287,7 @@ void QDateTimeEdit_TimeChanged(QDateTimeEdit* self, QTime* time) { self->timeChanged(*time); } -void QDateTimeEdit_connect_TimeChanged(QDateTimeEdit* self, void* slot) { +void QDateTimeEdit_connect_TimeChanged(QDateTimeEdit* self, intptr_t slot) { QDateTimeEdit::connect(self, static_cast(&QDateTimeEdit::timeChanged), self, [=](const QTime& time) { const QTime& time_ret = time; // Cast returned reference into pointer @@ -300,7 +300,7 @@ void QDateTimeEdit_DateChanged(QDateTimeEdit* self, QDate* date) { self->dateChanged(*date); } -void QDateTimeEdit_connect_DateChanged(QDateTimeEdit* self, void* slot) { +void QDateTimeEdit_connect_DateChanged(QDateTimeEdit* self, intptr_t slot) { QDateTimeEdit::connect(self, static_cast(&QDateTimeEdit::dateChanged), self, [=](const QDate& date) { const QDate& date_ret = date; // Cast returned reference into pointer @@ -395,7 +395,7 @@ void QTimeEdit_UserTimeChanged(QTimeEdit* self, QTime* time) { self->userTimeChanged(*time); } -void QTimeEdit_connect_UserTimeChanged(QTimeEdit* self, void* slot) { +void QTimeEdit_connect_UserTimeChanged(QTimeEdit* self, intptr_t slot) { QTimeEdit::connect(self, static_cast(&QTimeEdit::userTimeChanged), self, [=](const QTime& time) { const QTime& time_ret = time; // Cast returned reference into pointer @@ -478,7 +478,7 @@ void QDateEdit_UserDateChanged(QDateEdit* self, QDate* date) { self->userDateChanged(*date); } -void QDateEdit_connect_UserDateChanged(QDateEdit* self, void* slot) { +void QDateEdit_connect_UserDateChanged(QDateEdit* self, intptr_t slot) { QDateEdit::connect(self, static_cast(&QDateEdit::userDateChanged), self, [=](const QDate& date) { const QDate& date_ret = date; // Cast returned reference into pointer diff --git a/qt/gen_qdatetimeedit.go b/qt/gen_qdatetimeedit.go index 35d2da2..fd7012e 100644 --- a/qt/gen_qdatetimeedit.go +++ b/qt/gen_qdatetimeedit.go @@ -362,12 +362,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, dateTime *C.QDateTime) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(dateTime *QDateTime)) +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?)") } @@ -382,12 +382,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, time *C.QTime) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(time *QTime)) +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?)") } @@ -402,12 +402,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, date *C.QDate) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(date *QDate)) +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?)") } @@ -567,12 +567,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, time *C.QTime) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(time *QTime)) +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?)") } @@ -720,12 +720,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, date *C.QDate) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(date *QDate)) +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?)") } diff --git a/qt/gen_qdatetimeedit.h b/qt/gen_qdatetimeedit.h index bad70a1..071a31a 100644 --- a/qt/gen_qdatetimeedit.h +++ b/qt/gen_qdatetimeedit.h @@ -101,11 +101,11 @@ void QDateTimeEdit_Clear(QDateTimeEdit* self); void QDateTimeEdit_StepBy(QDateTimeEdit* self, int steps); bool QDateTimeEdit_Event(QDateTimeEdit* self, QEvent* event); void QDateTimeEdit_DateTimeChanged(QDateTimeEdit* self, QDateTime* dateTime); -void QDateTimeEdit_connect_DateTimeChanged(QDateTimeEdit* self, void* slot); +void QDateTimeEdit_connect_DateTimeChanged(QDateTimeEdit* self, intptr_t slot); void QDateTimeEdit_TimeChanged(QDateTimeEdit* self, QTime* time); -void QDateTimeEdit_connect_TimeChanged(QDateTimeEdit* self, void* slot); +void QDateTimeEdit_connect_TimeChanged(QDateTimeEdit* self, intptr_t slot); void QDateTimeEdit_DateChanged(QDateTimeEdit* self, QDate* date); -void QDateTimeEdit_connect_DateChanged(QDateTimeEdit* self, void* slot); +void QDateTimeEdit_connect_DateChanged(QDateTimeEdit* self, intptr_t slot); void QDateTimeEdit_SetDateTime(QDateTimeEdit* self, QDateTime* dateTime); void QDateTimeEdit_SetDate(QDateTimeEdit* self, QDate* date); void QDateTimeEdit_SetTime(QDateTimeEdit* self, QTime* time); @@ -124,7 +124,7 @@ void* QTimeEdit_Metacast(QTimeEdit* self, const char* param1); struct miqt_string* QTimeEdit_Tr(const char* s); struct miqt_string* QTimeEdit_TrUtf8(const char* s); void QTimeEdit_UserTimeChanged(QTimeEdit* self, QTime* time); -void QTimeEdit_connect_UserTimeChanged(QTimeEdit* self, void* slot); +void QTimeEdit_connect_UserTimeChanged(QTimeEdit* self, intptr_t slot); struct miqt_string* QTimeEdit_Tr2(const char* s, const char* c); struct miqt_string* QTimeEdit_Tr3(const char* s, const char* c, int n); struct miqt_string* QTimeEdit_TrUtf82(const char* s, const char* c); @@ -140,7 +140,7 @@ void* QDateEdit_Metacast(QDateEdit* self, const char* param1); struct miqt_string* QDateEdit_Tr(const char* s); struct miqt_string* QDateEdit_TrUtf8(const char* s); void QDateEdit_UserDateChanged(QDateEdit* self, QDate* date); -void QDateEdit_connect_UserDateChanged(QDateEdit* self, void* slot); +void QDateEdit_connect_UserDateChanged(QDateEdit* self, intptr_t slot); struct miqt_string* QDateEdit_Tr2(const char* s, const char* c); struct miqt_string* QDateEdit_Tr3(const char* s, const char* c, int n); struct miqt_string* QDateEdit_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qdesktopwidget.cpp b/qt/gen_qdesktopwidget.cpp index 8c9970c..ebe8201 100644 --- a/qt/gen_qdesktopwidget.cpp +++ b/qt/gen_qdesktopwidget.cpp @@ -92,7 +92,7 @@ void QDesktopWidget_Resized(QDesktopWidget* self, int param1) { self->resized(static_cast(param1)); } -void QDesktopWidget_connect_Resized(QDesktopWidget* self, void* slot) { +void QDesktopWidget_connect_Resized(QDesktopWidget* self, intptr_t slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::resized), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QDesktopWidget_Resized(slot, sigval1); @@ -103,7 +103,7 @@ void QDesktopWidget_WorkAreaResized(QDesktopWidget* self, int param1) { self->workAreaResized(static_cast(param1)); } -void QDesktopWidget_connect_WorkAreaResized(QDesktopWidget* self, void* slot) { +void QDesktopWidget_connect_WorkAreaResized(QDesktopWidget* self, intptr_t slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::workAreaResized), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QDesktopWidget_WorkAreaResized(slot, sigval1); @@ -114,7 +114,7 @@ void QDesktopWidget_ScreenCountChanged(QDesktopWidget* self, int param1) { self->screenCountChanged(static_cast(param1)); } -void QDesktopWidget_connect_ScreenCountChanged(QDesktopWidget* self, void* slot) { +void QDesktopWidget_connect_ScreenCountChanged(QDesktopWidget* self, intptr_t slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::screenCountChanged), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QDesktopWidget_ScreenCountChanged(slot, sigval1); @@ -125,7 +125,7 @@ void QDesktopWidget_PrimaryScreenChanged(QDesktopWidget* self) { self->primaryScreenChanged(); } -void QDesktopWidget_connect_PrimaryScreenChanged(QDesktopWidget* self, void* slot) { +void QDesktopWidget_connect_PrimaryScreenChanged(QDesktopWidget* self, intptr_t slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::primaryScreenChanged), self, [=]() { miqt_exec_callback_QDesktopWidget_PrimaryScreenChanged(slot); }); diff --git a/qt/gen_qdesktopwidget.go b/qt/gen_qdesktopwidget.go index 6643897..e5681d1 100644 --- a/qt/gen_qdesktopwidget.go +++ b/qt/gen_qdesktopwidget.go @@ -145,12 +145,12 @@ func (this *QDesktopWidget) Resized(param1 int) { C.QDesktopWidget_Resized(this.h, (C.int)(param1)) } func (this *QDesktopWidget) OnResized(slot func(param1 int)) { - C.QDesktopWidget_connect_Resized(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDesktopWidget_connect_Resized(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDesktopWidget_Resized -func miqt_exec_callback_QDesktopWidget_Resized(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QDesktopWidget_Resized(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -165,12 +165,12 @@ func (this *QDesktopWidget) WorkAreaResized(param1 int) { C.QDesktopWidget_WorkAreaResized(this.h, (C.int)(param1)) } func (this *QDesktopWidget) OnWorkAreaResized(slot func(param1 int)) { - C.QDesktopWidget_connect_WorkAreaResized(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDesktopWidget_connect_WorkAreaResized(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDesktopWidget_WorkAreaResized -func miqt_exec_callback_QDesktopWidget_WorkAreaResized(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QDesktopWidget_WorkAreaResized(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -185,12 +185,12 @@ func (this *QDesktopWidget) ScreenCountChanged(param1 int) { C.QDesktopWidget_ScreenCountChanged(this.h, (C.int)(param1)) } func (this *QDesktopWidget) OnScreenCountChanged(slot func(param1 int)) { - C.QDesktopWidget_connect_ScreenCountChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDesktopWidget_connect_ScreenCountChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDesktopWidget_ScreenCountChanged -func miqt_exec_callback_QDesktopWidget_ScreenCountChanged(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QDesktopWidget_ScreenCountChanged(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -205,12 +205,12 @@ func (this *QDesktopWidget) PrimaryScreenChanged() { C.QDesktopWidget_PrimaryScreenChanged(this.h) } func (this *QDesktopWidget) OnPrimaryScreenChanged(slot func()) { - C.QDesktopWidget_connect_PrimaryScreenChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDesktopWidget_connect_PrimaryScreenChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDesktopWidget_PrimaryScreenChanged -func miqt_exec_callback_QDesktopWidget_PrimaryScreenChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QDesktopWidget_PrimaryScreenChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qdesktopwidget.h b/qt/gen_qdesktopwidget.h index f274336..3ff94c3 100644 --- a/qt/gen_qdesktopwidget.h +++ b/qt/gen_qdesktopwidget.h @@ -46,13 +46,13 @@ QRect* QDesktopWidget_ScreenGeometryWithPoint(const QDesktopWidget* self, QPoint QRect* QDesktopWidget_AvailableGeometry2(const QDesktopWidget* self); QRect* QDesktopWidget_AvailableGeometryWithPoint(const QDesktopWidget* self, QPoint* point); void QDesktopWidget_Resized(QDesktopWidget* self, int param1); -void QDesktopWidget_connect_Resized(QDesktopWidget* self, void* slot); +void QDesktopWidget_connect_Resized(QDesktopWidget* self, intptr_t slot); void QDesktopWidget_WorkAreaResized(QDesktopWidget* self, int param1); -void QDesktopWidget_connect_WorkAreaResized(QDesktopWidget* self, void* slot); +void QDesktopWidget_connect_WorkAreaResized(QDesktopWidget* self, intptr_t slot); void QDesktopWidget_ScreenCountChanged(QDesktopWidget* self, int param1); -void QDesktopWidget_connect_ScreenCountChanged(QDesktopWidget* self, void* slot); +void QDesktopWidget_connect_ScreenCountChanged(QDesktopWidget* self, intptr_t slot); void QDesktopWidget_PrimaryScreenChanged(QDesktopWidget* self); -void QDesktopWidget_connect_PrimaryScreenChanged(QDesktopWidget* self, void* slot); +void QDesktopWidget_connect_PrimaryScreenChanged(QDesktopWidget* self, intptr_t slot); struct miqt_string* QDesktopWidget_Tr2(const char* s, const char* c); struct miqt_string* QDesktopWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QDesktopWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qdialog.cpp b/qt/gen_qdialog.cpp index ca28955..cb13c98 100644 --- a/qt/gen_qdialog.cpp +++ b/qt/gen_qdialog.cpp @@ -96,7 +96,7 @@ void QDialog_Finished(QDialog* self, int result) { self->finished(static_cast(result)); } -void QDialog_connect_Finished(QDialog* self, void* slot) { +void QDialog_connect_Finished(QDialog* self, intptr_t slot) { QDialog::connect(self, static_cast(&QDialog::finished), self, [=](int result) { int sigval1 = result; miqt_exec_callback_QDialog_Finished(slot, sigval1); @@ -107,7 +107,7 @@ void QDialog_Accepted(QDialog* self) { self->accepted(); } -void QDialog_connect_Accepted(QDialog* self, void* slot) { +void QDialog_connect_Accepted(QDialog* self, intptr_t slot) { QDialog::connect(self, static_cast(&QDialog::accepted), self, [=]() { miqt_exec_callback_QDialog_Accepted(slot); }); @@ -117,7 +117,7 @@ void QDialog_Rejected(QDialog* self) { self->rejected(); } -void QDialog_connect_Rejected(QDialog* self, void* slot) { +void QDialog_connect_Rejected(QDialog* self, intptr_t slot) { QDialog::connect(self, static_cast(&QDialog::rejected), self, [=]() { miqt_exec_callback_QDialog_Rejected(slot); }); diff --git a/qt/gen_qdialog.go b/qt/gen_qdialog.go index d6509f8..11586d5 100644 --- a/qt/gen_qdialog.go +++ b/qt/gen_qdialog.go @@ -148,12 +148,12 @@ func (this *QDialog) Finished(result int) { C.QDialog_Finished(this.h, (C.int)(result)) } func (this *QDialog) OnFinished(slot func(result int)) { - C.QDialog_connect_Finished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDialog_connect_Finished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDialog_Finished -func miqt_exec_callback_QDialog_Finished(cb *C.void, result C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(result int)) +func miqt_exec_callback_QDialog_Finished(cb C.intptr_t, result C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(result int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -168,12 +168,12 @@ func (this *QDialog) Accepted() { C.QDialog_Accepted(this.h) } func (this *QDialog) OnAccepted(slot func()) { - C.QDialog_connect_Accepted(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDialog_connect_Accepted(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDialog_Accepted -func miqt_exec_callback_QDialog_Accepted(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QDialog_Accepted(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -185,12 +185,12 @@ func (this *QDialog) Rejected() { C.QDialog_Rejected(this.h) } func (this *QDialog) OnRejected(slot func()) { - C.QDialog_connect_Rejected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDialog_connect_Rejected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDialog_Rejected -func miqt_exec_callback_QDialog_Rejected(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QDialog_Rejected(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qdialog.h b/qt/gen_qdialog.h index 1c9958f..3453703 100644 --- a/qt/gen_qdialog.h +++ b/qt/gen_qdialog.h @@ -45,11 +45,11 @@ bool QDialog_IsSizeGripEnabled(const QDialog* self); void QDialog_SetModal(QDialog* self, bool modal); void QDialog_SetResult(QDialog* self, int r); void QDialog_Finished(QDialog* self, int result); -void QDialog_connect_Finished(QDialog* self, void* slot); +void QDialog_connect_Finished(QDialog* self, intptr_t slot); void QDialog_Accepted(QDialog* self); -void QDialog_connect_Accepted(QDialog* self, void* slot); +void QDialog_connect_Accepted(QDialog* self, intptr_t slot); void QDialog_Rejected(QDialog* self); -void QDialog_connect_Rejected(QDialog* self, void* slot); +void QDialog_connect_Rejected(QDialog* self, intptr_t slot); void QDialog_Open(QDialog* self); int QDialog_Exec(QDialog* self); void QDialog_Done(QDialog* self, int param1); diff --git a/qt/gen_qdialogbuttonbox.cpp b/qt/gen_qdialogbuttonbox.cpp index 12f74af..b7e1200 100644 --- a/qt/gen_qdialogbuttonbox.cpp +++ b/qt/gen_qdialogbuttonbox.cpp @@ -143,7 +143,7 @@ void QDialogButtonBox_Clicked(QDialogButtonBox* self, QAbstractButton* button) { self->clicked(button); } -void QDialogButtonBox_connect_Clicked(QDialogButtonBox* self, void* slot) { +void QDialogButtonBox_connect_Clicked(QDialogButtonBox* self, intptr_t slot) { QDialogButtonBox::connect(self, static_cast(&QDialogButtonBox::clicked), self, [=](QAbstractButton* button) { QAbstractButton* sigval1 = button; miqt_exec_callback_QDialogButtonBox_Clicked(slot, sigval1); @@ -154,7 +154,7 @@ void QDialogButtonBox_Accepted(QDialogButtonBox* self) { self->accepted(); } -void QDialogButtonBox_connect_Accepted(QDialogButtonBox* self, void* slot) { +void QDialogButtonBox_connect_Accepted(QDialogButtonBox* self, intptr_t slot) { QDialogButtonBox::connect(self, static_cast(&QDialogButtonBox::accepted), self, [=]() { miqt_exec_callback_QDialogButtonBox_Accepted(slot); }); @@ -164,7 +164,7 @@ void QDialogButtonBox_HelpRequested(QDialogButtonBox* self) { self->helpRequested(); } -void QDialogButtonBox_connect_HelpRequested(QDialogButtonBox* self, void* slot) { +void QDialogButtonBox_connect_HelpRequested(QDialogButtonBox* self, intptr_t slot) { QDialogButtonBox::connect(self, static_cast(&QDialogButtonBox::helpRequested), self, [=]() { miqt_exec_callback_QDialogButtonBox_HelpRequested(slot); }); @@ -174,7 +174,7 @@ void QDialogButtonBox_Rejected(QDialogButtonBox* self) { self->rejected(); } -void QDialogButtonBox_connect_Rejected(QDialogButtonBox* self, void* slot) { +void QDialogButtonBox_connect_Rejected(QDialogButtonBox* self, intptr_t slot) { QDialogButtonBox::connect(self, static_cast(&QDialogButtonBox::rejected), self, [=]() { miqt_exec_callback_QDialogButtonBox_Rejected(slot); }); diff --git a/qt/gen_qdialogbuttonbox.go b/qt/gen_qdialogbuttonbox.go index 33c2bec..a8282f2 100644 --- a/qt/gen_qdialogbuttonbox.go +++ b/qt/gen_qdialogbuttonbox.go @@ -238,12 +238,12 @@ func (this *QDialogButtonBox) Clicked(button *QAbstractButton) { C.QDialogButtonBox_Clicked(this.h, button.cPointer()) } func (this *QDialogButtonBox) OnClicked(slot func(button *QAbstractButton)) { - C.QDialogButtonBox_connect_Clicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDialogButtonBox_connect_Clicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDialogButtonBox_Clicked -func miqt_exec_callback_QDialogButtonBox_Clicked(cb *C.void, button *C.QAbstractButton) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(button *QAbstractButton)) +func miqt_exec_callback_QDialogButtonBox_Clicked(cb C.intptr_t, button *C.QAbstractButton) { + gofunc, ok := cgo.Handle(cb).Value().(func(button *QAbstractButton)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -258,12 +258,12 @@ func (this *QDialogButtonBox) Accepted() { C.QDialogButtonBox_Accepted(this.h) } func (this *QDialogButtonBox) OnAccepted(slot func()) { - C.QDialogButtonBox_connect_Accepted(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDialogButtonBox_connect_Accepted(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDialogButtonBox_Accepted -func miqt_exec_callback_QDialogButtonBox_Accepted(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QDialogButtonBox_Accepted(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -275,12 +275,12 @@ func (this *QDialogButtonBox) HelpRequested() { C.QDialogButtonBox_HelpRequested(this.h) } func (this *QDialogButtonBox) OnHelpRequested(slot func()) { - C.QDialogButtonBox_connect_HelpRequested(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDialogButtonBox_connect_HelpRequested(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDialogButtonBox_HelpRequested -func miqt_exec_callback_QDialogButtonBox_HelpRequested(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QDialogButtonBox_HelpRequested(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -292,12 +292,12 @@ func (this *QDialogButtonBox) Rejected() { C.QDialogButtonBox_Rejected(this.h) } func (this *QDialogButtonBox) OnRejected(slot func()) { - C.QDialogButtonBox_connect_Rejected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDialogButtonBox_connect_Rejected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDialogButtonBox_Rejected -func miqt_exec_callback_QDialogButtonBox_Rejected(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QDialogButtonBox_Rejected(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qdialogbuttonbox.h b/qt/gen_qdialogbuttonbox.h index eaf2232..7db2571 100644 --- a/qt/gen_qdialogbuttonbox.h +++ b/qt/gen_qdialogbuttonbox.h @@ -55,13 +55,13 @@ QPushButton* QDialogButtonBox_Button(const QDialogButtonBox* self, int which); void QDialogButtonBox_SetCenterButtons(QDialogButtonBox* self, bool center); bool QDialogButtonBox_CenterButtons(const QDialogButtonBox* self); void QDialogButtonBox_Clicked(QDialogButtonBox* self, QAbstractButton* button); -void QDialogButtonBox_connect_Clicked(QDialogButtonBox* self, void* slot); +void QDialogButtonBox_connect_Clicked(QDialogButtonBox* self, intptr_t slot); void QDialogButtonBox_Accepted(QDialogButtonBox* self); -void QDialogButtonBox_connect_Accepted(QDialogButtonBox* self, void* slot); +void QDialogButtonBox_connect_Accepted(QDialogButtonBox* self, intptr_t slot); void QDialogButtonBox_HelpRequested(QDialogButtonBox* self); -void QDialogButtonBox_connect_HelpRequested(QDialogButtonBox* self, void* slot); +void QDialogButtonBox_connect_HelpRequested(QDialogButtonBox* self, intptr_t slot); void QDialogButtonBox_Rejected(QDialogButtonBox* self); -void QDialogButtonBox_connect_Rejected(QDialogButtonBox* self, void* slot); +void QDialogButtonBox_connect_Rejected(QDialogButtonBox* self, intptr_t slot); struct miqt_string* QDialogButtonBox_Tr2(const char* s, const char* c); struct miqt_string* QDialogButtonBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QDialogButtonBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qdockwidget.cpp b/qt/gen_qdockwidget.cpp index ee0e533..1a34cb5 100644 --- a/qt/gen_qdockwidget.cpp +++ b/qt/gen_qdockwidget.cpp @@ -112,7 +112,7 @@ void QDockWidget_FeaturesChanged(QDockWidget* self, int features) { self->featuresChanged(static_cast(features)); } -void QDockWidget_connect_FeaturesChanged(QDockWidget* self, void* slot) { +void QDockWidget_connect_FeaturesChanged(QDockWidget* self, intptr_t slot) { QDockWidget::connect(self, static_cast(&QDockWidget::featuresChanged), self, [=](QDockWidget::DockWidgetFeatures features) { QDockWidget::DockWidgetFeatures features_ret = features; int sigval1 = static_cast(features_ret); @@ -124,7 +124,7 @@ void QDockWidget_TopLevelChanged(QDockWidget* self, bool topLevel) { self->topLevelChanged(topLevel); } -void QDockWidget_connect_TopLevelChanged(QDockWidget* self, void* slot) { +void QDockWidget_connect_TopLevelChanged(QDockWidget* self, intptr_t slot) { QDockWidget::connect(self, static_cast(&QDockWidget::topLevelChanged), self, [=](bool topLevel) { bool sigval1 = topLevel; miqt_exec_callback_QDockWidget_TopLevelChanged(slot, sigval1); @@ -135,7 +135,7 @@ void QDockWidget_AllowedAreasChanged(QDockWidget* self, int allowedAreas) { self->allowedAreasChanged(static_cast(allowedAreas)); } -void QDockWidget_connect_AllowedAreasChanged(QDockWidget* self, void* slot) { +void QDockWidget_connect_AllowedAreasChanged(QDockWidget* self, intptr_t slot) { QDockWidget::connect(self, static_cast(&QDockWidget::allowedAreasChanged), self, [=](Qt::DockWidgetAreas allowedAreas) { Qt::DockWidgetAreas allowedAreas_ret = allowedAreas; int sigval1 = static_cast(allowedAreas_ret); @@ -147,7 +147,7 @@ void QDockWidget_VisibilityChanged(QDockWidget* self, bool visible) { self->visibilityChanged(visible); } -void QDockWidget_connect_VisibilityChanged(QDockWidget* self, void* slot) { +void QDockWidget_connect_VisibilityChanged(QDockWidget* self, intptr_t slot) { QDockWidget::connect(self, static_cast(&QDockWidget::visibilityChanged), self, [=](bool visible) { bool sigval1 = visible; miqt_exec_callback_QDockWidget_VisibilityChanged(slot, sigval1); @@ -158,7 +158,7 @@ void QDockWidget_DockLocationChanged(QDockWidget* self, int area) { self->dockLocationChanged(static_cast(area)); } -void QDockWidget_connect_DockLocationChanged(QDockWidget* self, void* slot) { +void QDockWidget_connect_DockLocationChanged(QDockWidget* self, intptr_t slot) { QDockWidget::connect(self, static_cast(&QDockWidget::dockLocationChanged), self, [=](Qt::DockWidgetArea area) { Qt::DockWidgetArea area_ret = area; int sigval1 = static_cast(area_ret); diff --git a/qt/gen_qdockwidget.go b/qt/gen_qdockwidget.go index 34d2cd5..ec049c0 100644 --- a/qt/gen_qdockwidget.go +++ b/qt/gen_qdockwidget.go @@ -172,12 +172,12 @@ func (this *QDockWidget) FeaturesChanged(features QDockWidget__DockWidgetFeature C.QDockWidget_FeaturesChanged(this.h, (C.int)(features)) } func (this *QDockWidget) OnFeaturesChanged(slot func(features QDockWidget__DockWidgetFeature)) { - C.QDockWidget_connect_FeaturesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDockWidget_connect_FeaturesChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDockWidget_FeaturesChanged -func miqt_exec_callback_QDockWidget_FeaturesChanged(cb *C.void, features C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(features QDockWidget__DockWidgetFeature)) +func miqt_exec_callback_QDockWidget_FeaturesChanged(cb C.intptr_t, features C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(features QDockWidget__DockWidgetFeature)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -192,12 +192,12 @@ func (this *QDockWidget) TopLevelChanged(topLevel bool) { C.QDockWidget_TopLevelChanged(this.h, (C.bool)(topLevel)) } func (this *QDockWidget) OnTopLevelChanged(slot func(topLevel bool)) { - C.QDockWidget_connect_TopLevelChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDockWidget_connect_TopLevelChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDockWidget_TopLevelChanged -func miqt_exec_callback_QDockWidget_TopLevelChanged(cb *C.void, topLevel C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(topLevel bool)) +func miqt_exec_callback_QDockWidget_TopLevelChanged(cb C.intptr_t, topLevel C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(topLevel bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -212,12 +212,12 @@ func (this *QDockWidget) AllowedAreasChanged(allowedAreas DockWidgetArea) { C.QDockWidget_AllowedAreasChanged(this.h, (C.int)(allowedAreas)) } func (this *QDockWidget) OnAllowedAreasChanged(slot func(allowedAreas DockWidgetArea)) { - C.QDockWidget_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDockWidget_connect_AllowedAreasChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDockWidget_AllowedAreasChanged -func miqt_exec_callback_QDockWidget_AllowedAreasChanged(cb *C.void, allowedAreas C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(allowedAreas DockWidgetArea)) +func miqt_exec_callback_QDockWidget_AllowedAreasChanged(cb C.intptr_t, allowedAreas C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(allowedAreas DockWidgetArea)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -232,12 +232,12 @@ func (this *QDockWidget) VisibilityChanged(visible bool) { C.QDockWidget_VisibilityChanged(this.h, (C.bool)(visible)) } func (this *QDockWidget) OnVisibilityChanged(slot func(visible bool)) { - C.QDockWidget_connect_VisibilityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDockWidget_connect_VisibilityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDockWidget_VisibilityChanged -func miqt_exec_callback_QDockWidget_VisibilityChanged(cb *C.void, visible C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(visible bool)) +func miqt_exec_callback_QDockWidget_VisibilityChanged(cb C.intptr_t, visible C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(visible bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -252,12 +252,12 @@ func (this *QDockWidget) DockLocationChanged(area DockWidgetArea) { C.QDockWidget_DockLocationChanged(this.h, (C.int)(area)) } func (this *QDockWidget) OnDockLocationChanged(slot func(area DockWidgetArea)) { - C.QDockWidget_connect_DockLocationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDockWidget_connect_DockLocationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDockWidget_DockLocationChanged -func miqt_exec_callback_QDockWidget_DockLocationChanged(cb *C.void, area C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(area DockWidgetArea)) +func miqt_exec_callback_QDockWidget_DockLocationChanged(cb C.intptr_t, area C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(area DockWidgetArea)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qdockwidget.h b/qt/gen_qdockwidget.h index 7a21f1e..e7ef163 100644 --- a/qt/gen_qdockwidget.h +++ b/qt/gen_qdockwidget.h @@ -48,15 +48,15 @@ QWidget* QDockWidget_TitleBarWidget(const QDockWidget* self); bool QDockWidget_IsAreaAllowed(const QDockWidget* self, int area); QAction* QDockWidget_ToggleViewAction(const QDockWidget* self); void QDockWidget_FeaturesChanged(QDockWidget* self, int features); -void QDockWidget_connect_FeaturesChanged(QDockWidget* self, void* slot); +void QDockWidget_connect_FeaturesChanged(QDockWidget* self, intptr_t slot); void QDockWidget_TopLevelChanged(QDockWidget* self, bool topLevel); -void QDockWidget_connect_TopLevelChanged(QDockWidget* self, void* slot); +void QDockWidget_connect_TopLevelChanged(QDockWidget* self, intptr_t slot); void QDockWidget_AllowedAreasChanged(QDockWidget* self, int allowedAreas); -void QDockWidget_connect_AllowedAreasChanged(QDockWidget* self, void* slot); +void QDockWidget_connect_AllowedAreasChanged(QDockWidget* self, intptr_t slot); void QDockWidget_VisibilityChanged(QDockWidget* self, bool visible); -void QDockWidget_connect_VisibilityChanged(QDockWidget* self, void* slot); +void QDockWidget_connect_VisibilityChanged(QDockWidget* self, intptr_t slot); void QDockWidget_DockLocationChanged(QDockWidget* self, int area); -void QDockWidget_connect_DockLocationChanged(QDockWidget* self, void* slot); +void QDockWidget_connect_DockLocationChanged(QDockWidget* self, intptr_t slot); struct miqt_string* QDockWidget_Tr2(const char* s, const char* c); struct miqt_string* QDockWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QDockWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qdrag.cpp b/qt/gen_qdrag.cpp index a6148b9..5ab2375 100644 --- a/qt/gen_qdrag.cpp +++ b/qt/gen_qdrag.cpp @@ -110,7 +110,7 @@ void QDrag_ActionChanged(QDrag* self, int action) { self->actionChanged(static_cast(action)); } -void QDrag_connect_ActionChanged(QDrag* self, void* slot) { +void QDrag_connect_ActionChanged(QDrag* self, intptr_t slot) { QDrag::connect(self, static_cast(&QDrag::actionChanged), self, [=](Qt::DropAction action) { Qt::DropAction action_ret = action; int sigval1 = static_cast(action_ret); @@ -122,7 +122,7 @@ void QDrag_TargetChanged(QDrag* self, QObject* newTarget) { self->targetChanged(newTarget); } -void QDrag_connect_TargetChanged(QDrag* self, void* slot) { +void QDrag_connect_TargetChanged(QDrag* self, intptr_t slot) { QDrag::connect(self, static_cast(&QDrag::targetChanged), self, [=](QObject* newTarget) { QObject* sigval1 = newTarget; miqt_exec_callback_QDrag_TargetChanged(slot, sigval1); diff --git a/qt/gen_qdrag.go b/qt/gen_qdrag.go index 39424b0..781b98e 100644 --- a/qt/gen_qdrag.go +++ b/qt/gen_qdrag.go @@ -148,12 +148,12 @@ func (this *QDrag) ActionChanged(action DropAction) { C.QDrag_ActionChanged(this.h, (C.int)(action)) } func (this *QDrag) OnActionChanged(slot func(action DropAction)) { - C.QDrag_connect_ActionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDrag_connect_ActionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDrag_ActionChanged -func miqt_exec_callback_QDrag_ActionChanged(cb *C.void, action C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(action DropAction)) +func miqt_exec_callback_QDrag_ActionChanged(cb C.intptr_t, action C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(action DropAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -168,12 +168,12 @@ func (this *QDrag) TargetChanged(newTarget *QObject) { C.QDrag_TargetChanged(this.h, newTarget.cPointer()) } func (this *QDrag) OnTargetChanged(slot func(newTarget *QObject)) { - C.QDrag_connect_TargetChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDrag_connect_TargetChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDrag_TargetChanged -func miqt_exec_callback_QDrag_TargetChanged(cb *C.void, newTarget *C.QObject) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newTarget *QObject)) +func miqt_exec_callback_QDrag_TargetChanged(cb C.intptr_t, newTarget *C.QObject) { + gofunc, ok := cgo.Handle(cb).Value().(func(newTarget *QObject)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qdrag.h b/qt/gen_qdrag.h index a13e140..4f8032d 100644 --- a/qt/gen_qdrag.h +++ b/qt/gen_qdrag.h @@ -51,9 +51,9 @@ int QDrag_SupportedActions(const QDrag* self); int QDrag_DefaultAction(const QDrag* self); void QDrag_Cancel(); void QDrag_ActionChanged(QDrag* self, int action); -void QDrag_connect_ActionChanged(QDrag* self, void* slot); +void QDrag_connect_ActionChanged(QDrag* self, intptr_t slot); void QDrag_TargetChanged(QDrag* self, QObject* newTarget); -void QDrag_connect_TargetChanged(QDrag* self, void* slot); +void QDrag_connect_TargetChanged(QDrag* self, intptr_t slot); struct miqt_string* QDrag_Tr2(const char* s, const char* c); struct miqt_string* QDrag_Tr3(const char* s, const char* c, int n); struct miqt_string* QDrag_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qfiledialog.cpp b/qt/gen_qfiledialog.cpp index a95c023..0405eb1 100644 --- a/qt/gen_qfiledialog.cpp +++ b/qt/gen_qfiledialog.cpp @@ -436,7 +436,7 @@ void QFileDialog_FileSelected(QFileDialog* self, struct miqt_string* file) { self->fileSelected(file_QString); } -void QFileDialog_connect_FileSelected(QFileDialog* self, void* slot) { +void QFileDialog_connect_FileSelected(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::fileSelected), self, [=](const QString& file) { const QString file_ret = file; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -457,7 +457,7 @@ void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array* /* of struc self->filesSelected(files_QList); } -void QFileDialog_connect_FilesSelected(QFileDialog* self, void* slot) { +void QFileDialog_connect_FilesSelected(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::filesSelected), self, [=](const QStringList& files) { const QStringList& files_ret = files; // Convert QList<> from C++ memory to manually-managed C memory @@ -481,7 +481,7 @@ void QFileDialog_CurrentChanged(QFileDialog* self, struct miqt_string* path) { self->currentChanged(path_QString); } -void QFileDialog_connect_CurrentChanged(QFileDialog* self, void* slot) { +void QFileDialog_connect_CurrentChanged(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::currentChanged), self, [=](const QString& path) { const QString path_ret = path; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -496,7 +496,7 @@ void QFileDialog_DirectoryEntered(QFileDialog* self, struct miqt_string* directo self->directoryEntered(directory_QString); } -void QFileDialog_connect_DirectoryEntered(QFileDialog* self, void* slot) { +void QFileDialog_connect_DirectoryEntered(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::directoryEntered), self, [=](const QString& directory) { const QString directory_ret = directory; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -510,7 +510,7 @@ void QFileDialog_UrlSelected(QFileDialog* self, QUrl* url) { self->urlSelected(*url); } -void QFileDialog_connect_UrlSelected(QFileDialog* self, void* slot) { +void QFileDialog_connect_UrlSelected(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::urlSelected), self, [=](const QUrl& url) { const QUrl& url_ret = url; // Cast returned reference into pointer @@ -529,7 +529,7 @@ void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array* /* of QUrl* self->urlsSelected(urls_QList); } -void QFileDialog_connect_UrlsSelected(QFileDialog* self, void* slot) { +void QFileDialog_connect_UrlsSelected(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast&)>(&QFileDialog::urlsSelected), self, [=](const QList& urls) { const QList& urls_ret = urls; // Convert QList<> from C++ memory to manually-managed C memory @@ -549,7 +549,7 @@ void QFileDialog_CurrentUrlChanged(QFileDialog* self, QUrl* url) { self->currentUrlChanged(*url); } -void QFileDialog_connect_CurrentUrlChanged(QFileDialog* self, void* slot) { +void QFileDialog_connect_CurrentUrlChanged(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::currentUrlChanged), self, [=](const QUrl& url) { const QUrl& url_ret = url; // Cast returned reference into pointer @@ -562,7 +562,7 @@ void QFileDialog_DirectoryUrlEntered(QFileDialog* self, QUrl* directory) { self->directoryUrlEntered(*directory); } -void QFileDialog_connect_DirectoryUrlEntered(QFileDialog* self, void* slot) { +void QFileDialog_connect_DirectoryUrlEntered(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::directoryUrlEntered), self, [=](const QUrl& directory) { const QUrl& directory_ret = directory; // Cast returned reference into pointer @@ -576,7 +576,7 @@ void QFileDialog_FilterSelected(QFileDialog* self, struct miqt_string* filter) { self->filterSelected(filter_QString); } -void QFileDialog_connect_FilterSelected(QFileDialog* self, void* slot) { +void QFileDialog_connect_FilterSelected(QFileDialog* self, intptr_t slot) { QFileDialog::connect(self, static_cast(&QFileDialog::filterSelected), self, [=](const QString& filter) { const QString filter_ret = filter; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qfiledialog.go b/qt/gen_qfiledialog.go index ab01189..61dacc3 100644 --- a/qt/gen_qfiledialog.go +++ b/qt/gen_qfiledialog.go @@ -547,12 +547,12 @@ func (this *QFileDialog) FileSelected(file string) { C.QFileDialog_FileSelected(this.h, (*C.struct_miqt_string)(file_ms)) } func (this *QFileDialog) OnFileSelected(slot func(file string)) { - C.QFileDialog_connect_FileSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_FileSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_FileSelected -func miqt_exec_callback_QFileDialog_FileSelected(cb *C.void, file *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(file string)) +func miqt_exec_callback_QFileDialog_FileSelected(cb C.intptr_t, file *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(file string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -580,12 +580,12 @@ func (this *QFileDialog) FilesSelected(files []string) { C.QFileDialog_FilesSelected(this.h, files_ma) } func (this *QFileDialog) OnFilesSelected(slot func(files []string)) { - C.QFileDialog_connect_FilesSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_FilesSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_FilesSelected -func miqt_exec_callback_QFileDialog_FilesSelected(cb *C.void, files *C.struct_miqt_array) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(files []string)) +func miqt_exec_callback_QFileDialog_FilesSelected(cb C.intptr_t, files *C.struct_miqt_array) { + gofunc, ok := cgo.Handle(cb).Value().(func(files []string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -612,12 +612,12 @@ func (this *QFileDialog) CurrentChanged(path string) { C.QFileDialog_CurrentChanged(this.h, (*C.struct_miqt_string)(path_ms)) } func (this *QFileDialog) OnCurrentChanged(slot func(path string)) { - C.QFileDialog_connect_CurrentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_CurrentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_CurrentChanged -func miqt_exec_callback_QFileDialog_CurrentChanged(cb *C.void, path *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(path string)) +func miqt_exec_callback_QFileDialog_CurrentChanged(cb C.intptr_t, path *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(path string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -637,12 +637,12 @@ func (this *QFileDialog) DirectoryEntered(directory string) { C.QFileDialog_DirectoryEntered(this.h, (*C.struct_miqt_string)(directory_ms)) } func (this *QFileDialog) OnDirectoryEntered(slot func(directory string)) { - C.QFileDialog_connect_DirectoryEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_DirectoryEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_DirectoryEntered -func miqt_exec_callback_QFileDialog_DirectoryEntered(cb *C.void, directory *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(directory string)) +func miqt_exec_callback_QFileDialog_DirectoryEntered(cb C.intptr_t, directory *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(directory string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -660,12 +660,12 @@ func (this *QFileDialog) UrlSelected(url *QUrl) { C.QFileDialog_UrlSelected(this.h, url.cPointer()) } func (this *QFileDialog) OnUrlSelected(slot func(url *QUrl)) { - C.QFileDialog_connect_UrlSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_UrlSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_UrlSelected -func miqt_exec_callback_QFileDialog_UrlSelected(cb *C.void, url *C.QUrl) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(url *QUrl)) +func miqt_exec_callback_QFileDialog_UrlSelected(cb C.intptr_t, url *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(url *QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -688,12 +688,12 @@ func (this *QFileDialog) UrlsSelected(urls []QUrl) { C.QFileDialog_UrlsSelected(this.h, urls_ma) } func (this *QFileDialog) OnUrlsSelected(slot func(urls []QUrl)) { - C.QFileDialog_connect_UrlsSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_UrlsSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_UrlsSelected -func miqt_exec_callback_QFileDialog_UrlsSelected(cb *C.void, urls *C.struct_miqt_array) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(urls []QUrl)) +func miqt_exec_callback_QFileDialog_UrlsSelected(cb C.intptr_t, urls *C.struct_miqt_array) { + gofunc, ok := cgo.Handle(cb).Value().(func(urls []QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -718,12 +718,12 @@ func (this *QFileDialog) CurrentUrlChanged(url *QUrl) { C.QFileDialog_CurrentUrlChanged(this.h, url.cPointer()) } func (this *QFileDialog) OnCurrentUrlChanged(slot func(url *QUrl)) { - C.QFileDialog_connect_CurrentUrlChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_CurrentUrlChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_CurrentUrlChanged -func miqt_exec_callback_QFileDialog_CurrentUrlChanged(cb *C.void, url *C.QUrl) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(url *QUrl)) +func miqt_exec_callback_QFileDialog_CurrentUrlChanged(cb C.intptr_t, url *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(url *QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -738,12 +738,12 @@ func (this *QFileDialog) DirectoryUrlEntered(directory *QUrl) { C.QFileDialog_DirectoryUrlEntered(this.h, directory.cPointer()) } func (this *QFileDialog) OnDirectoryUrlEntered(slot func(directory *QUrl)) { - C.QFileDialog_connect_DirectoryUrlEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_DirectoryUrlEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_DirectoryUrlEntered -func miqt_exec_callback_QFileDialog_DirectoryUrlEntered(cb *C.void, directory *C.QUrl) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(directory *QUrl)) +func miqt_exec_callback_QFileDialog_DirectoryUrlEntered(cb C.intptr_t, directory *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(directory *QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -760,12 +760,12 @@ func (this *QFileDialog) FilterSelected(filter string) { C.QFileDialog_FilterSelected(this.h, (*C.struct_miqt_string)(filter_ms)) } func (this *QFileDialog) OnFilterSelected(slot func(filter string)) { - C.QFileDialog_connect_FilterSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileDialog_connect_FilterSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileDialog_FilterSelected -func miqt_exec_callback_QFileDialog_FilterSelected(cb *C.void, filter *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(filter string)) +func miqt_exec_callback_QFileDialog_FilterSelected(cb C.intptr_t, filter *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(filter string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qfiledialog.h b/qt/gen_qfiledialog.h index ea55258..610801c 100644 --- a/qt/gen_qfiledialog.h +++ b/qt/gen_qfiledialog.h @@ -103,23 +103,23 @@ void QFileDialog_SetOptions(QFileDialog* self, int options); int QFileDialog_Options(const QFileDialog* self); void QFileDialog_SetVisible(QFileDialog* self, bool visible); void QFileDialog_FileSelected(QFileDialog* self, struct miqt_string* file); -void QFileDialog_connect_FileSelected(QFileDialog* self, void* slot); +void QFileDialog_connect_FileSelected(QFileDialog* self, intptr_t slot); void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array* /* of struct miqt_string* */ files); -void QFileDialog_connect_FilesSelected(QFileDialog* self, void* slot); +void QFileDialog_connect_FilesSelected(QFileDialog* self, intptr_t slot); void QFileDialog_CurrentChanged(QFileDialog* self, struct miqt_string* path); -void QFileDialog_connect_CurrentChanged(QFileDialog* self, void* slot); +void QFileDialog_connect_CurrentChanged(QFileDialog* self, intptr_t slot); void QFileDialog_DirectoryEntered(QFileDialog* self, struct miqt_string* directory); -void QFileDialog_connect_DirectoryEntered(QFileDialog* self, void* slot); +void QFileDialog_connect_DirectoryEntered(QFileDialog* self, intptr_t slot); void QFileDialog_UrlSelected(QFileDialog* self, QUrl* url); -void QFileDialog_connect_UrlSelected(QFileDialog* self, void* slot); +void QFileDialog_connect_UrlSelected(QFileDialog* self, intptr_t slot); void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array* /* of QUrl* */ urls); -void QFileDialog_connect_UrlsSelected(QFileDialog* self, void* slot); +void QFileDialog_connect_UrlsSelected(QFileDialog* self, intptr_t slot); void QFileDialog_CurrentUrlChanged(QFileDialog* self, QUrl* url); -void QFileDialog_connect_CurrentUrlChanged(QFileDialog* self, void* slot); +void QFileDialog_connect_CurrentUrlChanged(QFileDialog* self, intptr_t slot); void QFileDialog_DirectoryUrlEntered(QFileDialog* self, QUrl* directory); -void QFileDialog_connect_DirectoryUrlEntered(QFileDialog* self, void* slot); +void QFileDialog_connect_DirectoryUrlEntered(QFileDialog* self, intptr_t slot); void QFileDialog_FilterSelected(QFileDialog* self, struct miqt_string* filter); -void QFileDialog_connect_FilterSelected(QFileDialog* self, void* slot); +void QFileDialog_connect_FilterSelected(QFileDialog* self, intptr_t slot); struct miqt_string* QFileDialog_GetOpenFileName(); QUrl* QFileDialog_GetOpenFileUrl(); struct miqt_string* QFileDialog_GetSaveFileName(); diff --git a/qt/gen_qfilesystemmodel.cpp b/qt/gen_qfilesystemmodel.cpp index 111906c..d5d652a 100644 --- a/qt/gen_qfilesystemmodel.cpp +++ b/qt/gen_qfilesystemmodel.cpp @@ -52,7 +52,7 @@ void QFileSystemModel_RootPathChanged(QFileSystemModel* self, struct miqt_string self->rootPathChanged(newPath_QString); } -void QFileSystemModel_connect_RootPathChanged(QFileSystemModel* self, void* slot) { +void QFileSystemModel_connect_RootPathChanged(QFileSystemModel* self, intptr_t slot) { QFileSystemModel::connect(self, static_cast(&QFileSystemModel::rootPathChanged), self, [=](const QString& newPath) { const QString newPath_ret = newPath; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -69,7 +69,7 @@ void QFileSystemModel_FileRenamed(QFileSystemModel* self, struct miqt_string* pa self->fileRenamed(path_QString, oldName_QString, newName_QString); } -void QFileSystemModel_connect_FileRenamed(QFileSystemModel* self, void* slot) { +void QFileSystemModel_connect_FileRenamed(QFileSystemModel* self, intptr_t slot) { QFileSystemModel::connect(self, static_cast(&QFileSystemModel::fileRenamed), self, [=](const QString& path, const QString& oldName, const QString& newName) { const QString path_ret = path; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -92,7 +92,7 @@ void QFileSystemModel_DirectoryLoaded(QFileSystemModel* self, struct miqt_string self->directoryLoaded(path_QString); } -void QFileSystemModel_connect_DirectoryLoaded(QFileSystemModel* self, void* slot) { +void QFileSystemModel_connect_DirectoryLoaded(QFileSystemModel* self, intptr_t slot) { QFileSystemModel::connect(self, static_cast(&QFileSystemModel::directoryLoaded), self, [=](const QString& path) { const QString path_ret = path; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qfilesystemmodel.go b/qt/gen_qfilesystemmodel.go index 2bd0fda..8b68b4d 100644 --- a/qt/gen_qfilesystemmodel.go +++ b/qt/gen_qfilesystemmodel.go @@ -100,12 +100,12 @@ func (this *QFileSystemModel) RootPathChanged(newPath string) { C.QFileSystemModel_RootPathChanged(this.h, (*C.struct_miqt_string)(newPath_ms)) } func (this *QFileSystemModel) OnRootPathChanged(slot func(newPath string)) { - C.QFileSystemModel_connect_RootPathChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileSystemModel_connect_RootPathChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileSystemModel_RootPathChanged -func miqt_exec_callback_QFileSystemModel_RootPathChanged(cb *C.void, newPath *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newPath string)) +func miqt_exec_callback_QFileSystemModel_RootPathChanged(cb C.intptr_t, newPath *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(newPath string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -129,12 +129,12 @@ func (this *QFileSystemModel) FileRenamed(path string, oldName string, newName s C.QFileSystemModel_FileRenamed(this.h, (*C.struct_miqt_string)(path_ms), (*C.struct_miqt_string)(oldName_ms), (*C.struct_miqt_string)(newName_ms)) } func (this *QFileSystemModel) OnFileRenamed(slot func(path string, oldName string, newName string)) { - C.QFileSystemModel_connect_FileRenamed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileSystemModel_connect_FileRenamed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileSystemModel_FileRenamed -func miqt_exec_callback_QFileSystemModel_FileRenamed(cb *C.void, path *C.struct_miqt_string, oldName *C.struct_miqt_string, newName *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(path string, oldName string, newName string)) +func miqt_exec_callback_QFileSystemModel_FileRenamed(cb C.intptr_t, path *C.struct_miqt_string, oldName *C.struct_miqt_string, newName *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(path string, oldName string, newName string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -162,12 +162,12 @@ func (this *QFileSystemModel) DirectoryLoaded(path string) { C.QFileSystemModel_DirectoryLoaded(this.h, (*C.struct_miqt_string)(path_ms)) } func (this *QFileSystemModel) OnDirectoryLoaded(slot func(path string)) { - C.QFileSystemModel_connect_DirectoryLoaded(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFileSystemModel_connect_DirectoryLoaded(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFileSystemModel_DirectoryLoaded -func miqt_exec_callback_QFileSystemModel_DirectoryLoaded(cb *C.void, path *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(path string)) +func miqt_exec_callback_QFileSystemModel_DirectoryLoaded(cb C.intptr_t, path *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(path string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qfilesystemmodel.h b/qt/gen_qfilesystemmodel.h index 6e68cf9..23fe6dc 100644 --- a/qt/gen_qfilesystemmodel.h +++ b/qt/gen_qfilesystemmodel.h @@ -46,11 +46,11 @@ void* QFileSystemModel_Metacast(QFileSystemModel* self, const char* param1); struct miqt_string* QFileSystemModel_Tr(const char* s); struct miqt_string* QFileSystemModel_TrUtf8(const char* s); void QFileSystemModel_RootPathChanged(QFileSystemModel* self, struct miqt_string* newPath); -void QFileSystemModel_connect_RootPathChanged(QFileSystemModel* self, void* slot); +void QFileSystemModel_connect_RootPathChanged(QFileSystemModel* self, intptr_t slot); void QFileSystemModel_FileRenamed(QFileSystemModel* self, struct miqt_string* path, struct miqt_string* oldName, struct miqt_string* newName); -void QFileSystemModel_connect_FileRenamed(QFileSystemModel* self, void* slot); +void QFileSystemModel_connect_FileRenamed(QFileSystemModel* self, intptr_t slot); void QFileSystemModel_DirectoryLoaded(QFileSystemModel* self, struct miqt_string* path); -void QFileSystemModel_connect_DirectoryLoaded(QFileSystemModel* self, void* slot); +void QFileSystemModel_connect_DirectoryLoaded(QFileSystemModel* self, intptr_t slot); QModelIndex* QFileSystemModel_Index(const QFileSystemModel* self, int row, int column); QModelIndex* QFileSystemModel_IndexWithPath(const QFileSystemModel* self, struct miqt_string* path); QModelIndex* QFileSystemModel_Parent(const QFileSystemModel* self, QModelIndex* child); diff --git a/qt/gen_qfontcombobox.cpp b/qt/gen_qfontcombobox.cpp index 03f0a02..29f70d2 100644 --- a/qt/gen_qfontcombobox.cpp +++ b/qt/gen_qfontcombobox.cpp @@ -74,7 +74,7 @@ void QFontComboBox_CurrentFontChanged(QFontComboBox* self, QFont* f) { self->currentFontChanged(*f); } -void QFontComboBox_connect_CurrentFontChanged(QFontComboBox* self, void* slot) { +void QFontComboBox_connect_CurrentFontChanged(QFontComboBox* self, intptr_t slot) { QFontComboBox::connect(self, static_cast(&QFontComboBox::currentFontChanged), self, [=](const QFont& f) { const QFont& f_ret = f; // Cast returned reference into pointer diff --git a/qt/gen_qfontcombobox.go b/qt/gen_qfontcombobox.go index f138ff0..3234325 100644 --- a/qt/gen_qfontcombobox.go +++ b/qt/gen_qfontcombobox.go @@ -125,12 +125,12 @@ func (this *QFontComboBox) CurrentFontChanged(f *QFont) { C.QFontComboBox_CurrentFontChanged(this.h, f.cPointer()) } func (this *QFontComboBox) OnCurrentFontChanged(slot func(f *QFont)) { - C.QFontComboBox_connect_CurrentFontChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFontComboBox_connect_CurrentFontChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_CurrentFontChanged -func miqt_exec_callback_QFontComboBox_CurrentFontChanged(cb *C.void, f *C.QFont) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(f *QFont)) +func miqt_exec_callback_QFontComboBox_CurrentFontChanged(cb C.intptr_t, f *C.QFont) { + gofunc, ok := cgo.Handle(cb).Value().(func(f *QFont)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qfontcombobox.h b/qt/gen_qfontcombobox.h index eb83549..b8f2b08 100644 --- a/qt/gen_qfontcombobox.h +++ b/qt/gen_qfontcombobox.h @@ -41,7 +41,7 @@ QFont* QFontComboBox_CurrentFont(const QFontComboBox* self); QSize* QFontComboBox_SizeHint(const QFontComboBox* self); void QFontComboBox_SetCurrentFont(QFontComboBox* self, QFont* f); void QFontComboBox_CurrentFontChanged(QFontComboBox* self, QFont* f); -void QFontComboBox_connect_CurrentFontChanged(QFontComboBox* self, void* slot); +void QFontComboBox_connect_CurrentFontChanged(QFontComboBox* self, intptr_t slot); struct miqt_string* QFontComboBox_Tr2(const char* s, const char* c); struct miqt_string* QFontComboBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QFontComboBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qfontdialog.cpp b/qt/gen_qfontdialog.cpp index 38fcf3e..9e18667 100644 --- a/qt/gen_qfontdialog.cpp +++ b/qt/gen_qfontdialog.cpp @@ -92,7 +92,7 @@ void QFontDialog_CurrentFontChanged(QFontDialog* self, QFont* font) { self->currentFontChanged(*font); } -void QFontDialog_connect_CurrentFontChanged(QFontDialog* self, void* slot) { +void QFontDialog_connect_CurrentFontChanged(QFontDialog* self, intptr_t slot) { QFontDialog::connect(self, static_cast(&QFontDialog::currentFontChanged), self, [=](const QFont& font) { const QFont& font_ret = font; // Cast returned reference into pointer @@ -105,7 +105,7 @@ void QFontDialog_FontSelected(QFontDialog* self, QFont* font) { self->fontSelected(*font); } -void QFontDialog_connect_FontSelected(QFontDialog* self, void* slot) { +void QFontDialog_connect_FontSelected(QFontDialog* self, intptr_t slot) { QFontDialog::connect(self, static_cast(&QFontDialog::fontSelected), self, [=](const QFont& font) { const QFont& font_ret = font; // Cast returned reference into pointer diff --git a/qt/gen_qfontdialog.go b/qt/gen_qfontdialog.go index b9bbd87..0ec107b 100644 --- a/qt/gen_qfontdialog.go +++ b/qt/gen_qfontdialog.go @@ -156,12 +156,12 @@ func (this *QFontDialog) CurrentFontChanged(font *QFont) { C.QFontDialog_CurrentFontChanged(this.h, font.cPointer()) } func (this *QFontDialog) OnCurrentFontChanged(slot func(font *QFont)) { - C.QFontDialog_connect_CurrentFontChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFontDialog_connect_CurrentFontChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontDialog_CurrentFontChanged -func miqt_exec_callback_QFontDialog_CurrentFontChanged(cb *C.void, font *C.QFont) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(font *QFont)) +func miqt_exec_callback_QFontDialog_CurrentFontChanged(cb C.intptr_t, font *C.QFont) { + gofunc, ok := cgo.Handle(cb).Value().(func(font *QFont)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -176,12 +176,12 @@ func (this *QFontDialog) FontSelected(font *QFont) { C.QFontDialog_FontSelected(this.h, font.cPointer()) } func (this *QFontDialog) OnFontSelected(slot func(font *QFont)) { - C.QFontDialog_connect_FontSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFontDialog_connect_FontSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontDialog_FontSelected -func miqt_exec_callback_QFontDialog_FontSelected(cb *C.void, font *C.QFont) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(font *QFont)) +func miqt_exec_callback_QFontDialog_FontSelected(cb C.intptr_t, font *C.QFont) { + gofunc, ok := cgo.Handle(cb).Value().(func(font *QFont)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qfontdialog.h b/qt/gen_qfontdialog.h index 140a3aa..306fb0d 100644 --- a/qt/gen_qfontdialog.h +++ b/qt/gen_qfontdialog.h @@ -44,9 +44,9 @@ void QFontDialog_SetVisible(QFontDialog* self, bool visible); QFont* QFontDialog_GetFont(bool* ok); QFont* QFontDialog_GetFont2(bool* ok, QFont* initial); void QFontDialog_CurrentFontChanged(QFontDialog* self, QFont* font); -void QFontDialog_connect_CurrentFontChanged(QFontDialog* self, void* slot); +void QFontDialog_connect_CurrentFontChanged(QFontDialog* self, intptr_t slot); void QFontDialog_FontSelected(QFontDialog* self, QFont* font); -void QFontDialog_connect_FontSelected(QFontDialog* self, void* slot); +void QFontDialog_connect_FontSelected(QFontDialog* self, intptr_t slot); struct miqt_string* QFontDialog_Tr2(const char* s, const char* c); struct miqt_string* QFontDialog_Tr3(const char* s, const char* c, int n); struct miqt_string* QFontDialog_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qfuturewatcher.cpp b/qt/gen_qfuturewatcher.cpp index 89006a3..66873df 100644 --- a/qt/gen_qfuturewatcher.cpp +++ b/qt/gen_qfuturewatcher.cpp @@ -85,7 +85,7 @@ void QFutureWatcherBase_Started(QFutureWatcherBase* self) { self->started(); } -void QFutureWatcherBase_connect_Started(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_Started(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::started), self, [=]() { miqt_exec_callback_QFutureWatcherBase_Started(slot); }); @@ -95,7 +95,7 @@ void QFutureWatcherBase_Finished(QFutureWatcherBase* self) { self->finished(); } -void QFutureWatcherBase_connect_Finished(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_Finished(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::finished), self, [=]() { miqt_exec_callback_QFutureWatcherBase_Finished(slot); }); @@ -105,7 +105,7 @@ void QFutureWatcherBase_Canceled(QFutureWatcherBase* self) { self->canceled(); } -void QFutureWatcherBase_connect_Canceled(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_Canceled(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::canceled), self, [=]() { miqt_exec_callback_QFutureWatcherBase_Canceled(slot); }); @@ -115,7 +115,7 @@ void QFutureWatcherBase_Paused(QFutureWatcherBase* self) { self->paused(); } -void QFutureWatcherBase_connect_Paused(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_Paused(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::paused), self, [=]() { miqt_exec_callback_QFutureWatcherBase_Paused(slot); }); @@ -125,7 +125,7 @@ void QFutureWatcherBase_Resumed(QFutureWatcherBase* self) { self->resumed(); } -void QFutureWatcherBase_connect_Resumed(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_Resumed(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::resumed), self, [=]() { miqt_exec_callback_QFutureWatcherBase_Resumed(slot); }); @@ -135,7 +135,7 @@ void QFutureWatcherBase_ResultReadyAt(QFutureWatcherBase* self, int resultIndex) self->resultReadyAt(static_cast(resultIndex)); } -void QFutureWatcherBase_connect_ResultReadyAt(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_ResultReadyAt(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::resultReadyAt), self, [=](int resultIndex) { int sigval1 = resultIndex; miqt_exec_callback_QFutureWatcherBase_ResultReadyAt(slot, sigval1); @@ -146,7 +146,7 @@ void QFutureWatcherBase_ResultsReadyAt(QFutureWatcherBase* self, int beginIndex, self->resultsReadyAt(static_cast(beginIndex), static_cast(endIndex)); } -void QFutureWatcherBase_connect_ResultsReadyAt(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_ResultsReadyAt(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::resultsReadyAt), self, [=](int beginIndex, int endIndex) { int sigval1 = beginIndex; int sigval2 = endIndex; @@ -158,7 +158,7 @@ void QFutureWatcherBase_ProgressRangeChanged(QFutureWatcherBase* self, int minim self->progressRangeChanged(static_cast(minimum), static_cast(maximum)); } -void QFutureWatcherBase_connect_ProgressRangeChanged(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_ProgressRangeChanged(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::progressRangeChanged), self, [=](int minimum, int maximum) { int sigval1 = minimum; int sigval2 = maximum; @@ -170,7 +170,7 @@ void QFutureWatcherBase_ProgressValueChanged(QFutureWatcherBase* self, int progr self->progressValueChanged(static_cast(progressValue)); } -void QFutureWatcherBase_connect_ProgressValueChanged(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_ProgressValueChanged(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::progressValueChanged), self, [=](int progressValue) { int sigval1 = progressValue; miqt_exec_callback_QFutureWatcherBase_ProgressValueChanged(slot, sigval1); @@ -182,7 +182,7 @@ void QFutureWatcherBase_ProgressTextChanged(QFutureWatcherBase* self, struct miq self->progressTextChanged(progressText_QString); } -void QFutureWatcherBase_connect_ProgressTextChanged(QFutureWatcherBase* self, void* slot) { +void QFutureWatcherBase_connect_ProgressTextChanged(QFutureWatcherBase* self, intptr_t slot) { QFutureWatcherBase::connect(self, static_cast(&QFutureWatcherBase::progressTextChanged), self, [=](const QString& progressText) { const QString progressText_ret = progressText; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qfuturewatcher.go b/qt/gen_qfuturewatcher.go index bdef774..3440464 100644 --- a/qt/gen_qfuturewatcher.go +++ b/qt/gen_qfuturewatcher.go @@ -120,12 +120,12 @@ func (this *QFutureWatcherBase) Started() { C.QFutureWatcherBase_Started(this.h) } func (this *QFutureWatcherBase) OnStarted(slot func()) { - C.QFutureWatcherBase_connect_Started(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_Started(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_Started -func miqt_exec_callback_QFutureWatcherBase_Started(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QFutureWatcherBase_Started(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -137,12 +137,12 @@ func (this *QFutureWatcherBase) Finished() { C.QFutureWatcherBase_Finished(this.h) } func (this *QFutureWatcherBase) OnFinished(slot func()) { - C.QFutureWatcherBase_connect_Finished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_Finished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_Finished -func miqt_exec_callback_QFutureWatcherBase_Finished(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QFutureWatcherBase_Finished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -154,12 +154,12 @@ func (this *QFutureWatcherBase) Canceled() { C.QFutureWatcherBase_Canceled(this.h) } func (this *QFutureWatcherBase) OnCanceled(slot func()) { - C.QFutureWatcherBase_connect_Canceled(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_Canceled(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_Canceled -func miqt_exec_callback_QFutureWatcherBase_Canceled(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QFutureWatcherBase_Canceled(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -171,12 +171,12 @@ func (this *QFutureWatcherBase) Paused() { C.QFutureWatcherBase_Paused(this.h) } func (this *QFutureWatcherBase) OnPaused(slot func()) { - C.QFutureWatcherBase_connect_Paused(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_Paused(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_Paused -func miqt_exec_callback_QFutureWatcherBase_Paused(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QFutureWatcherBase_Paused(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -188,12 +188,12 @@ func (this *QFutureWatcherBase) Resumed() { C.QFutureWatcherBase_Resumed(this.h) } func (this *QFutureWatcherBase) OnResumed(slot func()) { - C.QFutureWatcherBase_connect_Resumed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_Resumed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_Resumed -func miqt_exec_callback_QFutureWatcherBase_Resumed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QFutureWatcherBase_Resumed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -205,12 +205,12 @@ func (this *QFutureWatcherBase) ResultReadyAt(resultIndex int) { C.QFutureWatcherBase_ResultReadyAt(this.h, (C.int)(resultIndex)) } func (this *QFutureWatcherBase) OnResultReadyAt(slot func(resultIndex int)) { - C.QFutureWatcherBase_connect_ResultReadyAt(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_ResultReadyAt(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_ResultReadyAt -func miqt_exec_callback_QFutureWatcherBase_ResultReadyAt(cb *C.void, resultIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(resultIndex int)) +func miqt_exec_callback_QFutureWatcherBase_ResultReadyAt(cb C.intptr_t, resultIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(resultIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -225,12 +225,12 @@ func (this *QFutureWatcherBase) ResultsReadyAt(beginIndex int, endIndex int) { C.QFutureWatcherBase_ResultsReadyAt(this.h, (C.int)(beginIndex), (C.int)(endIndex)) } func (this *QFutureWatcherBase) OnResultsReadyAt(slot func(beginIndex int, endIndex int)) { - C.QFutureWatcherBase_connect_ResultsReadyAt(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_ResultsReadyAt(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_ResultsReadyAt -func miqt_exec_callback_QFutureWatcherBase_ResultsReadyAt(cb *C.void, beginIndex C.int, endIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(beginIndex int, endIndex int)) +func miqt_exec_callback_QFutureWatcherBase_ResultsReadyAt(cb C.intptr_t, beginIndex C.int, endIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(beginIndex int, endIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -247,12 +247,12 @@ func (this *QFutureWatcherBase) ProgressRangeChanged(minimum int, maximum int) { C.QFutureWatcherBase_ProgressRangeChanged(this.h, (C.int)(minimum), (C.int)(maximum)) } func (this *QFutureWatcherBase) OnProgressRangeChanged(slot func(minimum int, maximum int)) { - C.QFutureWatcherBase_connect_ProgressRangeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_ProgressRangeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_ProgressRangeChanged -func miqt_exec_callback_QFutureWatcherBase_ProgressRangeChanged(cb *C.void, minimum C.int, maximum C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(minimum int, maximum int)) +func miqt_exec_callback_QFutureWatcherBase_ProgressRangeChanged(cb C.intptr_t, minimum C.int, maximum C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(minimum int, maximum int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -269,12 +269,12 @@ func (this *QFutureWatcherBase) ProgressValueChanged(progressValue int) { C.QFutureWatcherBase_ProgressValueChanged(this.h, (C.int)(progressValue)) } func (this *QFutureWatcherBase) OnProgressValueChanged(slot func(progressValue int)) { - C.QFutureWatcherBase_connect_ProgressValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_ProgressValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_ProgressValueChanged -func miqt_exec_callback_QFutureWatcherBase_ProgressValueChanged(cb *C.void, progressValue C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(progressValue int)) +func miqt_exec_callback_QFutureWatcherBase_ProgressValueChanged(cb C.intptr_t, progressValue C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(progressValue int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -291,12 +291,12 @@ func (this *QFutureWatcherBase) ProgressTextChanged(progressText string) { C.QFutureWatcherBase_ProgressTextChanged(this.h, (*C.struct_miqt_string)(progressText_ms)) } func (this *QFutureWatcherBase) OnProgressTextChanged(slot func(progressText string)) { - C.QFutureWatcherBase_connect_ProgressTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QFutureWatcherBase_connect_ProgressTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFutureWatcherBase_ProgressTextChanged -func miqt_exec_callback_QFutureWatcherBase_ProgressTextChanged(cb *C.void, progressText *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(progressText string)) +func miqt_exec_callback_QFutureWatcherBase_ProgressTextChanged(cb C.intptr_t, progressText *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(progressText string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qfuturewatcher.h b/qt/gen_qfuturewatcher.h index f1d41c9..fba9491 100644 --- a/qt/gen_qfuturewatcher.h +++ b/qt/gen_qfuturewatcher.h @@ -40,25 +40,25 @@ void QFutureWatcherBase_WaitForFinished(QFutureWatcherBase* self); void QFutureWatcherBase_SetPendingResultsLimit(QFutureWatcherBase* self, int limit); bool QFutureWatcherBase_Event(QFutureWatcherBase* self, QEvent* event); void QFutureWatcherBase_Started(QFutureWatcherBase* self); -void QFutureWatcherBase_connect_Started(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_Started(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_Finished(QFutureWatcherBase* self); -void QFutureWatcherBase_connect_Finished(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_Finished(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_Canceled(QFutureWatcherBase* self); -void QFutureWatcherBase_connect_Canceled(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_Canceled(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_Paused(QFutureWatcherBase* self); -void QFutureWatcherBase_connect_Paused(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_Paused(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_Resumed(QFutureWatcherBase* self); -void QFutureWatcherBase_connect_Resumed(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_Resumed(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_ResultReadyAt(QFutureWatcherBase* self, int resultIndex); -void QFutureWatcherBase_connect_ResultReadyAt(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_ResultReadyAt(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_ResultsReadyAt(QFutureWatcherBase* self, int beginIndex, int endIndex); -void QFutureWatcherBase_connect_ResultsReadyAt(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_ResultsReadyAt(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_ProgressRangeChanged(QFutureWatcherBase* self, int minimum, int maximum); -void QFutureWatcherBase_connect_ProgressRangeChanged(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_ProgressRangeChanged(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_ProgressValueChanged(QFutureWatcherBase* self, int progressValue); -void QFutureWatcherBase_connect_ProgressValueChanged(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_ProgressValueChanged(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_ProgressTextChanged(QFutureWatcherBase* self, struct miqt_string* progressText); -void QFutureWatcherBase_connect_ProgressTextChanged(QFutureWatcherBase* self, void* slot); +void QFutureWatcherBase_connect_ProgressTextChanged(QFutureWatcherBase* self, intptr_t slot); void QFutureWatcherBase_Cancel(QFutureWatcherBase* self); void QFutureWatcherBase_SetPaused(QFutureWatcherBase* self, bool paused); void QFutureWatcherBase_Pause(QFutureWatcherBase* self); diff --git a/qt/gen_qgraphicseffect.cpp b/qt/gen_qgraphicseffect.cpp index f9bf51b..49de63d 100644 --- a/qt/gen_qgraphicseffect.cpp +++ b/qt/gen_qgraphicseffect.cpp @@ -62,7 +62,7 @@ void QGraphicsEffect_EnabledChanged(QGraphicsEffect* self, bool enabled) { self->enabledChanged(enabled); } -void QGraphicsEffect_connect_EnabledChanged(QGraphicsEffect* self, void* slot) { +void QGraphicsEffect_connect_EnabledChanged(QGraphicsEffect* self, intptr_t slot) { QGraphicsEffect::connect(self, static_cast(&QGraphicsEffect::enabledChanged), self, [=](bool enabled) { bool sigval1 = enabled; miqt_exec_callback_QGraphicsEffect_EnabledChanged(slot, sigval1); @@ -152,7 +152,7 @@ void QGraphicsColorizeEffect_ColorChanged(QGraphicsColorizeEffect* self, QColor* self->colorChanged(*color); } -void QGraphicsColorizeEffect_connect_ColorChanged(QGraphicsColorizeEffect* self, void* slot) { +void QGraphicsColorizeEffect_connect_ColorChanged(QGraphicsColorizeEffect* self, intptr_t slot) { QGraphicsColorizeEffect::connect(self, static_cast(&QGraphicsColorizeEffect::colorChanged), self, [=](const QColor& color) { const QColor& color_ret = color; // Cast returned reference into pointer @@ -165,7 +165,7 @@ void QGraphicsColorizeEffect_StrengthChanged(QGraphicsColorizeEffect* self, doub self->strengthChanged(static_cast(strength)); } -void QGraphicsColorizeEffect_connect_StrengthChanged(QGraphicsColorizeEffect* self, void* slot) { +void QGraphicsColorizeEffect_connect_StrengthChanged(QGraphicsColorizeEffect* self, intptr_t slot) { QGraphicsColorizeEffect::connect(self, static_cast(&QGraphicsColorizeEffect::strengthChanged), self, [=](qreal strength) { qreal strength_ret = strength; double sigval1 = static_cast(strength_ret); @@ -261,7 +261,7 @@ void QGraphicsBlurEffect_BlurRadiusChanged(QGraphicsBlurEffect* self, double blu self->blurRadiusChanged(static_cast(blurRadius)); } -void QGraphicsBlurEffect_connect_BlurRadiusChanged(QGraphicsBlurEffect* self, void* slot) { +void QGraphicsBlurEffect_connect_BlurRadiusChanged(QGraphicsBlurEffect* self, intptr_t slot) { QGraphicsBlurEffect::connect(self, static_cast(&QGraphicsBlurEffect::blurRadiusChanged), self, [=](qreal blurRadius) { qreal blurRadius_ret = blurRadius; double sigval1 = static_cast(blurRadius_ret); @@ -273,7 +273,7 @@ void QGraphicsBlurEffect_BlurHintsChanged(QGraphicsBlurEffect* self, int hints) self->blurHintsChanged(static_cast(hints)); } -void QGraphicsBlurEffect_connect_BlurHintsChanged(QGraphicsBlurEffect* self, void* slot) { +void QGraphicsBlurEffect_connect_BlurHintsChanged(QGraphicsBlurEffect* self, intptr_t slot) { QGraphicsBlurEffect::connect(self, static_cast(&QGraphicsBlurEffect::blurHintsChanged), self, [=](QGraphicsBlurEffect::BlurHints hints) { QGraphicsBlurEffect::BlurHints hints_ret = hints; int sigval1 = static_cast(hints_ret); @@ -402,7 +402,7 @@ void QGraphicsDropShadowEffect_OffsetChanged(QGraphicsDropShadowEffect* self, QP self->offsetChanged(*offset); } -void QGraphicsDropShadowEffect_connect_OffsetChanged(QGraphicsDropShadowEffect* self, void* slot) { +void QGraphicsDropShadowEffect_connect_OffsetChanged(QGraphicsDropShadowEffect* self, intptr_t slot) { QGraphicsDropShadowEffect::connect(self, static_cast(&QGraphicsDropShadowEffect::offsetChanged), self, [=](const QPointF& offset) { const QPointF& offset_ret = offset; // Cast returned reference into pointer @@ -415,7 +415,7 @@ void QGraphicsDropShadowEffect_BlurRadiusChanged(QGraphicsDropShadowEffect* self self->blurRadiusChanged(static_cast(blurRadius)); } -void QGraphicsDropShadowEffect_connect_BlurRadiusChanged(QGraphicsDropShadowEffect* self, void* slot) { +void QGraphicsDropShadowEffect_connect_BlurRadiusChanged(QGraphicsDropShadowEffect* self, intptr_t slot) { QGraphicsDropShadowEffect::connect(self, static_cast(&QGraphicsDropShadowEffect::blurRadiusChanged), self, [=](qreal blurRadius) { qreal blurRadius_ret = blurRadius; double sigval1 = static_cast(blurRadius_ret); @@ -427,7 +427,7 @@ void QGraphicsDropShadowEffect_ColorChanged(QGraphicsDropShadowEffect* self, QCo self->colorChanged(*color); } -void QGraphicsDropShadowEffect_connect_ColorChanged(QGraphicsDropShadowEffect* self, void* slot) { +void QGraphicsDropShadowEffect_connect_ColorChanged(QGraphicsDropShadowEffect* self, intptr_t slot) { QGraphicsDropShadowEffect::connect(self, static_cast(&QGraphicsDropShadowEffect::colorChanged), self, [=](const QColor& color) { const QColor& color_ret = color; // Cast returned reference into pointer @@ -519,7 +519,7 @@ void QGraphicsOpacityEffect_OpacityChanged(QGraphicsOpacityEffect* self, double self->opacityChanged(static_cast(opacity)); } -void QGraphicsOpacityEffect_connect_OpacityChanged(QGraphicsOpacityEffect* self, void* slot) { +void QGraphicsOpacityEffect_connect_OpacityChanged(QGraphicsOpacityEffect* self, intptr_t slot) { QGraphicsOpacityEffect::connect(self, static_cast(&QGraphicsOpacityEffect::opacityChanged), self, [=](qreal opacity) { qreal opacity_ret = opacity; double sigval1 = static_cast(opacity_ret); @@ -531,7 +531,7 @@ void QGraphicsOpacityEffect_OpacityMaskChanged(QGraphicsOpacityEffect* self, QBr self->opacityMaskChanged(*mask); } -void QGraphicsOpacityEffect_connect_OpacityMaskChanged(QGraphicsOpacityEffect* self, void* slot) { +void QGraphicsOpacityEffect_connect_OpacityMaskChanged(QGraphicsOpacityEffect* self, intptr_t slot) { QGraphicsOpacityEffect::connect(self, static_cast(&QGraphicsOpacityEffect::opacityMaskChanged), self, [=](const QBrush& mask) { const QBrush& mask_ret = mask; // Cast returned reference into pointer diff --git a/qt/gen_qgraphicseffect.go b/qt/gen_qgraphicseffect.go index 49d1b91..1f6ede7 100644 --- a/qt/gen_qgraphicseffect.go +++ b/qt/gen_qgraphicseffect.go @@ -120,12 +120,12 @@ func (this *QGraphicsEffect) EnabledChanged(enabled bool) { C.QGraphicsEffect_EnabledChanged(this.h, (C.bool)(enabled)) } func (this *QGraphicsEffect) OnEnabledChanged(slot func(enabled bool)) { - C.QGraphicsEffect_connect_EnabledChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsEffect_connect_EnabledChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsEffect_EnabledChanged -func miqt_exec_callback_QGraphicsEffect_EnabledChanged(cb *C.void, enabled C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(enabled bool)) +func miqt_exec_callback_QGraphicsEffect_EnabledChanged(cb C.intptr_t, enabled C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(enabled bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -280,12 +280,12 @@ func (this *QGraphicsColorizeEffect) ColorChanged(color *QColor) { C.QGraphicsColorizeEffect_ColorChanged(this.h, color.cPointer()) } func (this *QGraphicsColorizeEffect) OnColorChanged(slot func(color *QColor)) { - C.QGraphicsColorizeEffect_connect_ColorChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsColorizeEffect_connect_ColorChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsColorizeEffect_ColorChanged -func miqt_exec_callback_QGraphicsColorizeEffect_ColorChanged(cb *C.void, color *C.QColor) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(color *QColor)) +func miqt_exec_callback_QGraphicsColorizeEffect_ColorChanged(cb C.intptr_t, color *C.QColor) { + gofunc, ok := cgo.Handle(cb).Value().(func(color *QColor)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -300,12 +300,12 @@ func (this *QGraphicsColorizeEffect) StrengthChanged(strength float64) { C.QGraphicsColorizeEffect_StrengthChanged(this.h, (C.double)(strength)) } func (this *QGraphicsColorizeEffect) OnStrengthChanged(slot func(strength float64)) { - C.QGraphicsColorizeEffect_connect_StrengthChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsColorizeEffect_connect_StrengthChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsColorizeEffect_StrengthChanged -func miqt_exec_callback_QGraphicsColorizeEffect_StrengthChanged(cb *C.void, strength C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(strength float64)) +func miqt_exec_callback_QGraphicsColorizeEffect_StrengthChanged(cb C.intptr_t, strength C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(strength float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -464,12 +464,12 @@ func (this *QGraphicsBlurEffect) BlurRadiusChanged(blurRadius float64) { C.QGraphicsBlurEffect_BlurRadiusChanged(this.h, (C.double)(blurRadius)) } func (this *QGraphicsBlurEffect) OnBlurRadiusChanged(slot func(blurRadius float64)) { - C.QGraphicsBlurEffect_connect_BlurRadiusChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsBlurEffect_connect_BlurRadiusChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged -func miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged(cb *C.void, blurRadius C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(blurRadius float64)) +func miqt_exec_callback_QGraphicsBlurEffect_BlurRadiusChanged(cb C.intptr_t, blurRadius C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(blurRadius float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -484,12 +484,12 @@ func (this *QGraphicsBlurEffect) BlurHintsChanged(hints QGraphicsBlurEffect__Blu C.QGraphicsBlurEffect_BlurHintsChanged(this.h, (C.int)(hints)) } func (this *QGraphicsBlurEffect) OnBlurHintsChanged(slot func(hints QGraphicsBlurEffect__BlurHint)) { - C.QGraphicsBlurEffect_connect_BlurHintsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsBlurEffect_connect_BlurHintsChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsBlurEffect_BlurHintsChanged -func miqt_exec_callback_QGraphicsBlurEffect_BlurHintsChanged(cb *C.void, hints C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(hints QGraphicsBlurEffect__BlurHint)) +func miqt_exec_callback_QGraphicsBlurEffect_BlurHintsChanged(cb C.intptr_t, hints C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(hints QGraphicsBlurEffect__BlurHint)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -686,12 +686,12 @@ func (this *QGraphicsDropShadowEffect) OffsetChanged(offset *QPointF) { C.QGraphicsDropShadowEffect_OffsetChanged(this.h, offset.cPointer()) } func (this *QGraphicsDropShadowEffect) OnOffsetChanged(slot func(offset *QPointF)) { - C.QGraphicsDropShadowEffect_connect_OffsetChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsDropShadowEffect_connect_OffsetChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsDropShadowEffect_OffsetChanged -func miqt_exec_callback_QGraphicsDropShadowEffect_OffsetChanged(cb *C.void, offset *C.QPointF) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(offset *QPointF)) +func miqt_exec_callback_QGraphicsDropShadowEffect_OffsetChanged(cb C.intptr_t, offset *C.QPointF) { + gofunc, ok := cgo.Handle(cb).Value().(func(offset *QPointF)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -706,12 +706,12 @@ func (this *QGraphicsDropShadowEffect) BlurRadiusChanged(blurRadius float64) { C.QGraphicsDropShadowEffect_BlurRadiusChanged(this.h, (C.double)(blurRadius)) } func (this *QGraphicsDropShadowEffect) OnBlurRadiusChanged(slot func(blurRadius float64)) { - C.QGraphicsDropShadowEffect_connect_BlurRadiusChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsDropShadowEffect_connect_BlurRadiusChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsDropShadowEffect_BlurRadiusChanged -func miqt_exec_callback_QGraphicsDropShadowEffect_BlurRadiusChanged(cb *C.void, blurRadius C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(blurRadius float64)) +func miqt_exec_callback_QGraphicsDropShadowEffect_BlurRadiusChanged(cb C.intptr_t, blurRadius C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(blurRadius float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -726,12 +726,12 @@ func (this *QGraphicsDropShadowEffect) ColorChanged(color *QColor) { C.QGraphicsDropShadowEffect_ColorChanged(this.h, color.cPointer()) } func (this *QGraphicsDropShadowEffect) OnColorChanged(slot func(color *QColor)) { - C.QGraphicsDropShadowEffect_connect_ColorChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsDropShadowEffect_connect_ColorChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsDropShadowEffect_ColorChanged -func miqt_exec_callback_QGraphicsDropShadowEffect_ColorChanged(cb *C.void, color *C.QColor) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(color *QColor)) +func miqt_exec_callback_QGraphicsDropShadowEffect_ColorChanged(cb C.intptr_t, color *C.QColor) { + gofunc, ok := cgo.Handle(cb).Value().(func(color *QColor)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -886,12 +886,12 @@ func (this *QGraphicsOpacityEffect) OpacityChanged(opacity float64) { C.QGraphicsOpacityEffect_OpacityChanged(this.h, (C.double)(opacity)) } func (this *QGraphicsOpacityEffect) OnOpacityChanged(slot func(opacity float64)) { - C.QGraphicsOpacityEffect_connect_OpacityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsOpacityEffect_connect_OpacityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsOpacityEffect_OpacityChanged -func miqt_exec_callback_QGraphicsOpacityEffect_OpacityChanged(cb *C.void, opacity C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(opacity float64)) +func miqt_exec_callback_QGraphicsOpacityEffect_OpacityChanged(cb C.intptr_t, opacity C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(opacity float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -906,12 +906,12 @@ func (this *QGraphicsOpacityEffect) OpacityMaskChanged(mask *QBrush) { C.QGraphicsOpacityEffect_OpacityMaskChanged(this.h, mask.cPointer()) } func (this *QGraphicsOpacityEffect) OnOpacityMaskChanged(slot func(mask *QBrush)) { - C.QGraphicsOpacityEffect_connect_OpacityMaskChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsOpacityEffect_connect_OpacityMaskChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsOpacityEffect_OpacityMaskChanged -func miqt_exec_callback_QGraphicsOpacityEffect_OpacityMaskChanged(cb *C.void, mask *C.QBrush) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(mask *QBrush)) +func miqt_exec_callback_QGraphicsOpacityEffect_OpacityMaskChanged(cb C.intptr_t, mask *C.QBrush) { + gofunc, ok := cgo.Handle(cb).Value().(func(mask *QBrush)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qgraphicseffect.h b/qt/gen_qgraphicseffect.h index df2a6e9..2e4aa0b 100644 --- a/qt/gen_qgraphicseffect.h +++ b/qt/gen_qgraphicseffect.h @@ -49,7 +49,7 @@ bool QGraphicsEffect_IsEnabled(const QGraphicsEffect* self); void QGraphicsEffect_SetEnabled(QGraphicsEffect* self, bool enable); void QGraphicsEffect_Update(QGraphicsEffect* self); void QGraphicsEffect_EnabledChanged(QGraphicsEffect* self, bool enabled); -void QGraphicsEffect_connect_EnabledChanged(QGraphicsEffect* self, void* slot); +void QGraphicsEffect_connect_EnabledChanged(QGraphicsEffect* self, intptr_t slot); struct miqt_string* QGraphicsEffect_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsEffect_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsEffect_TrUtf82(const char* s, const char* c); @@ -67,9 +67,9 @@ double QGraphicsColorizeEffect_Strength(const QGraphicsColorizeEffect* self); void QGraphicsColorizeEffect_SetColor(QGraphicsColorizeEffect* self, QColor* c); void QGraphicsColorizeEffect_SetStrength(QGraphicsColorizeEffect* self, double strength); void QGraphicsColorizeEffect_ColorChanged(QGraphicsColorizeEffect* self, QColor* color); -void QGraphicsColorizeEffect_connect_ColorChanged(QGraphicsColorizeEffect* self, void* slot); +void QGraphicsColorizeEffect_connect_ColorChanged(QGraphicsColorizeEffect* self, intptr_t slot); void QGraphicsColorizeEffect_StrengthChanged(QGraphicsColorizeEffect* self, double strength); -void QGraphicsColorizeEffect_connect_StrengthChanged(QGraphicsColorizeEffect* self, void* slot); +void QGraphicsColorizeEffect_connect_StrengthChanged(QGraphicsColorizeEffect* self, intptr_t slot); struct miqt_string* QGraphicsColorizeEffect_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsColorizeEffect_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsColorizeEffect_TrUtf82(const char* s, const char* c); @@ -88,9 +88,9 @@ int QGraphicsBlurEffect_BlurHints(const QGraphicsBlurEffect* self); void QGraphicsBlurEffect_SetBlurRadius(QGraphicsBlurEffect* self, double blurRadius); void QGraphicsBlurEffect_SetBlurHints(QGraphicsBlurEffect* self, int hints); void QGraphicsBlurEffect_BlurRadiusChanged(QGraphicsBlurEffect* self, double blurRadius); -void QGraphicsBlurEffect_connect_BlurRadiusChanged(QGraphicsBlurEffect* self, void* slot); +void QGraphicsBlurEffect_connect_BlurRadiusChanged(QGraphicsBlurEffect* self, intptr_t slot); void QGraphicsBlurEffect_BlurHintsChanged(QGraphicsBlurEffect* self, int hints); -void QGraphicsBlurEffect_connect_BlurHintsChanged(QGraphicsBlurEffect* self, void* slot); +void QGraphicsBlurEffect_connect_BlurHintsChanged(QGraphicsBlurEffect* self, intptr_t slot); struct miqt_string* QGraphicsBlurEffect_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsBlurEffect_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsBlurEffect_TrUtf82(const char* s, const char* c); @@ -117,11 +117,11 @@ void QGraphicsDropShadowEffect_SetYOffset(QGraphicsDropShadowEffect* self, doubl void QGraphicsDropShadowEffect_SetBlurRadius(QGraphicsDropShadowEffect* self, double blurRadius); void QGraphicsDropShadowEffect_SetColor(QGraphicsDropShadowEffect* self, QColor* color); void QGraphicsDropShadowEffect_OffsetChanged(QGraphicsDropShadowEffect* self, QPointF* offset); -void QGraphicsDropShadowEffect_connect_OffsetChanged(QGraphicsDropShadowEffect* self, void* slot); +void QGraphicsDropShadowEffect_connect_OffsetChanged(QGraphicsDropShadowEffect* self, intptr_t slot); void QGraphicsDropShadowEffect_BlurRadiusChanged(QGraphicsDropShadowEffect* self, double blurRadius); -void QGraphicsDropShadowEffect_connect_BlurRadiusChanged(QGraphicsDropShadowEffect* self, void* slot); +void QGraphicsDropShadowEffect_connect_BlurRadiusChanged(QGraphicsDropShadowEffect* self, intptr_t slot); void QGraphicsDropShadowEffect_ColorChanged(QGraphicsDropShadowEffect* self, QColor* color); -void QGraphicsDropShadowEffect_connect_ColorChanged(QGraphicsDropShadowEffect* self, void* slot); +void QGraphicsDropShadowEffect_connect_ColorChanged(QGraphicsDropShadowEffect* self, intptr_t slot); struct miqt_string* QGraphicsDropShadowEffect_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsDropShadowEffect_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsDropShadowEffect_TrUtf82(const char* s, const char* c); @@ -139,9 +139,9 @@ QBrush* QGraphicsOpacityEffect_OpacityMask(const QGraphicsOpacityEffect* self); void QGraphicsOpacityEffect_SetOpacity(QGraphicsOpacityEffect* self, double opacity); void QGraphicsOpacityEffect_SetOpacityMask(QGraphicsOpacityEffect* self, QBrush* mask); void QGraphicsOpacityEffect_OpacityChanged(QGraphicsOpacityEffect* self, double opacity); -void QGraphicsOpacityEffect_connect_OpacityChanged(QGraphicsOpacityEffect* self, void* slot); +void QGraphicsOpacityEffect_connect_OpacityChanged(QGraphicsOpacityEffect* self, intptr_t slot); void QGraphicsOpacityEffect_OpacityMaskChanged(QGraphicsOpacityEffect* self, QBrush* mask); -void QGraphicsOpacityEffect_connect_OpacityMaskChanged(QGraphicsOpacityEffect* self, void* slot); +void QGraphicsOpacityEffect_connect_OpacityMaskChanged(QGraphicsOpacityEffect* self, intptr_t slot); struct miqt_string* QGraphicsOpacityEffect_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsOpacityEffect_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsOpacityEffect_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qgraphicsitem.cpp b/qt/gen_qgraphicsitem.cpp index 50ed3ba..653f42e 100644 --- a/qt/gen_qgraphicsitem.cpp +++ b/qt/gen_qgraphicsitem.cpp @@ -872,7 +872,7 @@ void QGraphicsObject_ParentChanged(QGraphicsObject* self) { self->parentChanged(); } -void QGraphicsObject_connect_ParentChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_ParentChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::parentChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ParentChanged(slot); }); @@ -882,7 +882,7 @@ void QGraphicsObject_OpacityChanged(QGraphicsObject* self) { self->opacityChanged(); } -void QGraphicsObject_connect_OpacityChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_OpacityChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::opacityChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_OpacityChanged(slot); }); @@ -892,7 +892,7 @@ void QGraphicsObject_VisibleChanged(QGraphicsObject* self) { self->visibleChanged(); } -void QGraphicsObject_connect_VisibleChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_VisibleChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::visibleChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_VisibleChanged(slot); }); @@ -902,7 +902,7 @@ void QGraphicsObject_EnabledChanged(QGraphicsObject* self) { self->enabledChanged(); } -void QGraphicsObject_connect_EnabledChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_EnabledChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::enabledChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_EnabledChanged(slot); }); @@ -912,7 +912,7 @@ void QGraphicsObject_XChanged(QGraphicsObject* self) { self->xChanged(); } -void QGraphicsObject_connect_XChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_XChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::xChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_XChanged(slot); }); @@ -922,7 +922,7 @@ void QGraphicsObject_YChanged(QGraphicsObject* self) { self->yChanged(); } -void QGraphicsObject_connect_YChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_YChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::yChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_YChanged(slot); }); @@ -932,7 +932,7 @@ void QGraphicsObject_ZChanged(QGraphicsObject* self) { self->zChanged(); } -void QGraphicsObject_connect_ZChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_ZChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::zChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ZChanged(slot); }); @@ -942,7 +942,7 @@ void QGraphicsObject_RotationChanged(QGraphicsObject* self) { self->rotationChanged(); } -void QGraphicsObject_connect_RotationChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_RotationChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::rotationChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_RotationChanged(slot); }); @@ -952,7 +952,7 @@ void QGraphicsObject_ScaleChanged(QGraphicsObject* self) { self->scaleChanged(); } -void QGraphicsObject_connect_ScaleChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_ScaleChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::scaleChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ScaleChanged(slot); }); @@ -962,7 +962,7 @@ void QGraphicsObject_ChildrenChanged(QGraphicsObject* self) { self->childrenChanged(); } -void QGraphicsObject_connect_ChildrenChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_ChildrenChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::childrenChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_ChildrenChanged(slot); }); @@ -972,7 +972,7 @@ void QGraphicsObject_WidthChanged(QGraphicsObject* self) { self->widthChanged(); } -void QGraphicsObject_connect_WidthChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_WidthChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::widthChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_WidthChanged(slot); }); @@ -982,7 +982,7 @@ void QGraphicsObject_HeightChanged(QGraphicsObject* self) { self->heightChanged(); } -void QGraphicsObject_connect_HeightChanged(QGraphicsObject* self, void* slot) { +void QGraphicsObject_connect_HeightChanged(QGraphicsObject* self, intptr_t slot) { QGraphicsObject::connect(self, static_cast(&QGraphicsObject::heightChanged), self, [=]() { miqt_exec_callback_QGraphicsObject_HeightChanged(slot); }); @@ -1658,7 +1658,7 @@ void QGraphicsTextItem_LinkActivated(QGraphicsTextItem* self, struct miqt_string self->linkActivated(param1_QString); } -void QGraphicsTextItem_connect_LinkActivated(QGraphicsTextItem* self, void* slot) { +void QGraphicsTextItem_connect_LinkActivated(QGraphicsTextItem* self, intptr_t slot) { QGraphicsTextItem::connect(self, static_cast(&QGraphicsTextItem::linkActivated), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -1673,7 +1673,7 @@ void QGraphicsTextItem_LinkHovered(QGraphicsTextItem* self, struct miqt_string* self->linkHovered(param1_QString); } -void QGraphicsTextItem_connect_LinkHovered(QGraphicsTextItem* self, void* slot) { +void QGraphicsTextItem_connect_LinkHovered(QGraphicsTextItem* self, intptr_t slot) { QGraphicsTextItem::connect(self, static_cast(&QGraphicsTextItem::linkHovered), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qgraphicsitem.go b/qt/gen_qgraphicsitem.go index 2026f2e..fa95360 100644 --- a/qt/gen_qgraphicsitem.go +++ b/qt/gen_qgraphicsitem.go @@ -1183,12 +1183,12 @@ func (this *QGraphicsObject) ParentChanged() { C.QGraphicsObject_ParentChanged(this.h) } func (this *QGraphicsObject) OnParentChanged(slot func()) { - C.QGraphicsObject_connect_ParentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_ParentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_ParentChanged -func miqt_exec_callback_QGraphicsObject_ParentChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_ParentChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1200,12 +1200,12 @@ func (this *QGraphicsObject) OpacityChanged() { C.QGraphicsObject_OpacityChanged(this.h) } func (this *QGraphicsObject) OnOpacityChanged(slot func()) { - C.QGraphicsObject_connect_OpacityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_OpacityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_OpacityChanged -func miqt_exec_callback_QGraphicsObject_OpacityChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_OpacityChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1217,12 +1217,12 @@ func (this *QGraphicsObject) VisibleChanged() { C.QGraphicsObject_VisibleChanged(this.h) } func (this *QGraphicsObject) OnVisibleChanged(slot func()) { - C.QGraphicsObject_connect_VisibleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_VisibleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_VisibleChanged -func miqt_exec_callback_QGraphicsObject_VisibleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_VisibleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1234,12 +1234,12 @@ func (this *QGraphicsObject) EnabledChanged() { C.QGraphicsObject_EnabledChanged(this.h) } func (this *QGraphicsObject) OnEnabledChanged(slot func()) { - C.QGraphicsObject_connect_EnabledChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_EnabledChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_EnabledChanged -func miqt_exec_callback_QGraphicsObject_EnabledChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_EnabledChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1251,12 +1251,12 @@ func (this *QGraphicsObject) XChanged() { C.QGraphicsObject_XChanged(this.h) } func (this *QGraphicsObject) OnXChanged(slot func()) { - C.QGraphicsObject_connect_XChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_XChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_XChanged -func miqt_exec_callback_QGraphicsObject_XChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_XChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1268,12 +1268,12 @@ func (this *QGraphicsObject) YChanged() { C.QGraphicsObject_YChanged(this.h) } func (this *QGraphicsObject) OnYChanged(slot func()) { - C.QGraphicsObject_connect_YChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_YChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_YChanged -func miqt_exec_callback_QGraphicsObject_YChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_YChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1285,12 +1285,12 @@ func (this *QGraphicsObject) ZChanged() { C.QGraphicsObject_ZChanged(this.h) } func (this *QGraphicsObject) OnZChanged(slot func()) { - C.QGraphicsObject_connect_ZChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_ZChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_ZChanged -func miqt_exec_callback_QGraphicsObject_ZChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_ZChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1302,12 +1302,12 @@ func (this *QGraphicsObject) RotationChanged() { C.QGraphicsObject_RotationChanged(this.h) } func (this *QGraphicsObject) OnRotationChanged(slot func()) { - C.QGraphicsObject_connect_RotationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_RotationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_RotationChanged -func miqt_exec_callback_QGraphicsObject_RotationChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_RotationChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1319,12 +1319,12 @@ func (this *QGraphicsObject) ScaleChanged() { C.QGraphicsObject_ScaleChanged(this.h) } func (this *QGraphicsObject) OnScaleChanged(slot func()) { - C.QGraphicsObject_connect_ScaleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_ScaleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_ScaleChanged -func miqt_exec_callback_QGraphicsObject_ScaleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_ScaleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1336,12 +1336,12 @@ func (this *QGraphicsObject) ChildrenChanged() { C.QGraphicsObject_ChildrenChanged(this.h) } func (this *QGraphicsObject) OnChildrenChanged(slot func()) { - C.QGraphicsObject_connect_ChildrenChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_ChildrenChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_ChildrenChanged -func miqt_exec_callback_QGraphicsObject_ChildrenChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_ChildrenChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1353,12 +1353,12 @@ func (this *QGraphicsObject) WidthChanged() { C.QGraphicsObject_WidthChanged(this.h) } func (this *QGraphicsObject) OnWidthChanged(slot func()) { - C.QGraphicsObject_connect_WidthChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_WidthChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_WidthChanged -func miqt_exec_callback_QGraphicsObject_WidthChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_WidthChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1370,12 +1370,12 @@ func (this *QGraphicsObject) HeightChanged() { C.QGraphicsObject_HeightChanged(this.h) } func (this *QGraphicsObject) OnHeightChanged(slot func()) { - C.QGraphicsObject_connect_HeightChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsObject_connect_HeightChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsObject_HeightChanged -func miqt_exec_callback_QGraphicsObject_HeightChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsObject_HeightChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -2505,12 +2505,12 @@ func (this *QGraphicsTextItem) LinkActivated(param1 string) { C.QGraphicsTextItem_LinkActivated(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QGraphicsTextItem) OnLinkActivated(slot func(param1 string)) { - C.QGraphicsTextItem_connect_LinkActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsTextItem_connect_LinkActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsTextItem_LinkActivated -func miqt_exec_callback_QGraphicsTextItem_LinkActivated(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QGraphicsTextItem_LinkActivated(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -2530,12 +2530,12 @@ func (this *QGraphicsTextItem) LinkHovered(param1 string) { C.QGraphicsTextItem_LinkHovered(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QGraphicsTextItem) OnLinkHovered(slot func(param1 string)) { - C.QGraphicsTextItem_connect_LinkHovered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsTextItem_connect_LinkHovered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsTextItem_LinkHovered -func miqt_exec_callback_QGraphicsTextItem_LinkHovered(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QGraphicsTextItem_LinkHovered(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qgraphicsitem.h b/qt/gen_qgraphicsitem.h index b250b4d..355fccb 100644 --- a/qt/gen_qgraphicsitem.h +++ b/qt/gen_qgraphicsitem.h @@ -283,29 +283,29 @@ struct miqt_string* QGraphicsObject_TrUtf8(const char* s); void QGraphicsObject_GrabGesture(QGraphicsObject* self, int typeVal); void QGraphicsObject_UngrabGesture(QGraphicsObject* self, int typeVal); void QGraphicsObject_ParentChanged(QGraphicsObject* self); -void QGraphicsObject_connect_ParentChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_ParentChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_OpacityChanged(QGraphicsObject* self); -void QGraphicsObject_connect_OpacityChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_OpacityChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_VisibleChanged(QGraphicsObject* self); -void QGraphicsObject_connect_VisibleChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_VisibleChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_EnabledChanged(QGraphicsObject* self); -void QGraphicsObject_connect_EnabledChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_EnabledChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_XChanged(QGraphicsObject* self); -void QGraphicsObject_connect_XChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_XChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_YChanged(QGraphicsObject* self); -void QGraphicsObject_connect_YChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_YChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_ZChanged(QGraphicsObject* self); -void QGraphicsObject_connect_ZChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_ZChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_RotationChanged(QGraphicsObject* self); -void QGraphicsObject_connect_RotationChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_RotationChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_ScaleChanged(QGraphicsObject* self); -void QGraphicsObject_connect_ScaleChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_ScaleChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_ChildrenChanged(QGraphicsObject* self); -void QGraphicsObject_connect_ChildrenChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_ChildrenChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_WidthChanged(QGraphicsObject* self); -void QGraphicsObject_connect_WidthChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_WidthChanged(QGraphicsObject* self, intptr_t slot); void QGraphicsObject_HeightChanged(QGraphicsObject* self); -void QGraphicsObject_connect_HeightChanged(QGraphicsObject* self, void* slot); +void QGraphicsObject_connect_HeightChanged(QGraphicsObject* self, intptr_t slot); struct miqt_string* QGraphicsObject_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsObject_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsObject_TrUtf82(const char* s, const char* c); @@ -473,9 +473,9 @@ bool QGraphicsTextItem_OpenExternalLinks(const QGraphicsTextItem* self); void QGraphicsTextItem_SetTextCursor(QGraphicsTextItem* self, QTextCursor* cursor); QTextCursor* QGraphicsTextItem_TextCursor(const QGraphicsTextItem* self); void QGraphicsTextItem_LinkActivated(QGraphicsTextItem* self, struct miqt_string* param1); -void QGraphicsTextItem_connect_LinkActivated(QGraphicsTextItem* self, void* slot); +void QGraphicsTextItem_connect_LinkActivated(QGraphicsTextItem* self, intptr_t slot); void QGraphicsTextItem_LinkHovered(QGraphicsTextItem* self, struct miqt_string* param1); -void QGraphicsTextItem_connect_LinkHovered(QGraphicsTextItem* self, void* slot); +void QGraphicsTextItem_connect_LinkHovered(QGraphicsTextItem* self, intptr_t slot); struct miqt_string* QGraphicsTextItem_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsTextItem_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsTextItem_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qgraphicsscene.cpp b/qt/gen_qgraphicsscene.cpp index e5987e2..45e8af3 100644 --- a/qt/gen_qgraphicsscene.cpp +++ b/qt/gen_qgraphicsscene.cpp @@ -488,7 +488,7 @@ void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array* /* of QRect self->changed(region_QList); } -void QGraphicsScene_connect_Changed(QGraphicsScene* self, void* slot) { +void QGraphicsScene_connect_Changed(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast&)>(&QGraphicsScene::changed), self, [=](const QList& region) { const QList& region_ret = region; // Convert QList<> from C++ memory to manually-managed C memory @@ -508,7 +508,7 @@ void QGraphicsScene_SceneRectChanged(QGraphicsScene* self, QRectF* rect) { self->sceneRectChanged(*rect); } -void QGraphicsScene_connect_SceneRectChanged(QGraphicsScene* self, void* slot) { +void QGraphicsScene_connect_SceneRectChanged(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast(&QGraphicsScene::sceneRectChanged), self, [=](const QRectF& rect) { const QRectF& rect_ret = rect; // Cast returned reference into pointer @@ -521,7 +521,7 @@ void QGraphicsScene_SelectionChanged(QGraphicsScene* self) { self->selectionChanged(); } -void QGraphicsScene_connect_SelectionChanged(QGraphicsScene* self, void* slot) { +void QGraphicsScene_connect_SelectionChanged(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast(&QGraphicsScene::selectionChanged), self, [=]() { miqt_exec_callback_QGraphicsScene_SelectionChanged(slot); }); @@ -531,7 +531,7 @@ void QGraphicsScene_FocusItemChanged(QGraphicsScene* self, QGraphicsItem* newFoc self->focusItemChanged(newFocus, oldFocus, static_cast(reason)); } -void QGraphicsScene_connect_FocusItemChanged(QGraphicsScene* self, void* slot) { +void QGraphicsScene_connect_FocusItemChanged(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast(&QGraphicsScene::focusItemChanged), self, [=](QGraphicsItem* newFocus, QGraphicsItem* oldFocus, Qt::FocusReason reason) { QGraphicsItem* sigval1 = newFocus; QGraphicsItem* sigval2 = oldFocus; diff --git a/qt/gen_qgraphicsscene.go b/qt/gen_qgraphicsscene.go index 86bd7fd..b7c993b 100644 --- a/qt/gen_qgraphicsscene.go +++ b/qt/gen_qgraphicsscene.go @@ -533,12 +533,12 @@ func (this *QGraphicsScene) Changed(region []QRectF) { C.QGraphicsScene_Changed(this.h, region_ma) } func (this *QGraphicsScene) OnChanged(slot func(region []QRectF)) { - C.QGraphicsScene_connect_Changed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScene_connect_Changed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScene_Changed -func miqt_exec_callback_QGraphicsScene_Changed(cb *C.void, region *C.struct_miqt_array) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(region []QRectF)) +func miqt_exec_callback_QGraphicsScene_Changed(cb C.intptr_t, region *C.struct_miqt_array) { + gofunc, ok := cgo.Handle(cb).Value().(func(region []QRectF)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -563,12 +563,12 @@ func (this *QGraphicsScene) SceneRectChanged(rect *QRectF) { C.QGraphicsScene_SceneRectChanged(this.h, rect.cPointer()) } func (this *QGraphicsScene) OnSceneRectChanged(slot func(rect *QRectF)) { - C.QGraphicsScene_connect_SceneRectChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScene_connect_SceneRectChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScene_SceneRectChanged -func miqt_exec_callback_QGraphicsScene_SceneRectChanged(cb *C.void, rect *C.QRectF) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(rect *QRectF)) +func miqt_exec_callback_QGraphicsScene_SceneRectChanged(cb C.intptr_t, rect *C.QRectF) { + gofunc, ok := cgo.Handle(cb).Value().(func(rect *QRectF)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -583,12 +583,12 @@ func (this *QGraphicsScene) SelectionChanged() { C.QGraphicsScene_SelectionChanged(this.h) } func (this *QGraphicsScene) OnSelectionChanged(slot func()) { - C.QGraphicsScene_connect_SelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScene_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScene_SelectionChanged -func miqt_exec_callback_QGraphicsScene_SelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsScene_SelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -600,12 +600,12 @@ func (this *QGraphicsScene) FocusItemChanged(newFocus *QGraphicsItem, oldFocus * C.QGraphicsScene_FocusItemChanged(this.h, newFocus.cPointer(), oldFocus.cPointer(), (C.int)(reason)) } func (this *QGraphicsScene) OnFocusItemChanged(slot func(newFocus *QGraphicsItem, oldFocus *QGraphicsItem, reason FocusReason)) { - C.QGraphicsScene_connect_FocusItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScene_connect_FocusItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScene_FocusItemChanged -func miqt_exec_callback_QGraphicsScene_FocusItemChanged(cb *C.void, newFocus *C.QGraphicsItem, oldFocus *C.QGraphicsItem, reason C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newFocus *QGraphicsItem, oldFocus *QGraphicsItem, reason FocusReason)) +func miqt_exec_callback_QGraphicsScene_FocusItemChanged(cb C.intptr_t, newFocus *C.QGraphicsItem, oldFocus *C.QGraphicsItem, reason C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(newFocus *QGraphicsItem, oldFocus *QGraphicsItem, reason FocusReason)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qgraphicsscene.h b/qt/gen_qgraphicsscene.h index 8d573b4..6dac21b 100644 --- a/qt/gen_qgraphicsscene.h +++ b/qt/gen_qgraphicsscene.h @@ -166,13 +166,13 @@ void QGraphicsScene_Advance(QGraphicsScene* self); void QGraphicsScene_ClearSelection(QGraphicsScene* self); void QGraphicsScene_Clear(QGraphicsScene* self); void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array* /* of QRectF* */ region); -void QGraphicsScene_connect_Changed(QGraphicsScene* self, void* slot); +void QGraphicsScene_connect_Changed(QGraphicsScene* self, intptr_t slot); void QGraphicsScene_SceneRectChanged(QGraphicsScene* self, QRectF* rect); -void QGraphicsScene_connect_SceneRectChanged(QGraphicsScene* self, void* slot); +void QGraphicsScene_connect_SceneRectChanged(QGraphicsScene* self, intptr_t slot); void QGraphicsScene_SelectionChanged(QGraphicsScene* self); -void QGraphicsScene_connect_SelectionChanged(QGraphicsScene* self, void* slot); +void QGraphicsScene_connect_SelectionChanged(QGraphicsScene* self, intptr_t slot); void QGraphicsScene_FocusItemChanged(QGraphicsScene* self, QGraphicsItem* newFocus, QGraphicsItem* oldFocus, int reason); -void QGraphicsScene_connect_FocusItemChanged(QGraphicsScene* self, void* slot); +void QGraphicsScene_connect_FocusItemChanged(QGraphicsScene* self, intptr_t slot); struct miqt_string* QGraphicsScene_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsScene_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsScene_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qgraphicstransform.cpp b/qt/gen_qgraphicstransform.cpp index 0e375ee..d14bf27 100644 --- a/qt/gen_qgraphicstransform.cpp +++ b/qt/gen_qgraphicstransform.cpp @@ -143,7 +143,7 @@ void QGraphicsScale_OriginChanged(QGraphicsScale* self) { self->originChanged(); } -void QGraphicsScale_connect_OriginChanged(QGraphicsScale* self, void* slot) { +void QGraphicsScale_connect_OriginChanged(QGraphicsScale* self, intptr_t slot) { QGraphicsScale::connect(self, static_cast(&QGraphicsScale::originChanged), self, [=]() { miqt_exec_callback_QGraphicsScale_OriginChanged(slot); }); @@ -153,7 +153,7 @@ void QGraphicsScale_XScaleChanged(QGraphicsScale* self) { self->xScaleChanged(); } -void QGraphicsScale_connect_XScaleChanged(QGraphicsScale* self, void* slot) { +void QGraphicsScale_connect_XScaleChanged(QGraphicsScale* self, intptr_t slot) { QGraphicsScale::connect(self, static_cast(&QGraphicsScale::xScaleChanged), self, [=]() { miqt_exec_callback_QGraphicsScale_XScaleChanged(slot); }); @@ -163,7 +163,7 @@ void QGraphicsScale_YScaleChanged(QGraphicsScale* self) { self->yScaleChanged(); } -void QGraphicsScale_connect_YScaleChanged(QGraphicsScale* self, void* slot) { +void QGraphicsScale_connect_YScaleChanged(QGraphicsScale* self, intptr_t slot) { QGraphicsScale::connect(self, static_cast(&QGraphicsScale::yScaleChanged), self, [=]() { miqt_exec_callback_QGraphicsScale_YScaleChanged(slot); }); @@ -173,7 +173,7 @@ void QGraphicsScale_ZScaleChanged(QGraphicsScale* self) { self->zScaleChanged(); } -void QGraphicsScale_connect_ZScaleChanged(QGraphicsScale* self, void* slot) { +void QGraphicsScale_connect_ZScaleChanged(QGraphicsScale* self, intptr_t slot) { QGraphicsScale::connect(self, static_cast(&QGraphicsScale::zScaleChanged), self, [=]() { miqt_exec_callback_QGraphicsScale_ZScaleChanged(slot); }); @@ -183,7 +183,7 @@ void QGraphicsScale_ScaleChanged(QGraphicsScale* self) { self->scaleChanged(); } -void QGraphicsScale_connect_ScaleChanged(QGraphicsScale* self, void* slot) { +void QGraphicsScale_connect_ScaleChanged(QGraphicsScale* self, intptr_t slot) { QGraphicsScale::connect(self, static_cast(&QGraphicsScale::scaleChanged), self, [=]() { miqt_exec_callback_QGraphicsScale_ScaleChanged(slot); }); @@ -288,7 +288,7 @@ void QGraphicsRotation_OriginChanged(QGraphicsRotation* self) { self->originChanged(); } -void QGraphicsRotation_connect_OriginChanged(QGraphicsRotation* self, void* slot) { +void QGraphicsRotation_connect_OriginChanged(QGraphicsRotation* self, intptr_t slot) { QGraphicsRotation::connect(self, static_cast(&QGraphicsRotation::originChanged), self, [=]() { miqt_exec_callback_QGraphicsRotation_OriginChanged(slot); }); @@ -298,7 +298,7 @@ void QGraphicsRotation_AngleChanged(QGraphicsRotation* self) { self->angleChanged(); } -void QGraphicsRotation_connect_AngleChanged(QGraphicsRotation* self, void* slot) { +void QGraphicsRotation_connect_AngleChanged(QGraphicsRotation* self, intptr_t slot) { QGraphicsRotation::connect(self, static_cast(&QGraphicsRotation::angleChanged), self, [=]() { miqt_exec_callback_QGraphicsRotation_AngleChanged(slot); }); @@ -308,7 +308,7 @@ void QGraphicsRotation_AxisChanged(QGraphicsRotation* self) { self->axisChanged(); } -void QGraphicsRotation_connect_AxisChanged(QGraphicsRotation* self, void* slot) { +void QGraphicsRotation_connect_AxisChanged(QGraphicsRotation* self, intptr_t slot) { QGraphicsRotation::connect(self, static_cast(&QGraphicsRotation::axisChanged), self, [=]() { miqt_exec_callback_QGraphicsRotation_AxisChanged(slot); }); diff --git a/qt/gen_qgraphicstransform.go b/qt/gen_qgraphicstransform.go index a5b3d1f..9c3fa51 100644 --- a/qt/gen_qgraphicstransform.go +++ b/qt/gen_qgraphicstransform.go @@ -233,12 +233,12 @@ func (this *QGraphicsScale) OriginChanged() { C.QGraphicsScale_OriginChanged(this.h) } func (this *QGraphicsScale) OnOriginChanged(slot func()) { - C.QGraphicsScale_connect_OriginChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScale_connect_OriginChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScale_OriginChanged -func miqt_exec_callback_QGraphicsScale_OriginChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsScale_OriginChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -250,12 +250,12 @@ func (this *QGraphicsScale) XScaleChanged() { C.QGraphicsScale_XScaleChanged(this.h) } func (this *QGraphicsScale) OnXScaleChanged(slot func()) { - C.QGraphicsScale_connect_XScaleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScale_connect_XScaleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScale_XScaleChanged -func miqt_exec_callback_QGraphicsScale_XScaleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsScale_XScaleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -267,12 +267,12 @@ func (this *QGraphicsScale) YScaleChanged() { C.QGraphicsScale_YScaleChanged(this.h) } func (this *QGraphicsScale) OnYScaleChanged(slot func()) { - C.QGraphicsScale_connect_YScaleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScale_connect_YScaleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScale_YScaleChanged -func miqt_exec_callback_QGraphicsScale_YScaleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsScale_YScaleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -284,12 +284,12 @@ func (this *QGraphicsScale) ZScaleChanged() { C.QGraphicsScale_ZScaleChanged(this.h) } func (this *QGraphicsScale) OnZScaleChanged(slot func()) { - C.QGraphicsScale_connect_ZScaleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScale_connect_ZScaleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScale_ZScaleChanged -func miqt_exec_callback_QGraphicsScale_ZScaleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsScale_ZScaleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -301,12 +301,12 @@ func (this *QGraphicsScale) ScaleChanged() { C.QGraphicsScale_ScaleChanged(this.h) } func (this *QGraphicsScale) OnScaleChanged(slot func()) { - C.QGraphicsScale_connect_ScaleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsScale_connect_ScaleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsScale_ScaleChanged -func miqt_exec_callback_QGraphicsScale_ScaleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsScale_ScaleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -477,12 +477,12 @@ func (this *QGraphicsRotation) OriginChanged() { C.QGraphicsRotation_OriginChanged(this.h) } func (this *QGraphicsRotation) OnOriginChanged(slot func()) { - C.QGraphicsRotation_connect_OriginChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsRotation_connect_OriginChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsRotation_OriginChanged -func miqt_exec_callback_QGraphicsRotation_OriginChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsRotation_OriginChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -494,12 +494,12 @@ func (this *QGraphicsRotation) AngleChanged() { C.QGraphicsRotation_AngleChanged(this.h) } func (this *QGraphicsRotation) OnAngleChanged(slot func()) { - C.QGraphicsRotation_connect_AngleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsRotation_connect_AngleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsRotation_AngleChanged -func miqt_exec_callback_QGraphicsRotation_AngleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsRotation_AngleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -511,12 +511,12 @@ func (this *QGraphicsRotation) AxisChanged() { C.QGraphicsRotation_AxisChanged(this.h) } func (this *QGraphicsRotation) OnAxisChanged(slot func()) { - C.QGraphicsRotation_connect_AxisChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsRotation_connect_AxisChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsRotation_AxisChanged -func miqt_exec_callback_QGraphicsRotation_AxisChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsRotation_AxisChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qgraphicstransform.h b/qt/gen_qgraphicstransform.h index 95079ff..91d7bc6 100644 --- a/qt/gen_qgraphicstransform.h +++ b/qt/gen_qgraphicstransform.h @@ -58,15 +58,15 @@ double QGraphicsScale_ZScale(const QGraphicsScale* self); void QGraphicsScale_SetZScale(QGraphicsScale* self, double zScale); void QGraphicsScale_ApplyTo(const QGraphicsScale* self, QMatrix4x4* matrix); void QGraphicsScale_OriginChanged(QGraphicsScale* self); -void QGraphicsScale_connect_OriginChanged(QGraphicsScale* self, void* slot); +void QGraphicsScale_connect_OriginChanged(QGraphicsScale* self, intptr_t slot); void QGraphicsScale_XScaleChanged(QGraphicsScale* self); -void QGraphicsScale_connect_XScaleChanged(QGraphicsScale* self, void* slot); +void QGraphicsScale_connect_XScaleChanged(QGraphicsScale* self, intptr_t slot); void QGraphicsScale_YScaleChanged(QGraphicsScale* self); -void QGraphicsScale_connect_YScaleChanged(QGraphicsScale* self, void* slot); +void QGraphicsScale_connect_YScaleChanged(QGraphicsScale* self, intptr_t slot); void QGraphicsScale_ZScaleChanged(QGraphicsScale* self); -void QGraphicsScale_connect_ZScaleChanged(QGraphicsScale* self, void* slot); +void QGraphicsScale_connect_ZScaleChanged(QGraphicsScale* self, intptr_t slot); void QGraphicsScale_ScaleChanged(QGraphicsScale* self); -void QGraphicsScale_connect_ScaleChanged(QGraphicsScale* self, void* slot); +void QGraphicsScale_connect_ScaleChanged(QGraphicsScale* self, intptr_t slot); struct miqt_string* QGraphicsScale_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsScale_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsScale_TrUtf82(const char* s, const char* c); @@ -88,11 +88,11 @@ void QGraphicsRotation_SetAxis(QGraphicsRotation* self, QVector3D* axis); void QGraphicsRotation_SetAxisWithAxis(QGraphicsRotation* self, int axis); void QGraphicsRotation_ApplyTo(const QGraphicsRotation* self, QMatrix4x4* matrix); void QGraphicsRotation_OriginChanged(QGraphicsRotation* self); -void QGraphicsRotation_connect_OriginChanged(QGraphicsRotation* self, void* slot); +void QGraphicsRotation_connect_OriginChanged(QGraphicsRotation* self, intptr_t slot); void QGraphicsRotation_AngleChanged(QGraphicsRotation* self); -void QGraphicsRotation_connect_AngleChanged(QGraphicsRotation* self, void* slot); +void QGraphicsRotation_connect_AngleChanged(QGraphicsRotation* self, intptr_t slot); void QGraphicsRotation_AxisChanged(QGraphicsRotation* self); -void QGraphicsRotation_connect_AxisChanged(QGraphicsRotation* self, void* slot); +void QGraphicsRotation_connect_AxisChanged(QGraphicsRotation* self, intptr_t slot); struct miqt_string* QGraphicsRotation_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsRotation_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsRotation_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qgraphicsview.cpp b/qt/gen_qgraphicsview.cpp index e6dabe8..70a7f8c 100644 --- a/qt/gen_qgraphicsview.cpp +++ b/qt/gen_qgraphicsview.cpp @@ -429,7 +429,7 @@ void QGraphicsView_RubberBandChanged(QGraphicsView* self, QRect* viewportRect, Q self->rubberBandChanged(*viewportRect, *fromScenePoint, *toScenePoint); } -void QGraphicsView_connect_RubberBandChanged(QGraphicsView* self, void* slot) { +void QGraphicsView_connect_RubberBandChanged(QGraphicsView* self, intptr_t slot) { QGraphicsView::connect(self, static_cast(&QGraphicsView::rubberBandChanged), self, [=](QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint) { QRect* sigval1 = new QRect(viewportRect); QPointF* sigval2 = new QPointF(fromScenePoint); diff --git a/qt/gen_qgraphicsview.go b/qt/gen_qgraphicsview.go index edcdc04..aaffbd8 100644 --- a/qt/gen_qgraphicsview.go +++ b/qt/gen_qgraphicsview.go @@ -526,12 +526,12 @@ func (this *QGraphicsView) RubberBandChanged(viewportRect QRect, fromScenePoint C.QGraphicsView_RubberBandChanged(this.h, viewportRect.cPointer(), fromScenePoint.cPointer(), toScenePoint.cPointer()) } func (this *QGraphicsView) OnRubberBandChanged(slot func(viewportRect QRect, fromScenePoint QPointF, toScenePoint QPointF)) { - C.QGraphicsView_connect_RubberBandChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsView_connect_RubberBandChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsView_RubberBandChanged -func miqt_exec_callback_QGraphicsView_RubberBandChanged(cb *C.void, viewportRect *C.QRect, fromScenePoint *C.QPointF, toScenePoint *C.QPointF) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(viewportRect QRect, fromScenePoint QPointF, toScenePoint QPointF)) +func miqt_exec_callback_QGraphicsView_RubberBandChanged(cb C.intptr_t, viewportRect *C.QRect, fromScenePoint *C.QPointF, toScenePoint *C.QPointF) { + gofunc, ok := cgo.Handle(cb).Value().(func(viewportRect QRect, fromScenePoint QPointF, toScenePoint QPointF)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qgraphicsview.h b/qt/gen_qgraphicsview.h index ed3bb97..398825e 100644 --- a/qt/gen_qgraphicsview.h +++ b/qt/gen_qgraphicsview.h @@ -132,7 +132,7 @@ void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array* /* of QRe void QGraphicsView_InvalidateScene(QGraphicsView* self); void QGraphicsView_UpdateSceneRect(QGraphicsView* self, QRectF* rect); void QGraphicsView_RubberBandChanged(QGraphicsView* self, QRect* viewportRect, QPointF* fromScenePoint, QPointF* toScenePoint); -void QGraphicsView_connect_RubberBandChanged(QGraphicsView* self, void* slot); +void QGraphicsView_connect_RubberBandChanged(QGraphicsView* self, intptr_t slot); struct miqt_string* QGraphicsView_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsView_Tr3(const char* s, const char* c, int n); struct miqt_string* QGraphicsView_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qgraphicswidget.cpp b/qt/gen_qgraphicswidget.cpp index f1666f2..b8aa317 100644 --- a/qt/gen_qgraphicswidget.cpp +++ b/qt/gen_qgraphicswidget.cpp @@ -313,7 +313,7 @@ void QGraphicsWidget_GeometryChanged(QGraphicsWidget* self) { self->geometryChanged(); } -void QGraphicsWidget_connect_GeometryChanged(QGraphicsWidget* self, void* slot) { +void QGraphicsWidget_connect_GeometryChanged(QGraphicsWidget* self, intptr_t slot) { QGraphicsWidget::connect(self, static_cast(&QGraphicsWidget::geometryChanged), self, [=]() { miqt_exec_callback_QGraphicsWidget_GeometryChanged(slot); }); @@ -323,7 +323,7 @@ void QGraphicsWidget_LayoutChanged(QGraphicsWidget* self) { self->layoutChanged(); } -void QGraphicsWidget_connect_LayoutChanged(QGraphicsWidget* self, void* slot) { +void QGraphicsWidget_connect_LayoutChanged(QGraphicsWidget* self, intptr_t slot) { QGraphicsWidget::connect(self, static_cast(&QGraphicsWidget::layoutChanged), self, [=]() { miqt_exec_callback_QGraphicsWidget_LayoutChanged(slot); }); diff --git a/qt/gen_qgraphicswidget.go b/qt/gen_qgraphicswidget.go index 4990955..93ccea7 100644 --- a/qt/gen_qgraphicswidget.go +++ b/qt/gen_qgraphicswidget.go @@ -370,12 +370,12 @@ func (this *QGraphicsWidget) GeometryChanged() { C.QGraphicsWidget_GeometryChanged(this.h) } func (this *QGraphicsWidget) OnGeometryChanged(slot func()) { - C.QGraphicsWidget_connect_GeometryChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsWidget_connect_GeometryChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsWidget_GeometryChanged -func miqt_exec_callback_QGraphicsWidget_GeometryChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsWidget_GeometryChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -387,12 +387,12 @@ func (this *QGraphicsWidget) LayoutChanged() { C.QGraphicsWidget_LayoutChanged(this.h) } func (this *QGraphicsWidget) OnLayoutChanged(slot func()) { - C.QGraphicsWidget_connect_LayoutChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGraphicsWidget_connect_LayoutChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsWidget_LayoutChanged -func miqt_exec_callback_QGraphicsWidget_LayoutChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGraphicsWidget_LayoutChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qgraphicswidget.h b/qt/gen_qgraphicswidget.h index c706fe4..6040558 100644 --- a/qt/gen_qgraphicswidget.h +++ b/qt/gen_qgraphicswidget.h @@ -113,9 +113,9 @@ void QGraphicsWidget_PaintWindowFrame(QGraphicsWidget* self, QPainter* painter, QRectF* QGraphicsWidget_BoundingRect(const QGraphicsWidget* self); QPainterPath* QGraphicsWidget_Shape(const QGraphicsWidget* self); void QGraphicsWidget_GeometryChanged(QGraphicsWidget* self); -void QGraphicsWidget_connect_GeometryChanged(QGraphicsWidget* self, void* slot); +void QGraphicsWidget_connect_GeometryChanged(QGraphicsWidget* self, intptr_t slot); void QGraphicsWidget_LayoutChanged(QGraphicsWidget* self); -void QGraphicsWidget_connect_LayoutChanged(QGraphicsWidget* self, void* slot); +void QGraphicsWidget_connect_LayoutChanged(QGraphicsWidget* self, intptr_t slot); bool QGraphicsWidget_Close(QGraphicsWidget* self); struct miqt_string* QGraphicsWidget_Tr2(const char* s, const char* c); struct miqt_string* QGraphicsWidget_Tr3(const char* s, const char* c, int n); diff --git a/qt/gen_qgroupbox.cpp b/qt/gen_qgroupbox.cpp index 74971d7..d6fbf1b 100644 --- a/qt/gen_qgroupbox.cpp +++ b/qt/gen_qgroupbox.cpp @@ -102,7 +102,7 @@ void QGroupBox_Clicked(QGroupBox* self) { self->clicked(); } -void QGroupBox_connect_Clicked(QGroupBox* self, void* slot) { +void QGroupBox_connect_Clicked(QGroupBox* self, intptr_t slot) { QGroupBox::connect(self, static_cast(&QGroupBox::clicked), self, [=]() { miqt_exec_callback_QGroupBox_Clicked(slot); }); @@ -112,7 +112,7 @@ void QGroupBox_Toggled(QGroupBox* self, bool param1) { self->toggled(param1); } -void QGroupBox_connect_Toggled(QGroupBox* self, void* slot) { +void QGroupBox_connect_Toggled(QGroupBox* self, intptr_t slot) { QGroupBox::connect(self, static_cast(&QGroupBox::toggled), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QGroupBox_Toggled(slot, sigval1); @@ -151,7 +151,7 @@ void QGroupBox_Clicked1(QGroupBox* self, bool checked) { self->clicked(checked); } -void QGroupBox_connect_Clicked1(QGroupBox* self, void* slot) { +void QGroupBox_connect_Clicked1(QGroupBox* self, intptr_t slot) { QGroupBox::connect(self, static_cast(&QGroupBox::clicked), self, [=](bool checked) { bool sigval1 = checked; miqt_exec_callback_QGroupBox_Clicked1(slot, sigval1); diff --git a/qt/gen_qgroupbox.go b/qt/gen_qgroupbox.go index 70c6b76..d72545d 100644 --- a/qt/gen_qgroupbox.go +++ b/qt/gen_qgroupbox.go @@ -149,12 +149,12 @@ func (this *QGroupBox) Clicked() { C.QGroupBox_Clicked(this.h) } func (this *QGroupBox) OnClicked(slot func()) { - C.QGroupBox_connect_Clicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGroupBox_connect_Clicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGroupBox_Clicked -func miqt_exec_callback_QGroupBox_Clicked(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGroupBox_Clicked(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -166,12 +166,12 @@ func (this *QGroupBox) Toggled(param1 bool) { C.QGroupBox_Toggled(this.h, (C.bool)(param1)) } func (this *QGroupBox) OnToggled(slot func(param1 bool)) { - C.QGroupBox_connect_Toggled(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGroupBox_connect_Toggled(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGroupBox_Toggled -func miqt_exec_callback_QGroupBox_Toggled(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QGroupBox_Toggled(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -230,12 +230,12 @@ func (this *QGroupBox) Clicked1(checked bool) { C.QGroupBox_Clicked1(this.h, (C.bool)(checked)) } func (this *QGroupBox) OnClicked1(slot func(checked bool)) { - C.QGroupBox_connect_Clicked1(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGroupBox_connect_Clicked1(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGroupBox_Clicked1 -func miqt_exec_callback_QGroupBox_Clicked1(cb *C.void, checked C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(checked bool)) +func miqt_exec_callback_QGroupBox_Clicked1(cb C.intptr_t, checked C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(checked bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qgroupbox.h b/qt/gen_qgroupbox.h index 0eab8b9..b5697ba 100644 --- a/qt/gen_qgroupbox.h +++ b/qt/gen_qgroupbox.h @@ -45,15 +45,15 @@ void QGroupBox_SetCheckable(QGroupBox* self, bool checkable); bool QGroupBox_IsChecked(const QGroupBox* self); void QGroupBox_SetChecked(QGroupBox* self, bool checked); void QGroupBox_Clicked(QGroupBox* self); -void QGroupBox_connect_Clicked(QGroupBox* self, void* slot); +void QGroupBox_connect_Clicked(QGroupBox* self, intptr_t slot); void QGroupBox_Toggled(QGroupBox* self, bool param1); -void QGroupBox_connect_Toggled(QGroupBox* self, void* slot); +void QGroupBox_connect_Toggled(QGroupBox* self, intptr_t slot); struct miqt_string* QGroupBox_Tr2(const char* s, const char* c); struct miqt_string* QGroupBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QGroupBox_TrUtf82(const char* s, const char* c); struct miqt_string* QGroupBox_TrUtf83(const char* s, const char* c, int n); void QGroupBox_Clicked1(QGroupBox* self, bool checked); -void QGroupBox_connect_Clicked1(QGroupBox* self, void* slot); +void QGroupBox_connect_Clicked1(QGroupBox* self, intptr_t slot); void QGroupBox_Delete(QGroupBox* self); #ifdef __cplusplus diff --git a/qt/gen_qguiapplication.cpp b/qt/gen_qguiapplication.cpp index d7e30e9..8260e83 100644 --- a/qt/gen_qguiapplication.cpp +++ b/qt/gen_qguiapplication.cpp @@ -310,7 +310,7 @@ void QGuiApplication_FontDatabaseChanged(QGuiApplication* self) { self->fontDatabaseChanged(); } -void QGuiApplication_connect_FontDatabaseChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_FontDatabaseChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::fontDatabaseChanged), self, [=]() { miqt_exec_callback_QGuiApplication_FontDatabaseChanged(slot); }); @@ -320,7 +320,7 @@ void QGuiApplication_ScreenAdded(QGuiApplication* self, QScreen* screen) { self->screenAdded(screen); } -void QGuiApplication_connect_ScreenAdded(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_ScreenAdded(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::screenAdded), self, [=](QScreen* screen) { QScreen* sigval1 = screen; miqt_exec_callback_QGuiApplication_ScreenAdded(slot, sigval1); @@ -331,7 +331,7 @@ void QGuiApplication_ScreenRemoved(QGuiApplication* self, QScreen* screen) { self->screenRemoved(screen); } -void QGuiApplication_connect_ScreenRemoved(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_ScreenRemoved(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::screenRemoved), self, [=](QScreen* screen) { QScreen* sigval1 = screen; miqt_exec_callback_QGuiApplication_ScreenRemoved(slot, sigval1); @@ -342,7 +342,7 @@ void QGuiApplication_PrimaryScreenChanged(QGuiApplication* self, QScreen* screen self->primaryScreenChanged(screen); } -void QGuiApplication_connect_PrimaryScreenChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_PrimaryScreenChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::primaryScreenChanged), self, [=](QScreen* screen) { QScreen* sigval1 = screen; miqt_exec_callback_QGuiApplication_PrimaryScreenChanged(slot, sigval1); @@ -353,7 +353,7 @@ void QGuiApplication_LastWindowClosed(QGuiApplication* self) { self->lastWindowClosed(); } -void QGuiApplication_connect_LastWindowClosed(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_LastWindowClosed(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::lastWindowClosed), self, [=]() { miqt_exec_callback_QGuiApplication_LastWindowClosed(slot); }); @@ -363,7 +363,7 @@ void QGuiApplication_FocusObjectChanged(QGuiApplication* self, QObject* focusObj self->focusObjectChanged(focusObject); } -void QGuiApplication_connect_FocusObjectChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_FocusObjectChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::focusObjectChanged), self, [=](QObject* focusObject) { QObject* sigval1 = focusObject; miqt_exec_callback_QGuiApplication_FocusObjectChanged(slot, sigval1); @@ -374,7 +374,7 @@ void QGuiApplication_FocusWindowChanged(QGuiApplication* self, QWindow* focusWin self->focusWindowChanged(focusWindow); } -void QGuiApplication_connect_FocusWindowChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_FocusWindowChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::focusWindowChanged), self, [=](QWindow* focusWindow) { QWindow* sigval1 = focusWindow; miqt_exec_callback_QGuiApplication_FocusWindowChanged(slot, sigval1); @@ -385,7 +385,7 @@ void QGuiApplication_ApplicationStateChanged(QGuiApplication* self, int state) { self->applicationStateChanged(static_cast(state)); } -void QGuiApplication_connect_ApplicationStateChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_ApplicationStateChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::applicationStateChanged), self, [=](Qt::ApplicationState state) { Qt::ApplicationState state_ret = state; int sigval1 = static_cast(state_ret); @@ -397,7 +397,7 @@ void QGuiApplication_LayoutDirectionChanged(QGuiApplication* self, int direction self->layoutDirectionChanged(static_cast(direction)); } -void QGuiApplication_connect_LayoutDirectionChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_LayoutDirectionChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::layoutDirectionChanged), self, [=](Qt::LayoutDirection direction) { Qt::LayoutDirection direction_ret = direction; int sigval1 = static_cast(direction_ret); @@ -409,7 +409,7 @@ void QGuiApplication_CommitDataRequest(QGuiApplication* self, QSessionManager* s self->commitDataRequest(*sessionManager); } -void QGuiApplication_connect_CommitDataRequest(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_CommitDataRequest(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::commitDataRequest), self, [=](QSessionManager& sessionManager) { QSessionManager& sessionManager_ret = sessionManager; // Cast returned reference into pointer @@ -422,7 +422,7 @@ void QGuiApplication_SaveStateRequest(QGuiApplication* self, QSessionManager* se self->saveStateRequest(*sessionManager); } -void QGuiApplication_connect_SaveStateRequest(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_SaveStateRequest(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::saveStateRequest), self, [=](QSessionManager& sessionManager) { QSessionManager& sessionManager_ret = sessionManager; // Cast returned reference into pointer @@ -435,7 +435,7 @@ void QGuiApplication_PaletteChanged(QGuiApplication* self, QPalette* pal) { self->paletteChanged(*pal); } -void QGuiApplication_connect_PaletteChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_PaletteChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::paletteChanged), self, [=](const QPalette& pal) { const QPalette& pal_ret = pal; // Cast returned reference into pointer @@ -448,7 +448,7 @@ void QGuiApplication_ApplicationDisplayNameChanged(QGuiApplication* self) { self->applicationDisplayNameChanged(); } -void QGuiApplication_connect_ApplicationDisplayNameChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_ApplicationDisplayNameChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::applicationDisplayNameChanged), self, [=]() { miqt_exec_callback_QGuiApplication_ApplicationDisplayNameChanged(slot); }); @@ -458,7 +458,7 @@ void QGuiApplication_FontChanged(QGuiApplication* self, QFont* font) { self->fontChanged(*font); } -void QGuiApplication_connect_FontChanged(QGuiApplication* self, void* slot) { +void QGuiApplication_connect_FontChanged(QGuiApplication* self, intptr_t slot) { QGuiApplication::connect(self, static_cast(&QGuiApplication::fontChanged), self, [=](const QFont& font) { const QFont& font_ret = font; // Cast returned reference into pointer diff --git a/qt/gen_qguiapplication.go b/qt/gen_qguiapplication.go index a64e081..65522c1 100644 --- a/qt/gen_qguiapplication.go +++ b/qt/gen_qguiapplication.go @@ -348,12 +348,12 @@ func (this *QGuiApplication) FontDatabaseChanged() { C.QGuiApplication_FontDatabaseChanged(this.h) } func (this *QGuiApplication) OnFontDatabaseChanged(slot func()) { - C.QGuiApplication_connect_FontDatabaseChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_FontDatabaseChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_FontDatabaseChanged -func miqt_exec_callback_QGuiApplication_FontDatabaseChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGuiApplication_FontDatabaseChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -365,12 +365,12 @@ func (this *QGuiApplication) ScreenAdded(screen *QScreen) { C.QGuiApplication_ScreenAdded(this.h, screen.cPointer()) } func (this *QGuiApplication) OnScreenAdded(slot func(screen *QScreen)) { - C.QGuiApplication_connect_ScreenAdded(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_ScreenAdded(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_ScreenAdded -func miqt_exec_callback_QGuiApplication_ScreenAdded(cb *C.void, screen *C.QScreen) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(screen *QScreen)) +func miqt_exec_callback_QGuiApplication_ScreenAdded(cb C.intptr_t, screen *C.QScreen) { + gofunc, ok := cgo.Handle(cb).Value().(func(screen *QScreen)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -385,12 +385,12 @@ func (this *QGuiApplication) ScreenRemoved(screen *QScreen) { C.QGuiApplication_ScreenRemoved(this.h, screen.cPointer()) } func (this *QGuiApplication) OnScreenRemoved(slot func(screen *QScreen)) { - C.QGuiApplication_connect_ScreenRemoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_ScreenRemoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_ScreenRemoved -func miqt_exec_callback_QGuiApplication_ScreenRemoved(cb *C.void, screen *C.QScreen) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(screen *QScreen)) +func miqt_exec_callback_QGuiApplication_ScreenRemoved(cb C.intptr_t, screen *C.QScreen) { + gofunc, ok := cgo.Handle(cb).Value().(func(screen *QScreen)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -405,12 +405,12 @@ func (this *QGuiApplication) PrimaryScreenChanged(screen *QScreen) { C.QGuiApplication_PrimaryScreenChanged(this.h, screen.cPointer()) } func (this *QGuiApplication) OnPrimaryScreenChanged(slot func(screen *QScreen)) { - C.QGuiApplication_connect_PrimaryScreenChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_PrimaryScreenChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_PrimaryScreenChanged -func miqt_exec_callback_QGuiApplication_PrimaryScreenChanged(cb *C.void, screen *C.QScreen) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(screen *QScreen)) +func miqt_exec_callback_QGuiApplication_PrimaryScreenChanged(cb C.intptr_t, screen *C.QScreen) { + gofunc, ok := cgo.Handle(cb).Value().(func(screen *QScreen)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -425,12 +425,12 @@ func (this *QGuiApplication) LastWindowClosed() { C.QGuiApplication_LastWindowClosed(this.h) } func (this *QGuiApplication) OnLastWindowClosed(slot func()) { - C.QGuiApplication_connect_LastWindowClosed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_LastWindowClosed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_LastWindowClosed -func miqt_exec_callback_QGuiApplication_LastWindowClosed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGuiApplication_LastWindowClosed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -442,12 +442,12 @@ func (this *QGuiApplication) FocusObjectChanged(focusObject *QObject) { C.QGuiApplication_FocusObjectChanged(this.h, focusObject.cPointer()) } func (this *QGuiApplication) OnFocusObjectChanged(slot func(focusObject *QObject)) { - C.QGuiApplication_connect_FocusObjectChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_FocusObjectChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_FocusObjectChanged -func miqt_exec_callback_QGuiApplication_FocusObjectChanged(cb *C.void, focusObject *C.QObject) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(focusObject *QObject)) +func miqt_exec_callback_QGuiApplication_FocusObjectChanged(cb C.intptr_t, focusObject *C.QObject) { + gofunc, ok := cgo.Handle(cb).Value().(func(focusObject *QObject)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -462,12 +462,12 @@ func (this *QGuiApplication) FocusWindowChanged(focusWindow *QWindow) { C.QGuiApplication_FocusWindowChanged(this.h, focusWindow.cPointer()) } func (this *QGuiApplication) OnFocusWindowChanged(slot func(focusWindow *QWindow)) { - C.QGuiApplication_connect_FocusWindowChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_FocusWindowChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_FocusWindowChanged -func miqt_exec_callback_QGuiApplication_FocusWindowChanged(cb *C.void, focusWindow *C.QWindow) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(focusWindow *QWindow)) +func miqt_exec_callback_QGuiApplication_FocusWindowChanged(cb C.intptr_t, focusWindow *C.QWindow) { + gofunc, ok := cgo.Handle(cb).Value().(func(focusWindow *QWindow)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -482,12 +482,12 @@ func (this *QGuiApplication) ApplicationStateChanged(state ApplicationState) { C.QGuiApplication_ApplicationStateChanged(this.h, (C.int)(state)) } func (this *QGuiApplication) OnApplicationStateChanged(slot func(state ApplicationState)) { - C.QGuiApplication_connect_ApplicationStateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_ApplicationStateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_ApplicationStateChanged -func miqt_exec_callback_QGuiApplication_ApplicationStateChanged(cb *C.void, state C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(state ApplicationState)) +func miqt_exec_callback_QGuiApplication_ApplicationStateChanged(cb C.intptr_t, state C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(state ApplicationState)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -502,12 +502,12 @@ func (this *QGuiApplication) LayoutDirectionChanged(direction LayoutDirection) { C.QGuiApplication_LayoutDirectionChanged(this.h, (C.int)(direction)) } func (this *QGuiApplication) OnLayoutDirectionChanged(slot func(direction LayoutDirection)) { - C.QGuiApplication_connect_LayoutDirectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_LayoutDirectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_LayoutDirectionChanged -func miqt_exec_callback_QGuiApplication_LayoutDirectionChanged(cb *C.void, direction C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(direction LayoutDirection)) +func miqt_exec_callback_QGuiApplication_LayoutDirectionChanged(cb C.intptr_t, direction C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(direction LayoutDirection)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -522,12 +522,12 @@ func (this *QGuiApplication) CommitDataRequest(sessionManager *QSessionManager) C.QGuiApplication_CommitDataRequest(this.h, sessionManager.cPointer()) } func (this *QGuiApplication) OnCommitDataRequest(slot func(sessionManager *QSessionManager)) { - C.QGuiApplication_connect_CommitDataRequest(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_CommitDataRequest(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_CommitDataRequest -func miqt_exec_callback_QGuiApplication_CommitDataRequest(cb *C.void, sessionManager *C.QSessionManager) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(sessionManager *QSessionManager)) +func miqt_exec_callback_QGuiApplication_CommitDataRequest(cb C.intptr_t, sessionManager *C.QSessionManager) { + gofunc, ok := cgo.Handle(cb).Value().(func(sessionManager *QSessionManager)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -542,12 +542,12 @@ func (this *QGuiApplication) SaveStateRequest(sessionManager *QSessionManager) { C.QGuiApplication_SaveStateRequest(this.h, sessionManager.cPointer()) } func (this *QGuiApplication) OnSaveStateRequest(slot func(sessionManager *QSessionManager)) { - C.QGuiApplication_connect_SaveStateRequest(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_SaveStateRequest(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_SaveStateRequest -func miqt_exec_callback_QGuiApplication_SaveStateRequest(cb *C.void, sessionManager *C.QSessionManager) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(sessionManager *QSessionManager)) +func miqt_exec_callback_QGuiApplication_SaveStateRequest(cb C.intptr_t, sessionManager *C.QSessionManager) { + gofunc, ok := cgo.Handle(cb).Value().(func(sessionManager *QSessionManager)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -562,12 +562,12 @@ func (this *QGuiApplication) PaletteChanged(pal *QPalette) { C.QGuiApplication_PaletteChanged(this.h, pal.cPointer()) } func (this *QGuiApplication) OnPaletteChanged(slot func(pal *QPalette)) { - C.QGuiApplication_connect_PaletteChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_PaletteChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_PaletteChanged -func miqt_exec_callback_QGuiApplication_PaletteChanged(cb *C.void, pal *C.QPalette) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(pal *QPalette)) +func miqt_exec_callback_QGuiApplication_PaletteChanged(cb C.intptr_t, pal *C.QPalette) { + gofunc, ok := cgo.Handle(cb).Value().(func(pal *QPalette)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -582,12 +582,12 @@ func (this *QGuiApplication) ApplicationDisplayNameChanged() { C.QGuiApplication_ApplicationDisplayNameChanged(this.h) } func (this *QGuiApplication) OnApplicationDisplayNameChanged(slot func()) { - C.QGuiApplication_connect_ApplicationDisplayNameChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_ApplicationDisplayNameChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_ApplicationDisplayNameChanged -func miqt_exec_callback_QGuiApplication_ApplicationDisplayNameChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QGuiApplication_ApplicationDisplayNameChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -599,12 +599,12 @@ func (this *QGuiApplication) FontChanged(font *QFont) { C.QGuiApplication_FontChanged(this.h, font.cPointer()) } func (this *QGuiApplication) OnFontChanged(slot func(font *QFont)) { - C.QGuiApplication_connect_FontChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QGuiApplication_connect_FontChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGuiApplication_FontChanged -func miqt_exec_callback_QGuiApplication_FontChanged(cb *C.void, font *C.QFont) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(font *QFont)) +func miqt_exec_callback_QGuiApplication_FontChanged(cb C.intptr_t, font *C.QFont) { + gofunc, ok := cgo.Handle(cb).Value().(func(font *QFont)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qguiapplication.h b/qt/gen_qguiapplication.h index dc56f58..e0ba28b 100644 --- a/qt/gen_qguiapplication.h +++ b/qt/gen_qguiapplication.h @@ -105,33 +105,33 @@ bool QGuiApplication_IsFallbackSessionManagementEnabled(); void QGuiApplication_SetFallbackSessionManagementEnabled(bool fallbackSessionManagementEnabled); void QGuiApplication_Sync(); void QGuiApplication_FontDatabaseChanged(QGuiApplication* self); -void QGuiApplication_connect_FontDatabaseChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_FontDatabaseChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_ScreenAdded(QGuiApplication* self, QScreen* screen); -void QGuiApplication_connect_ScreenAdded(QGuiApplication* self, void* slot); +void QGuiApplication_connect_ScreenAdded(QGuiApplication* self, intptr_t slot); void QGuiApplication_ScreenRemoved(QGuiApplication* self, QScreen* screen); -void QGuiApplication_connect_ScreenRemoved(QGuiApplication* self, void* slot); +void QGuiApplication_connect_ScreenRemoved(QGuiApplication* self, intptr_t slot); void QGuiApplication_PrimaryScreenChanged(QGuiApplication* self, QScreen* screen); -void QGuiApplication_connect_PrimaryScreenChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_PrimaryScreenChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_LastWindowClosed(QGuiApplication* self); -void QGuiApplication_connect_LastWindowClosed(QGuiApplication* self, void* slot); +void QGuiApplication_connect_LastWindowClosed(QGuiApplication* self, intptr_t slot); void QGuiApplication_FocusObjectChanged(QGuiApplication* self, QObject* focusObject); -void QGuiApplication_connect_FocusObjectChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_FocusObjectChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_FocusWindowChanged(QGuiApplication* self, QWindow* focusWindow); -void QGuiApplication_connect_FocusWindowChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_FocusWindowChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_ApplicationStateChanged(QGuiApplication* self, int state); -void QGuiApplication_connect_ApplicationStateChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_ApplicationStateChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_LayoutDirectionChanged(QGuiApplication* self, int direction); -void QGuiApplication_connect_LayoutDirectionChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_LayoutDirectionChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_CommitDataRequest(QGuiApplication* self, QSessionManager* sessionManager); -void QGuiApplication_connect_CommitDataRequest(QGuiApplication* self, void* slot); +void QGuiApplication_connect_CommitDataRequest(QGuiApplication* self, intptr_t slot); void QGuiApplication_SaveStateRequest(QGuiApplication* self, QSessionManager* sessionManager); -void QGuiApplication_connect_SaveStateRequest(QGuiApplication* self, void* slot); +void QGuiApplication_connect_SaveStateRequest(QGuiApplication* self, intptr_t slot); void QGuiApplication_PaletteChanged(QGuiApplication* self, QPalette* pal); -void QGuiApplication_connect_PaletteChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_PaletteChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_ApplicationDisplayNameChanged(QGuiApplication* self); -void QGuiApplication_connect_ApplicationDisplayNameChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_ApplicationDisplayNameChanged(QGuiApplication* self, intptr_t slot); void QGuiApplication_FontChanged(QGuiApplication* self, QFont* font); -void QGuiApplication_connect_FontChanged(QGuiApplication* self, void* slot); +void QGuiApplication_connect_FontChanged(QGuiApplication* self, intptr_t slot); struct miqt_string* QGuiApplication_Tr2(const char* s, const char* c); struct miqt_string* QGuiApplication_Tr3(const char* s, const char* c, int n); struct miqt_string* QGuiApplication_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qheaderview.cpp b/qt/gen_qheaderview.cpp index 8f25067..cc98bb8 100644 --- a/qt/gen_qheaderview.cpp +++ b/qt/gen_qheaderview.cpp @@ -322,7 +322,7 @@ void QHeaderView_SectionMoved(QHeaderView* self, int logicalIndex, int oldVisual self->sectionMoved(static_cast(logicalIndex), static_cast(oldVisualIndex), static_cast(newVisualIndex)); } -void QHeaderView_connect_SectionMoved(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionMoved(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionMoved), self, [=](int logicalIndex, int oldVisualIndex, int newVisualIndex) { int sigval1 = logicalIndex; int sigval2 = oldVisualIndex; @@ -335,7 +335,7 @@ void QHeaderView_SectionResized(QHeaderView* self, int logicalIndex, int oldSize self->sectionResized(static_cast(logicalIndex), static_cast(oldSize), static_cast(newSize)); } -void QHeaderView_connect_SectionResized(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionResized(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionResized), self, [=](int logicalIndex, int oldSize, int newSize) { int sigval1 = logicalIndex; int sigval2 = oldSize; @@ -348,7 +348,7 @@ void QHeaderView_SectionPressed(QHeaderView* self, int logicalIndex) { self->sectionPressed(static_cast(logicalIndex)); } -void QHeaderView_connect_SectionPressed(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionPressed(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionPressed), self, [=](int logicalIndex) { int sigval1 = logicalIndex; miqt_exec_callback_QHeaderView_SectionPressed(slot, sigval1); @@ -359,7 +359,7 @@ void QHeaderView_SectionClicked(QHeaderView* self, int logicalIndex) { self->sectionClicked(static_cast(logicalIndex)); } -void QHeaderView_connect_SectionClicked(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionClicked(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionClicked), self, [=](int logicalIndex) { int sigval1 = logicalIndex; miqt_exec_callback_QHeaderView_SectionClicked(slot, sigval1); @@ -370,7 +370,7 @@ void QHeaderView_SectionEntered(QHeaderView* self, int logicalIndex) { self->sectionEntered(static_cast(logicalIndex)); } -void QHeaderView_connect_SectionEntered(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionEntered(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionEntered), self, [=](int logicalIndex) { int sigval1 = logicalIndex; miqt_exec_callback_QHeaderView_SectionEntered(slot, sigval1); @@ -381,7 +381,7 @@ void QHeaderView_SectionDoubleClicked(QHeaderView* self, int logicalIndex) { self->sectionDoubleClicked(static_cast(logicalIndex)); } -void QHeaderView_connect_SectionDoubleClicked(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionDoubleClicked(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionDoubleClicked), self, [=](int logicalIndex) { int sigval1 = logicalIndex; miqt_exec_callback_QHeaderView_SectionDoubleClicked(slot, sigval1); @@ -392,7 +392,7 @@ void QHeaderView_SectionCountChanged(QHeaderView* self, int oldCount, int newCou self->sectionCountChanged(static_cast(oldCount), static_cast(newCount)); } -void QHeaderView_connect_SectionCountChanged(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionCountChanged(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionCountChanged), self, [=](int oldCount, int newCount) { int sigval1 = oldCount; int sigval2 = newCount; @@ -404,7 +404,7 @@ void QHeaderView_SectionHandleDoubleClicked(QHeaderView* self, int logicalIndex) self->sectionHandleDoubleClicked(static_cast(logicalIndex)); } -void QHeaderView_connect_SectionHandleDoubleClicked(QHeaderView* self, void* slot) { +void QHeaderView_connect_SectionHandleDoubleClicked(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sectionHandleDoubleClicked), self, [=](int logicalIndex) { int sigval1 = logicalIndex; miqt_exec_callback_QHeaderView_SectionHandleDoubleClicked(slot, sigval1); @@ -415,7 +415,7 @@ void QHeaderView_GeometriesChanged(QHeaderView* self) { self->geometriesChanged(); } -void QHeaderView_connect_GeometriesChanged(QHeaderView* self, void* slot) { +void QHeaderView_connect_GeometriesChanged(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::geometriesChanged), self, [=]() { miqt_exec_callback_QHeaderView_GeometriesChanged(slot); }); @@ -425,7 +425,7 @@ void QHeaderView_SortIndicatorChanged(QHeaderView* self, int logicalIndex, int o self->sortIndicatorChanged(static_cast(logicalIndex), static_cast(order)); } -void QHeaderView_connect_SortIndicatorChanged(QHeaderView* self, void* slot) { +void QHeaderView_connect_SortIndicatorChanged(QHeaderView* self, intptr_t slot) { QHeaderView::connect(self, static_cast(&QHeaderView::sortIndicatorChanged), self, [=](int logicalIndex, Qt::SortOrder order) { int sigval1 = logicalIndex; Qt::SortOrder order_ret = order; diff --git a/qt/gen_qheaderview.go b/qt/gen_qheaderview.go index 3d53a96..28863dc 100644 --- a/qt/gen_qheaderview.go +++ b/qt/gen_qheaderview.go @@ -369,12 +369,12 @@ func (this *QHeaderView) SectionMoved(logicalIndex int, oldVisualIndex int, newV C.QHeaderView_SectionMoved(this.h, (C.int)(logicalIndex), (C.int)(oldVisualIndex), (C.int)(newVisualIndex)) } func (this *QHeaderView) OnSectionMoved(slot func(logicalIndex int, oldVisualIndex int, newVisualIndex int)) { - C.QHeaderView_connect_SectionMoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionMoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionMoved -func miqt_exec_callback_QHeaderView_SectionMoved(cb *C.void, logicalIndex C.int, oldVisualIndex C.int, newVisualIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int, oldVisualIndex int, newVisualIndex int)) +func miqt_exec_callback_QHeaderView_SectionMoved(cb C.intptr_t, logicalIndex C.int, oldVisualIndex C.int, newVisualIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int, oldVisualIndex int, newVisualIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -393,12 +393,12 @@ func (this *QHeaderView) SectionResized(logicalIndex int, oldSize int, newSize i C.QHeaderView_SectionResized(this.h, (C.int)(logicalIndex), (C.int)(oldSize), (C.int)(newSize)) } func (this *QHeaderView) OnSectionResized(slot func(logicalIndex int, oldSize int, newSize int)) { - C.QHeaderView_connect_SectionResized(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionResized(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionResized -func miqt_exec_callback_QHeaderView_SectionResized(cb *C.void, logicalIndex C.int, oldSize C.int, newSize C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int, oldSize int, newSize int)) +func miqt_exec_callback_QHeaderView_SectionResized(cb C.intptr_t, logicalIndex C.int, oldSize C.int, newSize C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int, oldSize int, newSize int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -417,12 +417,12 @@ func (this *QHeaderView) SectionPressed(logicalIndex int) { C.QHeaderView_SectionPressed(this.h, (C.int)(logicalIndex)) } func (this *QHeaderView) OnSectionPressed(slot func(logicalIndex int)) { - C.QHeaderView_connect_SectionPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionPressed -func miqt_exec_callback_QHeaderView_SectionPressed(cb *C.void, logicalIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int)) +func miqt_exec_callback_QHeaderView_SectionPressed(cb C.intptr_t, logicalIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -437,12 +437,12 @@ func (this *QHeaderView) SectionClicked(logicalIndex int) { C.QHeaderView_SectionClicked(this.h, (C.int)(logicalIndex)) } func (this *QHeaderView) OnSectionClicked(slot func(logicalIndex int)) { - C.QHeaderView_connect_SectionClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionClicked -func miqt_exec_callback_QHeaderView_SectionClicked(cb *C.void, logicalIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int)) +func miqt_exec_callback_QHeaderView_SectionClicked(cb C.intptr_t, logicalIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -457,12 +457,12 @@ func (this *QHeaderView) SectionEntered(logicalIndex int) { C.QHeaderView_SectionEntered(this.h, (C.int)(logicalIndex)) } func (this *QHeaderView) OnSectionEntered(slot func(logicalIndex int)) { - C.QHeaderView_connect_SectionEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionEntered -func miqt_exec_callback_QHeaderView_SectionEntered(cb *C.void, logicalIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int)) +func miqt_exec_callback_QHeaderView_SectionEntered(cb C.intptr_t, logicalIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -477,12 +477,12 @@ func (this *QHeaderView) SectionDoubleClicked(logicalIndex int) { C.QHeaderView_SectionDoubleClicked(this.h, (C.int)(logicalIndex)) } func (this *QHeaderView) OnSectionDoubleClicked(slot func(logicalIndex int)) { - C.QHeaderView_connect_SectionDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionDoubleClicked -func miqt_exec_callback_QHeaderView_SectionDoubleClicked(cb *C.void, logicalIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int)) +func miqt_exec_callback_QHeaderView_SectionDoubleClicked(cb C.intptr_t, logicalIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -497,12 +497,12 @@ func (this *QHeaderView) SectionCountChanged(oldCount int, newCount int) { C.QHeaderView_SectionCountChanged(this.h, (C.int)(oldCount), (C.int)(newCount)) } func (this *QHeaderView) OnSectionCountChanged(slot func(oldCount int, newCount int)) { - C.QHeaderView_connect_SectionCountChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionCountChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionCountChanged -func miqt_exec_callback_QHeaderView_SectionCountChanged(cb *C.void, oldCount C.int, newCount C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(oldCount int, newCount int)) +func miqt_exec_callback_QHeaderView_SectionCountChanged(cb C.intptr_t, oldCount C.int, newCount C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(oldCount int, newCount int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -519,12 +519,12 @@ func (this *QHeaderView) SectionHandleDoubleClicked(logicalIndex int) { C.QHeaderView_SectionHandleDoubleClicked(this.h, (C.int)(logicalIndex)) } func (this *QHeaderView) OnSectionHandleDoubleClicked(slot func(logicalIndex int)) { - C.QHeaderView_connect_SectionHandleDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SectionHandleDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SectionHandleDoubleClicked -func miqt_exec_callback_QHeaderView_SectionHandleDoubleClicked(cb *C.void, logicalIndex C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int)) +func miqt_exec_callback_QHeaderView_SectionHandleDoubleClicked(cb C.intptr_t, logicalIndex C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -539,12 +539,12 @@ func (this *QHeaderView) GeometriesChanged() { C.QHeaderView_GeometriesChanged(this.h) } func (this *QHeaderView) OnGeometriesChanged(slot func()) { - C.QHeaderView_connect_GeometriesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_GeometriesChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_GeometriesChanged -func miqt_exec_callback_QHeaderView_GeometriesChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QHeaderView_GeometriesChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -556,12 +556,12 @@ func (this *QHeaderView) SortIndicatorChanged(logicalIndex int, order SortOrder) C.QHeaderView_SortIndicatorChanged(this.h, (C.int)(logicalIndex), (C.int)(order)) } func (this *QHeaderView) OnSortIndicatorChanged(slot func(logicalIndex int, order SortOrder)) { - C.QHeaderView_connect_SortIndicatorChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QHeaderView_connect_SortIndicatorChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QHeaderView_SortIndicatorChanged -func miqt_exec_callback_QHeaderView_SortIndicatorChanged(cb *C.void, logicalIndex C.int, order C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(logicalIndex int, order SortOrder)) +func miqt_exec_callback_QHeaderView_SortIndicatorChanged(cb C.intptr_t, logicalIndex C.int, order C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int, order SortOrder)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qheaderview.h b/qt/gen_qheaderview.h index 2a3fddd..281e5a9 100644 --- a/qt/gen_qheaderview.h +++ b/qt/gen_qheaderview.h @@ -106,25 +106,25 @@ void QHeaderView_SetOffsetToSectionPosition(QHeaderView* self, int visualIndex); void QHeaderView_SetOffsetToLastSection(QHeaderView* self); void QHeaderView_HeaderDataChanged(QHeaderView* self, int orientation, int logicalFirst, int logicalLast); void QHeaderView_SectionMoved(QHeaderView* self, int logicalIndex, int oldVisualIndex, int newVisualIndex); -void QHeaderView_connect_SectionMoved(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionMoved(QHeaderView* self, intptr_t slot); void QHeaderView_SectionResized(QHeaderView* self, int logicalIndex, int oldSize, int newSize); -void QHeaderView_connect_SectionResized(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionResized(QHeaderView* self, intptr_t slot); void QHeaderView_SectionPressed(QHeaderView* self, int logicalIndex); -void QHeaderView_connect_SectionPressed(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionPressed(QHeaderView* self, intptr_t slot); void QHeaderView_SectionClicked(QHeaderView* self, int logicalIndex); -void QHeaderView_connect_SectionClicked(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionClicked(QHeaderView* self, intptr_t slot); void QHeaderView_SectionEntered(QHeaderView* self, int logicalIndex); -void QHeaderView_connect_SectionEntered(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionEntered(QHeaderView* self, intptr_t slot); void QHeaderView_SectionDoubleClicked(QHeaderView* self, int logicalIndex); -void QHeaderView_connect_SectionDoubleClicked(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionDoubleClicked(QHeaderView* self, intptr_t slot); void QHeaderView_SectionCountChanged(QHeaderView* self, int oldCount, int newCount); -void QHeaderView_connect_SectionCountChanged(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionCountChanged(QHeaderView* self, intptr_t slot); void QHeaderView_SectionHandleDoubleClicked(QHeaderView* self, int logicalIndex); -void QHeaderView_connect_SectionHandleDoubleClicked(QHeaderView* self, void* slot); +void QHeaderView_connect_SectionHandleDoubleClicked(QHeaderView* self, intptr_t slot); void QHeaderView_GeometriesChanged(QHeaderView* self); -void QHeaderView_connect_GeometriesChanged(QHeaderView* self, void* slot); +void QHeaderView_connect_GeometriesChanged(QHeaderView* self, intptr_t slot); void QHeaderView_SortIndicatorChanged(QHeaderView* self, int logicalIndex, int order); -void QHeaderView_connect_SortIndicatorChanged(QHeaderView* self, void* slot); +void QHeaderView_connect_SortIndicatorChanged(QHeaderView* self, intptr_t slot); struct miqt_string* QHeaderView_Tr2(const char* s, const char* c); struct miqt_string* QHeaderView_Tr3(const char* s, const char* c, int n); struct miqt_string* QHeaderView_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qinputdialog.cpp b/qt/gen_qinputdialog.cpp index 0464ec2..baf6ed2 100644 --- a/qt/gen_qinputdialog.cpp +++ b/qt/gen_qinputdialog.cpp @@ -311,7 +311,7 @@ void QInputDialog_TextValueChanged(QInputDialog* self, struct miqt_string* text) self->textValueChanged(text_QString); } -void QInputDialog_connect_TextValueChanged(QInputDialog* self, void* slot) { +void QInputDialog_connect_TextValueChanged(QInputDialog* self, intptr_t slot) { QInputDialog::connect(self, static_cast(&QInputDialog::textValueChanged), self, [=](const QString& text) { const QString text_ret = text; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -326,7 +326,7 @@ void QInputDialog_TextValueSelected(QInputDialog* self, struct miqt_string* text self->textValueSelected(text_QString); } -void QInputDialog_connect_TextValueSelected(QInputDialog* self, void* slot) { +void QInputDialog_connect_TextValueSelected(QInputDialog* self, intptr_t slot) { QInputDialog::connect(self, static_cast(&QInputDialog::textValueSelected), self, [=](const QString& text) { const QString text_ret = text; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -340,7 +340,7 @@ void QInputDialog_IntValueChanged(QInputDialog* self, int value) { self->intValueChanged(static_cast(value)); } -void QInputDialog_connect_IntValueChanged(QInputDialog* self, void* slot) { +void QInputDialog_connect_IntValueChanged(QInputDialog* self, intptr_t slot) { QInputDialog::connect(self, static_cast(&QInputDialog::intValueChanged), self, [=](int value) { int sigval1 = value; miqt_exec_callback_QInputDialog_IntValueChanged(slot, sigval1); @@ -351,7 +351,7 @@ void QInputDialog_IntValueSelected(QInputDialog* self, int value) { self->intValueSelected(static_cast(value)); } -void QInputDialog_connect_IntValueSelected(QInputDialog* self, void* slot) { +void QInputDialog_connect_IntValueSelected(QInputDialog* self, intptr_t slot) { QInputDialog::connect(self, static_cast(&QInputDialog::intValueSelected), self, [=](int value) { int sigval1 = value; miqt_exec_callback_QInputDialog_IntValueSelected(slot, sigval1); @@ -362,7 +362,7 @@ void QInputDialog_DoubleValueChanged(QInputDialog* self, double value) { self->doubleValueChanged(static_cast(value)); } -void QInputDialog_connect_DoubleValueChanged(QInputDialog* self, void* slot) { +void QInputDialog_connect_DoubleValueChanged(QInputDialog* self, intptr_t slot) { QInputDialog::connect(self, static_cast(&QInputDialog::doubleValueChanged), self, [=](double value) { double sigval1 = value; miqt_exec_callback_QInputDialog_DoubleValueChanged(slot, sigval1); @@ -373,7 +373,7 @@ void QInputDialog_DoubleValueSelected(QInputDialog* self, double value) { self->doubleValueSelected(static_cast(value)); } -void QInputDialog_connect_DoubleValueSelected(QInputDialog* self, void* slot) { +void QInputDialog_connect_DoubleValueSelected(QInputDialog* self, intptr_t slot) { QInputDialog::connect(self, static_cast(&QInputDialog::doubleValueSelected), self, [=](double value) { double sigval1 = value; miqt_exec_callback_QInputDialog_DoubleValueSelected(slot, sigval1); diff --git a/qt/gen_qinputdialog.go b/qt/gen_qinputdialog.go index 49096f2..0acacba 100644 --- a/qt/gen_qinputdialog.go +++ b/qt/gen_qinputdialog.go @@ -390,12 +390,12 @@ func (this *QInputDialog) TextValueChanged(text string) { C.QInputDialog_TextValueChanged(this.h, (*C.struct_miqt_string)(text_ms)) } func (this *QInputDialog) OnTextValueChanged(slot func(text string)) { - C.QInputDialog_connect_TextValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputDialog_connect_TextValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputDialog_TextValueChanged -func miqt_exec_callback_QInputDialog_TextValueChanged(cb *C.void, text *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(text string)) +func miqt_exec_callback_QInputDialog_TextValueChanged(cb C.intptr_t, text *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(text string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -415,12 +415,12 @@ func (this *QInputDialog) TextValueSelected(text string) { C.QInputDialog_TextValueSelected(this.h, (*C.struct_miqt_string)(text_ms)) } func (this *QInputDialog) OnTextValueSelected(slot func(text string)) { - C.QInputDialog_connect_TextValueSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputDialog_connect_TextValueSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputDialog_TextValueSelected -func miqt_exec_callback_QInputDialog_TextValueSelected(cb *C.void, text *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(text string)) +func miqt_exec_callback_QInputDialog_TextValueSelected(cb C.intptr_t, text *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(text string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -438,12 +438,12 @@ func (this *QInputDialog) IntValueChanged(value int) { C.QInputDialog_IntValueChanged(this.h, (C.int)(value)) } func (this *QInputDialog) OnIntValueChanged(slot func(value int)) { - C.QInputDialog_connect_IntValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputDialog_connect_IntValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputDialog_IntValueChanged -func miqt_exec_callback_QInputDialog_IntValueChanged(cb *C.void, value C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(value int)) +func miqt_exec_callback_QInputDialog_IntValueChanged(cb C.intptr_t, value C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(value int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -458,12 +458,12 @@ func (this *QInputDialog) IntValueSelected(value int) { C.QInputDialog_IntValueSelected(this.h, (C.int)(value)) } func (this *QInputDialog) OnIntValueSelected(slot func(value int)) { - C.QInputDialog_connect_IntValueSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputDialog_connect_IntValueSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputDialog_IntValueSelected -func miqt_exec_callback_QInputDialog_IntValueSelected(cb *C.void, value C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(value int)) +func miqt_exec_callback_QInputDialog_IntValueSelected(cb C.intptr_t, value C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(value int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -478,12 +478,12 @@ func (this *QInputDialog) DoubleValueChanged(value float64) { C.QInputDialog_DoubleValueChanged(this.h, (C.double)(value)) } func (this *QInputDialog) OnDoubleValueChanged(slot func(value float64)) { - C.QInputDialog_connect_DoubleValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputDialog_connect_DoubleValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputDialog_DoubleValueChanged -func miqt_exec_callback_QInputDialog_DoubleValueChanged(cb *C.void, value C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(value float64)) +func miqt_exec_callback_QInputDialog_DoubleValueChanged(cb C.intptr_t, value C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(value float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -498,12 +498,12 @@ func (this *QInputDialog) DoubleValueSelected(value float64) { C.QInputDialog_DoubleValueSelected(this.h, (C.double)(value)) } func (this *QInputDialog) OnDoubleValueSelected(slot func(value float64)) { - C.QInputDialog_connect_DoubleValueSelected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputDialog_connect_DoubleValueSelected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputDialog_DoubleValueSelected -func miqt_exec_callback_QInputDialog_DoubleValueSelected(cb *C.void, value C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(value float64)) +func miqt_exec_callback_QInputDialog_DoubleValueSelected(cb C.intptr_t, value C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(value float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qinputdialog.h b/qt/gen_qinputdialog.h index da0fbaa..b1c056c 100644 --- a/qt/gen_qinputdialog.h +++ b/qt/gen_qinputdialog.h @@ -82,17 +82,17 @@ double QInputDialog_GetDouble2(QWidget* parent, struct miqt_string* title, struc void QInputDialog_SetDoubleStep(QInputDialog* self, double step); double QInputDialog_DoubleStep(const QInputDialog* self); void QInputDialog_TextValueChanged(QInputDialog* self, struct miqt_string* text); -void QInputDialog_connect_TextValueChanged(QInputDialog* self, void* slot); +void QInputDialog_connect_TextValueChanged(QInputDialog* self, intptr_t slot); void QInputDialog_TextValueSelected(QInputDialog* self, struct miqt_string* text); -void QInputDialog_connect_TextValueSelected(QInputDialog* self, void* slot); +void QInputDialog_connect_TextValueSelected(QInputDialog* self, intptr_t slot); void QInputDialog_IntValueChanged(QInputDialog* self, int value); -void QInputDialog_connect_IntValueChanged(QInputDialog* self, void* slot); +void QInputDialog_connect_IntValueChanged(QInputDialog* self, intptr_t slot); void QInputDialog_IntValueSelected(QInputDialog* self, int value); -void QInputDialog_connect_IntValueSelected(QInputDialog* self, void* slot); +void QInputDialog_connect_IntValueSelected(QInputDialog* self, intptr_t slot); void QInputDialog_DoubleValueChanged(QInputDialog* self, double value); -void QInputDialog_connect_DoubleValueChanged(QInputDialog* self, void* slot); +void QInputDialog_connect_DoubleValueChanged(QInputDialog* self, intptr_t slot); void QInputDialog_DoubleValueSelected(QInputDialog* self, double value); -void QInputDialog_connect_DoubleValueSelected(QInputDialog* self, void* slot); +void QInputDialog_connect_DoubleValueSelected(QInputDialog* self, intptr_t slot); void QInputDialog_Done(QInputDialog* self, int result); struct miqt_string* QInputDialog_Tr2(const char* s, const char* c); struct miqt_string* QInputDialog_Tr3(const char* s, const char* c, int n); diff --git a/qt/gen_qinputmethod.cpp b/qt/gen_qinputmethod.cpp index 4c8dc27..e3aebf8 100644 --- a/qt/gen_qinputmethod.cpp +++ b/qt/gen_qinputmethod.cpp @@ -118,7 +118,7 @@ void QInputMethod_CursorRectangleChanged(QInputMethod* self) { self->cursorRectangleChanged(); } -void QInputMethod_connect_CursorRectangleChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_CursorRectangleChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::cursorRectangleChanged), self, [=]() { miqt_exec_callback_QInputMethod_CursorRectangleChanged(slot); }); @@ -128,7 +128,7 @@ void QInputMethod_AnchorRectangleChanged(QInputMethod* self) { self->anchorRectangleChanged(); } -void QInputMethod_connect_AnchorRectangleChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_AnchorRectangleChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::anchorRectangleChanged), self, [=]() { miqt_exec_callback_QInputMethod_AnchorRectangleChanged(slot); }); @@ -138,7 +138,7 @@ void QInputMethod_KeyboardRectangleChanged(QInputMethod* self) { self->keyboardRectangleChanged(); } -void QInputMethod_connect_KeyboardRectangleChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_KeyboardRectangleChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::keyboardRectangleChanged), self, [=]() { miqt_exec_callback_QInputMethod_KeyboardRectangleChanged(slot); }); @@ -148,7 +148,7 @@ void QInputMethod_InputItemClipRectangleChanged(QInputMethod* self) { self->inputItemClipRectangleChanged(); } -void QInputMethod_connect_InputItemClipRectangleChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_InputItemClipRectangleChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::inputItemClipRectangleChanged), self, [=]() { miqt_exec_callback_QInputMethod_InputItemClipRectangleChanged(slot); }); @@ -158,7 +158,7 @@ void QInputMethod_VisibleChanged(QInputMethod* self) { self->visibleChanged(); } -void QInputMethod_connect_VisibleChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_VisibleChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::visibleChanged), self, [=]() { miqt_exec_callback_QInputMethod_VisibleChanged(slot); }); @@ -168,7 +168,7 @@ void QInputMethod_AnimatingChanged(QInputMethod* self) { self->animatingChanged(); } -void QInputMethod_connect_AnimatingChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_AnimatingChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::animatingChanged), self, [=]() { miqt_exec_callback_QInputMethod_AnimatingChanged(slot); }); @@ -178,7 +178,7 @@ void QInputMethod_LocaleChanged(QInputMethod* self) { self->localeChanged(); } -void QInputMethod_connect_LocaleChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_LocaleChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::localeChanged), self, [=]() { miqt_exec_callback_QInputMethod_LocaleChanged(slot); }); @@ -188,7 +188,7 @@ void QInputMethod_InputDirectionChanged(QInputMethod* self, int newDirection) { self->inputDirectionChanged(static_cast(newDirection)); } -void QInputMethod_connect_InputDirectionChanged(QInputMethod* self, void* slot) { +void QInputMethod_connect_InputDirectionChanged(QInputMethod* self, intptr_t slot) { QInputMethod::connect(self, static_cast(&QInputMethod::inputDirectionChanged), self, [=](Qt::LayoutDirection newDirection) { Qt::LayoutDirection newDirection_ret = newDirection; int sigval1 = static_cast(newDirection_ret); diff --git a/qt/gen_qinputmethod.go b/qt/gen_qinputmethod.go index df743e5..4699a92 100644 --- a/qt/gen_qinputmethod.go +++ b/qt/gen_qinputmethod.go @@ -179,12 +179,12 @@ func (this *QInputMethod) CursorRectangleChanged() { C.QInputMethod_CursorRectangleChanged(this.h) } func (this *QInputMethod) OnCursorRectangleChanged(slot func()) { - C.QInputMethod_connect_CursorRectangleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_CursorRectangleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_CursorRectangleChanged -func miqt_exec_callback_QInputMethod_CursorRectangleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QInputMethod_CursorRectangleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -196,12 +196,12 @@ func (this *QInputMethod) AnchorRectangleChanged() { C.QInputMethod_AnchorRectangleChanged(this.h) } func (this *QInputMethod) OnAnchorRectangleChanged(slot func()) { - C.QInputMethod_connect_AnchorRectangleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_AnchorRectangleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_AnchorRectangleChanged -func miqt_exec_callback_QInputMethod_AnchorRectangleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QInputMethod_AnchorRectangleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -213,12 +213,12 @@ func (this *QInputMethod) KeyboardRectangleChanged() { C.QInputMethod_KeyboardRectangleChanged(this.h) } func (this *QInputMethod) OnKeyboardRectangleChanged(slot func()) { - C.QInputMethod_connect_KeyboardRectangleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_KeyboardRectangleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_KeyboardRectangleChanged -func miqt_exec_callback_QInputMethod_KeyboardRectangleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QInputMethod_KeyboardRectangleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -230,12 +230,12 @@ func (this *QInputMethod) InputItemClipRectangleChanged() { C.QInputMethod_InputItemClipRectangleChanged(this.h) } func (this *QInputMethod) OnInputItemClipRectangleChanged(slot func()) { - C.QInputMethod_connect_InputItemClipRectangleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_InputItemClipRectangleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_InputItemClipRectangleChanged -func miqt_exec_callback_QInputMethod_InputItemClipRectangleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QInputMethod_InputItemClipRectangleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -247,12 +247,12 @@ func (this *QInputMethod) VisibleChanged() { C.QInputMethod_VisibleChanged(this.h) } func (this *QInputMethod) OnVisibleChanged(slot func()) { - C.QInputMethod_connect_VisibleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_VisibleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_VisibleChanged -func miqt_exec_callback_QInputMethod_VisibleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QInputMethod_VisibleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -264,12 +264,12 @@ func (this *QInputMethod) AnimatingChanged() { C.QInputMethod_AnimatingChanged(this.h) } func (this *QInputMethod) OnAnimatingChanged(slot func()) { - C.QInputMethod_connect_AnimatingChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_AnimatingChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_AnimatingChanged -func miqt_exec_callback_QInputMethod_AnimatingChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QInputMethod_AnimatingChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -281,12 +281,12 @@ func (this *QInputMethod) LocaleChanged() { C.QInputMethod_LocaleChanged(this.h) } func (this *QInputMethod) OnLocaleChanged(slot func()) { - C.QInputMethod_connect_LocaleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_LocaleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_LocaleChanged -func miqt_exec_callback_QInputMethod_LocaleChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QInputMethod_LocaleChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -298,12 +298,12 @@ func (this *QInputMethod) InputDirectionChanged(newDirection LayoutDirection) { C.QInputMethod_InputDirectionChanged(this.h, (C.int)(newDirection)) } func (this *QInputMethod) OnInputDirectionChanged(slot func(newDirection LayoutDirection)) { - C.QInputMethod_connect_InputDirectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QInputMethod_connect_InputDirectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QInputMethod_InputDirectionChanged -func miqt_exec_callback_QInputMethod_InputDirectionChanged(cb *C.void, newDirection C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newDirection LayoutDirection)) +func miqt_exec_callback_QInputMethod_InputDirectionChanged(cb C.intptr_t, newDirection C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(newDirection LayoutDirection)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qinputmethod.h b/qt/gen_qinputmethod.h index 3fa2d31..63f6e38 100644 --- a/qt/gen_qinputmethod.h +++ b/qt/gen_qinputmethod.h @@ -54,21 +54,21 @@ void QInputMethod_Reset(QInputMethod* self); void QInputMethod_Commit(QInputMethod* self); void QInputMethod_InvokeAction(QInputMethod* self, int a, int cursorPosition); void QInputMethod_CursorRectangleChanged(QInputMethod* self); -void QInputMethod_connect_CursorRectangleChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_CursorRectangleChanged(QInputMethod* self, intptr_t slot); void QInputMethod_AnchorRectangleChanged(QInputMethod* self); -void QInputMethod_connect_AnchorRectangleChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_AnchorRectangleChanged(QInputMethod* self, intptr_t slot); void QInputMethod_KeyboardRectangleChanged(QInputMethod* self); -void QInputMethod_connect_KeyboardRectangleChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_KeyboardRectangleChanged(QInputMethod* self, intptr_t slot); void QInputMethod_InputItemClipRectangleChanged(QInputMethod* self); -void QInputMethod_connect_InputItemClipRectangleChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_InputItemClipRectangleChanged(QInputMethod* self, intptr_t slot); void QInputMethod_VisibleChanged(QInputMethod* self); -void QInputMethod_connect_VisibleChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_VisibleChanged(QInputMethod* self, intptr_t slot); void QInputMethod_AnimatingChanged(QInputMethod* self); -void QInputMethod_connect_AnimatingChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_AnimatingChanged(QInputMethod* self, intptr_t slot); void QInputMethod_LocaleChanged(QInputMethod* self); -void QInputMethod_connect_LocaleChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_LocaleChanged(QInputMethod* self, intptr_t slot); void QInputMethod_InputDirectionChanged(QInputMethod* self, int newDirection); -void QInputMethod_connect_InputDirectionChanged(QInputMethod* self, void* slot); +void QInputMethod_connect_InputDirectionChanged(QInputMethod* self, intptr_t slot); struct miqt_string* QInputMethod_Tr2(const char* s, const char* c); struct miqt_string* QInputMethod_Tr3(const char* s, const char* c, int n); struct miqt_string* QInputMethod_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qiodevice.cpp b/qt/gen_qiodevice.cpp index 8862b2c..1b2a6b6 100644 --- a/qt/gen_qiodevice.cpp +++ b/qt/gen_qiodevice.cpp @@ -225,7 +225,7 @@ void QIODevice_ReadyRead(QIODevice* self) { self->readyRead(); } -void QIODevice_connect_ReadyRead(QIODevice* self, void* slot) { +void QIODevice_connect_ReadyRead(QIODevice* self, intptr_t slot) { QIODevice::connect(self, static_cast(&QIODevice::readyRead), self, [=]() { miqt_exec_callback_QIODevice_ReadyRead(slot); }); @@ -235,7 +235,7 @@ void QIODevice_ChannelReadyRead(QIODevice* self, int channel) { self->channelReadyRead(static_cast(channel)); } -void QIODevice_connect_ChannelReadyRead(QIODevice* self, void* slot) { +void QIODevice_connect_ChannelReadyRead(QIODevice* self, intptr_t slot) { QIODevice::connect(self, static_cast(&QIODevice::channelReadyRead), self, [=](int channel) { int sigval1 = channel; miqt_exec_callback_QIODevice_ChannelReadyRead(slot, sigval1); @@ -246,7 +246,7 @@ void QIODevice_BytesWritten(QIODevice* self, long long bytes) { self->bytesWritten(static_cast(bytes)); } -void QIODevice_connect_BytesWritten(QIODevice* self, void* slot) { +void QIODevice_connect_BytesWritten(QIODevice* self, intptr_t slot) { QIODevice::connect(self, static_cast(&QIODevice::bytesWritten), self, [=](qint64 bytes) { qint64 bytes_ret = bytes; long long sigval1 = static_cast(bytes_ret); @@ -258,7 +258,7 @@ void QIODevice_ChannelBytesWritten(QIODevice* self, int channel, long long bytes self->channelBytesWritten(static_cast(channel), static_cast(bytes)); } -void QIODevice_connect_ChannelBytesWritten(QIODevice* self, void* slot) { +void QIODevice_connect_ChannelBytesWritten(QIODevice* self, intptr_t slot) { QIODevice::connect(self, static_cast(&QIODevice::channelBytesWritten), self, [=](int channel, qint64 bytes) { int sigval1 = channel; qint64 bytes_ret = bytes; @@ -271,7 +271,7 @@ void QIODevice_AboutToClose(QIODevice* self) { self->aboutToClose(); } -void QIODevice_connect_AboutToClose(QIODevice* self, void* slot) { +void QIODevice_connect_AboutToClose(QIODevice* self, intptr_t slot) { QIODevice::connect(self, static_cast(&QIODevice::aboutToClose), self, [=]() { miqt_exec_callback_QIODevice_AboutToClose(slot); }); @@ -281,7 +281,7 @@ void QIODevice_ReadChannelFinished(QIODevice* self) { self->readChannelFinished(); } -void QIODevice_connect_ReadChannelFinished(QIODevice* self, void* slot) { +void QIODevice_connect_ReadChannelFinished(QIODevice* self, intptr_t slot) { QIODevice::connect(self, static_cast(&QIODevice::readChannelFinished), self, [=]() { miqt_exec_callback_QIODevice_ReadChannelFinished(slot); }); diff --git a/qt/gen_qiodevice.go b/qt/gen_qiodevice.go index 7df1c56..8e08d55 100644 --- a/qt/gen_qiodevice.go +++ b/qt/gen_qiodevice.go @@ -287,12 +287,12 @@ func (this *QIODevice) ReadyRead() { C.QIODevice_ReadyRead(this.h) } func (this *QIODevice) OnReadyRead(slot func()) { - C.QIODevice_connect_ReadyRead(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIODevice_connect_ReadyRead(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIODevice_ReadyRead -func miqt_exec_callback_QIODevice_ReadyRead(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QIODevice_ReadyRead(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -304,12 +304,12 @@ func (this *QIODevice) ChannelReadyRead(channel int) { C.QIODevice_ChannelReadyRead(this.h, (C.int)(channel)) } func (this *QIODevice) OnChannelReadyRead(slot func(channel int)) { - C.QIODevice_connect_ChannelReadyRead(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIODevice_connect_ChannelReadyRead(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIODevice_ChannelReadyRead -func miqt_exec_callback_QIODevice_ChannelReadyRead(cb *C.void, channel C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(channel int)) +func miqt_exec_callback_QIODevice_ChannelReadyRead(cb C.intptr_t, channel C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(channel int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -324,12 +324,12 @@ func (this *QIODevice) BytesWritten(bytes int64) { C.QIODevice_BytesWritten(this.h, (C.longlong)(bytes)) } func (this *QIODevice) OnBytesWritten(slot func(bytes int64)) { - C.QIODevice_connect_BytesWritten(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIODevice_connect_BytesWritten(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIODevice_BytesWritten -func miqt_exec_callback_QIODevice_BytesWritten(cb *C.void, bytes C.longlong) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(bytes int64)) +func miqt_exec_callback_QIODevice_BytesWritten(cb C.intptr_t, bytes C.longlong) { + gofunc, ok := cgo.Handle(cb).Value().(func(bytes int64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -344,12 +344,12 @@ func (this *QIODevice) ChannelBytesWritten(channel int, bytes int64) { C.QIODevice_ChannelBytesWritten(this.h, (C.int)(channel), (C.longlong)(bytes)) } func (this *QIODevice) OnChannelBytesWritten(slot func(channel int, bytes int64)) { - C.QIODevice_connect_ChannelBytesWritten(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIODevice_connect_ChannelBytesWritten(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIODevice_ChannelBytesWritten -func miqt_exec_callback_QIODevice_ChannelBytesWritten(cb *C.void, channel C.int, bytes C.longlong) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(channel int, bytes int64)) +func miqt_exec_callback_QIODevice_ChannelBytesWritten(cb C.intptr_t, channel C.int, bytes C.longlong) { + gofunc, ok := cgo.Handle(cb).Value().(func(channel int, bytes int64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -366,12 +366,12 @@ func (this *QIODevice) AboutToClose() { C.QIODevice_AboutToClose(this.h) } func (this *QIODevice) OnAboutToClose(slot func()) { - C.QIODevice_connect_AboutToClose(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIODevice_connect_AboutToClose(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIODevice_AboutToClose -func miqt_exec_callback_QIODevice_AboutToClose(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QIODevice_AboutToClose(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -383,12 +383,12 @@ func (this *QIODevice) ReadChannelFinished() { C.QIODevice_ReadChannelFinished(this.h) } func (this *QIODevice) OnReadChannelFinished(slot func()) { - C.QIODevice_connect_ReadChannelFinished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIODevice_connect_ReadChannelFinished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIODevice_ReadChannelFinished -func miqt_exec_callback_QIODevice_ReadChannelFinished(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QIODevice_ReadChannelFinished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qiodevice.h b/qt/gen_qiodevice.h index 0961a86..7135a25 100644 --- a/qt/gen_qiodevice.h +++ b/qt/gen_qiodevice.h @@ -72,17 +72,17 @@ bool QIODevice_PutChar(QIODevice* self, char c); bool QIODevice_GetChar(QIODevice* self, char* c); struct miqt_string* QIODevice_ErrorString(const QIODevice* self); void QIODevice_ReadyRead(QIODevice* self); -void QIODevice_connect_ReadyRead(QIODevice* self, void* slot); +void QIODevice_connect_ReadyRead(QIODevice* self, intptr_t slot); void QIODevice_ChannelReadyRead(QIODevice* self, int channel); -void QIODevice_connect_ChannelReadyRead(QIODevice* self, void* slot); +void QIODevice_connect_ChannelReadyRead(QIODevice* self, intptr_t slot); void QIODevice_BytesWritten(QIODevice* self, long long bytes); -void QIODevice_connect_BytesWritten(QIODevice* self, void* slot); +void QIODevice_connect_BytesWritten(QIODevice* self, intptr_t slot); void QIODevice_ChannelBytesWritten(QIODevice* self, int channel, long long bytes); -void QIODevice_connect_ChannelBytesWritten(QIODevice* self, void* slot); +void QIODevice_connect_ChannelBytesWritten(QIODevice* self, intptr_t slot); void QIODevice_AboutToClose(QIODevice* self); -void QIODevice_connect_AboutToClose(QIODevice* self, void* slot); +void QIODevice_connect_AboutToClose(QIODevice* self, intptr_t slot); void QIODevice_ReadChannelFinished(QIODevice* self); -void QIODevice_connect_ReadChannelFinished(QIODevice* self, void* slot); +void QIODevice_connect_ReadChannelFinished(QIODevice* self, intptr_t slot); struct miqt_string* QIODevice_Tr2(const char* s, const char* c); struct miqt_string* QIODevice_Tr3(const char* s, const char* c, int n); struct miqt_string* QIODevice_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qitemselectionmodel.cpp b/qt/gen_qitemselectionmodel.cpp index 47716a7..af831e3 100644 --- a/qt/gen_qitemselectionmodel.cpp +++ b/qt/gen_qitemselectionmodel.cpp @@ -275,7 +275,7 @@ void QItemSelectionModel_CurrentChanged(QItemSelectionModel* self, QModelIndex* self->currentChanged(*current, *previous); } -void QItemSelectionModel_connect_CurrentChanged(QItemSelectionModel* self, void* slot) { +void QItemSelectionModel_connect_CurrentChanged(QItemSelectionModel* self, intptr_t slot) { QItemSelectionModel::connect(self, static_cast(&QItemSelectionModel::currentChanged), self, [=](const QModelIndex& current, const QModelIndex& previous) { const QModelIndex& current_ret = current; // Cast returned reference into pointer @@ -291,7 +291,7 @@ void QItemSelectionModel_CurrentRowChanged(QItemSelectionModel* self, QModelInde self->currentRowChanged(*current, *previous); } -void QItemSelectionModel_connect_CurrentRowChanged(QItemSelectionModel* self, void* slot) { +void QItemSelectionModel_connect_CurrentRowChanged(QItemSelectionModel* self, intptr_t slot) { QItemSelectionModel::connect(self, static_cast(&QItemSelectionModel::currentRowChanged), self, [=](const QModelIndex& current, const QModelIndex& previous) { const QModelIndex& current_ret = current; // Cast returned reference into pointer @@ -307,7 +307,7 @@ void QItemSelectionModel_CurrentColumnChanged(QItemSelectionModel* self, QModelI self->currentColumnChanged(*current, *previous); } -void QItemSelectionModel_connect_CurrentColumnChanged(QItemSelectionModel* self, void* slot) { +void QItemSelectionModel_connect_CurrentColumnChanged(QItemSelectionModel* self, intptr_t slot) { QItemSelectionModel::connect(self, static_cast(&QItemSelectionModel::currentColumnChanged), self, [=](const QModelIndex& current, const QModelIndex& previous) { const QModelIndex& current_ret = current; // Cast returned reference into pointer @@ -323,7 +323,7 @@ void QItemSelectionModel_ModelChanged(QItemSelectionModel* self, QAbstractItemMo self->modelChanged(model); } -void QItemSelectionModel_connect_ModelChanged(QItemSelectionModel* self, void* slot) { +void QItemSelectionModel_connect_ModelChanged(QItemSelectionModel* self, intptr_t slot) { QItemSelectionModel::connect(self, static_cast(&QItemSelectionModel::modelChanged), self, [=](QAbstractItemModel* model) { QAbstractItemModel* sigval1 = model; miqt_exec_callback_QItemSelectionModel_ModelChanged(slot, sigval1); diff --git a/qt/gen_qitemselectionmodel.go b/qt/gen_qitemselectionmodel.go index 97fdebb..7615312 100644 --- a/qt/gen_qitemselectionmodel.go +++ b/qt/gen_qitemselectionmodel.go @@ -376,12 +376,12 @@ func (this *QItemSelectionModel) CurrentChanged(current *QModelIndex, previous * C.QItemSelectionModel_CurrentChanged(this.h, current.cPointer(), previous.cPointer()) } func (this *QItemSelectionModel) OnCurrentChanged(slot func(current *QModelIndex, previous *QModelIndex)) { - C.QItemSelectionModel_connect_CurrentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QItemSelectionModel_connect_CurrentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QItemSelectionModel_CurrentChanged -func miqt_exec_callback_QItemSelectionModel_CurrentChanged(cb *C.void, current *C.QModelIndex, previous *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(current *QModelIndex, previous *QModelIndex)) +func miqt_exec_callback_QItemSelectionModel_CurrentChanged(cb C.intptr_t, current *C.QModelIndex, previous *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(current *QModelIndex, previous *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -397,12 +397,12 @@ func (this *QItemSelectionModel) CurrentRowChanged(current *QModelIndex, previou C.QItemSelectionModel_CurrentRowChanged(this.h, current.cPointer(), previous.cPointer()) } func (this *QItemSelectionModel) OnCurrentRowChanged(slot func(current *QModelIndex, previous *QModelIndex)) { - C.QItemSelectionModel_connect_CurrentRowChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QItemSelectionModel_connect_CurrentRowChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QItemSelectionModel_CurrentRowChanged -func miqt_exec_callback_QItemSelectionModel_CurrentRowChanged(cb *C.void, current *C.QModelIndex, previous *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(current *QModelIndex, previous *QModelIndex)) +func miqt_exec_callback_QItemSelectionModel_CurrentRowChanged(cb C.intptr_t, current *C.QModelIndex, previous *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(current *QModelIndex, previous *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -418,12 +418,12 @@ func (this *QItemSelectionModel) CurrentColumnChanged(current *QModelIndex, prev C.QItemSelectionModel_CurrentColumnChanged(this.h, current.cPointer(), previous.cPointer()) } func (this *QItemSelectionModel) OnCurrentColumnChanged(slot func(current *QModelIndex, previous *QModelIndex)) { - C.QItemSelectionModel_connect_CurrentColumnChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QItemSelectionModel_connect_CurrentColumnChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QItemSelectionModel_CurrentColumnChanged -func miqt_exec_callback_QItemSelectionModel_CurrentColumnChanged(cb *C.void, current *C.QModelIndex, previous *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(current *QModelIndex, previous *QModelIndex)) +func miqt_exec_callback_QItemSelectionModel_CurrentColumnChanged(cb C.intptr_t, current *C.QModelIndex, previous *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(current *QModelIndex, previous *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -439,12 +439,12 @@ func (this *QItemSelectionModel) ModelChanged(model *QAbstractItemModel) { C.QItemSelectionModel_ModelChanged(this.h, model.cPointer()) } func (this *QItemSelectionModel) OnModelChanged(slot func(model *QAbstractItemModel)) { - C.QItemSelectionModel_connect_ModelChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QItemSelectionModel_connect_ModelChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QItemSelectionModel_ModelChanged -func miqt_exec_callback_QItemSelectionModel_ModelChanged(cb *C.void, model *C.QAbstractItemModel) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(model *QAbstractItemModel)) +func miqt_exec_callback_QItemSelectionModel_ModelChanged(cb C.intptr_t, model *C.QAbstractItemModel) { + gofunc, ok := cgo.Handle(cb).Value().(func(model *QAbstractItemModel)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qitemselectionmodel.h b/qt/gen_qitemselectionmodel.h index 2fb6754..6cb27f0 100644 --- a/qt/gen_qitemselectionmodel.h +++ b/qt/gen_qitemselectionmodel.h @@ -86,13 +86,13 @@ void QItemSelectionModel_Reset(QItemSelectionModel* self); void QItemSelectionModel_ClearSelection(QItemSelectionModel* self); void QItemSelectionModel_ClearCurrentIndex(QItemSelectionModel* self); void QItemSelectionModel_CurrentChanged(QItemSelectionModel* self, QModelIndex* current, QModelIndex* previous); -void QItemSelectionModel_connect_CurrentChanged(QItemSelectionModel* self, void* slot); +void QItemSelectionModel_connect_CurrentChanged(QItemSelectionModel* self, intptr_t slot); void QItemSelectionModel_CurrentRowChanged(QItemSelectionModel* self, QModelIndex* current, QModelIndex* previous); -void QItemSelectionModel_connect_CurrentRowChanged(QItemSelectionModel* self, void* slot); +void QItemSelectionModel_connect_CurrentRowChanged(QItemSelectionModel* self, intptr_t slot); void QItemSelectionModel_CurrentColumnChanged(QItemSelectionModel* self, QModelIndex* current, QModelIndex* previous); -void QItemSelectionModel_connect_CurrentColumnChanged(QItemSelectionModel* self, void* slot); +void QItemSelectionModel_connect_CurrentColumnChanged(QItemSelectionModel* self, intptr_t slot); void QItemSelectionModel_ModelChanged(QItemSelectionModel* self, QAbstractItemModel* model); -void QItemSelectionModel_connect_ModelChanged(QItemSelectionModel* self, void* slot); +void QItemSelectionModel_connect_ModelChanged(QItemSelectionModel* self, intptr_t slot); struct miqt_string* QItemSelectionModel_Tr2(const char* s, const char* c); struct miqt_string* QItemSelectionModel_Tr3(const char* s, const char* c, int n); struct miqt_string* QItemSelectionModel_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qkeysequenceedit.cpp b/qt/gen_qkeysequenceedit.cpp index 1e2db62..298ef0d 100644 --- a/qt/gen_qkeysequenceedit.cpp +++ b/qt/gen_qkeysequenceedit.cpp @@ -63,7 +63,7 @@ void QKeySequenceEdit_EditingFinished(QKeySequenceEdit* self) { self->editingFinished(); } -void QKeySequenceEdit_connect_EditingFinished(QKeySequenceEdit* self, void* slot) { +void QKeySequenceEdit_connect_EditingFinished(QKeySequenceEdit* self, intptr_t slot) { QKeySequenceEdit::connect(self, static_cast(&QKeySequenceEdit::editingFinished), self, [=]() { miqt_exec_callback_QKeySequenceEdit_EditingFinished(slot); }); @@ -73,7 +73,7 @@ void QKeySequenceEdit_KeySequenceChanged(QKeySequenceEdit* self, QKeySequence* k self->keySequenceChanged(*keySequence); } -void QKeySequenceEdit_connect_KeySequenceChanged(QKeySequenceEdit* self, void* slot) { +void QKeySequenceEdit_connect_KeySequenceChanged(QKeySequenceEdit* self, intptr_t slot) { QKeySequenceEdit::connect(self, static_cast(&QKeySequenceEdit::keySequenceChanged), self, [=](const QKeySequence& keySequence) { const QKeySequence& keySequence_ret = keySequence; // Cast returned reference into pointer diff --git a/qt/gen_qkeysequenceedit.go b/qt/gen_qkeysequenceedit.go index 7b41dfc..f0e1558 100644 --- a/qt/gen_qkeysequenceedit.go +++ b/qt/gen_qkeysequenceedit.go @@ -108,12 +108,12 @@ func (this *QKeySequenceEdit) EditingFinished() { C.QKeySequenceEdit_EditingFinished(this.h) } func (this *QKeySequenceEdit) OnEditingFinished(slot func()) { - C.QKeySequenceEdit_connect_EditingFinished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QKeySequenceEdit_connect_EditingFinished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QKeySequenceEdit_EditingFinished -func miqt_exec_callback_QKeySequenceEdit_EditingFinished(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QKeySequenceEdit_EditingFinished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -125,12 +125,12 @@ func (this *QKeySequenceEdit) KeySequenceChanged(keySequence *QKeySequence) { C.QKeySequenceEdit_KeySequenceChanged(this.h, keySequence.cPointer()) } func (this *QKeySequenceEdit) OnKeySequenceChanged(slot func(keySequence *QKeySequence)) { - C.QKeySequenceEdit_connect_KeySequenceChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QKeySequenceEdit_connect_KeySequenceChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QKeySequenceEdit_KeySequenceChanged -func miqt_exec_callback_QKeySequenceEdit_KeySequenceChanged(cb *C.void, keySequence *C.QKeySequence) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(keySequence *QKeySequence)) +func miqt_exec_callback_QKeySequenceEdit_KeySequenceChanged(cb C.intptr_t, keySequence *C.QKeySequence) { + gofunc, ok := cgo.Handle(cb).Value().(func(keySequence *QKeySequence)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qkeysequenceedit.h b/qt/gen_qkeysequenceedit.h index 744ad14..d45d2da 100644 --- a/qt/gen_qkeysequenceedit.h +++ b/qt/gen_qkeysequenceedit.h @@ -37,9 +37,9 @@ QKeySequence* QKeySequenceEdit_KeySequence(const QKeySequenceEdit* self); void QKeySequenceEdit_SetKeySequence(QKeySequenceEdit* self, QKeySequence* keySequence); void QKeySequenceEdit_Clear(QKeySequenceEdit* self); void QKeySequenceEdit_EditingFinished(QKeySequenceEdit* self); -void QKeySequenceEdit_connect_EditingFinished(QKeySequenceEdit* self, void* slot); +void QKeySequenceEdit_connect_EditingFinished(QKeySequenceEdit* self, intptr_t slot); void QKeySequenceEdit_KeySequenceChanged(QKeySequenceEdit* self, QKeySequence* keySequence); -void QKeySequenceEdit_connect_KeySequenceChanged(QKeySequenceEdit* self, void* slot); +void QKeySequenceEdit_connect_KeySequenceChanged(QKeySequenceEdit* self, intptr_t slot); struct miqt_string* QKeySequenceEdit_Tr2(const char* s, const char* c); struct miqt_string* QKeySequenceEdit_Tr3(const char* s, const char* c, int n); struct miqt_string* QKeySequenceEdit_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qlabel.cpp b/qt/gen_qlabel.cpp index 49bce89..1a43a5b 100644 --- a/qt/gen_qlabel.cpp +++ b/qt/gen_qlabel.cpp @@ -228,7 +228,7 @@ void QLabel_LinkActivated(QLabel* self, struct miqt_string* link) { self->linkActivated(link_QString); } -void QLabel_connect_LinkActivated(QLabel* self, void* slot) { +void QLabel_connect_LinkActivated(QLabel* self, intptr_t slot) { QLabel::connect(self, static_cast(&QLabel::linkActivated), self, [=](const QString& link) { const QString link_ret = link; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -243,7 +243,7 @@ void QLabel_LinkHovered(QLabel* self, struct miqt_string* link) { self->linkHovered(link_QString); } -void QLabel_connect_LinkHovered(QLabel* self, void* slot) { +void QLabel_connect_LinkHovered(QLabel* self, intptr_t slot) { QLabel::connect(self, static_cast(&QLabel::linkHovered), self, [=](const QString& link) { const QString link_ret = link; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qlabel.go b/qt/gen_qlabel.go index ee5e44a..d3c4d66 100644 --- a/qt/gen_qlabel.go +++ b/qt/gen_qlabel.go @@ -285,12 +285,12 @@ func (this *QLabel) LinkActivated(link string) { C.QLabel_LinkActivated(this.h, (*C.struct_miqt_string)(link_ms)) } func (this *QLabel) OnLinkActivated(slot func(link string)) { - C.QLabel_connect_LinkActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLabel_connect_LinkActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLabel_LinkActivated -func miqt_exec_callback_QLabel_LinkActivated(cb *C.void, link *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(link string)) +func miqt_exec_callback_QLabel_LinkActivated(cb C.intptr_t, link *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(link string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -310,12 +310,12 @@ func (this *QLabel) LinkHovered(link string) { C.QLabel_LinkHovered(this.h, (*C.struct_miqt_string)(link_ms)) } func (this *QLabel) OnLinkHovered(slot func(link string)) { - C.QLabel_connect_LinkHovered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLabel_connect_LinkHovered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLabel_LinkHovered -func miqt_exec_callback_QLabel_LinkHovered(cb *C.void, link *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(link string)) +func miqt_exec_callback_QLabel_LinkHovered(cb C.intptr_t, link *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(link string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qlabel.h b/qt/gen_qlabel.h index 53dda5d..c21ac7b 100644 --- a/qt/gen_qlabel.h +++ b/qt/gen_qlabel.h @@ -80,9 +80,9 @@ void QLabel_SetNum(QLabel* self, int num); void QLabel_SetNumWithNum(QLabel* self, double num); void QLabel_Clear(QLabel* self); void QLabel_LinkActivated(QLabel* self, struct miqt_string* link); -void QLabel_connect_LinkActivated(QLabel* self, void* slot); +void QLabel_connect_LinkActivated(QLabel* self, intptr_t slot); void QLabel_LinkHovered(QLabel* self, struct miqt_string* link); -void QLabel_connect_LinkHovered(QLabel* self, void* slot); +void QLabel_connect_LinkHovered(QLabel* self, intptr_t slot); struct miqt_string* QLabel_Tr2(const char* s, const char* c); struct miqt_string* QLabel_Tr3(const char* s, const char* c, int n); struct miqt_string* QLabel_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qlcdnumber.cpp b/qt/gen_qlcdnumber.cpp index cd5a5c3..559dbb3 100644 --- a/qt/gen_qlcdnumber.cpp +++ b/qt/gen_qlcdnumber.cpp @@ -134,7 +134,7 @@ void QLCDNumber_Overflow(QLCDNumber* self) { self->overflow(); } -void QLCDNumber_connect_Overflow(QLCDNumber* self, void* slot) { +void QLCDNumber_connect_Overflow(QLCDNumber* self, intptr_t slot) { QLCDNumber::connect(self, static_cast(&QLCDNumber::overflow), self, [=]() { miqt_exec_callback_QLCDNumber_Overflow(slot); }); diff --git a/qt/gen_qlcdnumber.go b/qt/gen_qlcdnumber.go index 6fcc16d..7890d5a 100644 --- a/qt/gen_qlcdnumber.go +++ b/qt/gen_qlcdnumber.go @@ -195,12 +195,12 @@ func (this *QLCDNumber) Overflow() { C.QLCDNumber_Overflow(this.h) } func (this *QLCDNumber) OnOverflow(slot func()) { - C.QLCDNumber_connect_Overflow(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLCDNumber_connect_Overflow(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLCDNumber_Overflow -func miqt_exec_callback_QLCDNumber_Overflow(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QLCDNumber_Overflow(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qlcdnumber.h b/qt/gen_qlcdnumber.h index 64c8f47..beb58d0 100644 --- a/qt/gen_qlcdnumber.h +++ b/qt/gen_qlcdnumber.h @@ -54,7 +54,7 @@ void QLCDNumber_SetOctMode(QLCDNumber* self); void QLCDNumber_SetBinMode(QLCDNumber* self); void QLCDNumber_SetSmallDecimalPoint(QLCDNumber* self, bool smallDecimalPoint); void QLCDNumber_Overflow(QLCDNumber* self); -void QLCDNumber_connect_Overflow(QLCDNumber* self, void* slot); +void QLCDNumber_connect_Overflow(QLCDNumber* self, intptr_t slot); struct miqt_string* QLCDNumber_Tr2(const char* s, const char* c); struct miqt_string* QLCDNumber_Tr3(const char* s, const char* c, int n); struct miqt_string* QLCDNumber_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qlineedit.cpp b/qt/gen_qlineedit.cpp index 38649ab..fe45ea9 100644 --- a/qt/gen_qlineedit.cpp +++ b/qt/gen_qlineedit.cpp @@ -353,7 +353,7 @@ void QLineEdit_TextChanged(QLineEdit* self, struct miqt_string* param1) { self->textChanged(param1_QString); } -void QLineEdit_connect_TextChanged(QLineEdit* self, void* slot) { +void QLineEdit_connect_TextChanged(QLineEdit* self, intptr_t slot) { QLineEdit::connect(self, static_cast(&QLineEdit::textChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -368,7 +368,7 @@ void QLineEdit_TextEdited(QLineEdit* self, struct miqt_string* param1) { self->textEdited(param1_QString); } -void QLineEdit_connect_TextEdited(QLineEdit* self, void* slot) { +void QLineEdit_connect_TextEdited(QLineEdit* self, intptr_t slot) { QLineEdit::connect(self, static_cast(&QLineEdit::textEdited), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -382,7 +382,7 @@ void QLineEdit_CursorPositionChanged(QLineEdit* self, int param1, int param2) { self->cursorPositionChanged(static_cast(param1), static_cast(param2)); } -void QLineEdit_connect_CursorPositionChanged(QLineEdit* self, void* slot) { +void QLineEdit_connect_CursorPositionChanged(QLineEdit* self, intptr_t slot) { QLineEdit::connect(self, static_cast(&QLineEdit::cursorPositionChanged), self, [=](int param1, int param2) { int sigval1 = param1; int sigval2 = param2; @@ -394,7 +394,7 @@ void QLineEdit_ReturnPressed(QLineEdit* self) { self->returnPressed(); } -void QLineEdit_connect_ReturnPressed(QLineEdit* self, void* slot) { +void QLineEdit_connect_ReturnPressed(QLineEdit* self, intptr_t slot) { QLineEdit::connect(self, static_cast(&QLineEdit::returnPressed), self, [=]() { miqt_exec_callback_QLineEdit_ReturnPressed(slot); }); @@ -404,7 +404,7 @@ void QLineEdit_EditingFinished(QLineEdit* self) { self->editingFinished(); } -void QLineEdit_connect_EditingFinished(QLineEdit* self, void* slot) { +void QLineEdit_connect_EditingFinished(QLineEdit* self, intptr_t slot) { QLineEdit::connect(self, static_cast(&QLineEdit::editingFinished), self, [=]() { miqt_exec_callback_QLineEdit_EditingFinished(slot); }); @@ -414,7 +414,7 @@ void QLineEdit_SelectionChanged(QLineEdit* self) { self->selectionChanged(); } -void QLineEdit_connect_SelectionChanged(QLineEdit* self, void* slot) { +void QLineEdit_connect_SelectionChanged(QLineEdit* self, intptr_t slot) { QLineEdit::connect(self, static_cast(&QLineEdit::selectionChanged), self, [=]() { miqt_exec_callback_QLineEdit_SelectionChanged(slot); }); @@ -424,7 +424,7 @@ void QLineEdit_InputRejected(QLineEdit* self) { self->inputRejected(); } -void QLineEdit_connect_InputRejected(QLineEdit* self, void* slot) { +void QLineEdit_connect_InputRejected(QLineEdit* self, intptr_t slot) { QLineEdit::connect(self, static_cast(&QLineEdit::inputRejected), self, [=]() { miqt_exec_callback_QLineEdit_InputRejected(slot); }); diff --git a/qt/gen_qlineedit.go b/qt/gen_qlineedit.go index 6d87d8b..77e8f02 100644 --- a/qt/gen_qlineedit.go +++ b/qt/gen_qlineedit.go @@ -415,12 +415,12 @@ func (this *QLineEdit) TextChanged(param1 string) { C.QLineEdit_TextChanged(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QLineEdit) OnTextChanged(slot func(param1 string)) { - C.QLineEdit_connect_TextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLineEdit_connect_TextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLineEdit_TextChanged -func miqt_exec_callback_QLineEdit_TextChanged(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QLineEdit_TextChanged(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -440,12 +440,12 @@ func (this *QLineEdit) TextEdited(param1 string) { C.QLineEdit_TextEdited(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QLineEdit) OnTextEdited(slot func(param1 string)) { - C.QLineEdit_connect_TextEdited(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLineEdit_connect_TextEdited(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLineEdit_TextEdited -func miqt_exec_callback_QLineEdit_TextEdited(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QLineEdit_TextEdited(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -463,12 +463,12 @@ func (this *QLineEdit) CursorPositionChanged(param1 int, param2 int) { C.QLineEdit_CursorPositionChanged(this.h, (C.int)(param1), (C.int)(param2)) } func (this *QLineEdit) OnCursorPositionChanged(slot func(param1 int, param2 int)) { - C.QLineEdit_connect_CursorPositionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLineEdit_connect_CursorPositionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLineEdit_CursorPositionChanged -func miqt_exec_callback_QLineEdit_CursorPositionChanged(cb *C.void, param1 C.int, param2 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int, param2 int)) +func miqt_exec_callback_QLineEdit_CursorPositionChanged(cb C.intptr_t, param1 C.int, param2 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int, param2 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -485,12 +485,12 @@ func (this *QLineEdit) ReturnPressed() { C.QLineEdit_ReturnPressed(this.h) } func (this *QLineEdit) OnReturnPressed(slot func()) { - C.QLineEdit_connect_ReturnPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLineEdit_connect_ReturnPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLineEdit_ReturnPressed -func miqt_exec_callback_QLineEdit_ReturnPressed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QLineEdit_ReturnPressed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -502,12 +502,12 @@ func (this *QLineEdit) EditingFinished() { C.QLineEdit_EditingFinished(this.h) } func (this *QLineEdit) OnEditingFinished(slot func()) { - C.QLineEdit_connect_EditingFinished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLineEdit_connect_EditingFinished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLineEdit_EditingFinished -func miqt_exec_callback_QLineEdit_EditingFinished(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QLineEdit_EditingFinished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -519,12 +519,12 @@ func (this *QLineEdit) SelectionChanged() { C.QLineEdit_SelectionChanged(this.h) } func (this *QLineEdit) OnSelectionChanged(slot func()) { - C.QLineEdit_connect_SelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLineEdit_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLineEdit_SelectionChanged -func miqt_exec_callback_QLineEdit_SelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QLineEdit_SelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -536,12 +536,12 @@ func (this *QLineEdit) InputRejected() { C.QLineEdit_InputRejected(this.h) } func (this *QLineEdit) OnInputRejected(slot func()) { - C.QLineEdit_connect_InputRejected(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QLineEdit_connect_InputRejected(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QLineEdit_InputRejected -func miqt_exec_callback_QLineEdit_InputRejected(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QLineEdit_InputRejected(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qlineedit.h b/qt/gen_qlineedit.h index 0fff444..325a0ae 100644 --- a/qt/gen_qlineedit.h +++ b/qt/gen_qlineedit.h @@ -119,19 +119,19 @@ void QLineEdit_Deselect(QLineEdit* self); void QLineEdit_Insert(QLineEdit* self, struct miqt_string* param1); QMenu* QLineEdit_CreateStandardContextMenu(QLineEdit* self); void QLineEdit_TextChanged(QLineEdit* self, struct miqt_string* param1); -void QLineEdit_connect_TextChanged(QLineEdit* self, void* slot); +void QLineEdit_connect_TextChanged(QLineEdit* self, intptr_t slot); void QLineEdit_TextEdited(QLineEdit* self, struct miqt_string* param1); -void QLineEdit_connect_TextEdited(QLineEdit* self, void* slot); +void QLineEdit_connect_TextEdited(QLineEdit* self, intptr_t slot); void QLineEdit_CursorPositionChanged(QLineEdit* self, int param1, int param2); -void QLineEdit_connect_CursorPositionChanged(QLineEdit* self, void* slot); +void QLineEdit_connect_CursorPositionChanged(QLineEdit* self, intptr_t slot); void QLineEdit_ReturnPressed(QLineEdit* self); -void QLineEdit_connect_ReturnPressed(QLineEdit* self, void* slot); +void QLineEdit_connect_ReturnPressed(QLineEdit* self, intptr_t slot); void QLineEdit_EditingFinished(QLineEdit* self); -void QLineEdit_connect_EditingFinished(QLineEdit* self, void* slot); +void QLineEdit_connect_EditingFinished(QLineEdit* self, intptr_t slot); void QLineEdit_SelectionChanged(QLineEdit* self); -void QLineEdit_connect_SelectionChanged(QLineEdit* self, void* slot); +void QLineEdit_connect_SelectionChanged(QLineEdit* self, intptr_t slot); void QLineEdit_InputRejected(QLineEdit* self); -void QLineEdit_connect_InputRejected(QLineEdit* self, void* slot); +void QLineEdit_connect_InputRejected(QLineEdit* self, intptr_t slot); QVariant* QLineEdit_InputMethodQuery(const QLineEdit* self, int param1); QVariant* QLineEdit_InputMethodQuery2(const QLineEdit* self, int property, QVariant* argument); bool QLineEdit_Event(QLineEdit* self, QEvent* param1); diff --git a/qt/gen_qlistview.cpp b/qt/gen_qlistview.cpp index 296902c..7f30660 100644 --- a/qt/gen_qlistview.cpp +++ b/qt/gen_qlistview.cpp @@ -207,7 +207,7 @@ void QListView_IndexesMoved(QListView* self, struct miqt_array* /* of QModelInde self->indexesMoved(indexes_QList); } -void QListView_connect_IndexesMoved(QListView* self, void* slot) { +void QListView_connect_IndexesMoved(QListView* self, intptr_t slot) { QListView::connect(self, static_cast(&QListView::indexesMoved), self, [=](const QModelIndexList& indexes) { const QModelIndexList& indexes_ret = indexes; // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qlistview.go b/qt/gen_qlistview.go index da5bcb7..ee76898 100644 --- a/qt/gen_qlistview.go +++ b/qt/gen_qlistview.go @@ -282,12 +282,12 @@ func (this *QListView) IndexesMoved(indexes []QModelIndex) { C.QListView_IndexesMoved(this.h, indexes_ma) } func (this *QListView) OnIndexesMoved(slot func(indexes []QModelIndex)) { - C.QListView_connect_IndexesMoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListView_connect_IndexesMoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListView_IndexesMoved -func miqt_exec_callback_QListView_IndexesMoved(cb *C.void, indexes *C.struct_miqt_array) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(indexes []QModelIndex)) +func miqt_exec_callback_QListView_IndexesMoved(cb C.intptr_t, indexes *C.struct_miqt_array) { + gofunc, ok := cgo.Handle(cb).Value().(func(indexes []QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qlistview.h b/qt/gen_qlistview.h index 0d27e7c..f5069ad 100644 --- a/qt/gen_qlistview.h +++ b/qt/gen_qlistview.h @@ -75,7 +75,7 @@ void QListView_DoItemsLayout(QListView* self); void QListView_Reset(QListView* self); void QListView_SetRootIndex(QListView* self, QModelIndex* index); void QListView_IndexesMoved(QListView* self, struct miqt_array* /* of QModelIndex* */ indexes); -void QListView_connect_IndexesMoved(QListView* self, void* slot); +void QListView_connect_IndexesMoved(QListView* self, intptr_t slot); struct miqt_string* QListView_Tr2(const char* s, const char* c); struct miqt_string* QListView_Tr3(const char* s, const char* c, int n); struct miqt_string* QListView_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qlistwidget.cpp b/qt/gen_qlistwidget.cpp index 08ad2d9..19108b2 100644 --- a/qt/gen_qlistwidget.cpp +++ b/qt/gen_qlistwidget.cpp @@ -478,7 +478,7 @@ void QListWidget_ItemPressed(QListWidget* self, QListWidgetItem* item) { self->itemPressed(item); } -void QListWidget_connect_ItemPressed(QListWidget* self, void* slot) { +void QListWidget_connect_ItemPressed(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::itemPressed), self, [=](QListWidgetItem* item) { QListWidgetItem* sigval1 = item; miqt_exec_callback_QListWidget_ItemPressed(slot, sigval1); @@ -489,7 +489,7 @@ void QListWidget_ItemClicked(QListWidget* self, QListWidgetItem* item) { self->itemClicked(item); } -void QListWidget_connect_ItemClicked(QListWidget* self, void* slot) { +void QListWidget_connect_ItemClicked(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::itemClicked), self, [=](QListWidgetItem* item) { QListWidgetItem* sigval1 = item; miqt_exec_callback_QListWidget_ItemClicked(slot, sigval1); @@ -500,7 +500,7 @@ void QListWidget_ItemDoubleClicked(QListWidget* self, QListWidgetItem* item) { self->itemDoubleClicked(item); } -void QListWidget_connect_ItemDoubleClicked(QListWidget* self, void* slot) { +void QListWidget_connect_ItemDoubleClicked(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::itemDoubleClicked), self, [=](QListWidgetItem* item) { QListWidgetItem* sigval1 = item; miqt_exec_callback_QListWidget_ItemDoubleClicked(slot, sigval1); @@ -511,7 +511,7 @@ void QListWidget_ItemActivated(QListWidget* self, QListWidgetItem* item) { self->itemActivated(item); } -void QListWidget_connect_ItemActivated(QListWidget* self, void* slot) { +void QListWidget_connect_ItemActivated(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::itemActivated), self, [=](QListWidgetItem* item) { QListWidgetItem* sigval1 = item; miqt_exec_callback_QListWidget_ItemActivated(slot, sigval1); @@ -522,7 +522,7 @@ void QListWidget_ItemEntered(QListWidget* self, QListWidgetItem* item) { self->itemEntered(item); } -void QListWidget_connect_ItemEntered(QListWidget* self, void* slot) { +void QListWidget_connect_ItemEntered(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::itemEntered), self, [=](QListWidgetItem* item) { QListWidgetItem* sigval1 = item; miqt_exec_callback_QListWidget_ItemEntered(slot, sigval1); @@ -533,7 +533,7 @@ void QListWidget_ItemChanged(QListWidget* self, QListWidgetItem* item) { self->itemChanged(item); } -void QListWidget_connect_ItemChanged(QListWidget* self, void* slot) { +void QListWidget_connect_ItemChanged(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::itemChanged), self, [=](QListWidgetItem* item) { QListWidgetItem* sigval1 = item; miqt_exec_callback_QListWidget_ItemChanged(slot, sigval1); @@ -544,7 +544,7 @@ void QListWidget_CurrentItemChanged(QListWidget* self, QListWidgetItem* current, self->currentItemChanged(current, previous); } -void QListWidget_connect_CurrentItemChanged(QListWidget* self, void* slot) { +void QListWidget_connect_CurrentItemChanged(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::currentItemChanged), self, [=](QListWidgetItem* current, QListWidgetItem* previous) { QListWidgetItem* sigval1 = current; QListWidgetItem* sigval2 = previous; @@ -557,7 +557,7 @@ void QListWidget_CurrentTextChanged(QListWidget* self, struct miqt_string* curre self->currentTextChanged(currentText_QString); } -void QListWidget_connect_CurrentTextChanged(QListWidget* self, void* slot) { +void QListWidget_connect_CurrentTextChanged(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::currentTextChanged), self, [=](const QString& currentText) { const QString currentText_ret = currentText; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -571,7 +571,7 @@ void QListWidget_CurrentRowChanged(QListWidget* self, int currentRow) { self->currentRowChanged(static_cast(currentRow)); } -void QListWidget_connect_CurrentRowChanged(QListWidget* self, void* slot) { +void QListWidget_connect_CurrentRowChanged(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::currentRowChanged), self, [=](int currentRow) { int sigval1 = currentRow; miqt_exec_callback_QListWidget_CurrentRowChanged(slot, sigval1); @@ -582,7 +582,7 @@ void QListWidget_ItemSelectionChanged(QListWidget* self) { self->itemSelectionChanged(); } -void QListWidget_connect_ItemSelectionChanged(QListWidget* self, void* slot) { +void QListWidget_connect_ItemSelectionChanged(QListWidget* self, intptr_t slot) { QListWidget::connect(self, static_cast(&QListWidget::itemSelectionChanged), self, [=]() { miqt_exec_callback_QListWidget_ItemSelectionChanged(slot); }); diff --git a/qt/gen_qlistwidget.go b/qt/gen_qlistwidget.go index 1995e8b..cfb8dd6 100644 --- a/qt/gen_qlistwidget.go +++ b/qt/gen_qlistwidget.go @@ -603,12 +603,12 @@ func (this *QListWidget) ItemPressed(item *QListWidgetItem) { C.QListWidget_ItemPressed(this.h, item.cPointer()) } func (this *QListWidget) OnItemPressed(slot func(item *QListWidgetItem)) { - C.QListWidget_connect_ItemPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_ItemPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_ItemPressed -func miqt_exec_callback_QListWidget_ItemPressed(cb *C.void, item *C.QListWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QListWidgetItem)) +func miqt_exec_callback_QListWidget_ItemPressed(cb C.intptr_t, item *C.QListWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QListWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -623,12 +623,12 @@ func (this *QListWidget) ItemClicked(item *QListWidgetItem) { C.QListWidget_ItemClicked(this.h, item.cPointer()) } func (this *QListWidget) OnItemClicked(slot func(item *QListWidgetItem)) { - C.QListWidget_connect_ItemClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_ItemClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_ItemClicked -func miqt_exec_callback_QListWidget_ItemClicked(cb *C.void, item *C.QListWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QListWidgetItem)) +func miqt_exec_callback_QListWidget_ItemClicked(cb C.intptr_t, item *C.QListWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QListWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -643,12 +643,12 @@ func (this *QListWidget) ItemDoubleClicked(item *QListWidgetItem) { C.QListWidget_ItemDoubleClicked(this.h, item.cPointer()) } func (this *QListWidget) OnItemDoubleClicked(slot func(item *QListWidgetItem)) { - C.QListWidget_connect_ItemDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_ItemDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_ItemDoubleClicked -func miqt_exec_callback_QListWidget_ItemDoubleClicked(cb *C.void, item *C.QListWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QListWidgetItem)) +func miqt_exec_callback_QListWidget_ItemDoubleClicked(cb C.intptr_t, item *C.QListWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QListWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -663,12 +663,12 @@ func (this *QListWidget) ItemActivated(item *QListWidgetItem) { C.QListWidget_ItemActivated(this.h, item.cPointer()) } func (this *QListWidget) OnItemActivated(slot func(item *QListWidgetItem)) { - C.QListWidget_connect_ItemActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_ItemActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_ItemActivated -func miqt_exec_callback_QListWidget_ItemActivated(cb *C.void, item *C.QListWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QListWidgetItem)) +func miqt_exec_callback_QListWidget_ItemActivated(cb C.intptr_t, item *C.QListWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QListWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -683,12 +683,12 @@ func (this *QListWidget) ItemEntered(item *QListWidgetItem) { C.QListWidget_ItemEntered(this.h, item.cPointer()) } func (this *QListWidget) OnItemEntered(slot func(item *QListWidgetItem)) { - C.QListWidget_connect_ItemEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_ItemEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_ItemEntered -func miqt_exec_callback_QListWidget_ItemEntered(cb *C.void, item *C.QListWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QListWidgetItem)) +func miqt_exec_callback_QListWidget_ItemEntered(cb C.intptr_t, item *C.QListWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QListWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -703,12 +703,12 @@ func (this *QListWidget) ItemChanged(item *QListWidgetItem) { C.QListWidget_ItemChanged(this.h, item.cPointer()) } func (this *QListWidget) OnItemChanged(slot func(item *QListWidgetItem)) { - C.QListWidget_connect_ItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_ItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_ItemChanged -func miqt_exec_callback_QListWidget_ItemChanged(cb *C.void, item *C.QListWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QListWidgetItem)) +func miqt_exec_callback_QListWidget_ItemChanged(cb C.intptr_t, item *C.QListWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QListWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -723,12 +723,12 @@ func (this *QListWidget) CurrentItemChanged(current *QListWidgetItem, previous * C.QListWidget_CurrentItemChanged(this.h, current.cPointer(), previous.cPointer()) } func (this *QListWidget) OnCurrentItemChanged(slot func(current *QListWidgetItem, previous *QListWidgetItem)) { - C.QListWidget_connect_CurrentItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_CurrentItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_CurrentItemChanged -func miqt_exec_callback_QListWidget_CurrentItemChanged(cb *C.void, current *C.QListWidgetItem, previous *C.QListWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(current *QListWidgetItem, previous *QListWidgetItem)) +func miqt_exec_callback_QListWidget_CurrentItemChanged(cb C.intptr_t, current *C.QListWidgetItem, previous *C.QListWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(current *QListWidgetItem, previous *QListWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -746,12 +746,12 @@ func (this *QListWidget) CurrentTextChanged(currentText string) { C.QListWidget_CurrentTextChanged(this.h, (*C.struct_miqt_string)(currentText_ms)) } func (this *QListWidget) OnCurrentTextChanged(slot func(currentText string)) { - C.QListWidget_connect_CurrentTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_CurrentTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_CurrentTextChanged -func miqt_exec_callback_QListWidget_CurrentTextChanged(cb *C.void, currentText *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(currentText string)) +func miqt_exec_callback_QListWidget_CurrentTextChanged(cb C.intptr_t, currentText *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(currentText string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -769,12 +769,12 @@ func (this *QListWidget) CurrentRowChanged(currentRow int) { C.QListWidget_CurrentRowChanged(this.h, (C.int)(currentRow)) } func (this *QListWidget) OnCurrentRowChanged(slot func(currentRow int)) { - C.QListWidget_connect_CurrentRowChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_CurrentRowChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_CurrentRowChanged -func miqt_exec_callback_QListWidget_CurrentRowChanged(cb *C.void, currentRow C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(currentRow int)) +func miqt_exec_callback_QListWidget_CurrentRowChanged(cb C.intptr_t, currentRow C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(currentRow int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -789,12 +789,12 @@ func (this *QListWidget) ItemSelectionChanged() { C.QListWidget_ItemSelectionChanged(this.h) } func (this *QListWidget) OnItemSelectionChanged(slot func()) { - C.QListWidget_connect_ItemSelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QListWidget_connect_ItemSelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QListWidget_ItemSelectionChanged -func miqt_exec_callback_QListWidget_ItemSelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QListWidget_ItemSelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qlistwidget.h b/qt/gen_qlistwidget.h index 054b41b..5902603 100644 --- a/qt/gen_qlistwidget.h +++ b/qt/gen_qlistwidget.h @@ -146,25 +146,25 @@ void QListWidget_DropEvent(QListWidget* self, QDropEvent* event); void QListWidget_ScrollToItem(QListWidget* self, QListWidgetItem* item); void QListWidget_Clear(QListWidget* self); void QListWidget_ItemPressed(QListWidget* self, QListWidgetItem* item); -void QListWidget_connect_ItemPressed(QListWidget* self, void* slot); +void QListWidget_connect_ItemPressed(QListWidget* self, intptr_t slot); void QListWidget_ItemClicked(QListWidget* self, QListWidgetItem* item); -void QListWidget_connect_ItemClicked(QListWidget* self, void* slot); +void QListWidget_connect_ItemClicked(QListWidget* self, intptr_t slot); void QListWidget_ItemDoubleClicked(QListWidget* self, QListWidgetItem* item); -void QListWidget_connect_ItemDoubleClicked(QListWidget* self, void* slot); +void QListWidget_connect_ItemDoubleClicked(QListWidget* self, intptr_t slot); void QListWidget_ItemActivated(QListWidget* self, QListWidgetItem* item); -void QListWidget_connect_ItemActivated(QListWidget* self, void* slot); +void QListWidget_connect_ItemActivated(QListWidget* self, intptr_t slot); void QListWidget_ItemEntered(QListWidget* self, QListWidgetItem* item); -void QListWidget_connect_ItemEntered(QListWidget* self, void* slot); +void QListWidget_connect_ItemEntered(QListWidget* self, intptr_t slot); void QListWidget_ItemChanged(QListWidget* self, QListWidgetItem* item); -void QListWidget_connect_ItemChanged(QListWidget* self, void* slot); +void QListWidget_connect_ItemChanged(QListWidget* self, intptr_t slot); void QListWidget_CurrentItemChanged(QListWidget* self, QListWidgetItem* current, QListWidgetItem* previous); -void QListWidget_connect_CurrentItemChanged(QListWidget* self, void* slot); +void QListWidget_connect_CurrentItemChanged(QListWidget* self, intptr_t slot); void QListWidget_CurrentTextChanged(QListWidget* self, struct miqt_string* currentText); -void QListWidget_connect_CurrentTextChanged(QListWidget* self, void* slot); +void QListWidget_connect_CurrentTextChanged(QListWidget* self, intptr_t slot); void QListWidget_CurrentRowChanged(QListWidget* self, int currentRow); -void QListWidget_connect_CurrentRowChanged(QListWidget* self, void* slot); +void QListWidget_connect_CurrentRowChanged(QListWidget* self, intptr_t slot); void QListWidget_ItemSelectionChanged(QListWidget* self); -void QListWidget_connect_ItemSelectionChanged(QListWidget* self, void* slot); +void QListWidget_connect_ItemSelectionChanged(QListWidget* self, intptr_t slot); struct miqt_string* QListWidget_Tr2(const char* s, const char* c); struct miqt_string* QListWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QListWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qmainwindow.cpp b/qt/gen_qmainwindow.cpp index eecc49e..eb0db42 100644 --- a/qt/gen_qmainwindow.cpp +++ b/qt/gen_qmainwindow.cpp @@ -292,7 +292,7 @@ void QMainWindow_IconSizeChanged(QMainWindow* self, QSize* iconSize) { self->iconSizeChanged(*iconSize); } -void QMainWindow_connect_IconSizeChanged(QMainWindow* self, void* slot) { +void QMainWindow_connect_IconSizeChanged(QMainWindow* self, intptr_t slot) { QMainWindow::connect(self, static_cast(&QMainWindow::iconSizeChanged), self, [=](const QSize& iconSize) { const QSize& iconSize_ret = iconSize; // Cast returned reference into pointer @@ -305,7 +305,7 @@ void QMainWindow_ToolButtonStyleChanged(QMainWindow* self, int toolButtonStyle) self->toolButtonStyleChanged(static_cast(toolButtonStyle)); } -void QMainWindow_connect_ToolButtonStyleChanged(QMainWindow* self, void* slot) { +void QMainWindow_connect_ToolButtonStyleChanged(QMainWindow* self, intptr_t slot) { QMainWindow::connect(self, static_cast(&QMainWindow::toolButtonStyleChanged), self, [=](Qt::ToolButtonStyle toolButtonStyle) { Qt::ToolButtonStyle toolButtonStyle_ret = toolButtonStyle; int sigval1 = static_cast(toolButtonStyle_ret); @@ -317,7 +317,7 @@ void QMainWindow_TabifiedDockWidgetActivated(QMainWindow* self, QDockWidget* doc self->tabifiedDockWidgetActivated(dockWidget); } -void QMainWindow_connect_TabifiedDockWidgetActivated(QMainWindow* self, void* slot) { +void QMainWindow_connect_TabifiedDockWidgetActivated(QMainWindow* self, intptr_t slot) { QMainWindow::connect(self, static_cast(&QMainWindow::tabifiedDockWidgetActivated), self, [=](QDockWidget* dockWidget) { QDockWidget* sigval1 = dockWidget; miqt_exec_callback_QMainWindow_TabifiedDockWidgetActivated(slot, sigval1); diff --git a/qt/gen_qmainwindow.go b/qt/gen_qmainwindow.go index 4e35db2..0a03b94 100644 --- a/qt/gen_qmainwindow.go +++ b/qt/gen_qmainwindow.go @@ -337,12 +337,12 @@ func (this *QMainWindow) IconSizeChanged(iconSize *QSize) { C.QMainWindow_IconSizeChanged(this.h, iconSize.cPointer()) } func (this *QMainWindow) OnIconSizeChanged(slot func(iconSize *QSize)) { - C.QMainWindow_connect_IconSizeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMainWindow_connect_IconSizeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMainWindow_IconSizeChanged -func miqt_exec_callback_QMainWindow_IconSizeChanged(cb *C.void, iconSize *C.QSize) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(iconSize *QSize)) +func miqt_exec_callback_QMainWindow_IconSizeChanged(cb C.intptr_t, iconSize *C.QSize) { + gofunc, ok := cgo.Handle(cb).Value().(func(iconSize *QSize)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -357,12 +357,12 @@ func (this *QMainWindow) ToolButtonStyleChanged(toolButtonStyle ToolButtonStyle) C.QMainWindow_ToolButtonStyleChanged(this.h, (C.int)(toolButtonStyle)) } func (this *QMainWindow) OnToolButtonStyleChanged(slot func(toolButtonStyle ToolButtonStyle)) { - C.QMainWindow_connect_ToolButtonStyleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMainWindow_connect_ToolButtonStyleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMainWindow_ToolButtonStyleChanged -func miqt_exec_callback_QMainWindow_ToolButtonStyleChanged(cb *C.void, toolButtonStyle C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(toolButtonStyle ToolButtonStyle)) +func miqt_exec_callback_QMainWindow_ToolButtonStyleChanged(cb C.intptr_t, toolButtonStyle C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(toolButtonStyle ToolButtonStyle)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -377,12 +377,12 @@ func (this *QMainWindow) TabifiedDockWidgetActivated(dockWidget *QDockWidget) { C.QMainWindow_TabifiedDockWidgetActivated(this.h, dockWidget.cPointer()) } func (this *QMainWindow) OnTabifiedDockWidgetActivated(slot func(dockWidget *QDockWidget)) { - C.QMainWindow_connect_TabifiedDockWidgetActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMainWindow_connect_TabifiedDockWidgetActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMainWindow_TabifiedDockWidgetActivated -func miqt_exec_callback_QMainWindow_TabifiedDockWidgetActivated(cb *C.void, dockWidget *C.QDockWidget) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(dockWidget *QDockWidget)) +func miqt_exec_callback_QMainWindow_TabifiedDockWidgetActivated(cb C.intptr_t, dockWidget *C.QDockWidget) { + gofunc, ok := cgo.Handle(cb).Value().(func(dockWidget *QDockWidget)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qmainwindow.h b/qt/gen_qmainwindow.h index 9cfd6cc..6322dfb 100644 --- a/qt/gen_qmainwindow.h +++ b/qt/gen_qmainwindow.h @@ -99,11 +99,11 @@ void QMainWindow_SetAnimated(QMainWindow* self, bool enabled); void QMainWindow_SetDockNestingEnabled(QMainWindow* self, bool enabled); void QMainWindow_SetUnifiedTitleAndToolBarOnMac(QMainWindow* self, bool set); void QMainWindow_IconSizeChanged(QMainWindow* self, QSize* iconSize); -void QMainWindow_connect_IconSizeChanged(QMainWindow* self, void* slot); +void QMainWindow_connect_IconSizeChanged(QMainWindow* self, intptr_t slot); void QMainWindow_ToolButtonStyleChanged(QMainWindow* self, int toolButtonStyle); -void QMainWindow_connect_ToolButtonStyleChanged(QMainWindow* self, void* slot); +void QMainWindow_connect_ToolButtonStyleChanged(QMainWindow* self, intptr_t slot); void QMainWindow_TabifiedDockWidgetActivated(QMainWindow* self, QDockWidget* dockWidget); -void QMainWindow_connect_TabifiedDockWidgetActivated(QMainWindow* self, void* slot); +void QMainWindow_connect_TabifiedDockWidgetActivated(QMainWindow* self, intptr_t slot); struct miqt_string* QMainWindow_Tr2(const char* s, const char* c); struct miqt_string* QMainWindow_Tr3(const char* s, const char* c, int n); struct miqt_string* QMainWindow_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qmdiarea.cpp b/qt/gen_qmdiarea.cpp index 33da739..820967a 100644 --- a/qt/gen_qmdiarea.cpp +++ b/qt/gen_qmdiarea.cpp @@ -159,7 +159,7 @@ void QMdiArea_SubWindowActivated(QMdiArea* self, QMdiSubWindow* param1) { self->subWindowActivated(param1); } -void QMdiArea_connect_SubWindowActivated(QMdiArea* self, void* slot) { +void QMdiArea_connect_SubWindowActivated(QMdiArea* self, intptr_t slot) { QMdiArea::connect(self, static_cast(&QMdiArea::subWindowActivated), self, [=](QMdiSubWindow* param1) { QMdiSubWindow* sigval1 = param1; miqt_exec_callback_QMdiArea_SubWindowActivated(slot, sigval1); diff --git a/qt/gen_qmdiarea.go b/qt/gen_qmdiarea.go index 67c4e3f..10cc969 100644 --- a/qt/gen_qmdiarea.go +++ b/qt/gen_qmdiarea.go @@ -218,12 +218,12 @@ func (this *QMdiArea) SubWindowActivated(param1 *QMdiSubWindow) { C.QMdiArea_SubWindowActivated(this.h, param1.cPointer()) } func (this *QMdiArea) OnSubWindowActivated(slot func(param1 *QMdiSubWindow)) { - C.QMdiArea_connect_SubWindowActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMdiArea_connect_SubWindowActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMdiArea_SubWindowActivated -func miqt_exec_callback_QMdiArea_SubWindowActivated(cb *C.void, param1 *C.QMdiSubWindow) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QMdiSubWindow)) +func miqt_exec_callback_QMdiArea_SubWindowActivated(cb C.intptr_t, param1 *C.QMdiSubWindow) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QMdiSubWindow)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qmdiarea.h b/qt/gen_qmdiarea.h index 469c49e..37d42ee 100644 --- a/qt/gen_qmdiarea.h +++ b/qt/gen_qmdiarea.h @@ -61,7 +61,7 @@ int QMdiArea_TabShape(const QMdiArea* self); void QMdiArea_SetTabPosition(QMdiArea* self, int position); int QMdiArea_TabPosition(const QMdiArea* self); void QMdiArea_SubWindowActivated(QMdiArea* self, QMdiSubWindow* param1); -void QMdiArea_connect_SubWindowActivated(QMdiArea* self, void* slot); +void QMdiArea_connect_SubWindowActivated(QMdiArea* self, intptr_t slot); void QMdiArea_SetActiveSubWindow(QMdiArea* self, QMdiSubWindow* window); void QMdiArea_TileSubWindows(QMdiArea* self); void QMdiArea_CascadeSubWindows(QMdiArea* self); diff --git a/qt/gen_qmdisubwindow.cpp b/qt/gen_qmdisubwindow.cpp index 7bd6fb1..2950bfe 100644 --- a/qt/gen_qmdisubwindow.cpp +++ b/qt/gen_qmdisubwindow.cpp @@ -113,7 +113,7 @@ void QMdiSubWindow_WindowStateChanged(QMdiSubWindow* self, int oldState, int new self->windowStateChanged(static_cast(oldState), static_cast(newState)); } -void QMdiSubWindow_connect_WindowStateChanged(QMdiSubWindow* self, void* slot) { +void QMdiSubWindow_connect_WindowStateChanged(QMdiSubWindow* self, intptr_t slot) { QMdiSubWindow::connect(self, static_cast(&QMdiSubWindow::windowStateChanged), self, [=](Qt::WindowStates oldState, Qt::WindowStates newState) { Qt::WindowStates oldState_ret = oldState; int sigval1 = static_cast(oldState_ret); @@ -127,7 +127,7 @@ void QMdiSubWindow_AboutToActivate(QMdiSubWindow* self) { self->aboutToActivate(); } -void QMdiSubWindow_connect_AboutToActivate(QMdiSubWindow* self, void* slot) { +void QMdiSubWindow_connect_AboutToActivate(QMdiSubWindow* self, intptr_t slot) { QMdiSubWindow::connect(self, static_cast(&QMdiSubWindow::aboutToActivate), self, [=]() { miqt_exec_callback_QMdiSubWindow_AboutToActivate(slot); }); diff --git a/qt/gen_qmdisubwindow.go b/qt/gen_qmdisubwindow.go index d9c56d4..e48f168 100644 --- a/qt/gen_qmdisubwindow.go +++ b/qt/gen_qmdisubwindow.go @@ -166,12 +166,12 @@ func (this *QMdiSubWindow) WindowStateChanged(oldState WindowState, newState Win C.QMdiSubWindow_WindowStateChanged(this.h, (C.int)(oldState), (C.int)(newState)) } func (this *QMdiSubWindow) OnWindowStateChanged(slot func(oldState WindowState, newState WindowState)) { - C.QMdiSubWindow_connect_WindowStateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMdiSubWindow_connect_WindowStateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMdiSubWindow_WindowStateChanged -func miqt_exec_callback_QMdiSubWindow_WindowStateChanged(cb *C.void, oldState C.int, newState C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(oldState WindowState, newState WindowState)) +func miqt_exec_callback_QMdiSubWindow_WindowStateChanged(cb C.intptr_t, oldState C.int, newState C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(oldState WindowState, newState WindowState)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -188,12 +188,12 @@ func (this *QMdiSubWindow) AboutToActivate() { C.QMdiSubWindow_AboutToActivate(this.h) } func (this *QMdiSubWindow) OnAboutToActivate(slot func()) { - C.QMdiSubWindow_connect_AboutToActivate(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMdiSubWindow_connect_AboutToActivate(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMdiSubWindow_AboutToActivate -func miqt_exec_callback_QMdiSubWindow_AboutToActivate(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QMdiSubWindow_AboutToActivate(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qmdisubwindow.h b/qt/gen_qmdisubwindow.h index 0903e13..a3b6af6 100644 --- a/qt/gen_qmdisubwindow.h +++ b/qt/gen_qmdisubwindow.h @@ -53,9 +53,9 @@ void QMdiSubWindow_SetSystemMenu(QMdiSubWindow* self, QMenu* systemMenu); QMenu* QMdiSubWindow_SystemMenu(const QMdiSubWindow* self); QMdiArea* QMdiSubWindow_MdiArea(const QMdiSubWindow* self); void QMdiSubWindow_WindowStateChanged(QMdiSubWindow* self, int oldState, int newState); -void QMdiSubWindow_connect_WindowStateChanged(QMdiSubWindow* self, void* slot); +void QMdiSubWindow_connect_WindowStateChanged(QMdiSubWindow* self, intptr_t slot); void QMdiSubWindow_AboutToActivate(QMdiSubWindow* self); -void QMdiSubWindow_connect_AboutToActivate(QMdiSubWindow* self, void* slot); +void QMdiSubWindow_connect_AboutToActivate(QMdiSubWindow* self, intptr_t slot); void QMdiSubWindow_ShowSystemMenu(QMdiSubWindow* self); void QMdiSubWindow_ShowShaded(QMdiSubWindow* self); struct miqt_string* QMdiSubWindow_Tr2(const char* s, const char* c); diff --git a/qt/gen_qmenu.cpp b/qt/gen_qmenu.cpp index e22caa3..3cd33a9 100644 --- a/qt/gen_qmenu.cpp +++ b/qt/gen_qmenu.cpp @@ -240,7 +240,7 @@ void QMenu_AboutToShow(QMenu* self) { self->aboutToShow(); } -void QMenu_connect_AboutToShow(QMenu* self, void* slot) { +void QMenu_connect_AboutToShow(QMenu* self, intptr_t slot) { QMenu::connect(self, static_cast(&QMenu::aboutToShow), self, [=]() { miqt_exec_callback_QMenu_AboutToShow(slot); }); @@ -250,7 +250,7 @@ void QMenu_AboutToHide(QMenu* self) { self->aboutToHide(); } -void QMenu_connect_AboutToHide(QMenu* self, void* slot) { +void QMenu_connect_AboutToHide(QMenu* self, intptr_t slot) { QMenu::connect(self, static_cast(&QMenu::aboutToHide), self, [=]() { miqt_exec_callback_QMenu_AboutToHide(slot); }); @@ -260,7 +260,7 @@ void QMenu_Triggered(QMenu* self, QAction* action) { self->triggered(action); } -void QMenu_connect_Triggered(QMenu* self, void* slot) { +void QMenu_connect_Triggered(QMenu* self, intptr_t slot) { QMenu::connect(self, static_cast(&QMenu::triggered), self, [=](QAction* action) { QAction* sigval1 = action; miqt_exec_callback_QMenu_Triggered(slot, sigval1); @@ -271,7 +271,7 @@ void QMenu_Hovered(QMenu* self, QAction* action) { self->hovered(action); } -void QMenu_connect_Hovered(QMenu* self, void* slot) { +void QMenu_connect_Hovered(QMenu* self, intptr_t slot) { QMenu::connect(self, static_cast(&QMenu::hovered), self, [=](QAction* action) { QAction* sigval1 = action; miqt_exec_callback_QMenu_Hovered(slot, sigval1); diff --git a/qt/gen_qmenu.go b/qt/gen_qmenu.go index 47b0924..af22b90 100644 --- a/qt/gen_qmenu.go +++ b/qt/gen_qmenu.go @@ -299,12 +299,12 @@ func (this *QMenu) AboutToShow() { C.QMenu_AboutToShow(this.h) } func (this *QMenu) OnAboutToShow(slot func()) { - C.QMenu_connect_AboutToShow(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMenu_connect_AboutToShow(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMenu_AboutToShow -func miqt_exec_callback_QMenu_AboutToShow(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QMenu_AboutToShow(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -316,12 +316,12 @@ func (this *QMenu) AboutToHide() { C.QMenu_AboutToHide(this.h) } func (this *QMenu) OnAboutToHide(slot func()) { - C.QMenu_connect_AboutToHide(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMenu_connect_AboutToHide(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMenu_AboutToHide -func miqt_exec_callback_QMenu_AboutToHide(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QMenu_AboutToHide(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -333,12 +333,12 @@ func (this *QMenu) Triggered(action *QAction) { C.QMenu_Triggered(this.h, action.cPointer()) } func (this *QMenu) OnTriggered(slot func(action *QAction)) { - C.QMenu_connect_Triggered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMenu_connect_Triggered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMenu_Triggered -func miqt_exec_callback_QMenu_Triggered(cb *C.void, action *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(action *QAction)) +func miqt_exec_callback_QMenu_Triggered(cb C.intptr_t, action *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(action *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -353,12 +353,12 @@ func (this *QMenu) Hovered(action *QAction) { C.QMenu_Hovered(this.h, action.cPointer()) } func (this *QMenu) OnHovered(slot func(action *QAction)) { - C.QMenu_connect_Hovered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMenu_connect_Hovered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMenu_Hovered -func miqt_exec_callback_QMenu_Hovered(cb *C.void, action *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(action *QAction)) +func miqt_exec_callback_QMenu_Hovered(cb C.intptr_t, action *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(action *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qmenu.h b/qt/gen_qmenu.h index f93b523..768c18b 100644 --- a/qt/gen_qmenu.h +++ b/qt/gen_qmenu.h @@ -83,13 +83,13 @@ void QMenu_SetSeparatorsCollapsible(QMenu* self, bool collapse); bool QMenu_ToolTipsVisible(const QMenu* self); void QMenu_SetToolTipsVisible(QMenu* self, bool visible); void QMenu_AboutToShow(QMenu* self); -void QMenu_connect_AboutToShow(QMenu* self, void* slot); +void QMenu_connect_AboutToShow(QMenu* self, intptr_t slot); void QMenu_AboutToHide(QMenu* self); -void QMenu_connect_AboutToHide(QMenu* self, void* slot); +void QMenu_connect_AboutToHide(QMenu* self, intptr_t slot); void QMenu_Triggered(QMenu* self, QAction* action); -void QMenu_connect_Triggered(QMenu* self, void* slot); +void QMenu_connect_Triggered(QMenu* self, intptr_t slot); void QMenu_Hovered(QMenu* self, QAction* action); -void QMenu_connect_Hovered(QMenu* self, void* slot); +void QMenu_connect_Hovered(QMenu* self, intptr_t slot); struct miqt_string* QMenu_Tr2(const char* s, const char* c); struct miqt_string* QMenu_Tr3(const char* s, const char* c, int n); struct miqt_string* QMenu_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qmenubar.cpp b/qt/gen_qmenubar.cpp index acda6ef..5c82220 100644 --- a/qt/gen_qmenubar.cpp +++ b/qt/gen_qmenubar.cpp @@ -139,7 +139,7 @@ void QMenuBar_Triggered(QMenuBar* self, QAction* action) { self->triggered(action); } -void QMenuBar_connect_Triggered(QMenuBar* self, void* slot) { +void QMenuBar_connect_Triggered(QMenuBar* self, intptr_t slot) { QMenuBar::connect(self, static_cast(&QMenuBar::triggered), self, [=](QAction* action) { QAction* sigval1 = action; miqt_exec_callback_QMenuBar_Triggered(slot, sigval1); @@ -150,7 +150,7 @@ void QMenuBar_Hovered(QMenuBar* self, QAction* action) { self->hovered(action); } -void QMenuBar_connect_Hovered(QMenuBar* self, void* slot) { +void QMenuBar_connect_Hovered(QMenuBar* self, intptr_t slot) { QMenuBar::connect(self, static_cast(&QMenuBar::hovered), self, [=](QAction* action) { QAction* sigval1 = action; miqt_exec_callback_QMenuBar_Hovered(slot, sigval1); diff --git a/qt/gen_qmenubar.go b/qt/gen_qmenubar.go index 451da94..7fc2f52 100644 --- a/qt/gen_qmenubar.go +++ b/qt/gen_qmenubar.go @@ -184,12 +184,12 @@ func (this *QMenuBar) Triggered(action *QAction) { C.QMenuBar_Triggered(this.h, action.cPointer()) } func (this *QMenuBar) OnTriggered(slot func(action *QAction)) { - C.QMenuBar_connect_Triggered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMenuBar_connect_Triggered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMenuBar_Triggered -func miqt_exec_callback_QMenuBar_Triggered(cb *C.void, action *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(action *QAction)) +func miqt_exec_callback_QMenuBar_Triggered(cb C.intptr_t, action *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(action *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -204,12 +204,12 @@ func (this *QMenuBar) Hovered(action *QAction) { C.QMenuBar_Hovered(this.h, action.cPointer()) } func (this *QMenuBar) OnHovered(slot func(action *QAction)) { - C.QMenuBar_connect_Hovered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMenuBar_connect_Hovered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMenuBar_Hovered -func miqt_exec_callback_QMenuBar_Hovered(cb *C.void, action *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(action *QAction)) +func miqt_exec_callback_QMenuBar_Hovered(cb C.intptr_t, action *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(action *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qmenubar.h b/qt/gen_qmenubar.h index aaa6a0e..2e55120 100644 --- a/qt/gen_qmenubar.h +++ b/qt/gen_qmenubar.h @@ -64,9 +64,9 @@ bool QMenuBar_IsNativeMenuBar(const QMenuBar* self); void QMenuBar_SetNativeMenuBar(QMenuBar* self, bool nativeMenuBar); void QMenuBar_SetVisible(QMenuBar* self, bool visible); void QMenuBar_Triggered(QMenuBar* self, QAction* action); -void QMenuBar_connect_Triggered(QMenuBar* self, void* slot); +void QMenuBar_connect_Triggered(QMenuBar* self, intptr_t slot); void QMenuBar_Hovered(QMenuBar* self, QAction* action); -void QMenuBar_connect_Hovered(QMenuBar* self, void* slot); +void QMenuBar_connect_Hovered(QMenuBar* self, intptr_t slot); struct miqt_string* QMenuBar_Tr2(const char* s, const char* c); struct miqt_string* QMenuBar_Tr3(const char* s, const char* c, int n); struct miqt_string* QMenuBar_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qmessagebox.cpp b/qt/gen_qmessagebox.cpp index c98a824..23cd878 100644 --- a/qt/gen_qmessagebox.cpp +++ b/qt/gen_qmessagebox.cpp @@ -389,7 +389,7 @@ void QMessageBox_ButtonClicked(QMessageBox* self, QAbstractButton* button) { self->buttonClicked(button); } -void QMessageBox_connect_ButtonClicked(QMessageBox* self, void* slot) { +void QMessageBox_connect_ButtonClicked(QMessageBox* self, intptr_t slot) { QMessageBox::connect(self, static_cast(&QMessageBox::buttonClicked), self, [=](QAbstractButton* button) { QAbstractButton* sigval1 = button; miqt_exec_callback_QMessageBox_ButtonClicked(slot, sigval1); diff --git a/qt/gen_qmessagebox.go b/qt/gen_qmessagebox.go index 6bbb687..bba367b 100644 --- a/qt/gen_qmessagebox.go +++ b/qt/gen_qmessagebox.go @@ -546,12 +546,12 @@ func (this *QMessageBox) ButtonClicked(button *QAbstractButton) { C.QMessageBox_ButtonClicked(this.h, button.cPointer()) } func (this *QMessageBox) OnButtonClicked(slot func(button *QAbstractButton)) { - C.QMessageBox_connect_ButtonClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMessageBox_connect_ButtonClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMessageBox_ButtonClicked -func miqt_exec_callback_QMessageBox_ButtonClicked(cb *C.void, button *C.QAbstractButton) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(button *QAbstractButton)) +func miqt_exec_callback_QMessageBox_ButtonClicked(cb C.intptr_t, button *C.QAbstractButton) { + gofunc, ok := cgo.Handle(cb).Value().(func(button *QAbstractButton)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qmessagebox.h b/qt/gen_qmessagebox.h index a3b0e0a..77621ce 100644 --- a/qt/gen_qmessagebox.h +++ b/qt/gen_qmessagebox.h @@ -101,7 +101,7 @@ void QMessageBox_SetWindowTitle(QMessageBox* self, struct miqt_string* title); void QMessageBox_SetWindowModality(QMessageBox* self, int windowModality); QPixmap* QMessageBox_StandardIcon(int icon); void QMessageBox_ButtonClicked(QMessageBox* self, QAbstractButton* button); -void QMessageBox_connect_ButtonClicked(QMessageBox* self, void* slot); +void QMessageBox_connect_ButtonClicked(QMessageBox* self, intptr_t slot); struct miqt_string* QMessageBox_Tr2(const char* s, const char* c); struct miqt_string* QMessageBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QMessageBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qmovie.cpp b/qt/gen_qmovie.cpp index 70d9050..a2cde5e 100644 --- a/qt/gen_qmovie.cpp +++ b/qt/gen_qmovie.cpp @@ -200,7 +200,7 @@ void QMovie_Started(QMovie* self) { self->started(); } -void QMovie_connect_Started(QMovie* self, void* slot) { +void QMovie_connect_Started(QMovie* self, intptr_t slot) { QMovie::connect(self, static_cast(&QMovie::started), self, [=]() { miqt_exec_callback_QMovie_Started(slot); }); @@ -210,7 +210,7 @@ void QMovie_Resized(QMovie* self, QSize* size) { self->resized(*size); } -void QMovie_connect_Resized(QMovie* self, void* slot) { +void QMovie_connect_Resized(QMovie* self, intptr_t slot) { QMovie::connect(self, static_cast(&QMovie::resized), self, [=](const QSize& size) { const QSize& size_ret = size; // Cast returned reference into pointer @@ -223,7 +223,7 @@ void QMovie_Updated(QMovie* self, QRect* rect) { self->updated(*rect); } -void QMovie_connect_Updated(QMovie* self, void* slot) { +void QMovie_connect_Updated(QMovie* self, intptr_t slot) { QMovie::connect(self, static_cast(&QMovie::updated), self, [=](const QRect& rect) { const QRect& rect_ret = rect; // Cast returned reference into pointer @@ -236,7 +236,7 @@ void QMovie_StateChanged(QMovie* self, int state) { self->stateChanged(static_cast(state)); } -void QMovie_connect_StateChanged(QMovie* self, void* slot) { +void QMovie_connect_StateChanged(QMovie* self, intptr_t slot) { QMovie::connect(self, static_cast(&QMovie::stateChanged), self, [=](QMovie::MovieState state) { QMovie::MovieState state_ret = state; int sigval1 = static_cast(state_ret); @@ -248,7 +248,7 @@ void QMovie_Error(QMovie* self, int error) { self->error(static_cast(error)); } -void QMovie_connect_Error(QMovie* self, void* slot) { +void QMovie_connect_Error(QMovie* self, intptr_t slot) { QMovie::connect(self, static_cast(&QMovie::error), self, [=](QImageReader::ImageReaderError error) { QImageReader::ImageReaderError error_ret = error; int sigval1 = static_cast(error_ret); @@ -260,7 +260,7 @@ void QMovie_Finished(QMovie* self) { self->finished(); } -void QMovie_connect_Finished(QMovie* self, void* slot) { +void QMovie_connect_Finished(QMovie* self, intptr_t slot) { QMovie::connect(self, static_cast(&QMovie::finished), self, [=]() { miqt_exec_callback_QMovie_Finished(slot); }); @@ -270,7 +270,7 @@ void QMovie_FrameChanged(QMovie* self, int frameNumber) { self->frameChanged(static_cast(frameNumber)); } -void QMovie_connect_FrameChanged(QMovie* self, void* slot) { +void QMovie_connect_FrameChanged(QMovie* self, intptr_t slot) { QMovie::connect(self, static_cast(&QMovie::frameChanged), self, [=](int frameNumber) { int sigval1 = frameNumber; miqt_exec_callback_QMovie_FrameChanged(slot, sigval1); diff --git a/qt/gen_qmovie.go b/qt/gen_qmovie.go index e4ef212..6e77009 100644 --- a/qt/gen_qmovie.go +++ b/qt/gen_qmovie.go @@ -278,12 +278,12 @@ func (this *QMovie) Started() { C.QMovie_Started(this.h) } func (this *QMovie) OnStarted(slot func()) { - C.QMovie_connect_Started(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMovie_connect_Started(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMovie_Started -func miqt_exec_callback_QMovie_Started(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QMovie_Started(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -295,12 +295,12 @@ func (this *QMovie) Resized(size *QSize) { C.QMovie_Resized(this.h, size.cPointer()) } func (this *QMovie) OnResized(slot func(size *QSize)) { - C.QMovie_connect_Resized(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMovie_connect_Resized(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMovie_Resized -func miqt_exec_callback_QMovie_Resized(cb *C.void, size *C.QSize) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(size *QSize)) +func miqt_exec_callback_QMovie_Resized(cb C.intptr_t, size *C.QSize) { + gofunc, ok := cgo.Handle(cb).Value().(func(size *QSize)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -315,12 +315,12 @@ func (this *QMovie) Updated(rect *QRect) { C.QMovie_Updated(this.h, rect.cPointer()) } func (this *QMovie) OnUpdated(slot func(rect *QRect)) { - C.QMovie_connect_Updated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMovie_connect_Updated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMovie_Updated -func miqt_exec_callback_QMovie_Updated(cb *C.void, rect *C.QRect) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(rect *QRect)) +func miqt_exec_callback_QMovie_Updated(cb C.intptr_t, rect *C.QRect) { + gofunc, ok := cgo.Handle(cb).Value().(func(rect *QRect)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -335,12 +335,12 @@ func (this *QMovie) StateChanged(state QMovie__MovieState) { C.QMovie_StateChanged(this.h, (C.int)(state)) } func (this *QMovie) OnStateChanged(slot func(state QMovie__MovieState)) { - C.QMovie_connect_StateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMovie_connect_StateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMovie_StateChanged -func miqt_exec_callback_QMovie_StateChanged(cb *C.void, state C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(state QMovie__MovieState)) +func miqt_exec_callback_QMovie_StateChanged(cb C.intptr_t, state C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(state QMovie__MovieState)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -355,12 +355,12 @@ func (this *QMovie) Error(error QImageReader__ImageReaderError) { C.QMovie_Error(this.h, (C.int)(error)) } func (this *QMovie) OnError(slot func(error QImageReader__ImageReaderError)) { - C.QMovie_connect_Error(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMovie_connect_Error(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMovie_Error -func miqt_exec_callback_QMovie_Error(cb *C.void, error C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(error QImageReader__ImageReaderError)) +func miqt_exec_callback_QMovie_Error(cb C.intptr_t, error C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(error QImageReader__ImageReaderError)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -375,12 +375,12 @@ func (this *QMovie) Finished() { C.QMovie_Finished(this.h) } func (this *QMovie) OnFinished(slot func()) { - C.QMovie_connect_Finished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMovie_connect_Finished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMovie_Finished -func miqt_exec_callback_QMovie_Finished(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QMovie_Finished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -392,12 +392,12 @@ func (this *QMovie) FrameChanged(frameNumber int) { C.QMovie_FrameChanged(this.h, (C.int)(frameNumber)) } func (this *QMovie) OnFrameChanged(slot func(frameNumber int)) { - C.QMovie_connect_FrameChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QMovie_connect_FrameChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QMovie_FrameChanged -func miqt_exec_callback_QMovie_FrameChanged(cb *C.void, frameNumber C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(frameNumber int)) +func miqt_exec_callback_QMovie_FrameChanged(cb C.intptr_t, frameNumber C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(frameNumber int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qmovie.h b/qt/gen_qmovie.h index aa96712..afe5843 100644 --- a/qt/gen_qmovie.h +++ b/qt/gen_qmovie.h @@ -76,19 +76,19 @@ void QMovie_SetScaledSize(QMovie* self, QSize* size); int QMovie_CacheMode(const QMovie* self); void QMovie_SetCacheMode(QMovie* self, int mode); void QMovie_Started(QMovie* self); -void QMovie_connect_Started(QMovie* self, void* slot); +void QMovie_connect_Started(QMovie* self, intptr_t slot); void QMovie_Resized(QMovie* self, QSize* size); -void QMovie_connect_Resized(QMovie* self, void* slot); +void QMovie_connect_Resized(QMovie* self, intptr_t slot); void QMovie_Updated(QMovie* self, QRect* rect); -void QMovie_connect_Updated(QMovie* self, void* slot); +void QMovie_connect_Updated(QMovie* self, intptr_t slot); void QMovie_StateChanged(QMovie* self, int state); -void QMovie_connect_StateChanged(QMovie* self, void* slot); +void QMovie_connect_StateChanged(QMovie* self, intptr_t slot); void QMovie_Error(QMovie* self, int error); -void QMovie_connect_Error(QMovie* self, void* slot); +void QMovie_connect_Error(QMovie* self, intptr_t slot); void QMovie_Finished(QMovie* self); -void QMovie_connect_Finished(QMovie* self, void* slot); +void QMovie_connect_Finished(QMovie* self, intptr_t slot); void QMovie_FrameChanged(QMovie* self, int frameNumber); -void QMovie_connect_FrameChanged(QMovie* self, void* slot); +void QMovie_connect_FrameChanged(QMovie* self, intptr_t slot); void QMovie_Start(QMovie* self); bool QMovie_JumpToNextFrame(QMovie* self); void QMovie_SetPaused(QMovie* self, bool paused); diff --git a/qt/gen_qobject.cpp b/qt/gen_qobject.cpp index bb72a41..8b745d6 100644 --- a/qt/gen_qobject.cpp +++ b/qt/gen_qobject.cpp @@ -202,7 +202,7 @@ void QObject_Destroyed(QObject* self) { self->destroyed(); } -void QObject_connect_Destroyed(QObject* self, void* slot) { +void QObject_connect_Destroyed(QObject* self, intptr_t slot) { QObject::connect(self, static_cast(&QObject::destroyed), self, [=]() { miqt_exec_callback_QObject_Destroyed(slot); }); @@ -264,7 +264,7 @@ void QObject_Destroyed1(QObject* self, QObject* param1) { self->destroyed(param1); } -void QObject_connect_Destroyed1(QObject* self, void* slot) { +void QObject_connect_Destroyed1(QObject* self, intptr_t slot) { QObject::connect(self, static_cast(&QObject::destroyed), self, [=](QObject* param1) { QObject* sigval1 = param1; miqt_exec_callback_QObject_Destroyed1(slot, sigval1); diff --git a/qt/gen_qobject.go b/qt/gen_qobject.go index c115095..b137766 100644 --- a/qt/gen_qobject.go +++ b/qt/gen_qobject.go @@ -285,12 +285,12 @@ func (this *QObject) Destroyed() { C.QObject_Destroyed(this.h) } func (this *QObject) OnDestroyed(slot func()) { - C.QObject_connect_Destroyed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QObject_connect_Destroyed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QObject_Destroyed -func miqt_exec_callback_QObject_Destroyed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QObject_Destroyed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -382,12 +382,12 @@ func (this *QObject) Destroyed1(param1 *QObject) { C.QObject_Destroyed1(this.h, param1.cPointer()) } func (this *QObject) OnDestroyed1(slot func(param1 *QObject)) { - C.QObject_connect_Destroyed1(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QObject_connect_Destroyed1(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QObject_Destroyed1 -func miqt_exec_callback_QObject_Destroyed1(cb *C.void, param1 *C.QObject) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QObject)) +func miqt_exec_callback_QObject_Destroyed1(cb C.intptr_t, param1 *C.QObject) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QObject)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qobject.h b/qt/gen_qobject.h index 5f8a566..73cda44 100644 --- a/qt/gen_qobject.h +++ b/qt/gen_qobject.h @@ -83,7 +83,7 @@ unsigned int QObject_RegisterUserData(); void QObject_SetUserData(QObject* self, unsigned int id, QObjectUserData* data); QObjectUserData* QObject_UserData(const QObject* self, unsigned int id); void QObject_Destroyed(QObject* self); -void QObject_connect_Destroyed(QObject* self, void* slot); +void QObject_connect_Destroyed(QObject* self, intptr_t slot); QObject* QObject_Parent(const QObject* self); bool QObject_Inherits(const QObject* self, const char* classname); void QObject_DeleteLater(QObject* self); @@ -95,7 +95,7 @@ int QObject_StartTimer2(QObject* self, int interval, int timerType); QMetaObject__Connection* QObject_Connect5(QObject* sender, QMetaMethod* signal, QObject* receiver, QMetaMethod* method, int typeVal); QMetaObject__Connection* QObject_Connect4(const QObject* self, QObject* sender, const char* signal, const char* member, int typeVal); void QObject_Destroyed1(QObject* self, QObject* param1); -void QObject_connect_Destroyed1(QObject* self, void* slot); +void QObject_connect_Destroyed1(QObject* self, intptr_t slot); void QObject_Delete(QObject* self); QObjectUserData* QObjectUserData_new(); diff --git a/qt/gen_qoffscreensurface.cpp b/qt/gen_qoffscreensurface.cpp index efac358..8277d3e 100644 --- a/qt/gen_qoffscreensurface.cpp +++ b/qt/gen_qoffscreensurface.cpp @@ -98,7 +98,7 @@ void QOffscreenSurface_ScreenChanged(QOffscreenSurface* self, QScreen* screen) { self->screenChanged(screen); } -void QOffscreenSurface_connect_ScreenChanged(QOffscreenSurface* self, void* slot) { +void QOffscreenSurface_connect_ScreenChanged(QOffscreenSurface* self, intptr_t slot) { QOffscreenSurface::connect(self, static_cast(&QOffscreenSurface::screenChanged), self, [=](QScreen* screen) { QScreen* sigval1 = screen; miqt_exec_callback_QOffscreenSurface_ScreenChanged(slot, sigval1); diff --git a/qt/gen_qoffscreensurface.go b/qt/gen_qoffscreensurface.go index d57539d..6dcd5ef 100644 --- a/qt/gen_qoffscreensurface.go +++ b/qt/gen_qoffscreensurface.go @@ -145,12 +145,12 @@ func (this *QOffscreenSurface) ScreenChanged(screen *QScreen) { C.QOffscreenSurface_ScreenChanged(this.h, screen.cPointer()) } func (this *QOffscreenSurface) OnScreenChanged(slot func(screen *QScreen)) { - C.QOffscreenSurface_connect_ScreenChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QOffscreenSurface_connect_ScreenChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QOffscreenSurface_ScreenChanged -func miqt_exec_callback_QOffscreenSurface_ScreenChanged(cb *C.void, screen *C.QScreen) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(screen *QScreen)) +func miqt_exec_callback_QOffscreenSurface_ScreenChanged(cb C.intptr_t, screen *C.QScreen) { + gofunc, ok := cgo.Handle(cb).Value().(func(screen *QScreen)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qoffscreensurface.h b/qt/gen_qoffscreensurface.h index 3d462a4..4f418c2 100644 --- a/qt/gen_qoffscreensurface.h +++ b/qt/gen_qoffscreensurface.h @@ -49,7 +49,7 @@ void QOffscreenSurface_SetScreen(QOffscreenSurface* self, QScreen* screen); void* QOffscreenSurface_NativeHandle(const QOffscreenSurface* self); void QOffscreenSurface_SetNativeHandle(QOffscreenSurface* self, void* handle); void QOffscreenSurface_ScreenChanged(QOffscreenSurface* self, QScreen* screen); -void QOffscreenSurface_connect_ScreenChanged(QOffscreenSurface* self, void* slot); +void QOffscreenSurface_connect_ScreenChanged(QOffscreenSurface* self, intptr_t slot); struct miqt_string* QOffscreenSurface_Tr2(const char* s, const char* c); struct miqt_string* QOffscreenSurface_Tr3(const char* s, const char* c, int n); struct miqt_string* QOffscreenSurface_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qplaintextedit.cpp b/qt/gen_qplaintextedit.cpp index edd499d..41eae86 100644 --- a/qt/gen_qplaintextedit.cpp +++ b/qt/gen_qplaintextedit.cpp @@ -395,7 +395,7 @@ void QPlainTextEdit_TextChanged(QPlainTextEdit* self) { self->textChanged(); } -void QPlainTextEdit_connect_TextChanged(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_TextChanged(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::textChanged), self, [=]() { miqt_exec_callback_QPlainTextEdit_TextChanged(slot); }); @@ -405,7 +405,7 @@ void QPlainTextEdit_UndoAvailable(QPlainTextEdit* self, bool b) { self->undoAvailable(b); } -void QPlainTextEdit_connect_UndoAvailable(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_UndoAvailable(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::undoAvailable), self, [=](bool b) { bool sigval1 = b; miqt_exec_callback_QPlainTextEdit_UndoAvailable(slot, sigval1); @@ -416,7 +416,7 @@ void QPlainTextEdit_RedoAvailable(QPlainTextEdit* self, bool b) { self->redoAvailable(b); } -void QPlainTextEdit_connect_RedoAvailable(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_RedoAvailable(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::redoAvailable), self, [=](bool b) { bool sigval1 = b; miqt_exec_callback_QPlainTextEdit_RedoAvailable(slot, sigval1); @@ -427,7 +427,7 @@ void QPlainTextEdit_CopyAvailable(QPlainTextEdit* self, bool b) { self->copyAvailable(b); } -void QPlainTextEdit_connect_CopyAvailable(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_CopyAvailable(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::copyAvailable), self, [=](bool b) { bool sigval1 = b; miqt_exec_callback_QPlainTextEdit_CopyAvailable(slot, sigval1); @@ -438,7 +438,7 @@ void QPlainTextEdit_SelectionChanged(QPlainTextEdit* self) { self->selectionChanged(); } -void QPlainTextEdit_connect_SelectionChanged(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_SelectionChanged(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::selectionChanged), self, [=]() { miqt_exec_callback_QPlainTextEdit_SelectionChanged(slot); }); @@ -448,7 +448,7 @@ void QPlainTextEdit_CursorPositionChanged(QPlainTextEdit* self) { self->cursorPositionChanged(); } -void QPlainTextEdit_connect_CursorPositionChanged(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_CursorPositionChanged(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::cursorPositionChanged), self, [=]() { miqt_exec_callback_QPlainTextEdit_CursorPositionChanged(slot); }); @@ -458,7 +458,7 @@ void QPlainTextEdit_UpdateRequest(QPlainTextEdit* self, QRect* rect, int dy) { self->updateRequest(*rect, static_cast(dy)); } -void QPlainTextEdit_connect_UpdateRequest(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_UpdateRequest(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::updateRequest), self, [=](const QRect& rect, int dy) { const QRect& rect_ret = rect; // Cast returned reference into pointer @@ -472,7 +472,7 @@ void QPlainTextEdit_BlockCountChanged(QPlainTextEdit* self, int newBlockCount) { self->blockCountChanged(static_cast(newBlockCount)); } -void QPlainTextEdit_connect_BlockCountChanged(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_BlockCountChanged(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::blockCountChanged), self, [=](int newBlockCount) { int sigval1 = newBlockCount; miqt_exec_callback_QPlainTextEdit_BlockCountChanged(slot, sigval1); @@ -483,7 +483,7 @@ void QPlainTextEdit_ModificationChanged(QPlainTextEdit* self, bool param1) { self->modificationChanged(param1); } -void QPlainTextEdit_connect_ModificationChanged(QPlainTextEdit* self, void* slot) { +void QPlainTextEdit_connect_ModificationChanged(QPlainTextEdit* self, intptr_t slot) { QPlainTextEdit::connect(self, static_cast(&QPlainTextEdit::modificationChanged), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QPlainTextEdit_ModificationChanged(slot, sigval1); diff --git a/qt/gen_qplaintextedit.go b/qt/gen_qplaintextedit.go index 0f45a4f..a74aa10 100644 --- a/qt/gen_qplaintextedit.go +++ b/qt/gen_qplaintextedit.go @@ -456,12 +456,12 @@ func (this *QPlainTextEdit) TextChanged() { C.QPlainTextEdit_TextChanged(this.h) } func (this *QPlainTextEdit) OnTextChanged(slot func()) { - C.QPlainTextEdit_connect_TextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_TextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_TextChanged -func miqt_exec_callback_QPlainTextEdit_TextChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QPlainTextEdit_TextChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -473,12 +473,12 @@ func (this *QPlainTextEdit) UndoAvailable(b bool) { C.QPlainTextEdit_UndoAvailable(this.h, (C.bool)(b)) } func (this *QPlainTextEdit) OnUndoAvailable(slot func(b bool)) { - C.QPlainTextEdit_connect_UndoAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_UndoAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_UndoAvailable -func miqt_exec_callback_QPlainTextEdit_UndoAvailable(cb *C.void, b C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(b bool)) +func miqt_exec_callback_QPlainTextEdit_UndoAvailable(cb C.intptr_t, b C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(b bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -493,12 +493,12 @@ func (this *QPlainTextEdit) RedoAvailable(b bool) { C.QPlainTextEdit_RedoAvailable(this.h, (C.bool)(b)) } func (this *QPlainTextEdit) OnRedoAvailable(slot func(b bool)) { - C.QPlainTextEdit_connect_RedoAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_RedoAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_RedoAvailable -func miqt_exec_callback_QPlainTextEdit_RedoAvailable(cb *C.void, b C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(b bool)) +func miqt_exec_callback_QPlainTextEdit_RedoAvailable(cb C.intptr_t, b C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(b bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -513,12 +513,12 @@ func (this *QPlainTextEdit) CopyAvailable(b bool) { C.QPlainTextEdit_CopyAvailable(this.h, (C.bool)(b)) } func (this *QPlainTextEdit) OnCopyAvailable(slot func(b bool)) { - C.QPlainTextEdit_connect_CopyAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_CopyAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_CopyAvailable -func miqt_exec_callback_QPlainTextEdit_CopyAvailable(cb *C.void, b C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(b bool)) +func miqt_exec_callback_QPlainTextEdit_CopyAvailable(cb C.intptr_t, b C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(b bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -533,12 +533,12 @@ func (this *QPlainTextEdit) SelectionChanged() { C.QPlainTextEdit_SelectionChanged(this.h) } func (this *QPlainTextEdit) OnSelectionChanged(slot func()) { - C.QPlainTextEdit_connect_SelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_SelectionChanged -func miqt_exec_callback_QPlainTextEdit_SelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QPlainTextEdit_SelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -550,12 +550,12 @@ func (this *QPlainTextEdit) CursorPositionChanged() { C.QPlainTextEdit_CursorPositionChanged(this.h) } func (this *QPlainTextEdit) OnCursorPositionChanged(slot func()) { - C.QPlainTextEdit_connect_CursorPositionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_CursorPositionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_CursorPositionChanged -func miqt_exec_callback_QPlainTextEdit_CursorPositionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QPlainTextEdit_CursorPositionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -567,12 +567,12 @@ func (this *QPlainTextEdit) UpdateRequest(rect *QRect, dy int) { C.QPlainTextEdit_UpdateRequest(this.h, rect.cPointer(), (C.int)(dy)) } func (this *QPlainTextEdit) OnUpdateRequest(slot func(rect *QRect, dy int)) { - C.QPlainTextEdit_connect_UpdateRequest(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_UpdateRequest(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_UpdateRequest -func miqt_exec_callback_QPlainTextEdit_UpdateRequest(cb *C.void, rect *C.QRect, dy C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(rect *QRect, dy int)) +func miqt_exec_callback_QPlainTextEdit_UpdateRequest(cb C.intptr_t, rect *C.QRect, dy C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(rect *QRect, dy int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -588,12 +588,12 @@ func (this *QPlainTextEdit) BlockCountChanged(newBlockCount int) { C.QPlainTextEdit_BlockCountChanged(this.h, (C.int)(newBlockCount)) } func (this *QPlainTextEdit) OnBlockCountChanged(slot func(newBlockCount int)) { - C.QPlainTextEdit_connect_BlockCountChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_BlockCountChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_BlockCountChanged -func miqt_exec_callback_QPlainTextEdit_BlockCountChanged(cb *C.void, newBlockCount C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newBlockCount int)) +func miqt_exec_callback_QPlainTextEdit_BlockCountChanged(cb C.intptr_t, newBlockCount C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(newBlockCount int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -608,12 +608,12 @@ func (this *QPlainTextEdit) ModificationChanged(param1 bool) { C.QPlainTextEdit_ModificationChanged(this.h, (C.bool)(param1)) } func (this *QPlainTextEdit) OnModificationChanged(slot func(param1 bool)) { - C.QPlainTextEdit_connect_ModificationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QPlainTextEdit_connect_ModificationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QPlainTextEdit_ModificationChanged -func miqt_exec_callback_QPlainTextEdit_ModificationChanged(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QPlainTextEdit_ModificationChanged(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qplaintextedit.h b/qt/gen_qplaintextedit.h index 7084ce2..9872804 100644 --- a/qt/gen_qplaintextedit.h +++ b/qt/gen_qplaintextedit.h @@ -151,23 +151,23 @@ void QPlainTextEdit_CenterCursor(QPlainTextEdit* self); void QPlainTextEdit_ZoomIn(QPlainTextEdit* self); void QPlainTextEdit_ZoomOut(QPlainTextEdit* self); void QPlainTextEdit_TextChanged(QPlainTextEdit* self); -void QPlainTextEdit_connect_TextChanged(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_TextChanged(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_UndoAvailable(QPlainTextEdit* self, bool b); -void QPlainTextEdit_connect_UndoAvailable(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_UndoAvailable(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_RedoAvailable(QPlainTextEdit* self, bool b); -void QPlainTextEdit_connect_RedoAvailable(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_RedoAvailable(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_CopyAvailable(QPlainTextEdit* self, bool b); -void QPlainTextEdit_connect_CopyAvailable(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_CopyAvailable(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_SelectionChanged(QPlainTextEdit* self); -void QPlainTextEdit_connect_SelectionChanged(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_SelectionChanged(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_CursorPositionChanged(QPlainTextEdit* self); -void QPlainTextEdit_connect_CursorPositionChanged(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_CursorPositionChanged(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_UpdateRequest(QPlainTextEdit* self, QRect* rect, int dy); -void QPlainTextEdit_connect_UpdateRequest(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_UpdateRequest(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_BlockCountChanged(QPlainTextEdit* self, int newBlockCount); -void QPlainTextEdit_connect_BlockCountChanged(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_BlockCountChanged(QPlainTextEdit* self, intptr_t slot); void QPlainTextEdit_ModificationChanged(QPlainTextEdit* self, bool param1); -void QPlainTextEdit_connect_ModificationChanged(QPlainTextEdit* self, void* slot); +void QPlainTextEdit_connect_ModificationChanged(QPlainTextEdit* self, intptr_t slot); struct miqt_string* QPlainTextEdit_Tr2(const char* s, const char* c); struct miqt_string* QPlainTextEdit_Tr3(const char* s, const char* c, int n); struct miqt_string* QPlainTextEdit_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qprocess.cpp b/qt/gen_qprocess.cpp index bb18938..6a925f1 100644 --- a/qt/gen_qprocess.cpp +++ b/qt/gen_qprocess.cpp @@ -494,7 +494,7 @@ void QProcess_Finished(QProcess* self, int exitCode) { self->finished(static_cast(exitCode)); } -void QProcess_connect_Finished(QProcess* self, void* slot) { +void QProcess_connect_Finished(QProcess* self, intptr_t slot) { QProcess::connect(self, static_cast(&QProcess::finished), self, [=](int exitCode) { int sigval1 = exitCode; miqt_exec_callback_QProcess_Finished(slot, sigval1); @@ -505,7 +505,7 @@ void QProcess_Finished2(QProcess* self, int exitCode, int exitStatus) { self->finished(static_cast(exitCode), static_cast(exitStatus)); } -void QProcess_connect_Finished2(QProcess* self, void* slot) { +void QProcess_connect_Finished2(QProcess* self, intptr_t slot) { QProcess::connect(self, static_cast(&QProcess::finished), self, [=](int exitCode, QProcess::ExitStatus exitStatus) { int sigval1 = exitCode; QProcess::ExitStatus exitStatus_ret = exitStatus; @@ -518,7 +518,7 @@ void QProcess_ErrorWithError(QProcess* self, int error) { self->error(static_cast(error)); } -void QProcess_connect_ErrorWithError(QProcess* self, void* slot) { +void QProcess_connect_ErrorWithError(QProcess* self, intptr_t slot) { QProcess::connect(self, static_cast(&QProcess::error), self, [=](QProcess::ProcessError error) { QProcess::ProcessError error_ret = error; int sigval1 = static_cast(error_ret); @@ -530,7 +530,7 @@ void QProcess_ErrorOccurred(QProcess* self, int error) { self->errorOccurred(static_cast(error)); } -void QProcess_connect_ErrorOccurred(QProcess* self, void* slot) { +void QProcess_connect_ErrorOccurred(QProcess* self, intptr_t slot) { QProcess::connect(self, static_cast(&QProcess::errorOccurred), self, [=](QProcess::ProcessError error) { QProcess::ProcessError error_ret = error; int sigval1 = static_cast(error_ret); diff --git a/qt/gen_qprocess.go b/qt/gen_qprocess.go index c350f46..40c0fae 100644 --- a/qt/gen_qprocess.go +++ b/qt/gen_qprocess.go @@ -644,12 +644,12 @@ func (this *QProcess) Finished(exitCode int) { C.QProcess_Finished(this.h, (C.int)(exitCode)) } func (this *QProcess) OnFinished(slot func(exitCode int)) { - C.QProcess_connect_Finished(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QProcess_connect_Finished(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QProcess_Finished -func miqt_exec_callback_QProcess_Finished(cb *C.void, exitCode C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(exitCode int)) +func miqt_exec_callback_QProcess_Finished(cb C.intptr_t, exitCode C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(exitCode int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -664,12 +664,12 @@ func (this *QProcess) Finished2(exitCode int, exitStatus QProcess__ExitStatus) { C.QProcess_Finished2(this.h, (C.int)(exitCode), (C.int)(exitStatus)) } func (this *QProcess) OnFinished2(slot func(exitCode int, exitStatus QProcess__ExitStatus)) { - C.QProcess_connect_Finished2(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QProcess_connect_Finished2(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QProcess_Finished2 -func miqt_exec_callback_QProcess_Finished2(cb *C.void, exitCode C.int, exitStatus C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(exitCode int, exitStatus QProcess__ExitStatus)) +func miqt_exec_callback_QProcess_Finished2(cb C.intptr_t, exitCode C.int, exitStatus C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(exitCode int, exitStatus QProcess__ExitStatus)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -686,12 +686,12 @@ func (this *QProcess) ErrorWithError(error QProcess__ProcessError) { C.QProcess_ErrorWithError(this.h, (C.int)(error)) } func (this *QProcess) OnErrorWithError(slot func(error QProcess__ProcessError)) { - C.QProcess_connect_ErrorWithError(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QProcess_connect_ErrorWithError(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QProcess_ErrorWithError -func miqt_exec_callback_QProcess_ErrorWithError(cb *C.void, error C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(error QProcess__ProcessError)) +func miqt_exec_callback_QProcess_ErrorWithError(cb C.intptr_t, error C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(error QProcess__ProcessError)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -706,12 +706,12 @@ func (this *QProcess) ErrorOccurred(error QProcess__ProcessError) { C.QProcess_ErrorOccurred(this.h, (C.int)(error)) } func (this *QProcess) OnErrorOccurred(slot func(error QProcess__ProcessError)) { - C.QProcess_connect_ErrorOccurred(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QProcess_connect_ErrorOccurred(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QProcess_ErrorOccurred -func miqt_exec_callback_QProcess_ErrorOccurred(cb *C.void, error C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(error QProcess__ProcessError)) +func miqt_exec_callback_QProcess_ErrorOccurred(cb C.intptr_t, error C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(error QProcess__ProcessError)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qprocess.h b/qt/gen_qprocess.h index d8da0ea..2e58921 100644 --- a/qt/gen_qprocess.h +++ b/qt/gen_qprocess.h @@ -109,13 +109,13 @@ struct miqt_string* QProcess_NullDevice(); void QProcess_Terminate(QProcess* self); void QProcess_Kill(QProcess* self); void QProcess_Finished(QProcess* self, int exitCode); -void QProcess_connect_Finished(QProcess* self, void* slot); +void QProcess_connect_Finished(QProcess* self, intptr_t slot); void QProcess_Finished2(QProcess* self, int exitCode, int exitStatus); -void QProcess_connect_Finished2(QProcess* self, void* slot); +void QProcess_connect_Finished2(QProcess* self, intptr_t slot); void QProcess_ErrorWithError(QProcess* self, int error); -void QProcess_connect_ErrorWithError(QProcess* self, void* slot); +void QProcess_connect_ErrorWithError(QProcess* self, intptr_t slot); void QProcess_ErrorOccurred(QProcess* self, int error); -void QProcess_connect_ErrorOccurred(QProcess* self, void* slot); +void QProcess_connect_ErrorOccurred(QProcess* self, intptr_t slot); struct miqt_string* QProcess_Tr2(const char* s, const char* c); struct miqt_string* QProcess_Tr3(const char* s, const char* c, int n); struct miqt_string* QProcess_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qprogressbar.cpp b/qt/gen_qprogressbar.cpp index 9c5f5d3..d936619 100644 --- a/qt/gen_qprogressbar.cpp +++ b/qt/gen_qprogressbar.cpp @@ -149,7 +149,7 @@ void QProgressBar_ValueChanged(QProgressBar* self, int value) { self->valueChanged(static_cast(value)); } -void QProgressBar_connect_ValueChanged(QProgressBar* self, void* slot) { +void QProgressBar_connect_ValueChanged(QProgressBar* self, intptr_t slot) { QProgressBar::connect(self, static_cast(&QProgressBar::valueChanged), self, [=](int value) { int sigval1 = value; miqt_exec_callback_QProgressBar_ValueChanged(slot, sigval1); diff --git a/qt/gen_qprogressbar.go b/qt/gen_qprogressbar.go index c826b12..2069ef8 100644 --- a/qt/gen_qprogressbar.go +++ b/qt/gen_qprogressbar.go @@ -198,12 +198,12 @@ func (this *QProgressBar) ValueChanged(value int) { C.QProgressBar_ValueChanged(this.h, (C.int)(value)) } func (this *QProgressBar) OnValueChanged(slot func(value int)) { - C.QProgressBar_connect_ValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QProgressBar_connect_ValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QProgressBar_ValueChanged -func miqt_exec_callback_QProgressBar_ValueChanged(cb *C.void, value C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(value int)) +func miqt_exec_callback_QProgressBar_ValueChanged(cb C.intptr_t, value C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(value int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qprogressbar.h b/qt/gen_qprogressbar.h index d1c643f..a7ed01d 100644 --- a/qt/gen_qprogressbar.h +++ b/qt/gen_qprogressbar.h @@ -56,7 +56,7 @@ void QProgressBar_SetMaximum(QProgressBar* self, int maximum); void QProgressBar_SetValue(QProgressBar* self, int value); void QProgressBar_SetOrientation(QProgressBar* self, int orientation); void QProgressBar_ValueChanged(QProgressBar* self, int value); -void QProgressBar_connect_ValueChanged(QProgressBar* self, void* slot); +void QProgressBar_connect_ValueChanged(QProgressBar* self, intptr_t slot); struct miqt_string* QProgressBar_Tr2(const char* s, const char* c); struct miqt_string* QProgressBar_Tr3(const char* s, const char* c, int n); struct miqt_string* QProgressBar_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qprogressdialog.cpp b/qt/gen_qprogressdialog.cpp index 663b3f1..e4b9d1f 100644 --- a/qt/gen_qprogressdialog.cpp +++ b/qt/gen_qprogressdialog.cpp @@ -165,7 +165,7 @@ void QProgressDialog_Canceled(QProgressDialog* self) { self->canceled(); } -void QProgressDialog_connect_Canceled(QProgressDialog* self, void* slot) { +void QProgressDialog_connect_Canceled(QProgressDialog* self, intptr_t slot) { QProgressDialog::connect(self, static_cast(&QProgressDialog::canceled), self, [=]() { miqt_exec_callback_QProgressDialog_Canceled(slot); }); diff --git a/qt/gen_qprogressdialog.go b/qt/gen_qprogressdialog.go index 8a59178..9b8598c 100644 --- a/qt/gen_qprogressdialog.go +++ b/qt/gen_qprogressdialog.go @@ -219,12 +219,12 @@ func (this *QProgressDialog) Canceled() { C.QProgressDialog_Canceled(this.h) } func (this *QProgressDialog) OnCanceled(slot func()) { - C.QProgressDialog_connect_Canceled(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QProgressDialog_connect_Canceled(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QProgressDialog_Canceled -func miqt_exec_callback_QProgressDialog_Canceled(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QProgressDialog_Canceled(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qprogressdialog.h b/qt/gen_qprogressdialog.h index b71517e..2010f0e 100644 --- a/qt/gen_qprogressdialog.h +++ b/qt/gen_qprogressdialog.h @@ -65,7 +65,7 @@ void QProgressDialog_SetLabelText(QProgressDialog* self, struct miqt_string* tex void QProgressDialog_SetCancelButtonText(QProgressDialog* self, struct miqt_string* text); void QProgressDialog_SetMinimumDuration(QProgressDialog* self, int ms); void QProgressDialog_Canceled(QProgressDialog* self); -void QProgressDialog_connect_Canceled(QProgressDialog* self, void* slot); +void QProgressDialog_connect_Canceled(QProgressDialog* self, intptr_t slot); struct miqt_string* QProgressDialog_Tr2(const char* s, const char* c); struct miqt_string* QProgressDialog_Tr3(const char* s, const char* c, int n); struct miqt_string* QProgressDialog_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qscreen.cpp b/qt/gen_qscreen.cpp index 1dd89aa..e7b19fa 100644 --- a/qt/gen_qscreen.cpp +++ b/qt/gen_qscreen.cpp @@ -213,7 +213,7 @@ void QScreen_GeometryChanged(QScreen* self, QRect* geometry) { self->geometryChanged(*geometry); } -void QScreen_connect_GeometryChanged(QScreen* self, void* slot) { +void QScreen_connect_GeometryChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::geometryChanged), self, [=](const QRect& geometry) { const QRect& geometry_ret = geometry; // Cast returned reference into pointer @@ -226,7 +226,7 @@ void QScreen_AvailableGeometryChanged(QScreen* self, QRect* geometry) { self->availableGeometryChanged(*geometry); } -void QScreen_connect_AvailableGeometryChanged(QScreen* self, void* slot) { +void QScreen_connect_AvailableGeometryChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::availableGeometryChanged), self, [=](const QRect& geometry) { const QRect& geometry_ret = geometry; // Cast returned reference into pointer @@ -239,7 +239,7 @@ void QScreen_PhysicalSizeChanged(QScreen* self, QSizeF* size) { self->physicalSizeChanged(*size); } -void QScreen_connect_PhysicalSizeChanged(QScreen* self, void* slot) { +void QScreen_connect_PhysicalSizeChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::physicalSizeChanged), self, [=](const QSizeF& size) { const QSizeF& size_ret = size; // Cast returned reference into pointer @@ -252,7 +252,7 @@ void QScreen_PhysicalDotsPerInchChanged(QScreen* self, double dpi) { self->physicalDotsPerInchChanged(static_cast(dpi)); } -void QScreen_connect_PhysicalDotsPerInchChanged(QScreen* self, void* slot) { +void QScreen_connect_PhysicalDotsPerInchChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::physicalDotsPerInchChanged), self, [=](qreal dpi) { qreal dpi_ret = dpi; double sigval1 = static_cast(dpi_ret); @@ -264,7 +264,7 @@ void QScreen_LogicalDotsPerInchChanged(QScreen* self, double dpi) { self->logicalDotsPerInchChanged(static_cast(dpi)); } -void QScreen_connect_LogicalDotsPerInchChanged(QScreen* self, void* slot) { +void QScreen_connect_LogicalDotsPerInchChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::logicalDotsPerInchChanged), self, [=](qreal dpi) { qreal dpi_ret = dpi; double sigval1 = static_cast(dpi_ret); @@ -276,7 +276,7 @@ void QScreen_VirtualGeometryChanged(QScreen* self, QRect* rect) { self->virtualGeometryChanged(*rect); } -void QScreen_connect_VirtualGeometryChanged(QScreen* self, void* slot) { +void QScreen_connect_VirtualGeometryChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::virtualGeometryChanged), self, [=](const QRect& rect) { const QRect& rect_ret = rect; // Cast returned reference into pointer @@ -289,7 +289,7 @@ void QScreen_PrimaryOrientationChanged(QScreen* self, int orientation) { self->primaryOrientationChanged(static_cast(orientation)); } -void QScreen_connect_PrimaryOrientationChanged(QScreen* self, void* slot) { +void QScreen_connect_PrimaryOrientationChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::primaryOrientationChanged), self, [=](Qt::ScreenOrientation orientation) { Qt::ScreenOrientation orientation_ret = orientation; int sigval1 = static_cast(orientation_ret); @@ -301,7 +301,7 @@ void QScreen_OrientationChanged(QScreen* self, int orientation) { self->orientationChanged(static_cast(orientation)); } -void QScreen_connect_OrientationChanged(QScreen* self, void* slot) { +void QScreen_connect_OrientationChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::orientationChanged), self, [=](Qt::ScreenOrientation orientation) { Qt::ScreenOrientation orientation_ret = orientation; int sigval1 = static_cast(orientation_ret); @@ -313,7 +313,7 @@ void QScreen_RefreshRateChanged(QScreen* self, double refreshRate) { self->refreshRateChanged(static_cast(refreshRate)); } -void QScreen_connect_RefreshRateChanged(QScreen* self, void* slot) { +void QScreen_connect_RefreshRateChanged(QScreen* self, intptr_t slot) { QScreen::connect(self, static_cast(&QScreen::refreshRateChanged), self, [=](qreal refreshRate) { qreal refreshRate_ret = refreshRate; double sigval1 = static_cast(refreshRate_ret); diff --git a/qt/gen_qscreen.go b/qt/gen_qscreen.go index bce31c2..0b92636 100644 --- a/qt/gen_qscreen.go +++ b/qt/gen_qscreen.go @@ -264,12 +264,12 @@ func (this *QScreen) GeometryChanged(geometry *QRect) { C.QScreen_GeometryChanged(this.h, geometry.cPointer()) } func (this *QScreen) OnGeometryChanged(slot func(geometry *QRect)) { - C.QScreen_connect_GeometryChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_GeometryChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_GeometryChanged -func miqt_exec_callback_QScreen_GeometryChanged(cb *C.void, geometry *C.QRect) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(geometry *QRect)) +func miqt_exec_callback_QScreen_GeometryChanged(cb C.intptr_t, geometry *C.QRect) { + gofunc, ok := cgo.Handle(cb).Value().(func(geometry *QRect)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -284,12 +284,12 @@ func (this *QScreen) AvailableGeometryChanged(geometry *QRect) { C.QScreen_AvailableGeometryChanged(this.h, geometry.cPointer()) } func (this *QScreen) OnAvailableGeometryChanged(slot func(geometry *QRect)) { - C.QScreen_connect_AvailableGeometryChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_AvailableGeometryChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_AvailableGeometryChanged -func miqt_exec_callback_QScreen_AvailableGeometryChanged(cb *C.void, geometry *C.QRect) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(geometry *QRect)) +func miqt_exec_callback_QScreen_AvailableGeometryChanged(cb C.intptr_t, geometry *C.QRect) { + gofunc, ok := cgo.Handle(cb).Value().(func(geometry *QRect)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -304,12 +304,12 @@ func (this *QScreen) PhysicalSizeChanged(size *QSizeF) { C.QScreen_PhysicalSizeChanged(this.h, size.cPointer()) } func (this *QScreen) OnPhysicalSizeChanged(slot func(size *QSizeF)) { - C.QScreen_connect_PhysicalSizeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_PhysicalSizeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_PhysicalSizeChanged -func miqt_exec_callback_QScreen_PhysicalSizeChanged(cb *C.void, size *C.QSizeF) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(size *QSizeF)) +func miqt_exec_callback_QScreen_PhysicalSizeChanged(cb C.intptr_t, size *C.QSizeF) { + gofunc, ok := cgo.Handle(cb).Value().(func(size *QSizeF)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -324,12 +324,12 @@ func (this *QScreen) PhysicalDotsPerInchChanged(dpi float64) { C.QScreen_PhysicalDotsPerInchChanged(this.h, (C.double)(dpi)) } func (this *QScreen) OnPhysicalDotsPerInchChanged(slot func(dpi float64)) { - C.QScreen_connect_PhysicalDotsPerInchChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_PhysicalDotsPerInchChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_PhysicalDotsPerInchChanged -func miqt_exec_callback_QScreen_PhysicalDotsPerInchChanged(cb *C.void, dpi C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(dpi float64)) +func miqt_exec_callback_QScreen_PhysicalDotsPerInchChanged(cb C.intptr_t, dpi C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(dpi float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -344,12 +344,12 @@ func (this *QScreen) LogicalDotsPerInchChanged(dpi float64) { C.QScreen_LogicalDotsPerInchChanged(this.h, (C.double)(dpi)) } func (this *QScreen) OnLogicalDotsPerInchChanged(slot func(dpi float64)) { - C.QScreen_connect_LogicalDotsPerInchChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_LogicalDotsPerInchChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_LogicalDotsPerInchChanged -func miqt_exec_callback_QScreen_LogicalDotsPerInchChanged(cb *C.void, dpi C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(dpi float64)) +func miqt_exec_callback_QScreen_LogicalDotsPerInchChanged(cb C.intptr_t, dpi C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(dpi float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -364,12 +364,12 @@ func (this *QScreen) VirtualGeometryChanged(rect *QRect) { C.QScreen_VirtualGeometryChanged(this.h, rect.cPointer()) } func (this *QScreen) OnVirtualGeometryChanged(slot func(rect *QRect)) { - C.QScreen_connect_VirtualGeometryChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_VirtualGeometryChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_VirtualGeometryChanged -func miqt_exec_callback_QScreen_VirtualGeometryChanged(cb *C.void, rect *C.QRect) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(rect *QRect)) +func miqt_exec_callback_QScreen_VirtualGeometryChanged(cb C.intptr_t, rect *C.QRect) { + gofunc, ok := cgo.Handle(cb).Value().(func(rect *QRect)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -384,12 +384,12 @@ func (this *QScreen) PrimaryOrientationChanged(orientation ScreenOrientation) { C.QScreen_PrimaryOrientationChanged(this.h, (C.int)(orientation)) } func (this *QScreen) OnPrimaryOrientationChanged(slot func(orientation ScreenOrientation)) { - C.QScreen_connect_PrimaryOrientationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_PrimaryOrientationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_PrimaryOrientationChanged -func miqt_exec_callback_QScreen_PrimaryOrientationChanged(cb *C.void, orientation C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(orientation ScreenOrientation)) +func miqt_exec_callback_QScreen_PrimaryOrientationChanged(cb C.intptr_t, orientation C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(orientation ScreenOrientation)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -404,12 +404,12 @@ func (this *QScreen) OrientationChanged(orientation ScreenOrientation) { C.QScreen_OrientationChanged(this.h, (C.int)(orientation)) } func (this *QScreen) OnOrientationChanged(slot func(orientation ScreenOrientation)) { - C.QScreen_connect_OrientationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_OrientationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_OrientationChanged -func miqt_exec_callback_QScreen_OrientationChanged(cb *C.void, orientation C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(orientation ScreenOrientation)) +func miqt_exec_callback_QScreen_OrientationChanged(cb C.intptr_t, orientation C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(orientation ScreenOrientation)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -424,12 +424,12 @@ func (this *QScreen) RefreshRateChanged(refreshRate float64) { C.QScreen_RefreshRateChanged(this.h, (C.double)(refreshRate)) } func (this *QScreen) OnRefreshRateChanged(slot func(refreshRate float64)) { - C.QScreen_connect_RefreshRateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScreen_connect_RefreshRateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScreen_RefreshRateChanged -func miqt_exec_callback_QScreen_RefreshRateChanged(cb *C.void, refreshRate C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(refreshRate float64)) +func miqt_exec_callback_QScreen_RefreshRateChanged(cb C.intptr_t, refreshRate C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(refreshRate float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qscreen.h b/qt/gen_qscreen.h index 905775f..27a1f44 100644 --- a/qt/gen_qscreen.h +++ b/qt/gen_qscreen.h @@ -73,23 +73,23 @@ bool QScreen_IsLandscape(const QScreen* self, int orientation); QPixmap* QScreen_GrabWindow(QScreen* self, uintptr_t window); double QScreen_RefreshRate(const QScreen* self); void QScreen_GeometryChanged(QScreen* self, QRect* geometry); -void QScreen_connect_GeometryChanged(QScreen* self, void* slot); +void QScreen_connect_GeometryChanged(QScreen* self, intptr_t slot); void QScreen_AvailableGeometryChanged(QScreen* self, QRect* geometry); -void QScreen_connect_AvailableGeometryChanged(QScreen* self, void* slot); +void QScreen_connect_AvailableGeometryChanged(QScreen* self, intptr_t slot); void QScreen_PhysicalSizeChanged(QScreen* self, QSizeF* size); -void QScreen_connect_PhysicalSizeChanged(QScreen* self, void* slot); +void QScreen_connect_PhysicalSizeChanged(QScreen* self, intptr_t slot); void QScreen_PhysicalDotsPerInchChanged(QScreen* self, double dpi); -void QScreen_connect_PhysicalDotsPerInchChanged(QScreen* self, void* slot); +void QScreen_connect_PhysicalDotsPerInchChanged(QScreen* self, intptr_t slot); void QScreen_LogicalDotsPerInchChanged(QScreen* self, double dpi); -void QScreen_connect_LogicalDotsPerInchChanged(QScreen* self, void* slot); +void QScreen_connect_LogicalDotsPerInchChanged(QScreen* self, intptr_t slot); void QScreen_VirtualGeometryChanged(QScreen* self, QRect* rect); -void QScreen_connect_VirtualGeometryChanged(QScreen* self, void* slot); +void QScreen_connect_VirtualGeometryChanged(QScreen* self, intptr_t slot); void QScreen_PrimaryOrientationChanged(QScreen* self, int orientation); -void QScreen_connect_PrimaryOrientationChanged(QScreen* self, void* slot); +void QScreen_connect_PrimaryOrientationChanged(QScreen* self, intptr_t slot); void QScreen_OrientationChanged(QScreen* self, int orientation); -void QScreen_connect_OrientationChanged(QScreen* self, void* slot); +void QScreen_connect_OrientationChanged(QScreen* self, intptr_t slot); void QScreen_RefreshRateChanged(QScreen* self, double refreshRate); -void QScreen_connect_RefreshRateChanged(QScreen* self, void* slot); +void QScreen_connect_RefreshRateChanged(QScreen* self, intptr_t slot); struct miqt_string* QScreen_Tr2(const char* s, const char* c); struct miqt_string* QScreen_Tr3(const char* s, const char* c, int n); struct miqt_string* QScreen_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qscroller.cpp b/qt/gen_qscroller.cpp index f55a9a7..e1b0d01 100644 --- a/qt/gen_qscroller.cpp +++ b/qt/gen_qscroller.cpp @@ -162,7 +162,7 @@ void QScroller_StateChanged(QScroller* self, int newstate) { self->stateChanged(static_cast(newstate)); } -void QScroller_connect_StateChanged(QScroller* self, void* slot) { +void QScroller_connect_StateChanged(QScroller* self, intptr_t slot) { QScroller::connect(self, static_cast(&QScroller::stateChanged), self, [=](QScroller::State newstate) { QScroller::State newstate_ret = newstate; int sigval1 = static_cast(newstate_ret); @@ -174,7 +174,7 @@ void QScroller_ScrollerPropertiesChanged(QScroller* self, QScrollerProperties* p self->scrollerPropertiesChanged(*param1); } -void QScroller_connect_ScrollerPropertiesChanged(QScroller* self, void* slot) { +void QScroller_connect_ScrollerPropertiesChanged(QScroller* self, intptr_t slot) { QScroller::connect(self, static_cast(&QScroller::scrollerPropertiesChanged), self, [=](const QScrollerProperties& param1) { const QScrollerProperties& param1_ret = param1; // Cast returned reference into pointer diff --git a/qt/gen_qscroller.go b/qt/gen_qscroller.go index 660ebbf..0cee778 100644 --- a/qt/gen_qscroller.go +++ b/qt/gen_qscroller.go @@ -230,12 +230,12 @@ func (this *QScroller) StateChanged(newstate QScroller__State) { C.QScroller_StateChanged(this.h, (C.int)(newstate)) } func (this *QScroller) OnStateChanged(slot func(newstate QScroller__State)) { - C.QScroller_connect_StateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScroller_connect_StateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScroller_StateChanged -func miqt_exec_callback_QScroller_StateChanged(cb *C.void, newstate C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newstate QScroller__State)) +func miqt_exec_callback_QScroller_StateChanged(cb C.intptr_t, newstate C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(newstate QScroller__State)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -250,12 +250,12 @@ func (this *QScroller) ScrollerPropertiesChanged(param1 *QScrollerProperties) { C.QScroller_ScrollerPropertiesChanged(this.h, param1.cPointer()) } func (this *QScroller) OnScrollerPropertiesChanged(slot func(param1 *QScrollerProperties)) { - C.QScroller_connect_ScrollerPropertiesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QScroller_connect_ScrollerPropertiesChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QScroller_ScrollerPropertiesChanged -func miqt_exec_callback_QScroller_ScrollerPropertiesChanged(cb *C.void, param1 *C.QScrollerProperties) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QScrollerProperties)) +func miqt_exec_callback_QScroller_ScrollerPropertiesChanged(cb C.intptr_t, param1 *C.QScrollerProperties) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QScrollerProperties)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qscroller.h b/qt/gen_qscroller.h index 9c27a77..8e15625 100644 --- a/qt/gen_qscroller.h +++ b/qt/gen_qscroller.h @@ -59,9 +59,9 @@ void QScroller_EnsureVisible(QScroller* self, QRectF* rect, double xmargin, doub void QScroller_EnsureVisible2(QScroller* self, QRectF* rect, double xmargin, double ymargin, int scrollTime); void QScroller_ResendPrepareEvent(QScroller* self); void QScroller_StateChanged(QScroller* self, int newstate); -void QScroller_connect_StateChanged(QScroller* self, void* slot); +void QScroller_connect_StateChanged(QScroller* self, intptr_t slot); void QScroller_ScrollerPropertiesChanged(QScroller* self, QScrollerProperties* param1); -void QScroller_connect_ScrollerPropertiesChanged(QScroller* self, void* slot); +void QScroller_connect_ScrollerPropertiesChanged(QScroller* self, intptr_t slot); struct miqt_string* QScroller_Tr2(const char* s, const char* c); struct miqt_string* QScroller_Tr3(const char* s, const char* c, int n); struct miqt_string* QScroller_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qsequentialanimationgroup.cpp b/qt/gen_qsequentialanimationgroup.cpp index 8c67c5f..34a01bd 100644 --- a/qt/gen_qsequentialanimationgroup.cpp +++ b/qt/gen_qsequentialanimationgroup.cpp @@ -60,7 +60,7 @@ void QSequentialAnimationGroup_CurrentAnimationChanged(QSequentialAnimationGroup self->currentAnimationChanged(current); } -void QSequentialAnimationGroup_connect_CurrentAnimationChanged(QSequentialAnimationGroup* self, void* slot) { +void QSequentialAnimationGroup_connect_CurrentAnimationChanged(QSequentialAnimationGroup* self, intptr_t slot) { QSequentialAnimationGroup::connect(self, static_cast(&QSequentialAnimationGroup::currentAnimationChanged), self, [=](QAbstractAnimation* current) { QAbstractAnimation* sigval1 = current; miqt_exec_callback_QSequentialAnimationGroup_CurrentAnimationChanged(slot, sigval1); diff --git a/qt/gen_qsequentialanimationgroup.go b/qt/gen_qsequentialanimationgroup.go index a0dc3fe..2e82971 100644 --- a/qt/gen_qsequentialanimationgroup.go +++ b/qt/gen_qsequentialanimationgroup.go @@ -97,12 +97,12 @@ func (this *QSequentialAnimationGroup) CurrentAnimationChanged(current *QAbstrac C.QSequentialAnimationGroup_CurrentAnimationChanged(this.h, current.cPointer()) } func (this *QSequentialAnimationGroup) OnCurrentAnimationChanged(slot func(current *QAbstractAnimation)) { - C.QSequentialAnimationGroup_connect_CurrentAnimationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSequentialAnimationGroup_connect_CurrentAnimationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSequentialAnimationGroup_CurrentAnimationChanged -func miqt_exec_callback_QSequentialAnimationGroup_CurrentAnimationChanged(cb *C.void, current *C.QAbstractAnimation) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(current *QAbstractAnimation)) +func miqt_exec_callback_QSequentialAnimationGroup_CurrentAnimationChanged(cb C.intptr_t, current *C.QAbstractAnimation) { + gofunc, ok := cgo.Handle(cb).Value().(func(current *QAbstractAnimation)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qsequentialanimationgroup.h b/qt/gen_qsequentialanimationgroup.h index a8ef694..94ad217 100644 --- a/qt/gen_qsequentialanimationgroup.h +++ b/qt/gen_qsequentialanimationgroup.h @@ -38,7 +38,7 @@ QPauseAnimation* QSequentialAnimationGroup_InsertPause(QSequentialAnimationGroup QAbstractAnimation* QSequentialAnimationGroup_CurrentAnimation(const QSequentialAnimationGroup* self); int QSequentialAnimationGroup_Duration(const QSequentialAnimationGroup* self); void QSequentialAnimationGroup_CurrentAnimationChanged(QSequentialAnimationGroup* self, QAbstractAnimation* current); -void QSequentialAnimationGroup_connect_CurrentAnimationChanged(QSequentialAnimationGroup* self, void* slot); +void QSequentialAnimationGroup_connect_CurrentAnimationChanged(QSequentialAnimationGroup* self, intptr_t slot); struct miqt_string* QSequentialAnimationGroup_Tr2(const char* s, const char* c); struct miqt_string* QSequentialAnimationGroup_Tr3(const char* s, const char* c, int n); struct miqt_string* QSequentialAnimationGroup_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qshortcut.cpp b/qt/gen_qshortcut.cpp index f483a96..41740bb 100644 --- a/qt/gen_qshortcut.cpp +++ b/qt/gen_qshortcut.cpp @@ -108,7 +108,7 @@ void QShortcut_Activated(QShortcut* self) { self->activated(); } -void QShortcut_connect_Activated(QShortcut* self, void* slot) { +void QShortcut_connect_Activated(QShortcut* self, intptr_t slot) { QShortcut::connect(self, static_cast(&QShortcut::activated), self, [=]() { miqt_exec_callback_QShortcut_Activated(slot); }); @@ -118,7 +118,7 @@ void QShortcut_ActivatedAmbiguously(QShortcut* self) { self->activatedAmbiguously(); } -void QShortcut_connect_ActivatedAmbiguously(QShortcut* self, void* slot) { +void QShortcut_connect_ActivatedAmbiguously(QShortcut* self, intptr_t slot) { QShortcut::connect(self, static_cast(&QShortcut::activatedAmbiguously), self, [=]() { miqt_exec_callback_QShortcut_ActivatedAmbiguously(slot); }); diff --git a/qt/gen_qshortcut.go b/qt/gen_qshortcut.go index 58cb009..bc7afe6 100644 --- a/qt/gen_qshortcut.go +++ b/qt/gen_qshortcut.go @@ -165,12 +165,12 @@ func (this *QShortcut) Activated() { C.QShortcut_Activated(this.h) } func (this *QShortcut) OnActivated(slot func()) { - C.QShortcut_connect_Activated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QShortcut_connect_Activated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QShortcut_Activated -func miqt_exec_callback_QShortcut_Activated(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QShortcut_Activated(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -182,12 +182,12 @@ func (this *QShortcut) ActivatedAmbiguously() { C.QShortcut_ActivatedAmbiguously(this.h) } func (this *QShortcut) OnActivatedAmbiguously(slot func()) { - C.QShortcut_connect_ActivatedAmbiguously(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QShortcut_connect_ActivatedAmbiguously(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QShortcut_ActivatedAmbiguously -func miqt_exec_callback_QShortcut_ActivatedAmbiguously(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QShortcut_ActivatedAmbiguously(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qshortcut.h b/qt/gen_qshortcut.h index 4257d9a..11059c1 100644 --- a/qt/gen_qshortcut.h +++ b/qt/gen_qshortcut.h @@ -47,9 +47,9 @@ bool QShortcut_AutoRepeat(const QShortcut* self); int QShortcut_Id(const QShortcut* self); QWidget* QShortcut_ParentWidget(const QShortcut* self); void QShortcut_Activated(QShortcut* self); -void QShortcut_connect_Activated(QShortcut* self, void* slot); +void QShortcut_connect_Activated(QShortcut* self, intptr_t slot); void QShortcut_ActivatedAmbiguously(QShortcut* self); -void QShortcut_connect_ActivatedAmbiguously(QShortcut* self, void* slot); +void QShortcut_connect_ActivatedAmbiguously(QShortcut* self, intptr_t slot); struct miqt_string* QShortcut_Tr2(const char* s, const char* c); struct miqt_string* QShortcut_Tr3(const char* s, const char* c, int n); struct miqt_string* QShortcut_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qsignalmapper.cpp b/qt/gen_qsignalmapper.cpp index e5097f9..b5a8dfc 100644 --- a/qt/gen_qsignalmapper.cpp +++ b/qt/gen_qsignalmapper.cpp @@ -81,7 +81,7 @@ void QSignalMapper_Mapped(QSignalMapper* self, int param1) { self->mapped(static_cast(param1)); } -void QSignalMapper_connect_Mapped(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_Mapped(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mapped), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QSignalMapper_Mapped(slot, sigval1); @@ -93,7 +93,7 @@ void QSignalMapper_MappedWithQString(QSignalMapper* self, struct miqt_string* pa self->mapped(param1_QString); } -void QSignalMapper_connect_MappedWithQString(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_MappedWithQString(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mapped), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -107,7 +107,7 @@ void QSignalMapper_MappedWithQWidget(QSignalMapper* self, QWidget* param1) { self->mapped(param1); } -void QSignalMapper_connect_MappedWithQWidget(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_MappedWithQWidget(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mapped), self, [=](QWidget* param1) { QWidget* sigval1 = param1; miqt_exec_callback_QSignalMapper_MappedWithQWidget(slot, sigval1); @@ -118,7 +118,7 @@ void QSignalMapper_MappedWithQObject(QSignalMapper* self, QObject* param1) { self->mapped(param1); } -void QSignalMapper_connect_MappedWithQObject(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_MappedWithQObject(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mapped), self, [=](QObject* param1) { QObject* sigval1 = param1; miqt_exec_callback_QSignalMapper_MappedWithQObject(slot, sigval1); @@ -129,7 +129,7 @@ void QSignalMapper_MappedInt(QSignalMapper* self, int param1) { self->mappedInt(static_cast(param1)); } -void QSignalMapper_connect_MappedInt(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_MappedInt(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mappedInt), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QSignalMapper_MappedInt(slot, sigval1); @@ -141,7 +141,7 @@ void QSignalMapper_MappedString(QSignalMapper* self, struct miqt_string* param1) self->mappedString(param1_QString); } -void QSignalMapper_connect_MappedString(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_MappedString(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mappedString), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -155,7 +155,7 @@ void QSignalMapper_MappedWidget(QSignalMapper* self, QWidget* param1) { self->mappedWidget(param1); } -void QSignalMapper_connect_MappedWidget(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_MappedWidget(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mappedWidget), self, [=](QWidget* param1) { QWidget* sigval1 = param1; miqt_exec_callback_QSignalMapper_MappedWidget(slot, sigval1); @@ -166,7 +166,7 @@ void QSignalMapper_MappedObject(QSignalMapper* self, QObject* param1) { self->mappedObject(param1); } -void QSignalMapper_connect_MappedObject(QSignalMapper* self, void* slot) { +void QSignalMapper_connect_MappedObject(QSignalMapper* self, intptr_t slot) { QSignalMapper::connect(self, static_cast(&QSignalMapper::mappedObject), self, [=](QObject* param1) { QObject* sigval1 = param1; miqt_exec_callback_QSignalMapper_MappedObject(slot, sigval1); diff --git a/qt/gen_qsignalmapper.go b/qt/gen_qsignalmapper.go index 45de7b8..725af0c 100644 --- a/qt/gen_qsignalmapper.go +++ b/qt/gen_qsignalmapper.go @@ -121,12 +121,12 @@ func (this *QSignalMapper) Mapped(param1 int) { C.QSignalMapper_Mapped(this.h, (C.int)(param1)) } func (this *QSignalMapper) OnMapped(slot func(param1 int)) { - C.QSignalMapper_connect_Mapped(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_Mapped(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_Mapped -func miqt_exec_callback_QSignalMapper_Mapped(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QSignalMapper_Mapped(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -143,12 +143,12 @@ func (this *QSignalMapper) MappedWithQString(param1 string) { C.QSignalMapper_MappedWithQString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QSignalMapper) OnMappedWithQString(slot func(param1 string)) { - C.QSignalMapper_connect_MappedWithQString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_MappedWithQString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_MappedWithQString -func miqt_exec_callback_QSignalMapper_MappedWithQString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QSignalMapper_MappedWithQString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -166,12 +166,12 @@ func (this *QSignalMapper) MappedWithQWidget(param1 *QWidget) { C.QSignalMapper_MappedWithQWidget(this.h, param1.cPointer()) } func (this *QSignalMapper) OnMappedWithQWidget(slot func(param1 *QWidget)) { - C.QSignalMapper_connect_MappedWithQWidget(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_MappedWithQWidget(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_MappedWithQWidget -func miqt_exec_callback_QSignalMapper_MappedWithQWidget(cb *C.void, param1 *C.QWidget) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QWidget)) +func miqt_exec_callback_QSignalMapper_MappedWithQWidget(cb C.intptr_t, param1 *C.QWidget) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QWidget)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -186,12 +186,12 @@ func (this *QSignalMapper) MappedWithQObject(param1 *QObject) { C.QSignalMapper_MappedWithQObject(this.h, param1.cPointer()) } func (this *QSignalMapper) OnMappedWithQObject(slot func(param1 *QObject)) { - C.QSignalMapper_connect_MappedWithQObject(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_MappedWithQObject(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_MappedWithQObject -func miqt_exec_callback_QSignalMapper_MappedWithQObject(cb *C.void, param1 *C.QObject) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QObject)) +func miqt_exec_callback_QSignalMapper_MappedWithQObject(cb C.intptr_t, param1 *C.QObject) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QObject)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -206,12 +206,12 @@ func (this *QSignalMapper) MappedInt(param1 int) { C.QSignalMapper_MappedInt(this.h, (C.int)(param1)) } func (this *QSignalMapper) OnMappedInt(slot func(param1 int)) { - C.QSignalMapper_connect_MappedInt(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_MappedInt(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_MappedInt -func miqt_exec_callback_QSignalMapper_MappedInt(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QSignalMapper_MappedInt(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -228,12 +228,12 @@ func (this *QSignalMapper) MappedString(param1 string) { C.QSignalMapper_MappedString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QSignalMapper) OnMappedString(slot func(param1 string)) { - C.QSignalMapper_connect_MappedString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_MappedString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_MappedString -func miqt_exec_callback_QSignalMapper_MappedString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QSignalMapper_MappedString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -251,12 +251,12 @@ func (this *QSignalMapper) MappedWidget(param1 *QWidget) { C.QSignalMapper_MappedWidget(this.h, param1.cPointer()) } func (this *QSignalMapper) OnMappedWidget(slot func(param1 *QWidget)) { - C.QSignalMapper_connect_MappedWidget(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_MappedWidget(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_MappedWidget -func miqt_exec_callback_QSignalMapper_MappedWidget(cb *C.void, param1 *C.QWidget) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QWidget)) +func miqt_exec_callback_QSignalMapper_MappedWidget(cb C.intptr_t, param1 *C.QWidget) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QWidget)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -271,12 +271,12 @@ func (this *QSignalMapper) MappedObject(param1 *QObject) { C.QSignalMapper_MappedObject(this.h, param1.cPointer()) } func (this *QSignalMapper) OnMappedObject(slot func(param1 *QObject)) { - C.QSignalMapper_connect_MappedObject(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSignalMapper_connect_MappedObject(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSignalMapper_MappedObject -func miqt_exec_callback_QSignalMapper_MappedObject(cb *C.void, param1 *C.QObject) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QObject)) +func miqt_exec_callback_QSignalMapper_MappedObject(cb C.intptr_t, param1 *C.QObject) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QObject)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qsignalmapper.h b/qt/gen_qsignalmapper.h index 37125c2..d5db786 100644 --- a/qt/gen_qsignalmapper.h +++ b/qt/gen_qsignalmapper.h @@ -41,21 +41,21 @@ QObject* QSignalMapper_MappingWithText(const QSignalMapper* self, struct miqt_st QObject* QSignalMapper_MappingWithWidget(const QSignalMapper* self, QWidget* widget); QObject* QSignalMapper_MappingWithObject(const QSignalMapper* self, QObject* object); void QSignalMapper_Mapped(QSignalMapper* self, int param1); -void QSignalMapper_connect_Mapped(QSignalMapper* self, void* slot); +void QSignalMapper_connect_Mapped(QSignalMapper* self, intptr_t slot); void QSignalMapper_MappedWithQString(QSignalMapper* self, struct miqt_string* param1); -void QSignalMapper_connect_MappedWithQString(QSignalMapper* self, void* slot); +void QSignalMapper_connect_MappedWithQString(QSignalMapper* self, intptr_t slot); void QSignalMapper_MappedWithQWidget(QSignalMapper* self, QWidget* param1); -void QSignalMapper_connect_MappedWithQWidget(QSignalMapper* self, void* slot); +void QSignalMapper_connect_MappedWithQWidget(QSignalMapper* self, intptr_t slot); void QSignalMapper_MappedWithQObject(QSignalMapper* self, QObject* param1); -void QSignalMapper_connect_MappedWithQObject(QSignalMapper* self, void* slot); +void QSignalMapper_connect_MappedWithQObject(QSignalMapper* self, intptr_t slot); void QSignalMapper_MappedInt(QSignalMapper* self, int param1); -void QSignalMapper_connect_MappedInt(QSignalMapper* self, void* slot); +void QSignalMapper_connect_MappedInt(QSignalMapper* self, intptr_t slot); void QSignalMapper_MappedString(QSignalMapper* self, struct miqt_string* param1); -void QSignalMapper_connect_MappedString(QSignalMapper* self, void* slot); +void QSignalMapper_connect_MappedString(QSignalMapper* self, intptr_t slot); void QSignalMapper_MappedWidget(QSignalMapper* self, QWidget* param1); -void QSignalMapper_connect_MappedWidget(QSignalMapper* self, void* slot); +void QSignalMapper_connect_MappedWidget(QSignalMapper* self, intptr_t slot); void QSignalMapper_MappedObject(QSignalMapper* self, QObject* param1); -void QSignalMapper_connect_MappedObject(QSignalMapper* self, void* slot); +void QSignalMapper_connect_MappedObject(QSignalMapper* self, intptr_t slot); void QSignalMapper_Map(QSignalMapper* self); void QSignalMapper_MapWithSender(QSignalMapper* self, QObject* sender); struct miqt_string* QSignalMapper_Tr2(const char* s, const char* c); diff --git a/qt/gen_qsortfilterproxymodel.cpp b/qt/gen_qsortfilterproxymodel.cpp index 93ccb06..e921fb7 100644 --- a/qt/gen_qsortfilterproxymodel.cpp +++ b/qt/gen_qsortfilterproxymodel.cpp @@ -310,7 +310,7 @@ void QSortFilterProxyModel_DynamicSortFilterChanged(QSortFilterProxyModel* self, self->dynamicSortFilterChanged(dynamicSortFilter); } -void QSortFilterProxyModel_connect_DynamicSortFilterChanged(QSortFilterProxyModel* self, void* slot) { +void QSortFilterProxyModel_connect_DynamicSortFilterChanged(QSortFilterProxyModel* self, intptr_t slot) { QSortFilterProxyModel::connect(self, static_cast(&QSortFilterProxyModel::dynamicSortFilterChanged), self, [=](bool dynamicSortFilter) { bool sigval1 = dynamicSortFilter; miqt_exec_callback_QSortFilterProxyModel_DynamicSortFilterChanged(slot, sigval1); @@ -321,7 +321,7 @@ void QSortFilterProxyModel_FilterCaseSensitivityChanged(QSortFilterProxyModel* s self->filterCaseSensitivityChanged(static_cast(filterCaseSensitivity)); } -void QSortFilterProxyModel_connect_FilterCaseSensitivityChanged(QSortFilterProxyModel* self, void* slot) { +void QSortFilterProxyModel_connect_FilterCaseSensitivityChanged(QSortFilterProxyModel* self, intptr_t slot) { QSortFilterProxyModel::connect(self, static_cast(&QSortFilterProxyModel::filterCaseSensitivityChanged), self, [=](Qt::CaseSensitivity filterCaseSensitivity) { Qt::CaseSensitivity filterCaseSensitivity_ret = filterCaseSensitivity; int sigval1 = static_cast(filterCaseSensitivity_ret); @@ -333,7 +333,7 @@ void QSortFilterProxyModel_SortCaseSensitivityChanged(QSortFilterProxyModel* sel self->sortCaseSensitivityChanged(static_cast(sortCaseSensitivity)); } -void QSortFilterProxyModel_connect_SortCaseSensitivityChanged(QSortFilterProxyModel* self, void* slot) { +void QSortFilterProxyModel_connect_SortCaseSensitivityChanged(QSortFilterProxyModel* self, intptr_t slot) { QSortFilterProxyModel::connect(self, static_cast(&QSortFilterProxyModel::sortCaseSensitivityChanged), self, [=](Qt::CaseSensitivity sortCaseSensitivity) { Qt::CaseSensitivity sortCaseSensitivity_ret = sortCaseSensitivity; int sigval1 = static_cast(sortCaseSensitivity_ret); @@ -345,7 +345,7 @@ void QSortFilterProxyModel_SortLocaleAwareChanged(QSortFilterProxyModel* self, b self->sortLocaleAwareChanged(sortLocaleAware); } -void QSortFilterProxyModel_connect_SortLocaleAwareChanged(QSortFilterProxyModel* self, void* slot) { +void QSortFilterProxyModel_connect_SortLocaleAwareChanged(QSortFilterProxyModel* self, intptr_t slot) { QSortFilterProxyModel::connect(self, static_cast(&QSortFilterProxyModel::sortLocaleAwareChanged), self, [=](bool sortLocaleAware) { bool sigval1 = sortLocaleAware; miqt_exec_callback_QSortFilterProxyModel_SortLocaleAwareChanged(slot, sigval1); @@ -356,7 +356,7 @@ void QSortFilterProxyModel_SortRoleChanged(QSortFilterProxyModel* self, int sort self->sortRoleChanged(static_cast(sortRole)); } -void QSortFilterProxyModel_connect_SortRoleChanged(QSortFilterProxyModel* self, void* slot) { +void QSortFilterProxyModel_connect_SortRoleChanged(QSortFilterProxyModel* self, intptr_t slot) { QSortFilterProxyModel::connect(self, static_cast(&QSortFilterProxyModel::sortRoleChanged), self, [=](int sortRole) { int sigval1 = sortRole; miqt_exec_callback_QSortFilterProxyModel_SortRoleChanged(slot, sigval1); @@ -367,7 +367,7 @@ void QSortFilterProxyModel_FilterRoleChanged(QSortFilterProxyModel* self, int fi self->filterRoleChanged(static_cast(filterRole)); } -void QSortFilterProxyModel_connect_FilterRoleChanged(QSortFilterProxyModel* self, void* slot) { +void QSortFilterProxyModel_connect_FilterRoleChanged(QSortFilterProxyModel* self, intptr_t slot) { QSortFilterProxyModel::connect(self, static_cast(&QSortFilterProxyModel::filterRoleChanged), self, [=](int filterRole) { int sigval1 = filterRole; miqt_exec_callback_QSortFilterProxyModel_FilterRoleChanged(slot, sigval1); @@ -378,7 +378,7 @@ void QSortFilterProxyModel_RecursiveFilteringEnabledChanged(QSortFilterProxyMode self->recursiveFilteringEnabledChanged(recursiveFilteringEnabled); } -void QSortFilterProxyModel_connect_RecursiveFilteringEnabledChanged(QSortFilterProxyModel* self, void* slot) { +void QSortFilterProxyModel_connect_RecursiveFilteringEnabledChanged(QSortFilterProxyModel* self, intptr_t slot) { QSortFilterProxyModel::connect(self, static_cast(&QSortFilterProxyModel::recursiveFilteringEnabledChanged), self, [=](bool recursiveFilteringEnabled) { bool sigval1 = recursiveFilteringEnabled; miqt_exec_callback_QSortFilterProxyModel_RecursiveFilteringEnabledChanged(slot, sigval1); diff --git a/qt/gen_qsortfilterproxymodel.go b/qt/gen_qsortfilterproxymodel.go index d0ddd0f..ab38bc9 100644 --- a/qt/gen_qsortfilterproxymodel.go +++ b/qt/gen_qsortfilterproxymodel.go @@ -374,12 +374,12 @@ func (this *QSortFilterProxyModel) DynamicSortFilterChanged(dynamicSortFilter bo C.QSortFilterProxyModel_DynamicSortFilterChanged(this.h, (C.bool)(dynamicSortFilter)) } func (this *QSortFilterProxyModel) OnDynamicSortFilterChanged(slot func(dynamicSortFilter bool)) { - C.QSortFilterProxyModel_connect_DynamicSortFilterChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSortFilterProxyModel_connect_DynamicSortFilterChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSortFilterProxyModel_DynamicSortFilterChanged -func miqt_exec_callback_QSortFilterProxyModel_DynamicSortFilterChanged(cb *C.void, dynamicSortFilter C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(dynamicSortFilter bool)) +func miqt_exec_callback_QSortFilterProxyModel_DynamicSortFilterChanged(cb C.intptr_t, dynamicSortFilter C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(dynamicSortFilter bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -394,12 +394,12 @@ func (this *QSortFilterProxyModel) FilterCaseSensitivityChanged(filterCaseSensit C.QSortFilterProxyModel_FilterCaseSensitivityChanged(this.h, (C.int)(filterCaseSensitivity)) } func (this *QSortFilterProxyModel) OnFilterCaseSensitivityChanged(slot func(filterCaseSensitivity CaseSensitivity)) { - C.QSortFilterProxyModel_connect_FilterCaseSensitivityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSortFilterProxyModel_connect_FilterCaseSensitivityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSortFilterProxyModel_FilterCaseSensitivityChanged -func miqt_exec_callback_QSortFilterProxyModel_FilterCaseSensitivityChanged(cb *C.void, filterCaseSensitivity C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(filterCaseSensitivity CaseSensitivity)) +func miqt_exec_callback_QSortFilterProxyModel_FilterCaseSensitivityChanged(cb C.intptr_t, filterCaseSensitivity C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(filterCaseSensitivity CaseSensitivity)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -414,12 +414,12 @@ func (this *QSortFilterProxyModel) SortCaseSensitivityChanged(sortCaseSensitivit C.QSortFilterProxyModel_SortCaseSensitivityChanged(this.h, (C.int)(sortCaseSensitivity)) } func (this *QSortFilterProxyModel) OnSortCaseSensitivityChanged(slot func(sortCaseSensitivity CaseSensitivity)) { - C.QSortFilterProxyModel_connect_SortCaseSensitivityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSortFilterProxyModel_connect_SortCaseSensitivityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSortFilterProxyModel_SortCaseSensitivityChanged -func miqt_exec_callback_QSortFilterProxyModel_SortCaseSensitivityChanged(cb *C.void, sortCaseSensitivity C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(sortCaseSensitivity CaseSensitivity)) +func miqt_exec_callback_QSortFilterProxyModel_SortCaseSensitivityChanged(cb C.intptr_t, sortCaseSensitivity C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(sortCaseSensitivity CaseSensitivity)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -434,12 +434,12 @@ func (this *QSortFilterProxyModel) SortLocaleAwareChanged(sortLocaleAware bool) C.QSortFilterProxyModel_SortLocaleAwareChanged(this.h, (C.bool)(sortLocaleAware)) } func (this *QSortFilterProxyModel) OnSortLocaleAwareChanged(slot func(sortLocaleAware bool)) { - C.QSortFilterProxyModel_connect_SortLocaleAwareChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSortFilterProxyModel_connect_SortLocaleAwareChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSortFilterProxyModel_SortLocaleAwareChanged -func miqt_exec_callback_QSortFilterProxyModel_SortLocaleAwareChanged(cb *C.void, sortLocaleAware C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(sortLocaleAware bool)) +func miqt_exec_callback_QSortFilterProxyModel_SortLocaleAwareChanged(cb C.intptr_t, sortLocaleAware C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(sortLocaleAware bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -454,12 +454,12 @@ func (this *QSortFilterProxyModel) SortRoleChanged(sortRole int) { C.QSortFilterProxyModel_SortRoleChanged(this.h, (C.int)(sortRole)) } func (this *QSortFilterProxyModel) OnSortRoleChanged(slot func(sortRole int)) { - C.QSortFilterProxyModel_connect_SortRoleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSortFilterProxyModel_connect_SortRoleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSortFilterProxyModel_SortRoleChanged -func miqt_exec_callback_QSortFilterProxyModel_SortRoleChanged(cb *C.void, sortRole C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(sortRole int)) +func miqt_exec_callback_QSortFilterProxyModel_SortRoleChanged(cb C.intptr_t, sortRole C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(sortRole int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -474,12 +474,12 @@ func (this *QSortFilterProxyModel) FilterRoleChanged(filterRole int) { C.QSortFilterProxyModel_FilterRoleChanged(this.h, (C.int)(filterRole)) } func (this *QSortFilterProxyModel) OnFilterRoleChanged(slot func(filterRole int)) { - C.QSortFilterProxyModel_connect_FilterRoleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSortFilterProxyModel_connect_FilterRoleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSortFilterProxyModel_FilterRoleChanged -func miqt_exec_callback_QSortFilterProxyModel_FilterRoleChanged(cb *C.void, filterRole C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(filterRole int)) +func miqt_exec_callback_QSortFilterProxyModel_FilterRoleChanged(cb C.intptr_t, filterRole C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(filterRole int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -494,12 +494,12 @@ func (this *QSortFilterProxyModel) RecursiveFilteringEnabledChanged(recursiveFil C.QSortFilterProxyModel_RecursiveFilteringEnabledChanged(this.h, (C.bool)(recursiveFilteringEnabled)) } func (this *QSortFilterProxyModel) OnRecursiveFilteringEnabledChanged(slot func(recursiveFilteringEnabled bool)) { - C.QSortFilterProxyModel_connect_RecursiveFilteringEnabledChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSortFilterProxyModel_connect_RecursiveFilteringEnabledChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSortFilterProxyModel_RecursiveFilteringEnabledChanged -func miqt_exec_callback_QSortFilterProxyModel_RecursiveFilteringEnabledChanged(cb *C.void, recursiveFilteringEnabled C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(recursiveFilteringEnabled bool)) +func miqt_exec_callback_QSortFilterProxyModel_RecursiveFilteringEnabledChanged(cb C.intptr_t, recursiveFilteringEnabled C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(recursiveFilteringEnabled bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qsortfilterproxymodel.h b/qt/gen_qsortfilterproxymodel.h index e357a18..7eaadc5 100644 --- a/qt/gen_qsortfilterproxymodel.h +++ b/qt/gen_qsortfilterproxymodel.h @@ -100,19 +100,19 @@ void QSortFilterProxyModel_Sort(QSortFilterProxyModel* self, int column); struct miqt_array* QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self); int QSortFilterProxyModel_SupportedDropActions(const QSortFilterProxyModel* self); void QSortFilterProxyModel_DynamicSortFilterChanged(QSortFilterProxyModel* self, bool dynamicSortFilter); -void QSortFilterProxyModel_connect_DynamicSortFilterChanged(QSortFilterProxyModel* self, void* slot); +void QSortFilterProxyModel_connect_DynamicSortFilterChanged(QSortFilterProxyModel* self, intptr_t slot); void QSortFilterProxyModel_FilterCaseSensitivityChanged(QSortFilterProxyModel* self, int filterCaseSensitivity); -void QSortFilterProxyModel_connect_FilterCaseSensitivityChanged(QSortFilterProxyModel* self, void* slot); +void QSortFilterProxyModel_connect_FilterCaseSensitivityChanged(QSortFilterProxyModel* self, intptr_t slot); void QSortFilterProxyModel_SortCaseSensitivityChanged(QSortFilterProxyModel* self, int sortCaseSensitivity); -void QSortFilterProxyModel_connect_SortCaseSensitivityChanged(QSortFilterProxyModel* self, void* slot); +void QSortFilterProxyModel_connect_SortCaseSensitivityChanged(QSortFilterProxyModel* self, intptr_t slot); void QSortFilterProxyModel_SortLocaleAwareChanged(QSortFilterProxyModel* self, bool sortLocaleAware); -void QSortFilterProxyModel_connect_SortLocaleAwareChanged(QSortFilterProxyModel* self, void* slot); +void QSortFilterProxyModel_connect_SortLocaleAwareChanged(QSortFilterProxyModel* self, intptr_t slot); void QSortFilterProxyModel_SortRoleChanged(QSortFilterProxyModel* self, int sortRole); -void QSortFilterProxyModel_connect_SortRoleChanged(QSortFilterProxyModel* self, void* slot); +void QSortFilterProxyModel_connect_SortRoleChanged(QSortFilterProxyModel* self, intptr_t slot); void QSortFilterProxyModel_FilterRoleChanged(QSortFilterProxyModel* self, int filterRole); -void QSortFilterProxyModel_connect_FilterRoleChanged(QSortFilterProxyModel* self, void* slot); +void QSortFilterProxyModel_connect_FilterRoleChanged(QSortFilterProxyModel* self, intptr_t slot); void QSortFilterProxyModel_RecursiveFilteringEnabledChanged(QSortFilterProxyModel* self, bool recursiveFilteringEnabled); -void QSortFilterProxyModel_connect_RecursiveFilteringEnabledChanged(QSortFilterProxyModel* self, void* slot); +void QSortFilterProxyModel_connect_RecursiveFilteringEnabledChanged(QSortFilterProxyModel* self, intptr_t slot); struct miqt_string* QSortFilterProxyModel_Tr2(const char* s, const char* c); struct miqt_string* QSortFilterProxyModel_Tr3(const char* s, const char* c, int n); struct miqt_string* QSortFilterProxyModel_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qspinbox.cpp b/qt/gen_qspinbox.cpp index a9b40ce..4af9151 100644 --- a/qt/gen_qspinbox.cpp +++ b/qt/gen_qspinbox.cpp @@ -127,7 +127,7 @@ void QSpinBox_ValueChanged(QSpinBox* self, int param1) { self->valueChanged(static_cast(param1)); } -void QSpinBox_connect_ValueChanged(QSpinBox* self, void* slot) { +void QSpinBox_connect_ValueChanged(QSpinBox* self, intptr_t slot) { QSpinBox::connect(self, static_cast(&QSpinBox::valueChanged), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QSpinBox_ValueChanged(slot, sigval1); @@ -139,7 +139,7 @@ void QSpinBox_TextChanged(QSpinBox* self, struct miqt_string* param1) { self->textChanged(param1_QString); } -void QSpinBox_connect_TextChanged(QSpinBox* self, void* slot) { +void QSpinBox_connect_TextChanged(QSpinBox* self, intptr_t slot) { QSpinBox::connect(self, static_cast(&QSpinBox::textChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -154,7 +154,7 @@ void QSpinBox_ValueChangedWithQString(QSpinBox* self, struct miqt_string* param1 self->valueChanged(param1_QString); } -void QSpinBox_connect_ValueChangedWithQString(QSpinBox* self, void* slot) { +void QSpinBox_connect_ValueChangedWithQString(QSpinBox* self, intptr_t slot) { QSpinBox::connect(self, static_cast(&QSpinBox::valueChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -337,7 +337,7 @@ void QDoubleSpinBox_ValueChanged(QDoubleSpinBox* self, double param1) { self->valueChanged(static_cast(param1)); } -void QDoubleSpinBox_connect_ValueChanged(QDoubleSpinBox* self, void* slot) { +void QDoubleSpinBox_connect_ValueChanged(QDoubleSpinBox* self, intptr_t slot) { QDoubleSpinBox::connect(self, static_cast(&QDoubleSpinBox::valueChanged), self, [=](double param1) { double sigval1 = param1; miqt_exec_callback_QDoubleSpinBox_ValueChanged(slot, sigval1); @@ -349,7 +349,7 @@ void QDoubleSpinBox_TextChanged(QDoubleSpinBox* self, struct miqt_string* param1 self->textChanged(param1_QString); } -void QDoubleSpinBox_connect_TextChanged(QDoubleSpinBox* self, void* slot) { +void QDoubleSpinBox_connect_TextChanged(QDoubleSpinBox* self, intptr_t slot) { QDoubleSpinBox::connect(self, static_cast(&QDoubleSpinBox::textChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -364,7 +364,7 @@ void QDoubleSpinBox_ValueChangedWithQString(QDoubleSpinBox* self, struct miqt_st self->valueChanged(param1_QString); } -void QDoubleSpinBox_connect_ValueChangedWithQString(QDoubleSpinBox* self, void* slot) { +void QDoubleSpinBox_connect_ValueChangedWithQString(QDoubleSpinBox* self, intptr_t slot) { QDoubleSpinBox::connect(self, static_cast(&QDoubleSpinBox::valueChanged), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qspinbox.go b/qt/gen_qspinbox.go index 43f7d46..0ac5456 100644 --- a/qt/gen_qspinbox.go +++ b/qt/gen_qspinbox.go @@ -166,12 +166,12 @@ func (this *QSpinBox) ValueChanged(param1 int) { C.QSpinBox_ValueChanged(this.h, (C.int)(param1)) } func (this *QSpinBox) OnValueChanged(slot func(param1 int)) { - C.QSpinBox_connect_ValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSpinBox_connect_ValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSpinBox_ValueChanged -func miqt_exec_callback_QSpinBox_ValueChanged(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QSpinBox_ValueChanged(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -188,12 +188,12 @@ func (this *QSpinBox) TextChanged(param1 string) { C.QSpinBox_TextChanged(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QSpinBox) OnTextChanged(slot func(param1 string)) { - C.QSpinBox_connect_TextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSpinBox_connect_TextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSpinBox_TextChanged -func miqt_exec_callback_QSpinBox_TextChanged(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QSpinBox_TextChanged(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -213,12 +213,12 @@ func (this *QSpinBox) ValueChangedWithQString(param1 string) { C.QSpinBox_ValueChangedWithQString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QSpinBox) OnValueChangedWithQString(slot func(param1 string)) { - C.QSpinBox_connect_ValueChangedWithQString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSpinBox_connect_ValueChangedWithQString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSpinBox_ValueChangedWithQString -func miqt_exec_callback_QSpinBox_ValueChangedWithQString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QSpinBox_ValueChangedWithQString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -467,12 +467,12 @@ func (this *QDoubleSpinBox) ValueChanged(param1 float64) { C.QDoubleSpinBox_ValueChanged(this.h, (C.double)(param1)) } func (this *QDoubleSpinBox) OnValueChanged(slot func(param1 float64)) { - C.QDoubleSpinBox_connect_ValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDoubleSpinBox_connect_ValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDoubleSpinBox_ValueChanged -func miqt_exec_callback_QDoubleSpinBox_ValueChanged(cb *C.void, param1 C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 float64)) +func miqt_exec_callback_QDoubleSpinBox_ValueChanged(cb C.intptr_t, param1 C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -489,12 +489,12 @@ func (this *QDoubleSpinBox) TextChanged(param1 string) { C.QDoubleSpinBox_TextChanged(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QDoubleSpinBox) OnTextChanged(slot func(param1 string)) { - C.QDoubleSpinBox_connect_TextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDoubleSpinBox_connect_TextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDoubleSpinBox_TextChanged -func miqt_exec_callback_QDoubleSpinBox_TextChanged(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QDoubleSpinBox_TextChanged(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -514,12 +514,12 @@ func (this *QDoubleSpinBox) ValueChangedWithQString(param1 string) { C.QDoubleSpinBox_ValueChangedWithQString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QDoubleSpinBox) OnValueChangedWithQString(slot func(param1 string)) { - C.QDoubleSpinBox_connect_ValueChangedWithQString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDoubleSpinBox_connect_ValueChangedWithQString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDoubleSpinBox_ValueChangedWithQString -func miqt_exec_callback_QDoubleSpinBox_ValueChangedWithQString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QDoubleSpinBox_ValueChangedWithQString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qspinbox.h b/qt/gen_qspinbox.h index 294a6e2..19b7b9a 100644 --- a/qt/gen_qspinbox.h +++ b/qt/gen_qspinbox.h @@ -50,11 +50,11 @@ int QSpinBox_DisplayIntegerBase(const QSpinBox* self); void QSpinBox_SetDisplayIntegerBase(QSpinBox* self, int base); void QSpinBox_SetValue(QSpinBox* self, int val); void QSpinBox_ValueChanged(QSpinBox* self, int param1); -void QSpinBox_connect_ValueChanged(QSpinBox* self, void* slot); +void QSpinBox_connect_ValueChanged(QSpinBox* self, intptr_t slot); void QSpinBox_TextChanged(QSpinBox* self, struct miqt_string* param1); -void QSpinBox_connect_TextChanged(QSpinBox* self, void* slot); +void QSpinBox_connect_TextChanged(QSpinBox* self, intptr_t slot); void QSpinBox_ValueChangedWithQString(QSpinBox* self, struct miqt_string* param1); -void QSpinBox_connect_ValueChangedWithQString(QSpinBox* self, void* slot); +void QSpinBox_connect_ValueChangedWithQString(QSpinBox* self, intptr_t slot); struct miqt_string* QSpinBox_Tr2(const char* s, const char* c); struct miqt_string* QSpinBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QSpinBox_TrUtf82(const char* s, const char* c); @@ -90,11 +90,11 @@ struct miqt_string* QDoubleSpinBox_TextFromValue(const QDoubleSpinBox* self, dou void QDoubleSpinBox_Fixup(const QDoubleSpinBox* self, struct miqt_string* str); void QDoubleSpinBox_SetValue(QDoubleSpinBox* self, double val); void QDoubleSpinBox_ValueChanged(QDoubleSpinBox* self, double param1); -void QDoubleSpinBox_connect_ValueChanged(QDoubleSpinBox* self, void* slot); +void QDoubleSpinBox_connect_ValueChanged(QDoubleSpinBox* self, intptr_t slot); void QDoubleSpinBox_TextChanged(QDoubleSpinBox* self, struct miqt_string* param1); -void QDoubleSpinBox_connect_TextChanged(QDoubleSpinBox* self, void* slot); +void QDoubleSpinBox_connect_TextChanged(QDoubleSpinBox* self, intptr_t slot); void QDoubleSpinBox_ValueChangedWithQString(QDoubleSpinBox* self, struct miqt_string* param1); -void QDoubleSpinBox_connect_ValueChangedWithQString(QDoubleSpinBox* self, void* slot); +void QDoubleSpinBox_connect_ValueChangedWithQString(QDoubleSpinBox* self, intptr_t slot); struct miqt_string* QDoubleSpinBox_Tr2(const char* s, const char* c); struct miqt_string* QDoubleSpinBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QDoubleSpinBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qsplashscreen.cpp b/qt/gen_qsplashscreen.cpp index b8e4a65..9f631df 100644 --- a/qt/gen_qsplashscreen.cpp +++ b/qt/gen_qsplashscreen.cpp @@ -106,7 +106,7 @@ void QSplashScreen_MessageChanged(QSplashScreen* self, struct miqt_string* messa self->messageChanged(message_QString); } -void QSplashScreen_connect_MessageChanged(QSplashScreen* self, void* slot) { +void QSplashScreen_connect_MessageChanged(QSplashScreen* self, intptr_t slot) { QSplashScreen::connect(self, static_cast(&QSplashScreen::messageChanged), self, [=](const QString& message) { const QString message_ret = message; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qsplashscreen.go b/qt/gen_qsplashscreen.go index 44cad8f..2078995 100644 --- a/qt/gen_qsplashscreen.go +++ b/qt/gen_qsplashscreen.go @@ -161,12 +161,12 @@ func (this *QSplashScreen) MessageChanged(message string) { C.QSplashScreen_MessageChanged(this.h, (*C.struct_miqt_string)(message_ms)) } func (this *QSplashScreen) OnMessageChanged(slot func(message string)) { - C.QSplashScreen_connect_MessageChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSplashScreen_connect_MessageChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSplashScreen_MessageChanged -func miqt_exec_callback_QSplashScreen_MessageChanged(cb *C.void, message *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(message string)) +func miqt_exec_callback_QSplashScreen_MessageChanged(cb C.intptr_t, message *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(message string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qsplashscreen.h b/qt/gen_qsplashscreen.h index 2de7287..8da5ae5 100644 --- a/qt/gen_qsplashscreen.h +++ b/qt/gen_qsplashscreen.h @@ -50,7 +50,7 @@ struct miqt_string* QSplashScreen_Message(const QSplashScreen* self); void QSplashScreen_ShowMessage(QSplashScreen* self, struct miqt_string* message); void QSplashScreen_ClearMessage(QSplashScreen* self); void QSplashScreen_MessageChanged(QSplashScreen* self, struct miqt_string* message); -void QSplashScreen_connect_MessageChanged(QSplashScreen* self, void* slot); +void QSplashScreen_connect_MessageChanged(QSplashScreen* self, intptr_t slot); struct miqt_string* QSplashScreen_Tr2(const char* s, const char* c); struct miqt_string* QSplashScreen_Tr3(const char* s, const char* c, int n); struct miqt_string* QSplashScreen_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qsplitter.cpp b/qt/gen_qsplitter.cpp index bfc03a3..ec1d056 100644 --- a/qt/gen_qsplitter.cpp +++ b/qt/gen_qsplitter.cpp @@ -174,7 +174,7 @@ void QSplitter_SplitterMoved(QSplitter* self, int pos, int index) { self->splitterMoved(static_cast(pos), static_cast(index)); } -void QSplitter_connect_SplitterMoved(QSplitter* self, void* slot) { +void QSplitter_connect_SplitterMoved(QSplitter* self, intptr_t slot) { QSplitter::connect(self, static_cast(&QSplitter::splitterMoved), self, [=](int pos, int index) { int sigval1 = pos; int sigval2 = index; diff --git a/qt/gen_qsplitter.go b/qt/gen_qsplitter.go index 217a0e2..cd8361c 100644 --- a/qt/gen_qsplitter.go +++ b/qt/gen_qsplitter.go @@ -221,12 +221,12 @@ func (this *QSplitter) SplitterMoved(pos int, index int) { C.QSplitter_SplitterMoved(this.h, (C.int)(pos), (C.int)(index)) } func (this *QSplitter) OnSplitterMoved(slot func(pos int, index int)) { - C.QSplitter_connect_SplitterMoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSplitter_connect_SplitterMoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSplitter_SplitterMoved -func miqt_exec_callback_QSplitter_SplitterMoved(cb *C.void, pos C.int, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(pos int, index int)) +func miqt_exec_callback_QSplitter_SplitterMoved(cb C.intptr_t, pos C.int, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(pos int, index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qsplitter.h b/qt/gen_qsplitter.h index add965b..9a9ac7d 100644 --- a/qt/gen_qsplitter.h +++ b/qt/gen_qsplitter.h @@ -64,7 +64,7 @@ void QSplitter_GetRange(const QSplitter* self, int index, int* param2, int* para QSplitterHandle* QSplitter_Handle(const QSplitter* self, int index); void QSplitter_SetStretchFactor(QSplitter* self, int index, int stretch); void QSplitter_SplitterMoved(QSplitter* self, int pos, int index); -void QSplitter_connect_SplitterMoved(QSplitter* self, void* slot); +void QSplitter_connect_SplitterMoved(QSplitter* self, intptr_t slot); struct miqt_string* QSplitter_Tr2(const char* s, const char* c); struct miqt_string* QSplitter_Tr3(const char* s, const char* c, int n); struct miqt_string* QSplitter_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qstackedlayout.cpp b/qt/gen_qstackedlayout.cpp index bb1b2df..fab8e99 100644 --- a/qt/gen_qstackedlayout.cpp +++ b/qt/gen_qstackedlayout.cpp @@ -115,7 +115,7 @@ void QStackedLayout_WidgetRemoved(QStackedLayout* self, int index) { self->widgetRemoved(static_cast(index)); } -void QStackedLayout_connect_WidgetRemoved(QStackedLayout* self, void* slot) { +void QStackedLayout_connect_WidgetRemoved(QStackedLayout* self, intptr_t slot) { QStackedLayout::connect(self, static_cast(&QStackedLayout::widgetRemoved), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QStackedLayout_WidgetRemoved(slot, sigval1); @@ -126,7 +126,7 @@ void QStackedLayout_CurrentChanged(QStackedLayout* self, int index) { self->currentChanged(static_cast(index)); } -void QStackedLayout_connect_CurrentChanged(QStackedLayout* self, void* slot) { +void QStackedLayout_connect_CurrentChanged(QStackedLayout* self, intptr_t slot) { QStackedLayout::connect(self, static_cast(&QStackedLayout::currentChanged), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QStackedLayout_CurrentChanged(slot, sigval1); diff --git a/qt/gen_qstackedlayout.go b/qt/gen_qstackedlayout.go index 15520c8..4100971 100644 --- a/qt/gen_qstackedlayout.go +++ b/qt/gen_qstackedlayout.go @@ -164,12 +164,12 @@ func (this *QStackedLayout) WidgetRemoved(index int) { C.QStackedLayout_WidgetRemoved(this.h, (C.int)(index)) } func (this *QStackedLayout) OnWidgetRemoved(slot func(index int)) { - C.QStackedLayout_connect_WidgetRemoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStackedLayout_connect_WidgetRemoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStackedLayout_WidgetRemoved -func miqt_exec_callback_QStackedLayout_WidgetRemoved(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QStackedLayout_WidgetRemoved(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -184,12 +184,12 @@ func (this *QStackedLayout) CurrentChanged(index int) { C.QStackedLayout_CurrentChanged(this.h, (C.int)(index)) } func (this *QStackedLayout) OnCurrentChanged(slot func(index int)) { - C.QStackedLayout_connect_CurrentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStackedLayout_connect_CurrentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStackedLayout_CurrentChanged -func miqt_exec_callback_QStackedLayout_CurrentChanged(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QStackedLayout_CurrentChanged(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qstackedlayout.h b/qt/gen_qstackedlayout.h index ef42f69..b057a40 100644 --- a/qt/gen_qstackedlayout.h +++ b/qt/gen_qstackedlayout.h @@ -55,9 +55,9 @@ void QStackedLayout_SetGeometry(QStackedLayout* self, QRect* rect); bool QStackedLayout_HasHeightForWidth(const QStackedLayout* self); int QStackedLayout_HeightForWidth(const QStackedLayout* self, int width); void QStackedLayout_WidgetRemoved(QStackedLayout* self, int index); -void QStackedLayout_connect_WidgetRemoved(QStackedLayout* self, void* slot); +void QStackedLayout_connect_WidgetRemoved(QStackedLayout* self, intptr_t slot); void QStackedLayout_CurrentChanged(QStackedLayout* self, int index); -void QStackedLayout_connect_CurrentChanged(QStackedLayout* self, void* slot); +void QStackedLayout_connect_CurrentChanged(QStackedLayout* self, intptr_t slot); void QStackedLayout_SetCurrentIndex(QStackedLayout* self, int index); void QStackedLayout_SetCurrentWidget(QStackedLayout* self, QWidget* w); struct miqt_string* QStackedLayout_Tr2(const char* s, const char* c); diff --git a/qt/gen_qstackedwidget.cpp b/qt/gen_qstackedwidget.cpp index c642623..6acace8 100644 --- a/qt/gen_qstackedwidget.cpp +++ b/qt/gen_qstackedwidget.cpp @@ -82,7 +82,7 @@ void QStackedWidget_CurrentChanged(QStackedWidget* self, int param1) { self->currentChanged(static_cast(param1)); } -void QStackedWidget_connect_CurrentChanged(QStackedWidget* self, void* slot) { +void QStackedWidget_connect_CurrentChanged(QStackedWidget* self, intptr_t slot) { QStackedWidget::connect(self, static_cast(&QStackedWidget::currentChanged), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QStackedWidget_CurrentChanged(slot, sigval1); @@ -93,7 +93,7 @@ void QStackedWidget_WidgetRemoved(QStackedWidget* self, int index) { self->widgetRemoved(static_cast(index)); } -void QStackedWidget_connect_WidgetRemoved(QStackedWidget* self, void* slot) { +void QStackedWidget_connect_WidgetRemoved(QStackedWidget* self, intptr_t slot) { QStackedWidget::connect(self, static_cast(&QStackedWidget::widgetRemoved), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QStackedWidget_WidgetRemoved(slot, sigval1); diff --git a/qt/gen_qstackedwidget.go b/qt/gen_qstackedwidget.go index 11d37e2..bbc0699 100644 --- a/qt/gen_qstackedwidget.go +++ b/qt/gen_qstackedwidget.go @@ -121,12 +121,12 @@ func (this *QStackedWidget) CurrentChanged(param1 int) { C.QStackedWidget_CurrentChanged(this.h, (C.int)(param1)) } func (this *QStackedWidget) OnCurrentChanged(slot func(param1 int)) { - C.QStackedWidget_connect_CurrentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStackedWidget_connect_CurrentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStackedWidget_CurrentChanged -func miqt_exec_callback_QStackedWidget_CurrentChanged(cb *C.void, param1 C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 int)) +func miqt_exec_callback_QStackedWidget_CurrentChanged(cb C.intptr_t, param1 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -141,12 +141,12 @@ func (this *QStackedWidget) WidgetRemoved(index int) { C.QStackedWidget_WidgetRemoved(this.h, (C.int)(index)) } func (this *QStackedWidget) OnWidgetRemoved(slot func(index int)) { - C.QStackedWidget_connect_WidgetRemoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStackedWidget_connect_WidgetRemoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStackedWidget_WidgetRemoved -func miqt_exec_callback_QStackedWidget_WidgetRemoved(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QStackedWidget_WidgetRemoved(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qstackedwidget.h b/qt/gen_qstackedwidget.h index 5823b05..06c119f 100644 --- a/qt/gen_qstackedwidget.h +++ b/qt/gen_qstackedwidget.h @@ -40,9 +40,9 @@ int QStackedWidget_Count(const QStackedWidget* self); void QStackedWidget_SetCurrentIndex(QStackedWidget* self, int index); void QStackedWidget_SetCurrentWidget(QStackedWidget* self, QWidget* w); void QStackedWidget_CurrentChanged(QStackedWidget* self, int param1); -void QStackedWidget_connect_CurrentChanged(QStackedWidget* self, void* slot); +void QStackedWidget_connect_CurrentChanged(QStackedWidget* self, intptr_t slot); void QStackedWidget_WidgetRemoved(QStackedWidget* self, int index); -void QStackedWidget_connect_WidgetRemoved(QStackedWidget* self, void* slot); +void QStackedWidget_connect_WidgetRemoved(QStackedWidget* self, intptr_t slot); struct miqt_string* QStackedWidget_Tr2(const char* s, const char* c); struct miqt_string* QStackedWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QStackedWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qstandarditemmodel.cpp b/qt/gen_qstandarditemmodel.cpp index 2ec3e68..ff81bff 100644 --- a/qt/gen_qstandarditemmodel.cpp +++ b/qt/gen_qstandarditemmodel.cpp @@ -829,7 +829,7 @@ void QStandardItemModel_ItemChanged(QStandardItemModel* self, QStandardItem* ite self->itemChanged(item); } -void QStandardItemModel_connect_ItemChanged(QStandardItemModel* self, void* slot) { +void QStandardItemModel_connect_ItemChanged(QStandardItemModel* self, intptr_t slot) { QStandardItemModel::connect(self, static_cast(&QStandardItemModel::itemChanged), self, [=](QStandardItem* item) { QStandardItem* sigval1 = item; miqt_exec_callback_QStandardItemModel_ItemChanged(slot, sigval1); diff --git a/qt/gen_qstandarditemmodel.go b/qt/gen_qstandarditemmodel.go index f57f519..e34c29f 100644 --- a/qt/gen_qstandarditemmodel.go +++ b/qt/gen_qstandarditemmodel.go @@ -973,12 +973,12 @@ func (this *QStandardItemModel) ItemChanged(item *QStandardItem) { C.QStandardItemModel_ItemChanged(this.h, item.cPointer()) } func (this *QStandardItemModel) OnItemChanged(slot func(item *QStandardItem)) { - C.QStandardItemModel_connect_ItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStandardItemModel_connect_ItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStandardItemModel_ItemChanged -func miqt_exec_callback_QStandardItemModel_ItemChanged(cb *C.void, item *C.QStandardItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QStandardItem)) +func miqt_exec_callback_QStandardItemModel_ItemChanged(cb C.intptr_t, item *C.QStandardItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QStandardItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qstandarditemmodel.h b/qt/gen_qstandarditemmodel.h index a905d58..8467dcb 100644 --- a/qt/gen_qstandarditemmodel.h +++ b/qt/gen_qstandarditemmodel.h @@ -201,7 +201,7 @@ struct miqt_array* QStandardItemModel_MimeTypes(const QStandardItemModel* self); QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array* /* of QModelIndex* */ indexes); bool QStandardItemModel_DropMimeData(QStandardItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); void QStandardItemModel_ItemChanged(QStandardItemModel* self, QStandardItem* item); -void QStandardItemModel_connect_ItemChanged(QStandardItemModel* self, void* slot); +void QStandardItemModel_connect_ItemChanged(QStandardItemModel* self, intptr_t slot); struct miqt_string* QStandardItemModel_Tr2(const char* s, const char* c); struct miqt_string* QStandardItemModel_Tr3(const char* s, const char* c, int n); struct miqt_string* QStandardItemModel_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qstatemachine.cpp b/qt/gen_qstatemachine.cpp index 181aa49..86624a9 100644 --- a/qt/gen_qstatemachine.cpp +++ b/qt/gen_qstatemachine.cpp @@ -165,7 +165,7 @@ void QStateMachine_RunningChanged(QStateMachine* self, bool running) { self->runningChanged(running); } -void QStateMachine_connect_RunningChanged(QStateMachine* self, void* slot) { +void QStateMachine_connect_RunningChanged(QStateMachine* self, intptr_t slot) { QStateMachine::connect(self, static_cast(&QStateMachine::runningChanged), self, [=](bool running) { bool sigval1 = running; miqt_exec_callback_QStateMachine_RunningChanged(slot, sigval1); diff --git a/qt/gen_qstatemachine.go b/qt/gen_qstatemachine.go index 304ac00..23fc8e6 100644 --- a/qt/gen_qstatemachine.go +++ b/qt/gen_qstatemachine.go @@ -212,12 +212,12 @@ func (this *QStateMachine) RunningChanged(running bool) { C.QStateMachine_RunningChanged(this.h, (C.bool)(running)) } func (this *QStateMachine) OnRunningChanged(slot func(running bool)) { - C.QStateMachine_connect_RunningChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStateMachine_connect_RunningChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStateMachine_RunningChanged -func miqt_exec_callback_QStateMachine_RunningChanged(cb *C.void, running C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(running bool)) +func miqt_exec_callback_QStateMachine_RunningChanged(cb C.intptr_t, running C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(running bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qstatemachine.h b/qt/gen_qstatemachine.h index a5a9c01..24667b7 100644 --- a/qt/gen_qstatemachine.h +++ b/qt/gen_qstatemachine.h @@ -71,7 +71,7 @@ void QStateMachine_Start(QStateMachine* self); void QStateMachine_Stop(QStateMachine* self); void QStateMachine_SetRunning(QStateMachine* self, bool running); void QStateMachine_RunningChanged(QStateMachine* self, bool running); -void QStateMachine_connect_RunningChanged(QStateMachine* self, void* slot); +void QStateMachine_connect_RunningChanged(QStateMachine* self, intptr_t slot); struct miqt_string* QStateMachine_Tr2(const char* s, const char* c); struct miqt_string* QStateMachine_Tr3(const char* s, const char* c, int n); struct miqt_string* QStateMachine_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qstatusbar.cpp b/qt/gen_qstatusbar.cpp index 4556d25..740d28a 100644 --- a/qt/gen_qstatusbar.cpp +++ b/qt/gen_qstatusbar.cpp @@ -87,7 +87,7 @@ void QStatusBar_MessageChanged(QStatusBar* self, struct miqt_string* text) { self->messageChanged(text_QString); } -void QStatusBar_connect_MessageChanged(QStatusBar* self, void* slot) { +void QStatusBar_connect_MessageChanged(QStatusBar* self, intptr_t slot) { QStatusBar::connect(self, static_cast(&QStatusBar::messageChanged), self, [=](const QString& text) { const QString text_ret = text; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qstatusbar.go b/qt/gen_qstatusbar.go index cee8b09..6f15a0f 100644 --- a/qt/gen_qstatusbar.go +++ b/qt/gen_qstatusbar.go @@ -128,12 +128,12 @@ func (this *QStatusBar) MessageChanged(text string) { C.QStatusBar_MessageChanged(this.h, (*C.struct_miqt_string)(text_ms)) } func (this *QStatusBar) OnMessageChanged(slot func(text string)) { - C.QStatusBar_connect_MessageChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStatusBar_connect_MessageChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStatusBar_MessageChanged -func miqt_exec_callback_QStatusBar_MessageChanged(cb *C.void, text *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(text string)) +func miqt_exec_callback_QStatusBar_MessageChanged(cb C.intptr_t, text *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(text string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qstatusbar.h b/qt/gen_qstatusbar.h index de827cf..f005dae 100644 --- a/qt/gen_qstatusbar.h +++ b/qt/gen_qstatusbar.h @@ -40,7 +40,7 @@ struct miqt_string* QStatusBar_CurrentMessage(const QStatusBar* self); void QStatusBar_ShowMessage(QStatusBar* self, struct miqt_string* text); void QStatusBar_ClearMessage(QStatusBar* self); void QStatusBar_MessageChanged(QStatusBar* self, struct miqt_string* text); -void QStatusBar_connect_MessageChanged(QStatusBar* self, void* slot); +void QStatusBar_connect_MessageChanged(QStatusBar* self, intptr_t slot); struct miqt_string* QStatusBar_Tr2(const char* s, const char* c); struct miqt_string* QStatusBar_Tr3(const char* s, const char* c, int n); struct miqt_string* QStatusBar_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qstylehints.cpp b/qt/gen_qstylehints.cpp index 977f3ca..17b5c54 100644 --- a/qt/gen_qstylehints.cpp +++ b/qt/gen_qstylehints.cpp @@ -172,7 +172,7 @@ void QStyleHints_CursorFlashTimeChanged(QStyleHints* self, int cursorFlashTime) self->cursorFlashTimeChanged(static_cast(cursorFlashTime)); } -void QStyleHints_connect_CursorFlashTimeChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_CursorFlashTimeChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::cursorFlashTimeChanged), self, [=](int cursorFlashTime) { int sigval1 = cursorFlashTime; miqt_exec_callback_QStyleHints_CursorFlashTimeChanged(slot, sigval1); @@ -183,7 +183,7 @@ void QStyleHints_KeyboardInputIntervalChanged(QStyleHints* self, int keyboardInp self->keyboardInputIntervalChanged(static_cast(keyboardInputInterval)); } -void QStyleHints_connect_KeyboardInputIntervalChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_KeyboardInputIntervalChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::keyboardInputIntervalChanged), self, [=](int keyboardInputInterval) { int sigval1 = keyboardInputInterval; miqt_exec_callback_QStyleHints_KeyboardInputIntervalChanged(slot, sigval1); @@ -194,7 +194,7 @@ void QStyleHints_MouseDoubleClickIntervalChanged(QStyleHints* self, int mouseDou self->mouseDoubleClickIntervalChanged(static_cast(mouseDoubleClickInterval)); } -void QStyleHints_connect_MouseDoubleClickIntervalChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_MouseDoubleClickIntervalChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::mouseDoubleClickIntervalChanged), self, [=](int mouseDoubleClickInterval) { int sigval1 = mouseDoubleClickInterval; miqt_exec_callback_QStyleHints_MouseDoubleClickIntervalChanged(slot, sigval1); @@ -205,7 +205,7 @@ void QStyleHints_MousePressAndHoldIntervalChanged(QStyleHints* self, int mousePr self->mousePressAndHoldIntervalChanged(static_cast(mousePressAndHoldInterval)); } -void QStyleHints_connect_MousePressAndHoldIntervalChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_MousePressAndHoldIntervalChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::mousePressAndHoldIntervalChanged), self, [=](int mousePressAndHoldInterval) { int sigval1 = mousePressAndHoldInterval; miqt_exec_callback_QStyleHints_MousePressAndHoldIntervalChanged(slot, sigval1); @@ -216,7 +216,7 @@ void QStyleHints_StartDragDistanceChanged(QStyleHints* self, int startDragDistan self->startDragDistanceChanged(static_cast(startDragDistance)); } -void QStyleHints_connect_StartDragDistanceChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_StartDragDistanceChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::startDragDistanceChanged), self, [=](int startDragDistance) { int sigval1 = startDragDistance; miqt_exec_callback_QStyleHints_StartDragDistanceChanged(slot, sigval1); @@ -227,7 +227,7 @@ void QStyleHints_StartDragTimeChanged(QStyleHints* self, int startDragTime) { self->startDragTimeChanged(static_cast(startDragTime)); } -void QStyleHints_connect_StartDragTimeChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_StartDragTimeChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::startDragTimeChanged), self, [=](int startDragTime) { int sigval1 = startDragTime; miqt_exec_callback_QStyleHints_StartDragTimeChanged(slot, sigval1); @@ -238,7 +238,7 @@ void QStyleHints_TabFocusBehaviorChanged(QStyleHints* self, int tabFocusBehavior self->tabFocusBehaviorChanged(static_cast(tabFocusBehavior)); } -void QStyleHints_connect_TabFocusBehaviorChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_TabFocusBehaviorChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::tabFocusBehaviorChanged), self, [=](Qt::TabFocusBehavior tabFocusBehavior) { Qt::TabFocusBehavior tabFocusBehavior_ret = tabFocusBehavior; int sigval1 = static_cast(tabFocusBehavior_ret); @@ -250,7 +250,7 @@ void QStyleHints_UseHoverEffectsChanged(QStyleHints* self, bool useHoverEffects) self->useHoverEffectsChanged(useHoverEffects); } -void QStyleHints_connect_UseHoverEffectsChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_UseHoverEffectsChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::useHoverEffectsChanged), self, [=](bool useHoverEffects) { bool sigval1 = useHoverEffects; miqt_exec_callback_QStyleHints_UseHoverEffectsChanged(slot, sigval1); @@ -261,7 +261,7 @@ void QStyleHints_ShowShortcutsInContextMenusChanged(QStyleHints* self, bool para self->showShortcutsInContextMenusChanged(param1); } -void QStyleHints_connect_ShowShortcutsInContextMenusChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_ShowShortcutsInContextMenusChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::showShortcutsInContextMenusChanged), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QStyleHints_ShowShortcutsInContextMenusChanged(slot, sigval1); @@ -272,7 +272,7 @@ void QStyleHints_WheelScrollLinesChanged(QStyleHints* self, int scrollLines) { self->wheelScrollLinesChanged(static_cast(scrollLines)); } -void QStyleHints_connect_WheelScrollLinesChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_WheelScrollLinesChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::wheelScrollLinesChanged), self, [=](int scrollLines) { int sigval1 = scrollLines; miqt_exec_callback_QStyleHints_WheelScrollLinesChanged(slot, sigval1); @@ -283,7 +283,7 @@ void QStyleHints_MouseQuickSelectionThresholdChanged(QStyleHints* self, int thre self->mouseQuickSelectionThresholdChanged(static_cast(threshold)); } -void QStyleHints_connect_MouseQuickSelectionThresholdChanged(QStyleHints* self, void* slot) { +void QStyleHints_connect_MouseQuickSelectionThresholdChanged(QStyleHints* self, intptr_t slot) { QStyleHints::connect(self, static_cast(&QStyleHints::mouseQuickSelectionThresholdChanged), self, [=](int threshold) { int sigval1 = threshold; miqt_exec_callback_QStyleHints_MouseQuickSelectionThresholdChanged(slot, sigval1); diff --git a/qt/gen_qstylehints.go b/qt/gen_qstylehints.go index c948691..4f0ec7a 100644 --- a/qt/gen_qstylehints.go +++ b/qt/gen_qstylehints.go @@ -208,12 +208,12 @@ func (this *QStyleHints) CursorFlashTimeChanged(cursorFlashTime int) { C.QStyleHints_CursorFlashTimeChanged(this.h, (C.int)(cursorFlashTime)) } func (this *QStyleHints) OnCursorFlashTimeChanged(slot func(cursorFlashTime int)) { - C.QStyleHints_connect_CursorFlashTimeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_CursorFlashTimeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_CursorFlashTimeChanged -func miqt_exec_callback_QStyleHints_CursorFlashTimeChanged(cb *C.void, cursorFlashTime C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(cursorFlashTime int)) +func miqt_exec_callback_QStyleHints_CursorFlashTimeChanged(cb C.intptr_t, cursorFlashTime C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(cursorFlashTime int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -228,12 +228,12 @@ func (this *QStyleHints) KeyboardInputIntervalChanged(keyboardInputInterval int) C.QStyleHints_KeyboardInputIntervalChanged(this.h, (C.int)(keyboardInputInterval)) } func (this *QStyleHints) OnKeyboardInputIntervalChanged(slot func(keyboardInputInterval int)) { - C.QStyleHints_connect_KeyboardInputIntervalChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_KeyboardInputIntervalChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_KeyboardInputIntervalChanged -func miqt_exec_callback_QStyleHints_KeyboardInputIntervalChanged(cb *C.void, keyboardInputInterval C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(keyboardInputInterval int)) +func miqt_exec_callback_QStyleHints_KeyboardInputIntervalChanged(cb C.intptr_t, keyboardInputInterval C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(keyboardInputInterval int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -248,12 +248,12 @@ func (this *QStyleHints) MouseDoubleClickIntervalChanged(mouseDoubleClickInterva C.QStyleHints_MouseDoubleClickIntervalChanged(this.h, (C.int)(mouseDoubleClickInterval)) } func (this *QStyleHints) OnMouseDoubleClickIntervalChanged(slot func(mouseDoubleClickInterval int)) { - C.QStyleHints_connect_MouseDoubleClickIntervalChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_MouseDoubleClickIntervalChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_MouseDoubleClickIntervalChanged -func miqt_exec_callback_QStyleHints_MouseDoubleClickIntervalChanged(cb *C.void, mouseDoubleClickInterval C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(mouseDoubleClickInterval int)) +func miqt_exec_callback_QStyleHints_MouseDoubleClickIntervalChanged(cb C.intptr_t, mouseDoubleClickInterval C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(mouseDoubleClickInterval int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -268,12 +268,12 @@ func (this *QStyleHints) MousePressAndHoldIntervalChanged(mousePressAndHoldInter C.QStyleHints_MousePressAndHoldIntervalChanged(this.h, (C.int)(mousePressAndHoldInterval)) } func (this *QStyleHints) OnMousePressAndHoldIntervalChanged(slot func(mousePressAndHoldInterval int)) { - C.QStyleHints_connect_MousePressAndHoldIntervalChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_MousePressAndHoldIntervalChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_MousePressAndHoldIntervalChanged -func miqt_exec_callback_QStyleHints_MousePressAndHoldIntervalChanged(cb *C.void, mousePressAndHoldInterval C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(mousePressAndHoldInterval int)) +func miqt_exec_callback_QStyleHints_MousePressAndHoldIntervalChanged(cb C.intptr_t, mousePressAndHoldInterval C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(mousePressAndHoldInterval int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -288,12 +288,12 @@ func (this *QStyleHints) StartDragDistanceChanged(startDragDistance int) { C.QStyleHints_StartDragDistanceChanged(this.h, (C.int)(startDragDistance)) } func (this *QStyleHints) OnStartDragDistanceChanged(slot func(startDragDistance int)) { - C.QStyleHints_connect_StartDragDistanceChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_StartDragDistanceChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_StartDragDistanceChanged -func miqt_exec_callback_QStyleHints_StartDragDistanceChanged(cb *C.void, startDragDistance C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(startDragDistance int)) +func miqt_exec_callback_QStyleHints_StartDragDistanceChanged(cb C.intptr_t, startDragDistance C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(startDragDistance int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -308,12 +308,12 @@ func (this *QStyleHints) StartDragTimeChanged(startDragTime int) { C.QStyleHints_StartDragTimeChanged(this.h, (C.int)(startDragTime)) } func (this *QStyleHints) OnStartDragTimeChanged(slot func(startDragTime int)) { - C.QStyleHints_connect_StartDragTimeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_StartDragTimeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_StartDragTimeChanged -func miqt_exec_callback_QStyleHints_StartDragTimeChanged(cb *C.void, startDragTime C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(startDragTime int)) +func miqt_exec_callback_QStyleHints_StartDragTimeChanged(cb C.intptr_t, startDragTime C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(startDragTime int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -328,12 +328,12 @@ func (this *QStyleHints) TabFocusBehaviorChanged(tabFocusBehavior TabFocusBehavi C.QStyleHints_TabFocusBehaviorChanged(this.h, (C.int)(tabFocusBehavior)) } func (this *QStyleHints) OnTabFocusBehaviorChanged(slot func(tabFocusBehavior TabFocusBehavior)) { - C.QStyleHints_connect_TabFocusBehaviorChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_TabFocusBehaviorChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_TabFocusBehaviorChanged -func miqt_exec_callback_QStyleHints_TabFocusBehaviorChanged(cb *C.void, tabFocusBehavior C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(tabFocusBehavior TabFocusBehavior)) +func miqt_exec_callback_QStyleHints_TabFocusBehaviorChanged(cb C.intptr_t, tabFocusBehavior C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(tabFocusBehavior TabFocusBehavior)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -348,12 +348,12 @@ func (this *QStyleHints) UseHoverEffectsChanged(useHoverEffects bool) { C.QStyleHints_UseHoverEffectsChanged(this.h, (C.bool)(useHoverEffects)) } func (this *QStyleHints) OnUseHoverEffectsChanged(slot func(useHoverEffects bool)) { - C.QStyleHints_connect_UseHoverEffectsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_UseHoverEffectsChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_UseHoverEffectsChanged -func miqt_exec_callback_QStyleHints_UseHoverEffectsChanged(cb *C.void, useHoverEffects C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(useHoverEffects bool)) +func miqt_exec_callback_QStyleHints_UseHoverEffectsChanged(cb C.intptr_t, useHoverEffects C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(useHoverEffects bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -368,12 +368,12 @@ func (this *QStyleHints) ShowShortcutsInContextMenusChanged(param1 bool) { C.QStyleHints_ShowShortcutsInContextMenusChanged(this.h, (C.bool)(param1)) } func (this *QStyleHints) OnShowShortcutsInContextMenusChanged(slot func(param1 bool)) { - C.QStyleHints_connect_ShowShortcutsInContextMenusChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_ShowShortcutsInContextMenusChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_ShowShortcutsInContextMenusChanged -func miqt_exec_callback_QStyleHints_ShowShortcutsInContextMenusChanged(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QStyleHints_ShowShortcutsInContextMenusChanged(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -388,12 +388,12 @@ func (this *QStyleHints) WheelScrollLinesChanged(scrollLines int) { C.QStyleHints_WheelScrollLinesChanged(this.h, (C.int)(scrollLines)) } func (this *QStyleHints) OnWheelScrollLinesChanged(slot func(scrollLines int)) { - C.QStyleHints_connect_WheelScrollLinesChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_WheelScrollLinesChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_WheelScrollLinesChanged -func miqt_exec_callback_QStyleHints_WheelScrollLinesChanged(cb *C.void, scrollLines C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(scrollLines int)) +func miqt_exec_callback_QStyleHints_WheelScrollLinesChanged(cb C.intptr_t, scrollLines C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(scrollLines int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -408,12 +408,12 @@ func (this *QStyleHints) MouseQuickSelectionThresholdChanged(threshold int) { C.QStyleHints_MouseQuickSelectionThresholdChanged(this.h, (C.int)(threshold)) } func (this *QStyleHints) OnMouseQuickSelectionThresholdChanged(slot func(threshold int)) { - C.QStyleHints_connect_MouseQuickSelectionThresholdChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QStyleHints_connect_MouseQuickSelectionThresholdChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QStyleHints_MouseQuickSelectionThresholdChanged -func miqt_exec_callback_QStyleHints_MouseQuickSelectionThresholdChanged(cb *C.void, threshold C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(threshold int)) +func miqt_exec_callback_QStyleHints_MouseQuickSelectionThresholdChanged(cb C.intptr_t, threshold C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(threshold int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qstylehints.h b/qt/gen_qstylehints.h index f679234..5ca7460 100644 --- a/qt/gen_qstylehints.h +++ b/qt/gen_qstylehints.h @@ -62,27 +62,27 @@ void QStyleHints_SetWheelScrollLines(QStyleHints* self, int scrollLines); void QStyleHints_SetMouseQuickSelectionThreshold(QStyleHints* self, int threshold); int QStyleHints_MouseQuickSelectionThreshold(const QStyleHints* self); void QStyleHints_CursorFlashTimeChanged(QStyleHints* self, int cursorFlashTime); -void QStyleHints_connect_CursorFlashTimeChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_CursorFlashTimeChanged(QStyleHints* self, intptr_t slot); void QStyleHints_KeyboardInputIntervalChanged(QStyleHints* self, int keyboardInputInterval); -void QStyleHints_connect_KeyboardInputIntervalChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_KeyboardInputIntervalChanged(QStyleHints* self, intptr_t slot); void QStyleHints_MouseDoubleClickIntervalChanged(QStyleHints* self, int mouseDoubleClickInterval); -void QStyleHints_connect_MouseDoubleClickIntervalChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_MouseDoubleClickIntervalChanged(QStyleHints* self, intptr_t slot); void QStyleHints_MousePressAndHoldIntervalChanged(QStyleHints* self, int mousePressAndHoldInterval); -void QStyleHints_connect_MousePressAndHoldIntervalChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_MousePressAndHoldIntervalChanged(QStyleHints* self, intptr_t slot); void QStyleHints_StartDragDistanceChanged(QStyleHints* self, int startDragDistance); -void QStyleHints_connect_StartDragDistanceChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_StartDragDistanceChanged(QStyleHints* self, intptr_t slot); void QStyleHints_StartDragTimeChanged(QStyleHints* self, int startDragTime); -void QStyleHints_connect_StartDragTimeChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_StartDragTimeChanged(QStyleHints* self, intptr_t slot); void QStyleHints_TabFocusBehaviorChanged(QStyleHints* self, int tabFocusBehavior); -void QStyleHints_connect_TabFocusBehaviorChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_TabFocusBehaviorChanged(QStyleHints* self, intptr_t slot); void QStyleHints_UseHoverEffectsChanged(QStyleHints* self, bool useHoverEffects); -void QStyleHints_connect_UseHoverEffectsChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_UseHoverEffectsChanged(QStyleHints* self, intptr_t slot); void QStyleHints_ShowShortcutsInContextMenusChanged(QStyleHints* self, bool param1); -void QStyleHints_connect_ShowShortcutsInContextMenusChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_ShowShortcutsInContextMenusChanged(QStyleHints* self, intptr_t slot); void QStyleHints_WheelScrollLinesChanged(QStyleHints* self, int scrollLines); -void QStyleHints_connect_WheelScrollLinesChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_WheelScrollLinesChanged(QStyleHints* self, intptr_t slot); void QStyleHints_MouseQuickSelectionThresholdChanged(QStyleHints* self, int threshold); -void QStyleHints_connect_MouseQuickSelectionThresholdChanged(QStyleHints* self, void* slot); +void QStyleHints_connect_MouseQuickSelectionThresholdChanged(QStyleHints* self, intptr_t slot); struct miqt_string* QStyleHints_Tr2(const char* s, const char* c); struct miqt_string* QStyleHints_Tr3(const char* s, const char* c, int n); struct miqt_string* QStyleHints_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qsystemtrayicon.cpp b/qt/gen_qsystemtrayicon.cpp index 4f144c1..ffbcfc4 100644 --- a/qt/gen_qsystemtrayicon.cpp +++ b/qt/gen_qsystemtrayicon.cpp @@ -121,7 +121,7 @@ void QSystemTrayIcon_Activated(QSystemTrayIcon* self, int reason) { self->activated(static_cast(reason)); } -void QSystemTrayIcon_connect_Activated(QSystemTrayIcon* self, void* slot) { +void QSystemTrayIcon_connect_Activated(QSystemTrayIcon* self, intptr_t slot) { QSystemTrayIcon::connect(self, static_cast(&QSystemTrayIcon::activated), self, [=](QSystemTrayIcon::ActivationReason reason) { QSystemTrayIcon::ActivationReason reason_ret = reason; int sigval1 = static_cast(reason_ret); @@ -133,7 +133,7 @@ void QSystemTrayIcon_MessageClicked(QSystemTrayIcon* self) { self->messageClicked(); } -void QSystemTrayIcon_connect_MessageClicked(QSystemTrayIcon* self, void* slot) { +void QSystemTrayIcon_connect_MessageClicked(QSystemTrayIcon* self, intptr_t slot) { QSystemTrayIcon::connect(self, static_cast(&QSystemTrayIcon::messageClicked), self, [=]() { miqt_exec_callback_QSystemTrayIcon_MessageClicked(slot); }); diff --git a/qt/gen_qsystemtrayicon.go b/qt/gen_qsystemtrayicon.go index 9df4520..91c38f2 100644 --- a/qt/gen_qsystemtrayicon.go +++ b/qt/gen_qsystemtrayicon.go @@ -191,12 +191,12 @@ func (this *QSystemTrayIcon) Activated(reason QSystemTrayIcon__ActivationReason) C.QSystemTrayIcon_Activated(this.h, (C.int)(reason)) } func (this *QSystemTrayIcon) OnActivated(slot func(reason QSystemTrayIcon__ActivationReason)) { - C.QSystemTrayIcon_connect_Activated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSystemTrayIcon_connect_Activated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSystemTrayIcon_Activated -func miqt_exec_callback_QSystemTrayIcon_Activated(cb *C.void, reason C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(reason QSystemTrayIcon__ActivationReason)) +func miqt_exec_callback_QSystemTrayIcon_Activated(cb C.intptr_t, reason C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(reason QSystemTrayIcon__ActivationReason)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -211,12 +211,12 @@ func (this *QSystemTrayIcon) MessageClicked() { C.QSystemTrayIcon_MessageClicked(this.h) } func (this *QSystemTrayIcon) OnMessageClicked(slot func()) { - C.QSystemTrayIcon_connect_MessageClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QSystemTrayIcon_connect_MessageClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QSystemTrayIcon_MessageClicked -func miqt_exec_callback_QSystemTrayIcon_MessageClicked(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QSystemTrayIcon_MessageClicked(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qsystemtrayicon.h b/qt/gen_qsystemtrayicon.h index b31814a..bc2e3ce 100644 --- a/qt/gen_qsystemtrayicon.h +++ b/qt/gen_qsystemtrayicon.h @@ -53,9 +53,9 @@ void QSystemTrayIcon_Hide(QSystemTrayIcon* self); void QSystemTrayIcon_ShowMessage(QSystemTrayIcon* self, struct miqt_string* title, struct miqt_string* msg, QIcon* icon); void QSystemTrayIcon_ShowMessage2(QSystemTrayIcon* self, struct miqt_string* title, struct miqt_string* msg); void QSystemTrayIcon_Activated(QSystemTrayIcon* self, int reason); -void QSystemTrayIcon_connect_Activated(QSystemTrayIcon* self, void* slot); +void QSystemTrayIcon_connect_Activated(QSystemTrayIcon* self, intptr_t slot); void QSystemTrayIcon_MessageClicked(QSystemTrayIcon* self); -void QSystemTrayIcon_connect_MessageClicked(QSystemTrayIcon* self, void* slot); +void QSystemTrayIcon_connect_MessageClicked(QSystemTrayIcon* self, intptr_t slot); struct miqt_string* QSystemTrayIcon_Tr2(const char* s, const char* c); struct miqt_string* QSystemTrayIcon_Tr3(const char* s, const char* c, int n); struct miqt_string* QSystemTrayIcon_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtabbar.cpp b/qt/gen_qtabbar.cpp index 939da2f..24155fd 100644 --- a/qt/gen_qtabbar.cpp +++ b/qt/gen_qtabbar.cpp @@ -299,7 +299,7 @@ void QTabBar_CurrentChanged(QTabBar* self, int index) { self->currentChanged(static_cast(index)); } -void QTabBar_connect_CurrentChanged(QTabBar* self, void* slot) { +void QTabBar_connect_CurrentChanged(QTabBar* self, intptr_t slot) { QTabBar::connect(self, static_cast(&QTabBar::currentChanged), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabBar_CurrentChanged(slot, sigval1); @@ -310,7 +310,7 @@ void QTabBar_TabCloseRequested(QTabBar* self, int index) { self->tabCloseRequested(static_cast(index)); } -void QTabBar_connect_TabCloseRequested(QTabBar* self, void* slot) { +void QTabBar_connect_TabCloseRequested(QTabBar* self, intptr_t slot) { QTabBar::connect(self, static_cast(&QTabBar::tabCloseRequested), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabBar_TabCloseRequested(slot, sigval1); @@ -321,7 +321,7 @@ void QTabBar_TabMoved(QTabBar* self, int from, int to) { self->tabMoved(static_cast(from), static_cast(to)); } -void QTabBar_connect_TabMoved(QTabBar* self, void* slot) { +void QTabBar_connect_TabMoved(QTabBar* self, intptr_t slot) { QTabBar::connect(self, static_cast(&QTabBar::tabMoved), self, [=](int from, int to) { int sigval1 = from; int sigval2 = to; @@ -333,7 +333,7 @@ void QTabBar_TabBarClicked(QTabBar* self, int index) { self->tabBarClicked(static_cast(index)); } -void QTabBar_connect_TabBarClicked(QTabBar* self, void* slot) { +void QTabBar_connect_TabBarClicked(QTabBar* self, intptr_t slot) { QTabBar::connect(self, static_cast(&QTabBar::tabBarClicked), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabBar_TabBarClicked(slot, sigval1); @@ -344,7 +344,7 @@ void QTabBar_TabBarDoubleClicked(QTabBar* self, int index) { self->tabBarDoubleClicked(static_cast(index)); } -void QTabBar_connect_TabBarDoubleClicked(QTabBar* self, void* slot) { +void QTabBar_connect_TabBarDoubleClicked(QTabBar* self, intptr_t slot) { QTabBar::connect(self, static_cast(&QTabBar::tabBarDoubleClicked), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabBar_TabBarDoubleClicked(slot, sigval1); diff --git a/qt/gen_qtabbar.go b/qt/gen_qtabbar.go index e3ae97b..bb41a40 100644 --- a/qt/gen_qtabbar.go +++ b/qt/gen_qtabbar.go @@ -386,12 +386,12 @@ func (this *QTabBar) CurrentChanged(index int) { C.QTabBar_CurrentChanged(this.h, (C.int)(index)) } func (this *QTabBar) OnCurrentChanged(slot func(index int)) { - C.QTabBar_connect_CurrentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabBar_connect_CurrentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabBar_CurrentChanged -func miqt_exec_callback_QTabBar_CurrentChanged(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabBar_CurrentChanged(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -406,12 +406,12 @@ func (this *QTabBar) TabCloseRequested(index int) { C.QTabBar_TabCloseRequested(this.h, (C.int)(index)) } func (this *QTabBar) OnTabCloseRequested(slot func(index int)) { - C.QTabBar_connect_TabCloseRequested(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabBar_connect_TabCloseRequested(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabBar_TabCloseRequested -func miqt_exec_callback_QTabBar_TabCloseRequested(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabBar_TabCloseRequested(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -426,12 +426,12 @@ func (this *QTabBar) TabMoved(from int, to int) { C.QTabBar_TabMoved(this.h, (C.int)(from), (C.int)(to)) } func (this *QTabBar) OnTabMoved(slot func(from int, to int)) { - C.QTabBar_connect_TabMoved(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabBar_connect_TabMoved(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabBar_TabMoved -func miqt_exec_callback_QTabBar_TabMoved(cb *C.void, from C.int, to C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(from int, to int)) +func miqt_exec_callback_QTabBar_TabMoved(cb C.intptr_t, from C.int, to C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(from int, to int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -448,12 +448,12 @@ func (this *QTabBar) TabBarClicked(index int) { C.QTabBar_TabBarClicked(this.h, (C.int)(index)) } func (this *QTabBar) OnTabBarClicked(slot func(index int)) { - C.QTabBar_connect_TabBarClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabBar_connect_TabBarClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabBar_TabBarClicked -func miqt_exec_callback_QTabBar_TabBarClicked(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabBar_TabBarClicked(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -468,12 +468,12 @@ func (this *QTabBar) TabBarDoubleClicked(index int) { C.QTabBar_TabBarDoubleClicked(this.h, (C.int)(index)) } func (this *QTabBar) OnTabBarDoubleClicked(slot func(index int)) { - C.QTabBar_connect_TabBarDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabBar_connect_TabBarDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabBar_TabBarDoubleClicked -func miqt_exec_callback_QTabBar_TabBarDoubleClicked(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabBar_TabBarDoubleClicked(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtabbar.h b/qt/gen_qtabbar.h index 35346e1..4b3d684 100644 --- a/qt/gen_qtabbar.h +++ b/qt/gen_qtabbar.h @@ -99,15 +99,15 @@ struct miqt_string* QTabBar_AccessibleTabName(const QTabBar* self, int index); void QTabBar_SetAccessibleTabName(QTabBar* self, int index, struct miqt_string* name); void QTabBar_SetCurrentIndex(QTabBar* self, int index); void QTabBar_CurrentChanged(QTabBar* self, int index); -void QTabBar_connect_CurrentChanged(QTabBar* self, void* slot); +void QTabBar_connect_CurrentChanged(QTabBar* self, intptr_t slot); void QTabBar_TabCloseRequested(QTabBar* self, int index); -void QTabBar_connect_TabCloseRequested(QTabBar* self, void* slot); +void QTabBar_connect_TabCloseRequested(QTabBar* self, intptr_t slot); void QTabBar_TabMoved(QTabBar* self, int from, int to); -void QTabBar_connect_TabMoved(QTabBar* self, void* slot); +void QTabBar_connect_TabMoved(QTabBar* self, intptr_t slot); void QTabBar_TabBarClicked(QTabBar* self, int index); -void QTabBar_connect_TabBarClicked(QTabBar* self, void* slot); +void QTabBar_connect_TabBarClicked(QTabBar* self, intptr_t slot); void QTabBar_TabBarDoubleClicked(QTabBar* self, int index); -void QTabBar_connect_TabBarDoubleClicked(QTabBar* self, void* slot); +void QTabBar_connect_TabBarDoubleClicked(QTabBar* self, intptr_t slot); struct miqt_string* QTabBar_Tr2(const char* s, const char* c); struct miqt_string* QTabBar_Tr3(const char* s, const char* c, int n); struct miqt_string* QTabBar_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtablewidget.cpp b/qt/gen_qtablewidget.cpp index de97327..511f8bb 100644 --- a/qt/gen_qtablewidget.cpp +++ b/qt/gen_qtablewidget.cpp @@ -582,7 +582,7 @@ void QTableWidget_ItemPressed(QTableWidget* self, QTableWidgetItem* item) { self->itemPressed(item); } -void QTableWidget_connect_ItemPressed(QTableWidget* self, void* slot) { +void QTableWidget_connect_ItemPressed(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemPressed), self, [=](QTableWidgetItem* item) { QTableWidgetItem* sigval1 = item; miqt_exec_callback_QTableWidget_ItemPressed(slot, sigval1); @@ -593,7 +593,7 @@ void QTableWidget_ItemClicked(QTableWidget* self, QTableWidgetItem* item) { self->itemClicked(item); } -void QTableWidget_connect_ItemClicked(QTableWidget* self, void* slot) { +void QTableWidget_connect_ItemClicked(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemClicked), self, [=](QTableWidgetItem* item) { QTableWidgetItem* sigval1 = item; miqt_exec_callback_QTableWidget_ItemClicked(slot, sigval1); @@ -604,7 +604,7 @@ void QTableWidget_ItemDoubleClicked(QTableWidget* self, QTableWidgetItem* item) self->itemDoubleClicked(item); } -void QTableWidget_connect_ItemDoubleClicked(QTableWidget* self, void* slot) { +void QTableWidget_connect_ItemDoubleClicked(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemDoubleClicked), self, [=](QTableWidgetItem* item) { QTableWidgetItem* sigval1 = item; miqt_exec_callback_QTableWidget_ItemDoubleClicked(slot, sigval1); @@ -615,7 +615,7 @@ void QTableWidget_ItemActivated(QTableWidget* self, QTableWidgetItem* item) { self->itemActivated(item); } -void QTableWidget_connect_ItemActivated(QTableWidget* self, void* slot) { +void QTableWidget_connect_ItemActivated(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemActivated), self, [=](QTableWidgetItem* item) { QTableWidgetItem* sigval1 = item; miqt_exec_callback_QTableWidget_ItemActivated(slot, sigval1); @@ -626,7 +626,7 @@ void QTableWidget_ItemEntered(QTableWidget* self, QTableWidgetItem* item) { self->itemEntered(item); } -void QTableWidget_connect_ItemEntered(QTableWidget* self, void* slot) { +void QTableWidget_connect_ItemEntered(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemEntered), self, [=](QTableWidgetItem* item) { QTableWidgetItem* sigval1 = item; miqt_exec_callback_QTableWidget_ItemEntered(slot, sigval1); @@ -637,7 +637,7 @@ void QTableWidget_ItemChanged(QTableWidget* self, QTableWidgetItem* item) { self->itemChanged(item); } -void QTableWidget_connect_ItemChanged(QTableWidget* self, void* slot) { +void QTableWidget_connect_ItemChanged(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemChanged), self, [=](QTableWidgetItem* item) { QTableWidgetItem* sigval1 = item; miqt_exec_callback_QTableWidget_ItemChanged(slot, sigval1); @@ -648,7 +648,7 @@ void QTableWidget_CurrentItemChanged(QTableWidget* self, QTableWidgetItem* curre self->currentItemChanged(current, previous); } -void QTableWidget_connect_CurrentItemChanged(QTableWidget* self, void* slot) { +void QTableWidget_connect_CurrentItemChanged(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::currentItemChanged), self, [=](QTableWidgetItem* current, QTableWidgetItem* previous) { QTableWidgetItem* sigval1 = current; QTableWidgetItem* sigval2 = previous; @@ -660,7 +660,7 @@ void QTableWidget_ItemSelectionChanged(QTableWidget* self) { self->itemSelectionChanged(); } -void QTableWidget_connect_ItemSelectionChanged(QTableWidget* self, void* slot) { +void QTableWidget_connect_ItemSelectionChanged(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::itemSelectionChanged), self, [=]() { miqt_exec_callback_QTableWidget_ItemSelectionChanged(slot); }); @@ -670,7 +670,7 @@ void QTableWidget_CellPressed(QTableWidget* self, int row, int column) { self->cellPressed(static_cast(row), static_cast(column)); } -void QTableWidget_connect_CellPressed(QTableWidget* self, void* slot) { +void QTableWidget_connect_CellPressed(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellPressed), self, [=](int row, int column) { int sigval1 = row; int sigval2 = column; @@ -682,7 +682,7 @@ void QTableWidget_CellClicked(QTableWidget* self, int row, int column) { self->cellClicked(static_cast(row), static_cast(column)); } -void QTableWidget_connect_CellClicked(QTableWidget* self, void* slot) { +void QTableWidget_connect_CellClicked(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellClicked), self, [=](int row, int column) { int sigval1 = row; int sigval2 = column; @@ -694,7 +694,7 @@ void QTableWidget_CellDoubleClicked(QTableWidget* self, int row, int column) { self->cellDoubleClicked(static_cast(row), static_cast(column)); } -void QTableWidget_connect_CellDoubleClicked(QTableWidget* self, void* slot) { +void QTableWidget_connect_CellDoubleClicked(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellDoubleClicked), self, [=](int row, int column) { int sigval1 = row; int sigval2 = column; @@ -706,7 +706,7 @@ void QTableWidget_CellActivated(QTableWidget* self, int row, int column) { self->cellActivated(static_cast(row), static_cast(column)); } -void QTableWidget_connect_CellActivated(QTableWidget* self, void* slot) { +void QTableWidget_connect_CellActivated(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellActivated), self, [=](int row, int column) { int sigval1 = row; int sigval2 = column; @@ -718,7 +718,7 @@ void QTableWidget_CellEntered(QTableWidget* self, int row, int column) { self->cellEntered(static_cast(row), static_cast(column)); } -void QTableWidget_connect_CellEntered(QTableWidget* self, void* slot) { +void QTableWidget_connect_CellEntered(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellEntered), self, [=](int row, int column) { int sigval1 = row; int sigval2 = column; @@ -730,7 +730,7 @@ void QTableWidget_CellChanged(QTableWidget* self, int row, int column) { self->cellChanged(static_cast(row), static_cast(column)); } -void QTableWidget_connect_CellChanged(QTableWidget* self, void* slot) { +void QTableWidget_connect_CellChanged(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::cellChanged), self, [=](int row, int column) { int sigval1 = row; int sigval2 = column; @@ -742,7 +742,7 @@ void QTableWidget_CurrentCellChanged(QTableWidget* self, int currentRow, int cur self->currentCellChanged(static_cast(currentRow), static_cast(currentColumn), static_cast(previousRow), static_cast(previousColumn)); } -void QTableWidget_connect_CurrentCellChanged(QTableWidget* self, void* slot) { +void QTableWidget_connect_CurrentCellChanged(QTableWidget* self, intptr_t slot) { QTableWidget::connect(self, static_cast(&QTableWidget::currentCellChanged), self, [=](int currentRow, int currentColumn, int previousRow, int previousColumn) { int sigval1 = currentRow; int sigval2 = currentColumn; diff --git a/qt/gen_qtablewidget.go b/qt/gen_qtablewidget.go index 2f49272..72f01de 100644 --- a/qt/gen_qtablewidget.go +++ b/qt/gen_qtablewidget.go @@ -741,12 +741,12 @@ func (this *QTableWidget) ItemPressed(item *QTableWidgetItem) { C.QTableWidget_ItemPressed(this.h, item.cPointer()) } func (this *QTableWidget) OnItemPressed(slot func(item *QTableWidgetItem)) { - C.QTableWidget_connect_ItemPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_ItemPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_ItemPressed -func miqt_exec_callback_QTableWidget_ItemPressed(cb *C.void, item *C.QTableWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTableWidgetItem)) +func miqt_exec_callback_QTableWidget_ItemPressed(cb C.intptr_t, item *C.QTableWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTableWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -761,12 +761,12 @@ func (this *QTableWidget) ItemClicked(item *QTableWidgetItem) { C.QTableWidget_ItemClicked(this.h, item.cPointer()) } func (this *QTableWidget) OnItemClicked(slot func(item *QTableWidgetItem)) { - C.QTableWidget_connect_ItemClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_ItemClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_ItemClicked -func miqt_exec_callback_QTableWidget_ItemClicked(cb *C.void, item *C.QTableWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTableWidgetItem)) +func miqt_exec_callback_QTableWidget_ItemClicked(cb C.intptr_t, item *C.QTableWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTableWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -781,12 +781,12 @@ func (this *QTableWidget) ItemDoubleClicked(item *QTableWidgetItem) { C.QTableWidget_ItemDoubleClicked(this.h, item.cPointer()) } func (this *QTableWidget) OnItemDoubleClicked(slot func(item *QTableWidgetItem)) { - C.QTableWidget_connect_ItemDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_ItemDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_ItemDoubleClicked -func miqt_exec_callback_QTableWidget_ItemDoubleClicked(cb *C.void, item *C.QTableWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTableWidgetItem)) +func miqt_exec_callback_QTableWidget_ItemDoubleClicked(cb C.intptr_t, item *C.QTableWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTableWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -801,12 +801,12 @@ func (this *QTableWidget) ItemActivated(item *QTableWidgetItem) { C.QTableWidget_ItemActivated(this.h, item.cPointer()) } func (this *QTableWidget) OnItemActivated(slot func(item *QTableWidgetItem)) { - C.QTableWidget_connect_ItemActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_ItemActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_ItemActivated -func miqt_exec_callback_QTableWidget_ItemActivated(cb *C.void, item *C.QTableWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTableWidgetItem)) +func miqt_exec_callback_QTableWidget_ItemActivated(cb C.intptr_t, item *C.QTableWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTableWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -821,12 +821,12 @@ func (this *QTableWidget) ItemEntered(item *QTableWidgetItem) { C.QTableWidget_ItemEntered(this.h, item.cPointer()) } func (this *QTableWidget) OnItemEntered(slot func(item *QTableWidgetItem)) { - C.QTableWidget_connect_ItemEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_ItemEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_ItemEntered -func miqt_exec_callback_QTableWidget_ItemEntered(cb *C.void, item *C.QTableWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTableWidgetItem)) +func miqt_exec_callback_QTableWidget_ItemEntered(cb C.intptr_t, item *C.QTableWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTableWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -841,12 +841,12 @@ func (this *QTableWidget) ItemChanged(item *QTableWidgetItem) { C.QTableWidget_ItemChanged(this.h, item.cPointer()) } func (this *QTableWidget) OnItemChanged(slot func(item *QTableWidgetItem)) { - C.QTableWidget_connect_ItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_ItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_ItemChanged -func miqt_exec_callback_QTableWidget_ItemChanged(cb *C.void, item *C.QTableWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTableWidgetItem)) +func miqt_exec_callback_QTableWidget_ItemChanged(cb C.intptr_t, item *C.QTableWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTableWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -861,12 +861,12 @@ func (this *QTableWidget) CurrentItemChanged(current *QTableWidgetItem, previous C.QTableWidget_CurrentItemChanged(this.h, current.cPointer(), previous.cPointer()) } func (this *QTableWidget) OnCurrentItemChanged(slot func(current *QTableWidgetItem, previous *QTableWidgetItem)) { - C.QTableWidget_connect_CurrentItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CurrentItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CurrentItemChanged -func miqt_exec_callback_QTableWidget_CurrentItemChanged(cb *C.void, current *C.QTableWidgetItem, previous *C.QTableWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(current *QTableWidgetItem, previous *QTableWidgetItem)) +func miqt_exec_callback_QTableWidget_CurrentItemChanged(cb C.intptr_t, current *C.QTableWidgetItem, previous *C.QTableWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(current *QTableWidgetItem, previous *QTableWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -882,12 +882,12 @@ func (this *QTableWidget) ItemSelectionChanged() { C.QTableWidget_ItemSelectionChanged(this.h) } func (this *QTableWidget) OnItemSelectionChanged(slot func()) { - C.QTableWidget_connect_ItemSelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_ItemSelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_ItemSelectionChanged -func miqt_exec_callback_QTableWidget_ItemSelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTableWidget_ItemSelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -899,12 +899,12 @@ func (this *QTableWidget) CellPressed(row int, column int) { C.QTableWidget_CellPressed(this.h, (C.int)(row), (C.int)(column)) } func (this *QTableWidget) OnCellPressed(slot func(row int, column int)) { - C.QTableWidget_connect_CellPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CellPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CellPressed -func miqt_exec_callback_QTableWidget_CellPressed(cb *C.void, row C.int, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(row int, column int)) +func miqt_exec_callback_QTableWidget_CellPressed(cb C.intptr_t, row C.int, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(row int, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -921,12 +921,12 @@ func (this *QTableWidget) CellClicked(row int, column int) { C.QTableWidget_CellClicked(this.h, (C.int)(row), (C.int)(column)) } func (this *QTableWidget) OnCellClicked(slot func(row int, column int)) { - C.QTableWidget_connect_CellClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CellClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CellClicked -func miqt_exec_callback_QTableWidget_CellClicked(cb *C.void, row C.int, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(row int, column int)) +func miqt_exec_callback_QTableWidget_CellClicked(cb C.intptr_t, row C.int, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(row int, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -943,12 +943,12 @@ func (this *QTableWidget) CellDoubleClicked(row int, column int) { C.QTableWidget_CellDoubleClicked(this.h, (C.int)(row), (C.int)(column)) } func (this *QTableWidget) OnCellDoubleClicked(slot func(row int, column int)) { - C.QTableWidget_connect_CellDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CellDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CellDoubleClicked -func miqt_exec_callback_QTableWidget_CellDoubleClicked(cb *C.void, row C.int, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(row int, column int)) +func miqt_exec_callback_QTableWidget_CellDoubleClicked(cb C.intptr_t, row C.int, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(row int, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -965,12 +965,12 @@ func (this *QTableWidget) CellActivated(row int, column int) { C.QTableWidget_CellActivated(this.h, (C.int)(row), (C.int)(column)) } func (this *QTableWidget) OnCellActivated(slot func(row int, column int)) { - C.QTableWidget_connect_CellActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CellActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CellActivated -func miqt_exec_callback_QTableWidget_CellActivated(cb *C.void, row C.int, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(row int, column int)) +func miqt_exec_callback_QTableWidget_CellActivated(cb C.intptr_t, row C.int, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(row int, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -987,12 +987,12 @@ func (this *QTableWidget) CellEntered(row int, column int) { C.QTableWidget_CellEntered(this.h, (C.int)(row), (C.int)(column)) } func (this *QTableWidget) OnCellEntered(slot func(row int, column int)) { - C.QTableWidget_connect_CellEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CellEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CellEntered -func miqt_exec_callback_QTableWidget_CellEntered(cb *C.void, row C.int, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(row int, column int)) +func miqt_exec_callback_QTableWidget_CellEntered(cb C.intptr_t, row C.int, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(row int, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1009,12 +1009,12 @@ func (this *QTableWidget) CellChanged(row int, column int) { C.QTableWidget_CellChanged(this.h, (C.int)(row), (C.int)(column)) } func (this *QTableWidget) OnCellChanged(slot func(row int, column int)) { - C.QTableWidget_connect_CellChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CellChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CellChanged -func miqt_exec_callback_QTableWidget_CellChanged(cb *C.void, row C.int, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(row int, column int)) +func miqt_exec_callback_QTableWidget_CellChanged(cb C.intptr_t, row C.int, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(row int, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1031,12 +1031,12 @@ func (this *QTableWidget) CurrentCellChanged(currentRow int, currentColumn int, C.QTableWidget_CurrentCellChanged(this.h, (C.int)(currentRow), (C.int)(currentColumn), (C.int)(previousRow), (C.int)(previousColumn)) } func (this *QTableWidget) OnCurrentCellChanged(slot func(currentRow int, currentColumn int, previousRow int, previousColumn int)) { - C.QTableWidget_connect_CurrentCellChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTableWidget_connect_CurrentCellChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTableWidget_CurrentCellChanged -func miqt_exec_callback_QTableWidget_CurrentCellChanged(cb *C.void, currentRow C.int, currentColumn C.int, previousRow C.int, previousColumn C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(currentRow int, currentColumn int, previousRow int, previousColumn int)) +func miqt_exec_callback_QTableWidget_CurrentCellChanged(cb C.intptr_t, currentRow C.int, currentColumn C.int, previousRow C.int, previousColumn C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(currentRow int, currentColumn int, previousRow int, previousColumn int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtablewidget.h b/qt/gen_qtablewidget.h index c3a7882..72f3158 100644 --- a/qt/gen_qtablewidget.h +++ b/qt/gen_qtablewidget.h @@ -170,35 +170,35 @@ void QTableWidget_RemoveColumn(QTableWidget* self, int column); void QTableWidget_Clear(QTableWidget* self); void QTableWidget_ClearContents(QTableWidget* self); void QTableWidget_ItemPressed(QTableWidget* self, QTableWidgetItem* item); -void QTableWidget_connect_ItemPressed(QTableWidget* self, void* slot); +void QTableWidget_connect_ItemPressed(QTableWidget* self, intptr_t slot); void QTableWidget_ItemClicked(QTableWidget* self, QTableWidgetItem* item); -void QTableWidget_connect_ItemClicked(QTableWidget* self, void* slot); +void QTableWidget_connect_ItemClicked(QTableWidget* self, intptr_t slot); void QTableWidget_ItemDoubleClicked(QTableWidget* self, QTableWidgetItem* item); -void QTableWidget_connect_ItemDoubleClicked(QTableWidget* self, void* slot); +void QTableWidget_connect_ItemDoubleClicked(QTableWidget* self, intptr_t slot); void QTableWidget_ItemActivated(QTableWidget* self, QTableWidgetItem* item); -void QTableWidget_connect_ItemActivated(QTableWidget* self, void* slot); +void QTableWidget_connect_ItemActivated(QTableWidget* self, intptr_t slot); void QTableWidget_ItemEntered(QTableWidget* self, QTableWidgetItem* item); -void QTableWidget_connect_ItemEntered(QTableWidget* self, void* slot); +void QTableWidget_connect_ItemEntered(QTableWidget* self, intptr_t slot); void QTableWidget_ItemChanged(QTableWidget* self, QTableWidgetItem* item); -void QTableWidget_connect_ItemChanged(QTableWidget* self, void* slot); +void QTableWidget_connect_ItemChanged(QTableWidget* self, intptr_t slot); void QTableWidget_CurrentItemChanged(QTableWidget* self, QTableWidgetItem* current, QTableWidgetItem* previous); -void QTableWidget_connect_CurrentItemChanged(QTableWidget* self, void* slot); +void QTableWidget_connect_CurrentItemChanged(QTableWidget* self, intptr_t slot); void QTableWidget_ItemSelectionChanged(QTableWidget* self); -void QTableWidget_connect_ItemSelectionChanged(QTableWidget* self, void* slot); +void QTableWidget_connect_ItemSelectionChanged(QTableWidget* self, intptr_t slot); void QTableWidget_CellPressed(QTableWidget* self, int row, int column); -void QTableWidget_connect_CellPressed(QTableWidget* self, void* slot); +void QTableWidget_connect_CellPressed(QTableWidget* self, intptr_t slot); void QTableWidget_CellClicked(QTableWidget* self, int row, int column); -void QTableWidget_connect_CellClicked(QTableWidget* self, void* slot); +void QTableWidget_connect_CellClicked(QTableWidget* self, intptr_t slot); void QTableWidget_CellDoubleClicked(QTableWidget* self, int row, int column); -void QTableWidget_connect_CellDoubleClicked(QTableWidget* self, void* slot); +void QTableWidget_connect_CellDoubleClicked(QTableWidget* self, intptr_t slot); void QTableWidget_CellActivated(QTableWidget* self, int row, int column); -void QTableWidget_connect_CellActivated(QTableWidget* self, void* slot); +void QTableWidget_connect_CellActivated(QTableWidget* self, intptr_t slot); void QTableWidget_CellEntered(QTableWidget* self, int row, int column); -void QTableWidget_connect_CellEntered(QTableWidget* self, void* slot); +void QTableWidget_connect_CellEntered(QTableWidget* self, intptr_t slot); void QTableWidget_CellChanged(QTableWidget* self, int row, int column); -void QTableWidget_connect_CellChanged(QTableWidget* self, void* slot); +void QTableWidget_connect_CellChanged(QTableWidget* self, intptr_t slot); void QTableWidget_CurrentCellChanged(QTableWidget* self, int currentRow, int currentColumn, int previousRow, int previousColumn); -void QTableWidget_connect_CurrentCellChanged(QTableWidget* self, void* slot); +void QTableWidget_connect_CurrentCellChanged(QTableWidget* self, intptr_t slot); struct miqt_string* QTableWidget_Tr2(const char* s, const char* c); struct miqt_string* QTableWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QTableWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtabwidget.cpp b/qt/gen_qtabwidget.cpp index c68e64f..6b8c14b 100644 --- a/qt/gen_qtabwidget.cpp +++ b/qt/gen_qtabwidget.cpp @@ -264,7 +264,7 @@ void QTabWidget_CurrentChanged(QTabWidget* self, int index) { self->currentChanged(static_cast(index)); } -void QTabWidget_connect_CurrentChanged(QTabWidget* self, void* slot) { +void QTabWidget_connect_CurrentChanged(QTabWidget* self, intptr_t slot) { QTabWidget::connect(self, static_cast(&QTabWidget::currentChanged), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabWidget_CurrentChanged(slot, sigval1); @@ -275,7 +275,7 @@ void QTabWidget_TabCloseRequested(QTabWidget* self, int index) { self->tabCloseRequested(static_cast(index)); } -void QTabWidget_connect_TabCloseRequested(QTabWidget* self, void* slot) { +void QTabWidget_connect_TabCloseRequested(QTabWidget* self, intptr_t slot) { QTabWidget::connect(self, static_cast(&QTabWidget::tabCloseRequested), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabWidget_TabCloseRequested(slot, sigval1); @@ -286,7 +286,7 @@ void QTabWidget_TabBarClicked(QTabWidget* self, int index) { self->tabBarClicked(static_cast(index)); } -void QTabWidget_connect_TabBarClicked(QTabWidget* self, void* slot) { +void QTabWidget_connect_TabBarClicked(QTabWidget* self, intptr_t slot) { QTabWidget::connect(self, static_cast(&QTabWidget::tabBarClicked), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabWidget_TabBarClicked(slot, sigval1); @@ -297,7 +297,7 @@ void QTabWidget_TabBarDoubleClicked(QTabWidget* self, int index) { self->tabBarDoubleClicked(static_cast(index)); } -void QTabWidget_connect_TabBarDoubleClicked(QTabWidget* self, void* slot) { +void QTabWidget_connect_TabBarDoubleClicked(QTabWidget* self, intptr_t slot) { QTabWidget::connect(self, static_cast(&QTabWidget::tabBarDoubleClicked), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QTabWidget_TabBarDoubleClicked(slot, sigval1); diff --git a/qt/gen_qtabwidget.go b/qt/gen_qtabwidget.go index 3f72af2..b105ff1 100644 --- a/qt/gen_qtabwidget.go +++ b/qt/gen_qtabwidget.go @@ -332,12 +332,12 @@ func (this *QTabWidget) CurrentChanged(index int) { C.QTabWidget_CurrentChanged(this.h, (C.int)(index)) } func (this *QTabWidget) OnCurrentChanged(slot func(index int)) { - C.QTabWidget_connect_CurrentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabWidget_connect_CurrentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabWidget_CurrentChanged -func miqt_exec_callback_QTabWidget_CurrentChanged(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabWidget_CurrentChanged(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -352,12 +352,12 @@ func (this *QTabWidget) TabCloseRequested(index int) { C.QTabWidget_TabCloseRequested(this.h, (C.int)(index)) } func (this *QTabWidget) OnTabCloseRequested(slot func(index int)) { - C.QTabWidget_connect_TabCloseRequested(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabWidget_connect_TabCloseRequested(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabWidget_TabCloseRequested -func miqt_exec_callback_QTabWidget_TabCloseRequested(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabWidget_TabCloseRequested(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -372,12 +372,12 @@ func (this *QTabWidget) TabBarClicked(index int) { C.QTabWidget_TabBarClicked(this.h, (C.int)(index)) } func (this *QTabWidget) OnTabBarClicked(slot func(index int)) { - C.QTabWidget_connect_TabBarClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabWidget_connect_TabBarClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabWidget_TabBarClicked -func miqt_exec_callback_QTabWidget_TabBarClicked(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabWidget_TabBarClicked(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -392,12 +392,12 @@ func (this *QTabWidget) TabBarDoubleClicked(index int) { C.QTabWidget_TabBarDoubleClicked(this.h, (C.int)(index)) } func (this *QTabWidget) OnTabBarDoubleClicked(slot func(index int)) { - C.QTabWidget_connect_TabBarDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTabWidget_connect_TabBarDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTabWidget_TabBarDoubleClicked -func miqt_exec_callback_QTabWidget_TabBarDoubleClicked(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QTabWidget_TabBarDoubleClicked(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtabwidget.h b/qt/gen_qtabwidget.h index 479ec6f..9aae61a 100644 --- a/qt/gen_qtabwidget.h +++ b/qt/gen_qtabwidget.h @@ -86,13 +86,13 @@ QTabBar* QTabWidget_TabBar(const QTabWidget* self); void QTabWidget_SetCurrentIndex(QTabWidget* self, int index); void QTabWidget_SetCurrentWidget(QTabWidget* self, QWidget* widget); void QTabWidget_CurrentChanged(QTabWidget* self, int index); -void QTabWidget_connect_CurrentChanged(QTabWidget* self, void* slot); +void QTabWidget_connect_CurrentChanged(QTabWidget* self, intptr_t slot); void QTabWidget_TabCloseRequested(QTabWidget* self, int index); -void QTabWidget_connect_TabCloseRequested(QTabWidget* self, void* slot); +void QTabWidget_connect_TabCloseRequested(QTabWidget* self, intptr_t slot); void QTabWidget_TabBarClicked(QTabWidget* self, int index); -void QTabWidget_connect_TabBarClicked(QTabWidget* self, void* slot); +void QTabWidget_connect_TabBarClicked(QTabWidget* self, intptr_t slot); void QTabWidget_TabBarDoubleClicked(QTabWidget* self, int index); -void QTabWidget_connect_TabBarDoubleClicked(QTabWidget* self, void* slot); +void QTabWidget_connect_TabBarDoubleClicked(QTabWidget* self, intptr_t slot); struct miqt_string* QTabWidget_Tr2(const char* s, const char* c); struct miqt_string* QTabWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QTabWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtextbrowser.cpp b/qt/gen_qtextbrowser.cpp index 1606d39..aa9144b 100644 --- a/qt/gen_qtextbrowser.cpp +++ b/qt/gen_qtextbrowser.cpp @@ -156,7 +156,7 @@ void QTextBrowser_BackwardAvailable(QTextBrowser* self, bool param1) { self->backwardAvailable(param1); } -void QTextBrowser_connect_BackwardAvailable(QTextBrowser* self, void* slot) { +void QTextBrowser_connect_BackwardAvailable(QTextBrowser* self, intptr_t slot) { QTextBrowser::connect(self, static_cast(&QTextBrowser::backwardAvailable), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QTextBrowser_BackwardAvailable(slot, sigval1); @@ -167,7 +167,7 @@ void QTextBrowser_ForwardAvailable(QTextBrowser* self, bool param1) { self->forwardAvailable(param1); } -void QTextBrowser_connect_ForwardAvailable(QTextBrowser* self, void* slot) { +void QTextBrowser_connect_ForwardAvailable(QTextBrowser* self, intptr_t slot) { QTextBrowser::connect(self, static_cast(&QTextBrowser::forwardAvailable), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QTextBrowser_ForwardAvailable(slot, sigval1); @@ -178,7 +178,7 @@ void QTextBrowser_HistoryChanged(QTextBrowser* self) { self->historyChanged(); } -void QTextBrowser_connect_HistoryChanged(QTextBrowser* self, void* slot) { +void QTextBrowser_connect_HistoryChanged(QTextBrowser* self, intptr_t slot) { QTextBrowser::connect(self, static_cast(&QTextBrowser::historyChanged), self, [=]() { miqt_exec_callback_QTextBrowser_HistoryChanged(slot); }); @@ -188,7 +188,7 @@ void QTextBrowser_SourceChanged(QTextBrowser* self, QUrl* param1) { self->sourceChanged(*param1); } -void QTextBrowser_connect_SourceChanged(QTextBrowser* self, void* slot) { +void QTextBrowser_connect_SourceChanged(QTextBrowser* self, intptr_t slot) { QTextBrowser::connect(self, static_cast(&QTextBrowser::sourceChanged), self, [=](const QUrl& param1) { const QUrl& param1_ret = param1; // Cast returned reference into pointer @@ -201,7 +201,7 @@ void QTextBrowser_Highlighted(QTextBrowser* self, QUrl* param1) { self->highlighted(*param1); } -void QTextBrowser_connect_Highlighted(QTextBrowser* self, void* slot) { +void QTextBrowser_connect_Highlighted(QTextBrowser* self, intptr_t slot) { QTextBrowser::connect(self, static_cast(&QTextBrowser::highlighted), self, [=](const QUrl& param1) { const QUrl& param1_ret = param1; // Cast returned reference into pointer @@ -215,7 +215,7 @@ void QTextBrowser_HighlightedWithQString(QTextBrowser* self, struct miqt_string* self->highlighted(param1_QString); } -void QTextBrowser_connect_HighlightedWithQString(QTextBrowser* self, void* slot) { +void QTextBrowser_connect_HighlightedWithQString(QTextBrowser* self, intptr_t slot) { QTextBrowser::connect(self, static_cast(&QTextBrowser::highlighted), self, [=](const QString& param1) { const QString param1_ret = param1; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -229,7 +229,7 @@ void QTextBrowser_AnchorClicked(QTextBrowser* self, QUrl* param1) { self->anchorClicked(*param1); } -void QTextBrowser_connect_AnchorClicked(QTextBrowser* self, void* slot) { +void QTextBrowser_connect_AnchorClicked(QTextBrowser* self, intptr_t slot) { QTextBrowser::connect(self, static_cast(&QTextBrowser::anchorClicked), self, [=](const QUrl& param1) { const QUrl& param1_ret = param1; // Cast returned reference into pointer diff --git a/qt/gen_qtextbrowser.go b/qt/gen_qtextbrowser.go index 6438b2b..ea671c8 100644 --- a/qt/gen_qtextbrowser.go +++ b/qt/gen_qtextbrowser.go @@ -201,12 +201,12 @@ func (this *QTextBrowser) BackwardAvailable(param1 bool) { C.QTextBrowser_BackwardAvailable(this.h, (C.bool)(param1)) } func (this *QTextBrowser) OnBackwardAvailable(slot func(param1 bool)) { - C.QTextBrowser_connect_BackwardAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextBrowser_connect_BackwardAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextBrowser_BackwardAvailable -func miqt_exec_callback_QTextBrowser_BackwardAvailable(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QTextBrowser_BackwardAvailable(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -221,12 +221,12 @@ func (this *QTextBrowser) ForwardAvailable(param1 bool) { C.QTextBrowser_ForwardAvailable(this.h, (C.bool)(param1)) } func (this *QTextBrowser) OnForwardAvailable(slot func(param1 bool)) { - C.QTextBrowser_connect_ForwardAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextBrowser_connect_ForwardAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextBrowser_ForwardAvailable -func miqt_exec_callback_QTextBrowser_ForwardAvailable(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QTextBrowser_ForwardAvailable(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -241,12 +241,12 @@ func (this *QTextBrowser) HistoryChanged() { C.QTextBrowser_HistoryChanged(this.h) } func (this *QTextBrowser) OnHistoryChanged(slot func()) { - C.QTextBrowser_connect_HistoryChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextBrowser_connect_HistoryChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextBrowser_HistoryChanged -func miqt_exec_callback_QTextBrowser_HistoryChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTextBrowser_HistoryChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -258,12 +258,12 @@ func (this *QTextBrowser) SourceChanged(param1 *QUrl) { C.QTextBrowser_SourceChanged(this.h, param1.cPointer()) } func (this *QTextBrowser) OnSourceChanged(slot func(param1 *QUrl)) { - C.QTextBrowser_connect_SourceChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextBrowser_connect_SourceChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextBrowser_SourceChanged -func miqt_exec_callback_QTextBrowser_SourceChanged(cb *C.void, param1 *C.QUrl) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QUrl)) +func miqt_exec_callback_QTextBrowser_SourceChanged(cb C.intptr_t, param1 *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -278,12 +278,12 @@ func (this *QTextBrowser) Highlighted(param1 *QUrl) { C.QTextBrowser_Highlighted(this.h, param1.cPointer()) } func (this *QTextBrowser) OnHighlighted(slot func(param1 *QUrl)) { - C.QTextBrowser_connect_Highlighted(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextBrowser_connect_Highlighted(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextBrowser_Highlighted -func miqt_exec_callback_QTextBrowser_Highlighted(cb *C.void, param1 *C.QUrl) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QUrl)) +func miqt_exec_callback_QTextBrowser_Highlighted(cb C.intptr_t, param1 *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -300,12 +300,12 @@ func (this *QTextBrowser) HighlightedWithQString(param1 string) { C.QTextBrowser_HighlightedWithQString(this.h, (*C.struct_miqt_string)(param1_ms)) } func (this *QTextBrowser) OnHighlightedWithQString(slot func(param1 string)) { - C.QTextBrowser_connect_HighlightedWithQString(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextBrowser_connect_HighlightedWithQString(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextBrowser_HighlightedWithQString -func miqt_exec_callback_QTextBrowser_HighlightedWithQString(cb *C.void, param1 *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string)) +func miqt_exec_callback_QTextBrowser_HighlightedWithQString(cb C.intptr_t, param1 *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -323,12 +323,12 @@ func (this *QTextBrowser) AnchorClicked(param1 *QUrl) { C.QTextBrowser_AnchorClicked(this.h, param1.cPointer()) } func (this *QTextBrowser) OnAnchorClicked(slot func(param1 *QUrl)) { - C.QTextBrowser_connect_AnchorClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextBrowser_connect_AnchorClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextBrowser_AnchorClicked -func miqt_exec_callback_QTextBrowser_AnchorClicked(cb *C.void, param1 *C.QUrl) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QUrl)) +func miqt_exec_callback_QTextBrowser_AnchorClicked(cb C.intptr_t, param1 *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtextbrowser.h b/qt/gen_qtextbrowser.h index cc021bf..2c7cdc5 100644 --- a/qt/gen_qtextbrowser.h +++ b/qt/gen_qtextbrowser.h @@ -56,19 +56,19 @@ void QTextBrowser_Forward(QTextBrowser* self); void QTextBrowser_Home(QTextBrowser* self); void QTextBrowser_Reload(QTextBrowser* self); void QTextBrowser_BackwardAvailable(QTextBrowser* self, bool param1); -void QTextBrowser_connect_BackwardAvailable(QTextBrowser* self, void* slot); +void QTextBrowser_connect_BackwardAvailable(QTextBrowser* self, intptr_t slot); void QTextBrowser_ForwardAvailable(QTextBrowser* self, bool param1); -void QTextBrowser_connect_ForwardAvailable(QTextBrowser* self, void* slot); +void QTextBrowser_connect_ForwardAvailable(QTextBrowser* self, intptr_t slot); void QTextBrowser_HistoryChanged(QTextBrowser* self); -void QTextBrowser_connect_HistoryChanged(QTextBrowser* self, void* slot); +void QTextBrowser_connect_HistoryChanged(QTextBrowser* self, intptr_t slot); void QTextBrowser_SourceChanged(QTextBrowser* self, QUrl* param1); -void QTextBrowser_connect_SourceChanged(QTextBrowser* self, void* slot); +void QTextBrowser_connect_SourceChanged(QTextBrowser* self, intptr_t slot); void QTextBrowser_Highlighted(QTextBrowser* self, QUrl* param1); -void QTextBrowser_connect_Highlighted(QTextBrowser* self, void* slot); +void QTextBrowser_connect_Highlighted(QTextBrowser* self, intptr_t slot); void QTextBrowser_HighlightedWithQString(QTextBrowser* self, struct miqt_string* param1); -void QTextBrowser_connect_HighlightedWithQString(QTextBrowser* self, void* slot); +void QTextBrowser_connect_HighlightedWithQString(QTextBrowser* self, intptr_t slot); void QTextBrowser_AnchorClicked(QTextBrowser* self, QUrl* param1); -void QTextBrowser_connect_AnchorClicked(QTextBrowser* self, void* slot); +void QTextBrowser_connect_AnchorClicked(QTextBrowser* self, intptr_t slot); struct miqt_string* QTextBrowser_Tr2(const char* s, const char* c); struct miqt_string* QTextBrowser_Tr3(const char* s, const char* c, int n); struct miqt_string* QTextBrowser_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtextdocument.cpp b/qt/gen_qtextdocument.cpp index cb9c27c..32d0a83 100644 --- a/qt/gen_qtextdocument.cpp +++ b/qt/gen_qtextdocument.cpp @@ -439,7 +439,7 @@ void QTextDocument_ContentsChange(QTextDocument* self, int from, int charsRemove self->contentsChange(static_cast(from), static_cast(charsRemoved), static_cast(charsAdded)); } -void QTextDocument_connect_ContentsChange(QTextDocument* self, void* slot) { +void QTextDocument_connect_ContentsChange(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::contentsChange), self, [=](int from, int charsRemoved, int charsAdded) { int sigval1 = from; int sigval2 = charsRemoved; @@ -452,7 +452,7 @@ void QTextDocument_ContentsChanged(QTextDocument* self) { self->contentsChanged(); } -void QTextDocument_connect_ContentsChanged(QTextDocument* self, void* slot) { +void QTextDocument_connect_ContentsChanged(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::contentsChanged), self, [=]() { miqt_exec_callback_QTextDocument_ContentsChanged(slot); }); @@ -462,7 +462,7 @@ void QTextDocument_UndoAvailable(QTextDocument* self, bool param1) { self->undoAvailable(param1); } -void QTextDocument_connect_UndoAvailable(QTextDocument* self, void* slot) { +void QTextDocument_connect_UndoAvailable(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::undoAvailable), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QTextDocument_UndoAvailable(slot, sigval1); @@ -473,7 +473,7 @@ void QTextDocument_RedoAvailable(QTextDocument* self, bool param1) { self->redoAvailable(param1); } -void QTextDocument_connect_RedoAvailable(QTextDocument* self, void* slot) { +void QTextDocument_connect_RedoAvailable(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::redoAvailable), self, [=](bool param1) { bool sigval1 = param1; miqt_exec_callback_QTextDocument_RedoAvailable(slot, sigval1); @@ -484,7 +484,7 @@ void QTextDocument_UndoCommandAdded(QTextDocument* self) { self->undoCommandAdded(); } -void QTextDocument_connect_UndoCommandAdded(QTextDocument* self, void* slot) { +void QTextDocument_connect_UndoCommandAdded(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::undoCommandAdded), self, [=]() { miqt_exec_callback_QTextDocument_UndoCommandAdded(slot); }); @@ -494,7 +494,7 @@ void QTextDocument_ModificationChanged(QTextDocument* self, bool m) { self->modificationChanged(m); } -void QTextDocument_connect_ModificationChanged(QTextDocument* self, void* slot) { +void QTextDocument_connect_ModificationChanged(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::modificationChanged), self, [=](bool m) { bool sigval1 = m; miqt_exec_callback_QTextDocument_ModificationChanged(slot, sigval1); @@ -505,7 +505,7 @@ void QTextDocument_CursorPositionChanged(QTextDocument* self, QTextCursor* curso self->cursorPositionChanged(*cursor); } -void QTextDocument_connect_CursorPositionChanged(QTextDocument* self, void* slot) { +void QTextDocument_connect_CursorPositionChanged(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::cursorPositionChanged), self, [=](const QTextCursor& cursor) { const QTextCursor& cursor_ret = cursor; // Cast returned reference into pointer @@ -518,7 +518,7 @@ void QTextDocument_BlockCountChanged(QTextDocument* self, int newBlockCount) { self->blockCountChanged(static_cast(newBlockCount)); } -void QTextDocument_connect_BlockCountChanged(QTextDocument* self, void* slot) { +void QTextDocument_connect_BlockCountChanged(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::blockCountChanged), self, [=](int newBlockCount) { int sigval1 = newBlockCount; miqt_exec_callback_QTextDocument_BlockCountChanged(slot, sigval1); @@ -529,7 +529,7 @@ void QTextDocument_BaseUrlChanged(QTextDocument* self, QUrl* url) { self->baseUrlChanged(*url); } -void QTextDocument_connect_BaseUrlChanged(QTextDocument* self, void* slot) { +void QTextDocument_connect_BaseUrlChanged(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::baseUrlChanged), self, [=](const QUrl& url) { const QUrl& url_ret = url; // Cast returned reference into pointer @@ -542,7 +542,7 @@ void QTextDocument_DocumentLayoutChanged(QTextDocument* self) { self->documentLayoutChanged(); } -void QTextDocument_connect_DocumentLayoutChanged(QTextDocument* self, void* slot) { +void QTextDocument_connect_DocumentLayoutChanged(QTextDocument* self, intptr_t slot) { QTextDocument::connect(self, static_cast(&QTextDocument::documentLayoutChanged), self, [=]() { miqt_exec_callback_QTextDocument_DocumentLayoutChanged(slot); }); diff --git a/qt/gen_qtextdocument.go b/qt/gen_qtextdocument.go index e6074b4..14747e7 100644 --- a/qt/gen_qtextdocument.go +++ b/qt/gen_qtextdocument.go @@ -601,12 +601,12 @@ func (this *QTextDocument) ContentsChange(from int, charsRemoved int, charsAdded C.QTextDocument_ContentsChange(this.h, (C.int)(from), (C.int)(charsRemoved), (C.int)(charsAdded)) } func (this *QTextDocument) OnContentsChange(slot func(from int, charsRemoved int, charsAdded int)) { - C.QTextDocument_connect_ContentsChange(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_ContentsChange(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_ContentsChange -func miqt_exec_callback_QTextDocument_ContentsChange(cb *C.void, from C.int, charsRemoved C.int, charsAdded C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(from int, charsRemoved int, charsAdded int)) +func miqt_exec_callback_QTextDocument_ContentsChange(cb C.intptr_t, from C.int, charsRemoved C.int, charsAdded C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(from int, charsRemoved int, charsAdded int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -625,12 +625,12 @@ func (this *QTextDocument) ContentsChanged() { C.QTextDocument_ContentsChanged(this.h) } func (this *QTextDocument) OnContentsChanged(slot func()) { - C.QTextDocument_connect_ContentsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_ContentsChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_ContentsChanged -func miqt_exec_callback_QTextDocument_ContentsChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTextDocument_ContentsChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -642,12 +642,12 @@ func (this *QTextDocument) UndoAvailable(param1 bool) { C.QTextDocument_UndoAvailable(this.h, (C.bool)(param1)) } func (this *QTextDocument) OnUndoAvailable(slot func(param1 bool)) { - C.QTextDocument_connect_UndoAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_UndoAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_UndoAvailable -func miqt_exec_callback_QTextDocument_UndoAvailable(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QTextDocument_UndoAvailable(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -662,12 +662,12 @@ func (this *QTextDocument) RedoAvailable(param1 bool) { C.QTextDocument_RedoAvailable(this.h, (C.bool)(param1)) } func (this *QTextDocument) OnRedoAvailable(slot func(param1 bool)) { - C.QTextDocument_connect_RedoAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_RedoAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_RedoAvailable -func miqt_exec_callback_QTextDocument_RedoAvailable(cb *C.void, param1 C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 bool)) +func miqt_exec_callback_QTextDocument_RedoAvailable(cb C.intptr_t, param1 C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -682,12 +682,12 @@ func (this *QTextDocument) UndoCommandAdded() { C.QTextDocument_UndoCommandAdded(this.h) } func (this *QTextDocument) OnUndoCommandAdded(slot func()) { - C.QTextDocument_connect_UndoCommandAdded(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_UndoCommandAdded(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_UndoCommandAdded -func miqt_exec_callback_QTextDocument_UndoCommandAdded(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTextDocument_UndoCommandAdded(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -699,12 +699,12 @@ func (this *QTextDocument) ModificationChanged(m bool) { C.QTextDocument_ModificationChanged(this.h, (C.bool)(m)) } func (this *QTextDocument) OnModificationChanged(slot func(m bool)) { - C.QTextDocument_connect_ModificationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_ModificationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_ModificationChanged -func miqt_exec_callback_QTextDocument_ModificationChanged(cb *C.void, m C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(m bool)) +func miqt_exec_callback_QTextDocument_ModificationChanged(cb C.intptr_t, m C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(m bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -719,12 +719,12 @@ func (this *QTextDocument) CursorPositionChanged(cursor *QTextCursor) { C.QTextDocument_CursorPositionChanged(this.h, cursor.cPointer()) } func (this *QTextDocument) OnCursorPositionChanged(slot func(cursor *QTextCursor)) { - C.QTextDocument_connect_CursorPositionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_CursorPositionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_CursorPositionChanged -func miqt_exec_callback_QTextDocument_CursorPositionChanged(cb *C.void, cursor *C.QTextCursor) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(cursor *QTextCursor)) +func miqt_exec_callback_QTextDocument_CursorPositionChanged(cb C.intptr_t, cursor *C.QTextCursor) { + gofunc, ok := cgo.Handle(cb).Value().(func(cursor *QTextCursor)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -739,12 +739,12 @@ func (this *QTextDocument) BlockCountChanged(newBlockCount int) { C.QTextDocument_BlockCountChanged(this.h, (C.int)(newBlockCount)) } func (this *QTextDocument) OnBlockCountChanged(slot func(newBlockCount int)) { - C.QTextDocument_connect_BlockCountChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_BlockCountChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_BlockCountChanged -func miqt_exec_callback_QTextDocument_BlockCountChanged(cb *C.void, newBlockCount C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(newBlockCount int)) +func miqt_exec_callback_QTextDocument_BlockCountChanged(cb C.intptr_t, newBlockCount C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(newBlockCount int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -759,12 +759,12 @@ func (this *QTextDocument) BaseUrlChanged(url *QUrl) { C.QTextDocument_BaseUrlChanged(this.h, url.cPointer()) } func (this *QTextDocument) OnBaseUrlChanged(slot func(url *QUrl)) { - C.QTextDocument_connect_BaseUrlChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_BaseUrlChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_BaseUrlChanged -func miqt_exec_callback_QTextDocument_BaseUrlChanged(cb *C.void, url *C.QUrl) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(url *QUrl)) +func miqt_exec_callback_QTextDocument_BaseUrlChanged(cb C.intptr_t, url *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(url *QUrl)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -779,12 +779,12 @@ func (this *QTextDocument) DocumentLayoutChanged() { C.QTextDocument_DocumentLayoutChanged(this.h) } func (this *QTextDocument) OnDocumentLayoutChanged(slot func()) { - C.QTextDocument_connect_DocumentLayoutChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextDocument_connect_DocumentLayoutChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextDocument_DocumentLayoutChanged -func miqt_exec_callback_QTextDocument_DocumentLayoutChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTextDocument_DocumentLayoutChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtextdocument.h b/qt/gen_qtextdocument.h index 53978c5..4ad9ff3 100644 --- a/qt/gen_qtextdocument.h +++ b/qt/gen_qtextdocument.h @@ -153,25 +153,25 @@ void QTextDocument_SetBaseUrl(QTextDocument* self, QUrl* url); int QTextDocument_DefaultCursorMoveStyle(const QTextDocument* self); void QTextDocument_SetDefaultCursorMoveStyle(QTextDocument* self, int style); void QTextDocument_ContentsChange(QTextDocument* self, int from, int charsRemoved, int charsAdded); -void QTextDocument_connect_ContentsChange(QTextDocument* self, void* slot); +void QTextDocument_connect_ContentsChange(QTextDocument* self, intptr_t slot); void QTextDocument_ContentsChanged(QTextDocument* self); -void QTextDocument_connect_ContentsChanged(QTextDocument* self, void* slot); +void QTextDocument_connect_ContentsChanged(QTextDocument* self, intptr_t slot); void QTextDocument_UndoAvailable(QTextDocument* self, bool param1); -void QTextDocument_connect_UndoAvailable(QTextDocument* self, void* slot); +void QTextDocument_connect_UndoAvailable(QTextDocument* self, intptr_t slot); void QTextDocument_RedoAvailable(QTextDocument* self, bool param1); -void QTextDocument_connect_RedoAvailable(QTextDocument* self, void* slot); +void QTextDocument_connect_RedoAvailable(QTextDocument* self, intptr_t slot); void QTextDocument_UndoCommandAdded(QTextDocument* self); -void QTextDocument_connect_UndoCommandAdded(QTextDocument* self, void* slot); +void QTextDocument_connect_UndoCommandAdded(QTextDocument* self, intptr_t slot); void QTextDocument_ModificationChanged(QTextDocument* self, bool m); -void QTextDocument_connect_ModificationChanged(QTextDocument* self, void* slot); +void QTextDocument_connect_ModificationChanged(QTextDocument* self, intptr_t slot); void QTextDocument_CursorPositionChanged(QTextDocument* self, QTextCursor* cursor); -void QTextDocument_connect_CursorPositionChanged(QTextDocument* self, void* slot); +void QTextDocument_connect_CursorPositionChanged(QTextDocument* self, intptr_t slot); void QTextDocument_BlockCountChanged(QTextDocument* self, int newBlockCount); -void QTextDocument_connect_BlockCountChanged(QTextDocument* self, void* slot); +void QTextDocument_connect_BlockCountChanged(QTextDocument* self, intptr_t slot); void QTextDocument_BaseUrlChanged(QTextDocument* self, QUrl* url); -void QTextDocument_connect_BaseUrlChanged(QTextDocument* self, void* slot); +void QTextDocument_connect_BaseUrlChanged(QTextDocument* self, intptr_t slot); void QTextDocument_DocumentLayoutChanged(QTextDocument* self); -void QTextDocument_connect_DocumentLayoutChanged(QTextDocument* self, void* slot); +void QTextDocument_connect_DocumentLayoutChanged(QTextDocument* self, intptr_t slot); void QTextDocument_Undo2(QTextDocument* self); void QTextDocument_Redo2(QTextDocument* self); void QTextDocument_AppendUndoItem(QTextDocument* self, QAbstractUndoItem* param1); diff --git a/qt/gen_qtextedit.cpp b/qt/gen_qtextedit.cpp index 8476153..6558db8 100644 --- a/qt/gen_qtextedit.cpp +++ b/qt/gen_qtextedit.cpp @@ -494,7 +494,7 @@ void QTextEdit_TextChanged(QTextEdit* self) { self->textChanged(); } -void QTextEdit_connect_TextChanged(QTextEdit* self, void* slot) { +void QTextEdit_connect_TextChanged(QTextEdit* self, intptr_t slot) { QTextEdit::connect(self, static_cast(&QTextEdit::textChanged), self, [=]() { miqt_exec_callback_QTextEdit_TextChanged(slot); }); @@ -504,7 +504,7 @@ void QTextEdit_UndoAvailable(QTextEdit* self, bool b) { self->undoAvailable(b); } -void QTextEdit_connect_UndoAvailable(QTextEdit* self, void* slot) { +void QTextEdit_connect_UndoAvailable(QTextEdit* self, intptr_t slot) { QTextEdit::connect(self, static_cast(&QTextEdit::undoAvailable), self, [=](bool b) { bool sigval1 = b; miqt_exec_callback_QTextEdit_UndoAvailable(slot, sigval1); @@ -515,7 +515,7 @@ void QTextEdit_RedoAvailable(QTextEdit* self, bool b) { self->redoAvailable(b); } -void QTextEdit_connect_RedoAvailable(QTextEdit* self, void* slot) { +void QTextEdit_connect_RedoAvailable(QTextEdit* self, intptr_t slot) { QTextEdit::connect(self, static_cast(&QTextEdit::redoAvailable), self, [=](bool b) { bool sigval1 = b; miqt_exec_callback_QTextEdit_RedoAvailable(slot, sigval1); @@ -526,7 +526,7 @@ void QTextEdit_CurrentCharFormatChanged(QTextEdit* self, QTextCharFormat* format self->currentCharFormatChanged(*format); } -void QTextEdit_connect_CurrentCharFormatChanged(QTextEdit* self, void* slot) { +void QTextEdit_connect_CurrentCharFormatChanged(QTextEdit* self, intptr_t slot) { QTextEdit::connect(self, static_cast(&QTextEdit::currentCharFormatChanged), self, [=](const QTextCharFormat& format) { const QTextCharFormat& format_ret = format; // Cast returned reference into pointer @@ -539,7 +539,7 @@ void QTextEdit_CopyAvailable(QTextEdit* self, bool b) { self->copyAvailable(b); } -void QTextEdit_connect_CopyAvailable(QTextEdit* self, void* slot) { +void QTextEdit_connect_CopyAvailable(QTextEdit* self, intptr_t slot) { QTextEdit::connect(self, static_cast(&QTextEdit::copyAvailable), self, [=](bool b) { bool sigval1 = b; miqt_exec_callback_QTextEdit_CopyAvailable(slot, sigval1); @@ -550,7 +550,7 @@ void QTextEdit_SelectionChanged(QTextEdit* self) { self->selectionChanged(); } -void QTextEdit_connect_SelectionChanged(QTextEdit* self, void* slot) { +void QTextEdit_connect_SelectionChanged(QTextEdit* self, intptr_t slot) { QTextEdit::connect(self, static_cast(&QTextEdit::selectionChanged), self, [=]() { miqt_exec_callback_QTextEdit_SelectionChanged(slot); }); @@ -560,7 +560,7 @@ void QTextEdit_CursorPositionChanged(QTextEdit* self) { self->cursorPositionChanged(); } -void QTextEdit_connect_CursorPositionChanged(QTextEdit* self, void* slot) { +void QTextEdit_connect_CursorPositionChanged(QTextEdit* self, intptr_t slot) { QTextEdit::connect(self, static_cast(&QTextEdit::cursorPositionChanged), self, [=]() { miqt_exec_callback_QTextEdit_CursorPositionChanged(slot); }); diff --git a/qt/gen_qtextedit.go b/qt/gen_qtextedit.go index a8f403d..0072a13 100644 --- a/qt/gen_qtextedit.go +++ b/qt/gen_qtextedit.go @@ -582,12 +582,12 @@ func (this *QTextEdit) TextChanged() { C.QTextEdit_TextChanged(this.h) } func (this *QTextEdit) OnTextChanged(slot func()) { - C.QTextEdit_connect_TextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextEdit_connect_TextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextEdit_TextChanged -func miqt_exec_callback_QTextEdit_TextChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTextEdit_TextChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -599,12 +599,12 @@ func (this *QTextEdit) UndoAvailable(b bool) { C.QTextEdit_UndoAvailable(this.h, (C.bool)(b)) } func (this *QTextEdit) OnUndoAvailable(slot func(b bool)) { - C.QTextEdit_connect_UndoAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextEdit_connect_UndoAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextEdit_UndoAvailable -func miqt_exec_callback_QTextEdit_UndoAvailable(cb *C.void, b C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(b bool)) +func miqt_exec_callback_QTextEdit_UndoAvailable(cb C.intptr_t, b C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(b bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -619,12 +619,12 @@ func (this *QTextEdit) RedoAvailable(b bool) { C.QTextEdit_RedoAvailable(this.h, (C.bool)(b)) } func (this *QTextEdit) OnRedoAvailable(slot func(b bool)) { - C.QTextEdit_connect_RedoAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextEdit_connect_RedoAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextEdit_RedoAvailable -func miqt_exec_callback_QTextEdit_RedoAvailable(cb *C.void, b C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(b bool)) +func miqt_exec_callback_QTextEdit_RedoAvailable(cb C.intptr_t, b C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(b bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -639,12 +639,12 @@ func (this *QTextEdit) CurrentCharFormatChanged(format *QTextCharFormat) { C.QTextEdit_CurrentCharFormatChanged(this.h, format.cPointer()) } func (this *QTextEdit) OnCurrentCharFormatChanged(slot func(format *QTextCharFormat)) { - C.QTextEdit_connect_CurrentCharFormatChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextEdit_connect_CurrentCharFormatChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextEdit_CurrentCharFormatChanged -func miqt_exec_callback_QTextEdit_CurrentCharFormatChanged(cb *C.void, format *C.QTextCharFormat) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(format *QTextCharFormat)) +func miqt_exec_callback_QTextEdit_CurrentCharFormatChanged(cb C.intptr_t, format *C.QTextCharFormat) { + gofunc, ok := cgo.Handle(cb).Value().(func(format *QTextCharFormat)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -659,12 +659,12 @@ func (this *QTextEdit) CopyAvailable(b bool) { C.QTextEdit_CopyAvailable(this.h, (C.bool)(b)) } func (this *QTextEdit) OnCopyAvailable(slot func(b bool)) { - C.QTextEdit_connect_CopyAvailable(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextEdit_connect_CopyAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextEdit_CopyAvailable -func miqt_exec_callback_QTextEdit_CopyAvailable(cb *C.void, b C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(b bool)) +func miqt_exec_callback_QTextEdit_CopyAvailable(cb C.intptr_t, b C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(b bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -679,12 +679,12 @@ func (this *QTextEdit) SelectionChanged() { C.QTextEdit_SelectionChanged(this.h) } func (this *QTextEdit) OnSelectionChanged(slot func()) { - C.QTextEdit_connect_SelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextEdit_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextEdit_SelectionChanged -func miqt_exec_callback_QTextEdit_SelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTextEdit_SelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -696,12 +696,12 @@ func (this *QTextEdit) CursorPositionChanged() { C.QTextEdit_CursorPositionChanged(this.h) } func (this *QTextEdit) OnCursorPositionChanged(slot func()) { - C.QTextEdit_connect_CursorPositionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTextEdit_connect_CursorPositionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTextEdit_CursorPositionChanged -func miqt_exec_callback_QTextEdit_CursorPositionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTextEdit_CursorPositionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtextedit.h b/qt/gen_qtextedit.h index 199064d..5bd7e45 100644 --- a/qt/gen_qtextedit.h +++ b/qt/gen_qtextedit.h @@ -157,19 +157,19 @@ void QTextEdit_ScrollToAnchor(QTextEdit* self, struct miqt_string* name); void QTextEdit_ZoomIn(QTextEdit* self); void QTextEdit_ZoomOut(QTextEdit* self); void QTextEdit_TextChanged(QTextEdit* self); -void QTextEdit_connect_TextChanged(QTextEdit* self, void* slot); +void QTextEdit_connect_TextChanged(QTextEdit* self, intptr_t slot); void QTextEdit_UndoAvailable(QTextEdit* self, bool b); -void QTextEdit_connect_UndoAvailable(QTextEdit* self, void* slot); +void QTextEdit_connect_UndoAvailable(QTextEdit* self, intptr_t slot); void QTextEdit_RedoAvailable(QTextEdit* self, bool b); -void QTextEdit_connect_RedoAvailable(QTextEdit* self, void* slot); +void QTextEdit_connect_RedoAvailable(QTextEdit* self, intptr_t slot); void QTextEdit_CurrentCharFormatChanged(QTextEdit* self, QTextCharFormat* format); -void QTextEdit_connect_CurrentCharFormatChanged(QTextEdit* self, void* slot); +void QTextEdit_connect_CurrentCharFormatChanged(QTextEdit* self, intptr_t slot); void QTextEdit_CopyAvailable(QTextEdit* self, bool b); -void QTextEdit_connect_CopyAvailable(QTextEdit* self, void* slot); +void QTextEdit_connect_CopyAvailable(QTextEdit* self, intptr_t slot); void QTextEdit_SelectionChanged(QTextEdit* self); -void QTextEdit_connect_SelectionChanged(QTextEdit* self, void* slot); +void QTextEdit_connect_SelectionChanged(QTextEdit* self, intptr_t slot); void QTextEdit_CursorPositionChanged(QTextEdit* self); -void QTextEdit_connect_CursorPositionChanged(QTextEdit* self, void* slot); +void QTextEdit_connect_CursorPositionChanged(QTextEdit* self, intptr_t slot); struct miqt_string* QTextEdit_Tr2(const char* s, const char* c); struct miqt_string* QTextEdit_Tr3(const char* s, const char* c, int n); struct miqt_string* QTextEdit_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtoolbar.cpp b/qt/gen_qtoolbar.cpp index 13c0ec4..54870e1 100644 --- a/qt/gen_qtoolbar.cpp +++ b/qt/gen_qtoolbar.cpp @@ -166,7 +166,7 @@ void QToolBar_ActionTriggered(QToolBar* self, QAction* action) { self->actionTriggered(action); } -void QToolBar_connect_ActionTriggered(QToolBar* self, void* slot) { +void QToolBar_connect_ActionTriggered(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::actionTriggered), self, [=](QAction* action) { QAction* sigval1 = action; miqt_exec_callback_QToolBar_ActionTriggered(slot, sigval1); @@ -177,7 +177,7 @@ void QToolBar_MovableChanged(QToolBar* self, bool movable) { self->movableChanged(movable); } -void QToolBar_connect_MovableChanged(QToolBar* self, void* slot) { +void QToolBar_connect_MovableChanged(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::movableChanged), self, [=](bool movable) { bool sigval1 = movable; miqt_exec_callback_QToolBar_MovableChanged(slot, sigval1); @@ -188,7 +188,7 @@ void QToolBar_AllowedAreasChanged(QToolBar* self, int allowedAreas) { self->allowedAreasChanged(static_cast(allowedAreas)); } -void QToolBar_connect_AllowedAreasChanged(QToolBar* self, void* slot) { +void QToolBar_connect_AllowedAreasChanged(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::allowedAreasChanged), self, [=](Qt::ToolBarAreas allowedAreas) { Qt::ToolBarAreas allowedAreas_ret = allowedAreas; int sigval1 = static_cast(allowedAreas_ret); @@ -200,7 +200,7 @@ void QToolBar_OrientationChanged(QToolBar* self, int orientation) { self->orientationChanged(static_cast(orientation)); } -void QToolBar_connect_OrientationChanged(QToolBar* self, void* slot) { +void QToolBar_connect_OrientationChanged(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::orientationChanged), self, [=](Qt::Orientation orientation) { Qt::Orientation orientation_ret = orientation; int sigval1 = static_cast(orientation_ret); @@ -212,7 +212,7 @@ void QToolBar_IconSizeChanged(QToolBar* self, QSize* iconSize) { self->iconSizeChanged(*iconSize); } -void QToolBar_connect_IconSizeChanged(QToolBar* self, void* slot) { +void QToolBar_connect_IconSizeChanged(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::iconSizeChanged), self, [=](const QSize& iconSize) { const QSize& iconSize_ret = iconSize; // Cast returned reference into pointer @@ -225,7 +225,7 @@ void QToolBar_ToolButtonStyleChanged(QToolBar* self, int toolButtonStyle) { self->toolButtonStyleChanged(static_cast(toolButtonStyle)); } -void QToolBar_connect_ToolButtonStyleChanged(QToolBar* self, void* slot) { +void QToolBar_connect_ToolButtonStyleChanged(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::toolButtonStyleChanged), self, [=](Qt::ToolButtonStyle toolButtonStyle) { Qt::ToolButtonStyle toolButtonStyle_ret = toolButtonStyle; int sigval1 = static_cast(toolButtonStyle_ret); @@ -237,7 +237,7 @@ void QToolBar_TopLevelChanged(QToolBar* self, bool topLevel) { self->topLevelChanged(topLevel); } -void QToolBar_connect_TopLevelChanged(QToolBar* self, void* slot) { +void QToolBar_connect_TopLevelChanged(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::topLevelChanged), self, [=](bool topLevel) { bool sigval1 = topLevel; miqt_exec_callback_QToolBar_TopLevelChanged(slot, sigval1); @@ -248,7 +248,7 @@ void QToolBar_VisibilityChanged(QToolBar* self, bool visible) { self->visibilityChanged(visible); } -void QToolBar_connect_VisibilityChanged(QToolBar* self, void* slot) { +void QToolBar_connect_VisibilityChanged(QToolBar* self, intptr_t slot) { QToolBar::connect(self, static_cast(&QToolBar::visibilityChanged), self, [=](bool visible) { bool sigval1 = visible; miqt_exec_callback_QToolBar_VisibilityChanged(slot, sigval1); diff --git a/qt/gen_qtoolbar.go b/qt/gen_qtoolbar.go index 14f00ad..6951aae 100644 --- a/qt/gen_qtoolbar.go +++ b/qt/gen_qtoolbar.go @@ -211,12 +211,12 @@ func (this *QToolBar) ActionTriggered(action *QAction) { C.QToolBar_ActionTriggered(this.h, action.cPointer()) } func (this *QToolBar) OnActionTriggered(slot func(action *QAction)) { - C.QToolBar_connect_ActionTriggered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_ActionTriggered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_ActionTriggered -func miqt_exec_callback_QToolBar_ActionTriggered(cb *C.void, action *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(action *QAction)) +func miqt_exec_callback_QToolBar_ActionTriggered(cb C.intptr_t, action *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(action *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -231,12 +231,12 @@ func (this *QToolBar) MovableChanged(movable bool) { C.QToolBar_MovableChanged(this.h, (C.bool)(movable)) } func (this *QToolBar) OnMovableChanged(slot func(movable bool)) { - C.QToolBar_connect_MovableChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_MovableChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_MovableChanged -func miqt_exec_callback_QToolBar_MovableChanged(cb *C.void, movable C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(movable bool)) +func miqt_exec_callback_QToolBar_MovableChanged(cb C.intptr_t, movable C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(movable bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -251,12 +251,12 @@ func (this *QToolBar) AllowedAreasChanged(allowedAreas ToolBarArea) { C.QToolBar_AllowedAreasChanged(this.h, (C.int)(allowedAreas)) } func (this *QToolBar) OnAllowedAreasChanged(slot func(allowedAreas ToolBarArea)) { - C.QToolBar_connect_AllowedAreasChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_AllowedAreasChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_AllowedAreasChanged -func miqt_exec_callback_QToolBar_AllowedAreasChanged(cb *C.void, allowedAreas C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(allowedAreas ToolBarArea)) +func miqt_exec_callback_QToolBar_AllowedAreasChanged(cb C.intptr_t, allowedAreas C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(allowedAreas ToolBarArea)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -271,12 +271,12 @@ func (this *QToolBar) OrientationChanged(orientation Orientation) { C.QToolBar_OrientationChanged(this.h, (C.int)(orientation)) } func (this *QToolBar) OnOrientationChanged(slot func(orientation Orientation)) { - C.QToolBar_connect_OrientationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_OrientationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_OrientationChanged -func miqt_exec_callback_QToolBar_OrientationChanged(cb *C.void, orientation C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(orientation Orientation)) +func miqt_exec_callback_QToolBar_OrientationChanged(cb C.intptr_t, orientation C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(orientation Orientation)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -291,12 +291,12 @@ func (this *QToolBar) IconSizeChanged(iconSize *QSize) { C.QToolBar_IconSizeChanged(this.h, iconSize.cPointer()) } func (this *QToolBar) OnIconSizeChanged(slot func(iconSize *QSize)) { - C.QToolBar_connect_IconSizeChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_IconSizeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_IconSizeChanged -func miqt_exec_callback_QToolBar_IconSizeChanged(cb *C.void, iconSize *C.QSize) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(iconSize *QSize)) +func miqt_exec_callback_QToolBar_IconSizeChanged(cb C.intptr_t, iconSize *C.QSize) { + gofunc, ok := cgo.Handle(cb).Value().(func(iconSize *QSize)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -311,12 +311,12 @@ func (this *QToolBar) ToolButtonStyleChanged(toolButtonStyle ToolButtonStyle) { C.QToolBar_ToolButtonStyleChanged(this.h, (C.int)(toolButtonStyle)) } func (this *QToolBar) OnToolButtonStyleChanged(slot func(toolButtonStyle ToolButtonStyle)) { - C.QToolBar_connect_ToolButtonStyleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_ToolButtonStyleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_ToolButtonStyleChanged -func miqt_exec_callback_QToolBar_ToolButtonStyleChanged(cb *C.void, toolButtonStyle C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(toolButtonStyle ToolButtonStyle)) +func miqt_exec_callback_QToolBar_ToolButtonStyleChanged(cb C.intptr_t, toolButtonStyle C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(toolButtonStyle ToolButtonStyle)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -331,12 +331,12 @@ func (this *QToolBar) TopLevelChanged(topLevel bool) { C.QToolBar_TopLevelChanged(this.h, (C.bool)(topLevel)) } func (this *QToolBar) OnTopLevelChanged(slot func(topLevel bool)) { - C.QToolBar_connect_TopLevelChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_TopLevelChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_TopLevelChanged -func miqt_exec_callback_QToolBar_TopLevelChanged(cb *C.void, topLevel C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(topLevel bool)) +func miqt_exec_callback_QToolBar_TopLevelChanged(cb C.intptr_t, topLevel C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(topLevel bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -351,12 +351,12 @@ func (this *QToolBar) VisibilityChanged(visible bool) { C.QToolBar_VisibilityChanged(this.h, (C.bool)(visible)) } func (this *QToolBar) OnVisibilityChanged(slot func(visible bool)) { - C.QToolBar_connect_VisibilityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBar_connect_VisibilityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBar_VisibilityChanged -func miqt_exec_callback_QToolBar_VisibilityChanged(cb *C.void, visible C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(visible bool)) +func miqt_exec_callback_QToolBar_VisibilityChanged(cb C.intptr_t, visible C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(visible bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtoolbar.h b/qt/gen_qtoolbar.h index 8ea9dc4..7d45a06 100644 --- a/qt/gen_qtoolbar.h +++ b/qt/gen_qtoolbar.h @@ -68,21 +68,21 @@ bool QToolBar_IsFloating(const QToolBar* self); void QToolBar_SetIconSize(QToolBar* self, QSize* iconSize); void QToolBar_SetToolButtonStyle(QToolBar* self, int toolButtonStyle); void QToolBar_ActionTriggered(QToolBar* self, QAction* action); -void QToolBar_connect_ActionTriggered(QToolBar* self, void* slot); +void QToolBar_connect_ActionTriggered(QToolBar* self, intptr_t slot); void QToolBar_MovableChanged(QToolBar* self, bool movable); -void QToolBar_connect_MovableChanged(QToolBar* self, void* slot); +void QToolBar_connect_MovableChanged(QToolBar* self, intptr_t slot); void QToolBar_AllowedAreasChanged(QToolBar* self, int allowedAreas); -void QToolBar_connect_AllowedAreasChanged(QToolBar* self, void* slot); +void QToolBar_connect_AllowedAreasChanged(QToolBar* self, intptr_t slot); void QToolBar_OrientationChanged(QToolBar* self, int orientation); -void QToolBar_connect_OrientationChanged(QToolBar* self, void* slot); +void QToolBar_connect_OrientationChanged(QToolBar* self, intptr_t slot); void QToolBar_IconSizeChanged(QToolBar* self, QSize* iconSize); -void QToolBar_connect_IconSizeChanged(QToolBar* self, void* slot); +void QToolBar_connect_IconSizeChanged(QToolBar* self, intptr_t slot); void QToolBar_ToolButtonStyleChanged(QToolBar* self, int toolButtonStyle); -void QToolBar_connect_ToolButtonStyleChanged(QToolBar* self, void* slot); +void QToolBar_connect_ToolButtonStyleChanged(QToolBar* self, intptr_t slot); void QToolBar_TopLevelChanged(QToolBar* self, bool topLevel); -void QToolBar_connect_TopLevelChanged(QToolBar* self, void* slot); +void QToolBar_connect_TopLevelChanged(QToolBar* self, intptr_t slot); void QToolBar_VisibilityChanged(QToolBar* self, bool visible); -void QToolBar_connect_VisibilityChanged(QToolBar* self, void* slot); +void QToolBar_connect_VisibilityChanged(QToolBar* self, intptr_t slot); struct miqt_string* QToolBar_Tr2(const char* s, const char* c); struct miqt_string* QToolBar_Tr3(const char* s, const char* c, int n); struct miqt_string* QToolBar_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtoolbox.cpp b/qt/gen_qtoolbox.cpp index 97cb3ab..a406aea 100644 --- a/qt/gen_qtoolbox.cpp +++ b/qt/gen_qtoolbox.cpp @@ -139,7 +139,7 @@ void QToolBox_CurrentChanged(QToolBox* self, int index) { self->currentChanged(static_cast(index)); } -void QToolBox_connect_CurrentChanged(QToolBox* self, void* slot) { +void QToolBox_connect_CurrentChanged(QToolBox* self, intptr_t slot) { QToolBox::connect(self, static_cast(&QToolBox::currentChanged), self, [=](int index) { int sigval1 = index; miqt_exec_callback_QToolBox_CurrentChanged(slot, sigval1); diff --git a/qt/gen_qtoolbox.go b/qt/gen_qtoolbox.go index 252c1ab..9653713 100644 --- a/qt/gen_qtoolbox.go +++ b/qt/gen_qtoolbox.go @@ -188,12 +188,12 @@ func (this *QToolBox) CurrentChanged(index int) { C.QToolBox_CurrentChanged(this.h, (C.int)(index)) } func (this *QToolBox) OnCurrentChanged(slot func(index int)) { - C.QToolBox_connect_CurrentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolBox_connect_CurrentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolBox_CurrentChanged -func miqt_exec_callback_QToolBox_CurrentChanged(cb *C.void, index C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index int)) +func miqt_exec_callback_QToolBox_CurrentChanged(cb C.intptr_t, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(index int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtoolbox.h b/qt/gen_qtoolbox.h index b7abbcb..007ed2d 100644 --- a/qt/gen_qtoolbox.h +++ b/qt/gen_qtoolbox.h @@ -53,7 +53,7 @@ int QToolBox_Count(const QToolBox* self); void QToolBox_SetCurrentIndex(QToolBox* self, int index); void QToolBox_SetCurrentWidget(QToolBox* self, QWidget* widget); void QToolBox_CurrentChanged(QToolBox* self, int index); -void QToolBox_connect_CurrentChanged(QToolBox* self, void* slot); +void QToolBox_connect_CurrentChanged(QToolBox* self, intptr_t slot); struct miqt_string* QToolBox_Tr2(const char* s, const char* c); struct miqt_string* QToolBox_Tr3(const char* s, const char* c, int n); struct miqt_string* QToolBox_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtoolbutton.cpp b/qt/gen_qtoolbutton.cpp index cb21aa8..958ef70 100644 --- a/qt/gen_qtoolbutton.cpp +++ b/qt/gen_qtoolbutton.cpp @@ -108,7 +108,7 @@ void QToolButton_Triggered(QToolButton* self, QAction* param1) { self->triggered(param1); } -void QToolButton_connect_Triggered(QToolButton* self, void* slot) { +void QToolButton_connect_Triggered(QToolButton* self, intptr_t slot) { QToolButton::connect(self, static_cast(&QToolButton::triggered), self, [=](QAction* param1) { QAction* sigval1 = param1; miqt_exec_callback_QToolButton_Triggered(slot, sigval1); diff --git a/qt/gen_qtoolbutton.go b/qt/gen_qtoolbutton.go index 43c24bc..567081f 100644 --- a/qt/gen_qtoolbutton.go +++ b/qt/gen_qtoolbutton.go @@ -155,12 +155,12 @@ func (this *QToolButton) Triggered(param1 *QAction) { C.QToolButton_Triggered(this.h, param1.cPointer()) } func (this *QToolButton) OnTriggered(slot func(param1 *QAction)) { - C.QToolButton_connect_Triggered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QToolButton_connect_Triggered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QToolButton_Triggered -func miqt_exec_callback_QToolButton_Triggered(cb *C.void, param1 *C.QAction) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 *QAction)) +func miqt_exec_callback_QToolButton_Triggered(cb C.intptr_t, param1 *C.QAction) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QAction)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtoolbutton.h b/qt/gen_qtoolbutton.h index 40abc7c..ddd4837 100644 --- a/qt/gen_qtoolbutton.h +++ b/qt/gen_qtoolbutton.h @@ -51,7 +51,7 @@ void QToolButton_ShowMenu(QToolButton* self); void QToolButton_SetToolButtonStyle(QToolButton* self, int style); void QToolButton_SetDefaultAction(QToolButton* self, QAction* defaultAction); void QToolButton_Triggered(QToolButton* self, QAction* param1); -void QToolButton_connect_Triggered(QToolButton* self, void* slot); +void QToolButton_connect_Triggered(QToolButton* self, intptr_t slot); struct miqt_string* QToolButton_Tr2(const char* s, const char* c); struct miqt_string* QToolButton_Tr3(const char* s, const char* c, int n); struct miqt_string* QToolButton_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qtreeview.cpp b/qt/gen_qtreeview.cpp index 80c2392..e5959c1 100644 --- a/qt/gen_qtreeview.cpp +++ b/qt/gen_qtreeview.cpp @@ -258,7 +258,7 @@ void QTreeView_Expanded(QTreeView* self, QModelIndex* index) { self->expanded(*index); } -void QTreeView_connect_Expanded(QTreeView* self, void* slot) { +void QTreeView_connect_Expanded(QTreeView* self, intptr_t slot) { QTreeView::connect(self, static_cast(&QTreeView::expanded), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer @@ -271,7 +271,7 @@ void QTreeView_Collapsed(QTreeView* self, QModelIndex* index) { self->collapsed(*index); } -void QTreeView_connect_Collapsed(QTreeView* self, void* slot) { +void QTreeView_connect_Collapsed(QTreeView* self, intptr_t slot) { QTreeView::connect(self, static_cast(&QTreeView::collapsed), self, [=](const QModelIndex& index) { const QModelIndex& index_ret = index; // Cast returned reference into pointer diff --git a/qt/gen_qtreeview.go b/qt/gen_qtreeview.go index 29b8aaf..39bcc8a 100644 --- a/qt/gen_qtreeview.go +++ b/qt/gen_qtreeview.go @@ -303,12 +303,12 @@ func (this *QTreeView) Expanded(index *QModelIndex) { C.QTreeView_Expanded(this.h, index.cPointer()) } func (this *QTreeView) OnExpanded(slot func(index *QModelIndex)) { - C.QTreeView_connect_Expanded(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeView_connect_Expanded(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeView_Expanded -func miqt_exec_callback_QTreeView_Expanded(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QTreeView_Expanded(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -323,12 +323,12 @@ func (this *QTreeView) Collapsed(index *QModelIndex) { C.QTreeView_Collapsed(this.h, index.cPointer()) } func (this *QTreeView) OnCollapsed(slot func(index *QModelIndex)) { - C.QTreeView_connect_Collapsed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeView_connect_Collapsed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeView_Collapsed -func miqt_exec_callback_QTreeView_Collapsed(cb *C.void, index *C.QModelIndex) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(index *QModelIndex)) +func miqt_exec_callback_QTreeView_Collapsed(cb C.intptr_t, index *C.QModelIndex) { + gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtreeview.h b/qt/gen_qtreeview.h index 09ef350..3f7a745 100644 --- a/qt/gen_qtreeview.h +++ b/qt/gen_qtreeview.h @@ -94,9 +94,9 @@ void QTreeView_Reset(QTreeView* self); void QTreeView_DataChanged(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight); void QTreeView_SelectAll(QTreeView* self); void QTreeView_Expanded(QTreeView* self, QModelIndex* index); -void QTreeView_connect_Expanded(QTreeView* self, void* slot); +void QTreeView_connect_Expanded(QTreeView* self, intptr_t slot); void QTreeView_Collapsed(QTreeView* self, QModelIndex* index); -void QTreeView_connect_Collapsed(QTreeView* self, void* slot); +void QTreeView_connect_Collapsed(QTreeView* self, intptr_t slot); void QTreeView_HideColumn(QTreeView* self, int column); void QTreeView_ShowColumn(QTreeView* self, int column); void QTreeView_Expand(QTreeView* self, QModelIndex* index); diff --git a/qt/gen_qtreewidget.cpp b/qt/gen_qtreewidget.cpp index 85d298c..f47cbdd 100644 --- a/qt/gen_qtreewidget.cpp +++ b/qt/gen_qtreewidget.cpp @@ -691,7 +691,7 @@ void QTreeWidget_ItemPressed(QTreeWidget* self, QTreeWidgetItem* item, int colum self->itemPressed(item, static_cast(column)); } -void QTreeWidget_connect_ItemPressed(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemPressed(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemPressed), self, [=](QTreeWidgetItem* item, int column) { QTreeWidgetItem* sigval1 = item; int sigval2 = column; @@ -703,7 +703,7 @@ void QTreeWidget_ItemClicked(QTreeWidget* self, QTreeWidgetItem* item, int colum self->itemClicked(item, static_cast(column)); } -void QTreeWidget_connect_ItemClicked(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemClicked(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemClicked), self, [=](QTreeWidgetItem* item, int column) { QTreeWidgetItem* sigval1 = item; int sigval2 = column; @@ -715,7 +715,7 @@ void QTreeWidget_ItemDoubleClicked(QTreeWidget* self, QTreeWidgetItem* item, int self->itemDoubleClicked(item, static_cast(column)); } -void QTreeWidget_connect_ItemDoubleClicked(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemDoubleClicked(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemDoubleClicked), self, [=](QTreeWidgetItem* item, int column) { QTreeWidgetItem* sigval1 = item; int sigval2 = column; @@ -727,7 +727,7 @@ void QTreeWidget_ItemActivated(QTreeWidget* self, QTreeWidgetItem* item, int col self->itemActivated(item, static_cast(column)); } -void QTreeWidget_connect_ItemActivated(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemActivated(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemActivated), self, [=](QTreeWidgetItem* item, int column) { QTreeWidgetItem* sigval1 = item; int sigval2 = column; @@ -739,7 +739,7 @@ void QTreeWidget_ItemEntered(QTreeWidget* self, QTreeWidgetItem* item, int colum self->itemEntered(item, static_cast(column)); } -void QTreeWidget_connect_ItemEntered(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemEntered(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemEntered), self, [=](QTreeWidgetItem* item, int column) { QTreeWidgetItem* sigval1 = item; int sigval2 = column; @@ -751,7 +751,7 @@ void QTreeWidget_ItemChanged(QTreeWidget* self, QTreeWidgetItem* item, int colum self->itemChanged(item, static_cast(column)); } -void QTreeWidget_connect_ItemChanged(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemChanged(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemChanged), self, [=](QTreeWidgetItem* item, int column) { QTreeWidgetItem* sigval1 = item; int sigval2 = column; @@ -763,7 +763,7 @@ void QTreeWidget_ItemExpanded(QTreeWidget* self, QTreeWidgetItem* item) { self->itemExpanded(item); } -void QTreeWidget_connect_ItemExpanded(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemExpanded(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemExpanded), self, [=](QTreeWidgetItem* item) { QTreeWidgetItem* sigval1 = item; miqt_exec_callback_QTreeWidget_ItemExpanded(slot, sigval1); @@ -774,7 +774,7 @@ void QTreeWidget_ItemCollapsed(QTreeWidget* self, QTreeWidgetItem* item) { self->itemCollapsed(item); } -void QTreeWidget_connect_ItemCollapsed(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemCollapsed(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemCollapsed), self, [=](QTreeWidgetItem* item) { QTreeWidgetItem* sigval1 = item; miqt_exec_callback_QTreeWidget_ItemCollapsed(slot, sigval1); @@ -785,7 +785,7 @@ void QTreeWidget_CurrentItemChanged(QTreeWidget* self, QTreeWidgetItem* current, self->currentItemChanged(current, previous); } -void QTreeWidget_connect_CurrentItemChanged(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_CurrentItemChanged(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::currentItemChanged), self, [=](QTreeWidgetItem* current, QTreeWidgetItem* previous) { QTreeWidgetItem* sigval1 = current; QTreeWidgetItem* sigval2 = previous; @@ -797,7 +797,7 @@ void QTreeWidget_ItemSelectionChanged(QTreeWidget* self) { self->itemSelectionChanged(); } -void QTreeWidget_connect_ItemSelectionChanged(QTreeWidget* self, void* slot) { +void QTreeWidget_connect_ItemSelectionChanged(QTreeWidget* self, intptr_t slot) { QTreeWidget::connect(self, static_cast(&QTreeWidget::itemSelectionChanged), self, [=]() { miqt_exec_callback_QTreeWidget_ItemSelectionChanged(slot); }); diff --git a/qt/gen_qtreewidget.go b/qt/gen_qtreewidget.go index 20073b4..a204daf 100644 --- a/qt/gen_qtreewidget.go +++ b/qt/gen_qtreewidget.go @@ -852,12 +852,12 @@ func (this *QTreeWidget) ItemPressed(item *QTreeWidgetItem, column int) { C.QTreeWidget_ItemPressed(this.h, item.cPointer(), (C.int)(column)) } func (this *QTreeWidget) OnItemPressed(slot func(item *QTreeWidgetItem, column int)) { - C.QTreeWidget_connect_ItemPressed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemPressed -func miqt_exec_callback_QTreeWidget_ItemPressed(cb *C.void, item *C.QTreeWidgetItem, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem, column int)) +func miqt_exec_callback_QTreeWidget_ItemPressed(cb C.intptr_t, item *C.QTreeWidgetItem, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -873,12 +873,12 @@ func (this *QTreeWidget) ItemClicked(item *QTreeWidgetItem, column int) { C.QTreeWidget_ItemClicked(this.h, item.cPointer(), (C.int)(column)) } func (this *QTreeWidget) OnItemClicked(slot func(item *QTreeWidgetItem, column int)) { - C.QTreeWidget_connect_ItemClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemClicked -func miqt_exec_callback_QTreeWidget_ItemClicked(cb *C.void, item *C.QTreeWidgetItem, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem, column int)) +func miqt_exec_callback_QTreeWidget_ItemClicked(cb C.intptr_t, item *C.QTreeWidgetItem, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -894,12 +894,12 @@ func (this *QTreeWidget) ItemDoubleClicked(item *QTreeWidgetItem, column int) { C.QTreeWidget_ItemDoubleClicked(this.h, item.cPointer(), (C.int)(column)) } func (this *QTreeWidget) OnItemDoubleClicked(slot func(item *QTreeWidgetItem, column int)) { - C.QTreeWidget_connect_ItemDoubleClicked(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemDoubleClicked -func miqt_exec_callback_QTreeWidget_ItemDoubleClicked(cb *C.void, item *C.QTreeWidgetItem, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem, column int)) +func miqt_exec_callback_QTreeWidget_ItemDoubleClicked(cb C.intptr_t, item *C.QTreeWidgetItem, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -915,12 +915,12 @@ func (this *QTreeWidget) ItemActivated(item *QTreeWidgetItem, column int) { C.QTreeWidget_ItemActivated(this.h, item.cPointer(), (C.int)(column)) } func (this *QTreeWidget) OnItemActivated(slot func(item *QTreeWidgetItem, column int)) { - C.QTreeWidget_connect_ItemActivated(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemActivated -func miqt_exec_callback_QTreeWidget_ItemActivated(cb *C.void, item *C.QTreeWidgetItem, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem, column int)) +func miqt_exec_callback_QTreeWidget_ItemActivated(cb C.intptr_t, item *C.QTreeWidgetItem, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -936,12 +936,12 @@ func (this *QTreeWidget) ItemEntered(item *QTreeWidgetItem, column int) { C.QTreeWidget_ItemEntered(this.h, item.cPointer(), (C.int)(column)) } func (this *QTreeWidget) OnItemEntered(slot func(item *QTreeWidgetItem, column int)) { - C.QTreeWidget_connect_ItemEntered(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemEntered(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemEntered -func miqt_exec_callback_QTreeWidget_ItemEntered(cb *C.void, item *C.QTreeWidgetItem, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem, column int)) +func miqt_exec_callback_QTreeWidget_ItemEntered(cb C.intptr_t, item *C.QTreeWidgetItem, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -957,12 +957,12 @@ func (this *QTreeWidget) ItemChanged(item *QTreeWidgetItem, column int) { C.QTreeWidget_ItemChanged(this.h, item.cPointer(), (C.int)(column)) } func (this *QTreeWidget) OnItemChanged(slot func(item *QTreeWidgetItem, column int)) { - C.QTreeWidget_connect_ItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemChanged -func miqt_exec_callback_QTreeWidget_ItemChanged(cb *C.void, item *C.QTreeWidgetItem, column C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem, column int)) +func miqt_exec_callback_QTreeWidget_ItemChanged(cb C.intptr_t, item *C.QTreeWidgetItem, column C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem, column int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -978,12 +978,12 @@ func (this *QTreeWidget) ItemExpanded(item *QTreeWidgetItem) { C.QTreeWidget_ItemExpanded(this.h, item.cPointer()) } func (this *QTreeWidget) OnItemExpanded(slot func(item *QTreeWidgetItem)) { - C.QTreeWidget_connect_ItemExpanded(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemExpanded(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemExpanded -func miqt_exec_callback_QTreeWidget_ItemExpanded(cb *C.void, item *C.QTreeWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem)) +func miqt_exec_callback_QTreeWidget_ItemExpanded(cb C.intptr_t, item *C.QTreeWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -998,12 +998,12 @@ func (this *QTreeWidget) ItemCollapsed(item *QTreeWidgetItem) { C.QTreeWidget_ItemCollapsed(this.h, item.cPointer()) } func (this *QTreeWidget) OnItemCollapsed(slot func(item *QTreeWidgetItem)) { - C.QTreeWidget_connect_ItemCollapsed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemCollapsed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemCollapsed -func miqt_exec_callback_QTreeWidget_ItemCollapsed(cb *C.void, item *C.QTreeWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(item *QTreeWidgetItem)) +func miqt_exec_callback_QTreeWidget_ItemCollapsed(cb C.intptr_t, item *C.QTreeWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(item *QTreeWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1018,12 +1018,12 @@ func (this *QTreeWidget) CurrentItemChanged(current *QTreeWidgetItem, previous * C.QTreeWidget_CurrentItemChanged(this.h, current.cPointer(), previous.cPointer()) } func (this *QTreeWidget) OnCurrentItemChanged(slot func(current *QTreeWidgetItem, previous *QTreeWidgetItem)) { - C.QTreeWidget_connect_CurrentItemChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_CurrentItemChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_CurrentItemChanged -func miqt_exec_callback_QTreeWidget_CurrentItemChanged(cb *C.void, current *C.QTreeWidgetItem, previous *C.QTreeWidgetItem) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(current *QTreeWidgetItem, previous *QTreeWidgetItem)) +func miqt_exec_callback_QTreeWidget_CurrentItemChanged(cb C.intptr_t, current *C.QTreeWidgetItem, previous *C.QTreeWidgetItem) { + gofunc, ok := cgo.Handle(cb).Value().(func(current *QTreeWidgetItem, previous *QTreeWidgetItem)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1039,12 +1039,12 @@ func (this *QTreeWidget) ItemSelectionChanged() { C.QTreeWidget_ItemSelectionChanged(this.h) } func (this *QTreeWidget) OnItemSelectionChanged(slot func()) { - C.QTreeWidget_connect_ItemSelectionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QTreeWidget_connect_ItemSelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QTreeWidget_ItemSelectionChanged -func miqt_exec_callback_QTreeWidget_ItemSelectionChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QTreeWidget_ItemSelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qtreewidget.h b/qt/gen_qtreewidget.h index 719107c..44b39c6 100644 --- a/qt/gen_qtreewidget.h +++ b/qt/gen_qtreewidget.h @@ -182,25 +182,25 @@ void QTreeWidget_ExpandItem(QTreeWidget* self, QTreeWidgetItem* item); void QTreeWidget_CollapseItem(QTreeWidget* self, QTreeWidgetItem* item); void QTreeWidget_Clear(QTreeWidget* self); void QTreeWidget_ItemPressed(QTreeWidget* self, QTreeWidgetItem* item, int column); -void QTreeWidget_connect_ItemPressed(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemPressed(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemClicked(QTreeWidget* self, QTreeWidgetItem* item, int column); -void QTreeWidget_connect_ItemClicked(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemClicked(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemDoubleClicked(QTreeWidget* self, QTreeWidgetItem* item, int column); -void QTreeWidget_connect_ItemDoubleClicked(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemDoubleClicked(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemActivated(QTreeWidget* self, QTreeWidgetItem* item, int column); -void QTreeWidget_connect_ItemActivated(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemActivated(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemEntered(QTreeWidget* self, QTreeWidgetItem* item, int column); -void QTreeWidget_connect_ItemEntered(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemEntered(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemChanged(QTreeWidget* self, QTreeWidgetItem* item, int column); -void QTreeWidget_connect_ItemChanged(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemChanged(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemExpanded(QTreeWidget* self, QTreeWidgetItem* item); -void QTreeWidget_connect_ItemExpanded(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemExpanded(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemCollapsed(QTreeWidget* self, QTreeWidgetItem* item); -void QTreeWidget_connect_ItemCollapsed(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemCollapsed(QTreeWidget* self, intptr_t slot); void QTreeWidget_CurrentItemChanged(QTreeWidget* self, QTreeWidgetItem* current, QTreeWidgetItem* previous); -void QTreeWidget_connect_CurrentItemChanged(QTreeWidget* self, void* slot); +void QTreeWidget_connect_CurrentItemChanged(QTreeWidget* self, intptr_t slot); void QTreeWidget_ItemSelectionChanged(QTreeWidget* self); -void QTreeWidget_connect_ItemSelectionChanged(QTreeWidget* self, void* slot); +void QTreeWidget_connect_ItemSelectionChanged(QTreeWidget* self, intptr_t slot); struct miqt_string* QTreeWidget_Tr2(const char* s, const char* c); struct miqt_string* QTreeWidget_Tr3(const char* s, const char* c, int n); struct miqt_string* QTreeWidget_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qundogroup.cpp b/qt/gen_qundogroup.cpp index e16e6e6..d819584 100644 --- a/qt/gen_qundogroup.cpp +++ b/qt/gen_qundogroup.cpp @@ -116,7 +116,7 @@ void QUndoGroup_ActiveStackChanged(QUndoGroup* self, QUndoStack* stack) { self->activeStackChanged(stack); } -void QUndoGroup_connect_ActiveStackChanged(QUndoGroup* self, void* slot) { +void QUndoGroup_connect_ActiveStackChanged(QUndoGroup* self, intptr_t slot) { QUndoGroup::connect(self, static_cast(&QUndoGroup::activeStackChanged), self, [=](QUndoStack* stack) { QUndoStack* sigval1 = stack; miqt_exec_callback_QUndoGroup_ActiveStackChanged(slot, sigval1); @@ -127,7 +127,7 @@ void QUndoGroup_IndexChanged(QUndoGroup* self, int idx) { self->indexChanged(static_cast(idx)); } -void QUndoGroup_connect_IndexChanged(QUndoGroup* self, void* slot) { +void QUndoGroup_connect_IndexChanged(QUndoGroup* self, intptr_t slot) { QUndoGroup::connect(self, static_cast(&QUndoGroup::indexChanged), self, [=](int idx) { int sigval1 = idx; miqt_exec_callback_QUndoGroup_IndexChanged(slot, sigval1); @@ -138,7 +138,7 @@ void QUndoGroup_CleanChanged(QUndoGroup* self, bool clean) { self->cleanChanged(clean); } -void QUndoGroup_connect_CleanChanged(QUndoGroup* self, void* slot) { +void QUndoGroup_connect_CleanChanged(QUndoGroup* self, intptr_t slot) { QUndoGroup::connect(self, static_cast(&QUndoGroup::cleanChanged), self, [=](bool clean) { bool sigval1 = clean; miqt_exec_callback_QUndoGroup_CleanChanged(slot, sigval1); @@ -149,7 +149,7 @@ void QUndoGroup_CanUndoChanged(QUndoGroup* self, bool canUndo) { self->canUndoChanged(canUndo); } -void QUndoGroup_connect_CanUndoChanged(QUndoGroup* self, void* slot) { +void QUndoGroup_connect_CanUndoChanged(QUndoGroup* self, intptr_t slot) { QUndoGroup::connect(self, static_cast(&QUndoGroup::canUndoChanged), self, [=](bool canUndo) { bool sigval1 = canUndo; miqt_exec_callback_QUndoGroup_CanUndoChanged(slot, sigval1); @@ -160,7 +160,7 @@ void QUndoGroup_CanRedoChanged(QUndoGroup* self, bool canRedo) { self->canRedoChanged(canRedo); } -void QUndoGroup_connect_CanRedoChanged(QUndoGroup* self, void* slot) { +void QUndoGroup_connect_CanRedoChanged(QUndoGroup* self, intptr_t slot) { QUndoGroup::connect(self, static_cast(&QUndoGroup::canRedoChanged), self, [=](bool canRedo) { bool sigval1 = canRedo; miqt_exec_callback_QUndoGroup_CanRedoChanged(slot, sigval1); @@ -172,7 +172,7 @@ void QUndoGroup_UndoTextChanged(QUndoGroup* self, struct miqt_string* undoText) self->undoTextChanged(undoText_QString); } -void QUndoGroup_connect_UndoTextChanged(QUndoGroup* self, void* slot) { +void QUndoGroup_connect_UndoTextChanged(QUndoGroup* self, intptr_t slot) { QUndoGroup::connect(self, static_cast(&QUndoGroup::undoTextChanged), self, [=](const QString& undoText) { const QString undoText_ret = undoText; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -187,7 +187,7 @@ void QUndoGroup_RedoTextChanged(QUndoGroup* self, struct miqt_string* redoText) self->redoTextChanged(redoText_QString); } -void QUndoGroup_connect_RedoTextChanged(QUndoGroup* self, void* slot) { +void QUndoGroup_connect_RedoTextChanged(QUndoGroup* self, intptr_t slot) { QUndoGroup::connect(self, static_cast(&QUndoGroup::redoTextChanged), self, [=](const QString& redoText) { const QString redoText_ret = redoText; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qundogroup.go b/qt/gen_qundogroup.go index 520ff70..403b7d7 100644 --- a/qt/gen_qundogroup.go +++ b/qt/gen_qundogroup.go @@ -150,12 +150,12 @@ func (this *QUndoGroup) ActiveStackChanged(stack *QUndoStack) { C.QUndoGroup_ActiveStackChanged(this.h, stack.cPointer()) } func (this *QUndoGroup) OnActiveStackChanged(slot func(stack *QUndoStack)) { - C.QUndoGroup_connect_ActiveStackChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoGroup_connect_ActiveStackChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoGroup_ActiveStackChanged -func miqt_exec_callback_QUndoGroup_ActiveStackChanged(cb *C.void, stack *C.QUndoStack) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(stack *QUndoStack)) +func miqt_exec_callback_QUndoGroup_ActiveStackChanged(cb C.intptr_t, stack *C.QUndoStack) { + gofunc, ok := cgo.Handle(cb).Value().(func(stack *QUndoStack)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -170,12 +170,12 @@ func (this *QUndoGroup) IndexChanged(idx int) { C.QUndoGroup_IndexChanged(this.h, (C.int)(idx)) } func (this *QUndoGroup) OnIndexChanged(slot func(idx int)) { - C.QUndoGroup_connect_IndexChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoGroup_connect_IndexChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoGroup_IndexChanged -func miqt_exec_callback_QUndoGroup_IndexChanged(cb *C.void, idx C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(idx int)) +func miqt_exec_callback_QUndoGroup_IndexChanged(cb C.intptr_t, idx C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(idx int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -190,12 +190,12 @@ func (this *QUndoGroup) CleanChanged(clean bool) { C.QUndoGroup_CleanChanged(this.h, (C.bool)(clean)) } func (this *QUndoGroup) OnCleanChanged(slot func(clean bool)) { - C.QUndoGroup_connect_CleanChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoGroup_connect_CleanChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoGroup_CleanChanged -func miqt_exec_callback_QUndoGroup_CleanChanged(cb *C.void, clean C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(clean bool)) +func miqt_exec_callback_QUndoGroup_CleanChanged(cb C.intptr_t, clean C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(clean bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -210,12 +210,12 @@ func (this *QUndoGroup) CanUndoChanged(canUndo bool) { C.QUndoGroup_CanUndoChanged(this.h, (C.bool)(canUndo)) } func (this *QUndoGroup) OnCanUndoChanged(slot func(canUndo bool)) { - C.QUndoGroup_connect_CanUndoChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoGroup_connect_CanUndoChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoGroup_CanUndoChanged -func miqt_exec_callback_QUndoGroup_CanUndoChanged(cb *C.void, canUndo C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(canUndo bool)) +func miqt_exec_callback_QUndoGroup_CanUndoChanged(cb C.intptr_t, canUndo C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(canUndo bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -230,12 +230,12 @@ func (this *QUndoGroup) CanRedoChanged(canRedo bool) { C.QUndoGroup_CanRedoChanged(this.h, (C.bool)(canRedo)) } func (this *QUndoGroup) OnCanRedoChanged(slot func(canRedo bool)) { - C.QUndoGroup_connect_CanRedoChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoGroup_connect_CanRedoChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoGroup_CanRedoChanged -func miqt_exec_callback_QUndoGroup_CanRedoChanged(cb *C.void, canRedo C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(canRedo bool)) +func miqt_exec_callback_QUndoGroup_CanRedoChanged(cb C.intptr_t, canRedo C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(canRedo bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -252,12 +252,12 @@ func (this *QUndoGroup) UndoTextChanged(undoText string) { C.QUndoGroup_UndoTextChanged(this.h, (*C.struct_miqt_string)(undoText_ms)) } func (this *QUndoGroup) OnUndoTextChanged(slot func(undoText string)) { - C.QUndoGroup_connect_UndoTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoGroup_connect_UndoTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoGroup_UndoTextChanged -func miqt_exec_callback_QUndoGroup_UndoTextChanged(cb *C.void, undoText *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(undoText string)) +func miqt_exec_callback_QUndoGroup_UndoTextChanged(cb C.intptr_t, undoText *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(undoText string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -277,12 +277,12 @@ func (this *QUndoGroup) RedoTextChanged(redoText string) { C.QUndoGroup_RedoTextChanged(this.h, (*C.struct_miqt_string)(redoText_ms)) } func (this *QUndoGroup) OnRedoTextChanged(slot func(redoText string)) { - C.QUndoGroup_connect_RedoTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoGroup_connect_RedoTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoGroup_RedoTextChanged -func miqt_exec_callback_QUndoGroup_RedoTextChanged(cb *C.void, redoText *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(redoText string)) +func miqt_exec_callback_QUndoGroup_RedoTextChanged(cb C.intptr_t, redoText *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(redoText string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qundogroup.h b/qt/gen_qundogroup.h index 6c927fc..de24e38 100644 --- a/qt/gen_qundogroup.h +++ b/qt/gen_qundogroup.h @@ -48,19 +48,19 @@ void QUndoGroup_Undo(QUndoGroup* self); void QUndoGroup_Redo(QUndoGroup* self); void QUndoGroup_SetActiveStack(QUndoGroup* self, QUndoStack* stack); void QUndoGroup_ActiveStackChanged(QUndoGroup* self, QUndoStack* stack); -void QUndoGroup_connect_ActiveStackChanged(QUndoGroup* self, void* slot); +void QUndoGroup_connect_ActiveStackChanged(QUndoGroup* self, intptr_t slot); void QUndoGroup_IndexChanged(QUndoGroup* self, int idx); -void QUndoGroup_connect_IndexChanged(QUndoGroup* self, void* slot); +void QUndoGroup_connect_IndexChanged(QUndoGroup* self, intptr_t slot); void QUndoGroup_CleanChanged(QUndoGroup* self, bool clean); -void QUndoGroup_connect_CleanChanged(QUndoGroup* self, void* slot); +void QUndoGroup_connect_CleanChanged(QUndoGroup* self, intptr_t slot); void QUndoGroup_CanUndoChanged(QUndoGroup* self, bool canUndo); -void QUndoGroup_connect_CanUndoChanged(QUndoGroup* self, void* slot); +void QUndoGroup_connect_CanUndoChanged(QUndoGroup* self, intptr_t slot); void QUndoGroup_CanRedoChanged(QUndoGroup* self, bool canRedo); -void QUndoGroup_connect_CanRedoChanged(QUndoGroup* self, void* slot); +void QUndoGroup_connect_CanRedoChanged(QUndoGroup* self, intptr_t slot); void QUndoGroup_UndoTextChanged(QUndoGroup* self, struct miqt_string* undoText); -void QUndoGroup_connect_UndoTextChanged(QUndoGroup* self, void* slot); +void QUndoGroup_connect_UndoTextChanged(QUndoGroup* self, intptr_t slot); void QUndoGroup_RedoTextChanged(QUndoGroup* self, struct miqt_string* redoText); -void QUndoGroup_connect_RedoTextChanged(QUndoGroup* self, void* slot); +void QUndoGroup_connect_RedoTextChanged(QUndoGroup* self, intptr_t slot); struct miqt_string* QUndoGroup_Tr2(const char* s, const char* c); struct miqt_string* QUndoGroup_Tr3(const char* s, const char* c, int n); struct miqt_string* QUndoGroup_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qundostack.cpp b/qt/gen_qundostack.cpp index fc504bf..eb6cfb8 100644 --- a/qt/gen_qundostack.cpp +++ b/qt/gen_qundostack.cpp @@ -227,7 +227,7 @@ void QUndoStack_IndexChanged(QUndoStack* self, int idx) { self->indexChanged(static_cast(idx)); } -void QUndoStack_connect_IndexChanged(QUndoStack* self, void* slot) { +void QUndoStack_connect_IndexChanged(QUndoStack* self, intptr_t slot) { QUndoStack::connect(self, static_cast(&QUndoStack::indexChanged), self, [=](int idx) { int sigval1 = idx; miqt_exec_callback_QUndoStack_IndexChanged(slot, sigval1); @@ -238,7 +238,7 @@ void QUndoStack_CleanChanged(QUndoStack* self, bool clean) { self->cleanChanged(clean); } -void QUndoStack_connect_CleanChanged(QUndoStack* self, void* slot) { +void QUndoStack_connect_CleanChanged(QUndoStack* self, intptr_t slot) { QUndoStack::connect(self, static_cast(&QUndoStack::cleanChanged), self, [=](bool clean) { bool sigval1 = clean; miqt_exec_callback_QUndoStack_CleanChanged(slot, sigval1); @@ -249,7 +249,7 @@ void QUndoStack_CanUndoChanged(QUndoStack* self, bool canUndo) { self->canUndoChanged(canUndo); } -void QUndoStack_connect_CanUndoChanged(QUndoStack* self, void* slot) { +void QUndoStack_connect_CanUndoChanged(QUndoStack* self, intptr_t slot) { QUndoStack::connect(self, static_cast(&QUndoStack::canUndoChanged), self, [=](bool canUndo) { bool sigval1 = canUndo; miqt_exec_callback_QUndoStack_CanUndoChanged(slot, sigval1); @@ -260,7 +260,7 @@ void QUndoStack_CanRedoChanged(QUndoStack* self, bool canRedo) { self->canRedoChanged(canRedo); } -void QUndoStack_connect_CanRedoChanged(QUndoStack* self, void* slot) { +void QUndoStack_connect_CanRedoChanged(QUndoStack* self, intptr_t slot) { QUndoStack::connect(self, static_cast(&QUndoStack::canRedoChanged), self, [=](bool canRedo) { bool sigval1 = canRedo; miqt_exec_callback_QUndoStack_CanRedoChanged(slot, sigval1); @@ -272,7 +272,7 @@ void QUndoStack_UndoTextChanged(QUndoStack* self, struct miqt_string* undoText) self->undoTextChanged(undoText_QString); } -void QUndoStack_connect_UndoTextChanged(QUndoStack* self, void* slot) { +void QUndoStack_connect_UndoTextChanged(QUndoStack* self, intptr_t slot) { QUndoStack::connect(self, static_cast(&QUndoStack::undoTextChanged), self, [=](const QString& undoText) { const QString undoText_ret = undoText; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -287,7 +287,7 @@ void QUndoStack_RedoTextChanged(QUndoStack* self, struct miqt_string* redoText) self->redoTextChanged(redoText_QString); } -void QUndoStack_connect_RedoTextChanged(QUndoStack* self, void* slot) { +void QUndoStack_connect_RedoTextChanged(QUndoStack* self, intptr_t slot) { QUndoStack::connect(self, static_cast(&QUndoStack::redoTextChanged), self, [=](const QString& redoText) { const QString redoText_ret = redoText; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory diff --git a/qt/gen_qundostack.go b/qt/gen_qundostack.go index e7df97a..1b2d0b3 100644 --- a/qt/gen_qundostack.go +++ b/qt/gen_qundostack.go @@ -308,12 +308,12 @@ func (this *QUndoStack) IndexChanged(idx int) { C.QUndoStack_IndexChanged(this.h, (C.int)(idx)) } func (this *QUndoStack) OnIndexChanged(slot func(idx int)) { - C.QUndoStack_connect_IndexChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoStack_connect_IndexChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoStack_IndexChanged -func miqt_exec_callback_QUndoStack_IndexChanged(cb *C.void, idx C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(idx int)) +func miqt_exec_callback_QUndoStack_IndexChanged(cb C.intptr_t, idx C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(idx int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -328,12 +328,12 @@ func (this *QUndoStack) CleanChanged(clean bool) { C.QUndoStack_CleanChanged(this.h, (C.bool)(clean)) } func (this *QUndoStack) OnCleanChanged(slot func(clean bool)) { - C.QUndoStack_connect_CleanChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoStack_connect_CleanChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoStack_CleanChanged -func miqt_exec_callback_QUndoStack_CleanChanged(cb *C.void, clean C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(clean bool)) +func miqt_exec_callback_QUndoStack_CleanChanged(cb C.intptr_t, clean C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(clean bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -348,12 +348,12 @@ func (this *QUndoStack) CanUndoChanged(canUndo bool) { C.QUndoStack_CanUndoChanged(this.h, (C.bool)(canUndo)) } func (this *QUndoStack) OnCanUndoChanged(slot func(canUndo bool)) { - C.QUndoStack_connect_CanUndoChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoStack_connect_CanUndoChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoStack_CanUndoChanged -func miqt_exec_callback_QUndoStack_CanUndoChanged(cb *C.void, canUndo C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(canUndo bool)) +func miqt_exec_callback_QUndoStack_CanUndoChanged(cb C.intptr_t, canUndo C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(canUndo bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -368,12 +368,12 @@ func (this *QUndoStack) CanRedoChanged(canRedo bool) { C.QUndoStack_CanRedoChanged(this.h, (C.bool)(canRedo)) } func (this *QUndoStack) OnCanRedoChanged(slot func(canRedo bool)) { - C.QUndoStack_connect_CanRedoChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoStack_connect_CanRedoChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoStack_CanRedoChanged -func miqt_exec_callback_QUndoStack_CanRedoChanged(cb *C.void, canRedo C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(canRedo bool)) +func miqt_exec_callback_QUndoStack_CanRedoChanged(cb C.intptr_t, canRedo C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(canRedo bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -390,12 +390,12 @@ func (this *QUndoStack) UndoTextChanged(undoText string) { C.QUndoStack_UndoTextChanged(this.h, (*C.struct_miqt_string)(undoText_ms)) } func (this *QUndoStack) OnUndoTextChanged(slot func(undoText string)) { - C.QUndoStack_connect_UndoTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoStack_connect_UndoTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoStack_UndoTextChanged -func miqt_exec_callback_QUndoStack_UndoTextChanged(cb *C.void, undoText *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(undoText string)) +func miqt_exec_callback_QUndoStack_UndoTextChanged(cb C.intptr_t, undoText *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(undoText string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -415,12 +415,12 @@ func (this *QUndoStack) RedoTextChanged(redoText string) { C.QUndoStack_RedoTextChanged(this.h, (*C.struct_miqt_string)(redoText_ms)) } func (this *QUndoStack) OnRedoTextChanged(slot func(redoText string)) { - C.QUndoStack_connect_RedoTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QUndoStack_connect_RedoTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QUndoStack_RedoTextChanged -func miqt_exec_callback_QUndoStack_RedoTextChanged(cb *C.void, redoText *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(redoText string)) +func miqt_exec_callback_QUndoStack_RedoTextChanged(cb C.intptr_t, redoText *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(redoText string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qundostack.h b/qt/gen_qundostack.h index 88e5eba..e7f9109 100644 --- a/qt/gen_qundostack.h +++ b/qt/gen_qundostack.h @@ -76,17 +76,17 @@ void QUndoStack_Undo(QUndoStack* self); void QUndoStack_Redo(QUndoStack* self); void QUndoStack_SetActive(QUndoStack* self); void QUndoStack_IndexChanged(QUndoStack* self, int idx); -void QUndoStack_connect_IndexChanged(QUndoStack* self, void* slot); +void QUndoStack_connect_IndexChanged(QUndoStack* self, intptr_t slot); void QUndoStack_CleanChanged(QUndoStack* self, bool clean); -void QUndoStack_connect_CleanChanged(QUndoStack* self, void* slot); +void QUndoStack_connect_CleanChanged(QUndoStack* self, intptr_t slot); void QUndoStack_CanUndoChanged(QUndoStack* self, bool canUndo); -void QUndoStack_connect_CanUndoChanged(QUndoStack* self, void* slot); +void QUndoStack_connect_CanUndoChanged(QUndoStack* self, intptr_t slot); void QUndoStack_CanRedoChanged(QUndoStack* self, bool canRedo); -void QUndoStack_connect_CanRedoChanged(QUndoStack* self, void* slot); +void QUndoStack_connect_CanRedoChanged(QUndoStack* self, intptr_t slot); void QUndoStack_UndoTextChanged(QUndoStack* self, struct miqt_string* undoText); -void QUndoStack_connect_UndoTextChanged(QUndoStack* self, void* slot); +void QUndoStack_connect_UndoTextChanged(QUndoStack* self, intptr_t slot); void QUndoStack_RedoTextChanged(QUndoStack* self, struct miqt_string* redoText); -void QUndoStack_connect_RedoTextChanged(QUndoStack* self, void* slot); +void QUndoStack_connect_RedoTextChanged(QUndoStack* self, intptr_t slot); struct miqt_string* QUndoStack_Tr2(const char* s, const char* c); struct miqt_string* QUndoStack_Tr3(const char* s, const char* c, int n); struct miqt_string* QUndoStack_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qvalidator.cpp b/qt/gen_qvalidator.cpp index e6660bc..46104e1 100644 --- a/qt/gen_qvalidator.cpp +++ b/qt/gen_qvalidator.cpp @@ -60,7 +60,7 @@ void QValidator_Changed(QValidator* self) { self->changed(); } -void QValidator_connect_Changed(QValidator* self, void* slot) { +void QValidator_connect_Changed(QValidator* self, intptr_t slot) { QValidator::connect(self, static_cast(&QValidator::changed), self, [=]() { miqt_exec_callback_QValidator_Changed(slot); }); @@ -171,7 +171,7 @@ void QIntValidator_BottomChanged(QIntValidator* self, int bottom) { self->bottomChanged(static_cast(bottom)); } -void QIntValidator_connect_BottomChanged(QIntValidator* self, void* slot) { +void QIntValidator_connect_BottomChanged(QIntValidator* self, intptr_t slot) { QIntValidator::connect(self, static_cast(&QIntValidator::bottomChanged), self, [=](int bottom) { int sigval1 = bottom; miqt_exec_callback_QIntValidator_BottomChanged(slot, sigval1); @@ -182,7 +182,7 @@ void QIntValidator_TopChanged(QIntValidator* self, int top) { self->topChanged(static_cast(top)); } -void QIntValidator_connect_TopChanged(QIntValidator* self, void* slot) { +void QIntValidator_connect_TopChanged(QIntValidator* self, intptr_t slot) { QIntValidator::connect(self, static_cast(&QIntValidator::topChanged), self, [=](int top) { int sigval1 = top; miqt_exec_callback_QIntValidator_TopChanged(slot, sigval1); @@ -306,7 +306,7 @@ void QDoubleValidator_BottomChanged(QDoubleValidator* self, double bottom) { self->bottomChanged(static_cast(bottom)); } -void QDoubleValidator_connect_BottomChanged(QDoubleValidator* self, void* slot) { +void QDoubleValidator_connect_BottomChanged(QDoubleValidator* self, intptr_t slot) { QDoubleValidator::connect(self, static_cast(&QDoubleValidator::bottomChanged), self, [=](double bottom) { double sigval1 = bottom; miqt_exec_callback_QDoubleValidator_BottomChanged(slot, sigval1); @@ -317,7 +317,7 @@ void QDoubleValidator_TopChanged(QDoubleValidator* self, double top) { self->topChanged(static_cast(top)); } -void QDoubleValidator_connect_TopChanged(QDoubleValidator* self, void* slot) { +void QDoubleValidator_connect_TopChanged(QDoubleValidator* self, intptr_t slot) { QDoubleValidator::connect(self, static_cast(&QDoubleValidator::topChanged), self, [=](double top) { double sigval1 = top; miqt_exec_callback_QDoubleValidator_TopChanged(slot, sigval1); @@ -328,7 +328,7 @@ void QDoubleValidator_DecimalsChanged(QDoubleValidator* self, int decimals) { self->decimalsChanged(static_cast(decimals)); } -void QDoubleValidator_connect_DecimalsChanged(QDoubleValidator* self, void* slot) { +void QDoubleValidator_connect_DecimalsChanged(QDoubleValidator* self, intptr_t slot) { QDoubleValidator::connect(self, static_cast(&QDoubleValidator::decimalsChanged), self, [=](int decimals) { int sigval1 = decimals; miqt_exec_callback_QDoubleValidator_DecimalsChanged(slot, sigval1); @@ -339,7 +339,7 @@ void QDoubleValidator_NotationChanged(QDoubleValidator* self, int notation) { self->notationChanged(static_cast(notation)); } -void QDoubleValidator_connect_NotationChanged(QDoubleValidator* self, void* slot) { +void QDoubleValidator_connect_NotationChanged(QDoubleValidator* self, intptr_t slot) { QDoubleValidator::connect(self, static_cast(&QDoubleValidator::notationChanged), self, [=](QDoubleValidator::Notation notation) { QDoubleValidator::Notation notation_ret = notation; int sigval1 = static_cast(notation_ret); @@ -441,7 +441,7 @@ void QRegExpValidator_RegExpChanged(QRegExpValidator* self, QRegExp* regExp) { self->regExpChanged(*regExp); } -void QRegExpValidator_connect_RegExpChanged(QRegExpValidator* self, void* slot) { +void QRegExpValidator_connect_RegExpChanged(QRegExpValidator* self, intptr_t slot) { QRegExpValidator::connect(self, static_cast(&QRegExpValidator::regExpChanged), self, [=](const QRegExp& regExp) { const QRegExp& regExp_ret = regExp; // Cast returned reference into pointer @@ -538,7 +538,7 @@ void QRegularExpressionValidator_RegularExpressionChanged(QRegularExpressionVali self->regularExpressionChanged(*re); } -void QRegularExpressionValidator_connect_RegularExpressionChanged(QRegularExpressionValidator* self, void* slot) { +void QRegularExpressionValidator_connect_RegularExpressionChanged(QRegularExpressionValidator* self, intptr_t slot) { QRegularExpressionValidator::connect(self, static_cast(&QRegularExpressionValidator::regularExpressionChanged), self, [=](const QRegularExpression& re) { const QRegularExpression& re_ret = re; // Cast returned reference into pointer diff --git a/qt/gen_qvalidator.go b/qt/gen_qvalidator.go index 814d16d..620a501 100644 --- a/qt/gen_qvalidator.go +++ b/qt/gen_qvalidator.go @@ -107,12 +107,12 @@ func (this *QValidator) Changed() { C.QValidator_Changed(this.h) } func (this *QValidator) OnChanged(slot func()) { - C.QValidator_connect_Changed(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QValidator_connect_Changed(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QValidator_Changed -func miqt_exec_callback_QValidator_Changed(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QValidator_Changed(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -289,12 +289,12 @@ func (this *QIntValidator) BottomChanged(bottom int) { C.QIntValidator_BottomChanged(this.h, (C.int)(bottom)) } func (this *QIntValidator) OnBottomChanged(slot func(bottom int)) { - C.QIntValidator_connect_BottomChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIntValidator_connect_BottomChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIntValidator_BottomChanged -func miqt_exec_callback_QIntValidator_BottomChanged(cb *C.void, bottom C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(bottom int)) +func miqt_exec_callback_QIntValidator_BottomChanged(cb C.intptr_t, bottom C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(bottom int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -309,12 +309,12 @@ func (this *QIntValidator) TopChanged(top int) { C.QIntValidator_TopChanged(this.h, (C.int)(top)) } func (this *QIntValidator) OnTopChanged(slot func(top int)) { - C.QIntValidator_connect_TopChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QIntValidator_connect_TopChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QIntValidator_TopChanged -func miqt_exec_callback_QIntValidator_TopChanged(cb *C.void, top C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(top int)) +func miqt_exec_callback_QIntValidator_TopChanged(cb C.intptr_t, top C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(top int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -504,12 +504,12 @@ func (this *QDoubleValidator) BottomChanged(bottom float64) { C.QDoubleValidator_BottomChanged(this.h, (C.double)(bottom)) } func (this *QDoubleValidator) OnBottomChanged(slot func(bottom float64)) { - C.QDoubleValidator_connect_BottomChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDoubleValidator_connect_BottomChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDoubleValidator_BottomChanged -func miqt_exec_callback_QDoubleValidator_BottomChanged(cb *C.void, bottom C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(bottom float64)) +func miqt_exec_callback_QDoubleValidator_BottomChanged(cb C.intptr_t, bottom C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(bottom float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -524,12 +524,12 @@ func (this *QDoubleValidator) TopChanged(top float64) { C.QDoubleValidator_TopChanged(this.h, (C.double)(top)) } func (this *QDoubleValidator) OnTopChanged(slot func(top float64)) { - C.QDoubleValidator_connect_TopChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDoubleValidator_connect_TopChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDoubleValidator_TopChanged -func miqt_exec_callback_QDoubleValidator_TopChanged(cb *C.void, top C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(top float64)) +func miqt_exec_callback_QDoubleValidator_TopChanged(cb C.intptr_t, top C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(top float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -544,12 +544,12 @@ func (this *QDoubleValidator) DecimalsChanged(decimals int) { C.QDoubleValidator_DecimalsChanged(this.h, (C.int)(decimals)) } func (this *QDoubleValidator) OnDecimalsChanged(slot func(decimals int)) { - C.QDoubleValidator_connect_DecimalsChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDoubleValidator_connect_DecimalsChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDoubleValidator_DecimalsChanged -func miqt_exec_callback_QDoubleValidator_DecimalsChanged(cb *C.void, decimals C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(decimals int)) +func miqt_exec_callback_QDoubleValidator_DecimalsChanged(cb C.intptr_t, decimals C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(decimals int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -564,12 +564,12 @@ func (this *QDoubleValidator) NotationChanged(notation QDoubleValidator__Notatio C.QDoubleValidator_NotationChanged(this.h, (C.int)(notation)) } func (this *QDoubleValidator) OnNotationChanged(slot func(notation QDoubleValidator__Notation)) { - C.QDoubleValidator_connect_NotationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QDoubleValidator_connect_NotationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QDoubleValidator_NotationChanged -func miqt_exec_callback_QDoubleValidator_NotationChanged(cb *C.void, notation C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(notation QDoubleValidator__Notation)) +func miqt_exec_callback_QDoubleValidator_NotationChanged(cb C.intptr_t, notation C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(notation QDoubleValidator__Notation)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -735,12 +735,12 @@ func (this *QRegExpValidator) RegExpChanged(regExp *QRegExp) { C.QRegExpValidator_RegExpChanged(this.h, regExp.cPointer()) } func (this *QRegExpValidator) OnRegExpChanged(slot func(regExp *QRegExp)) { - C.QRegExpValidator_connect_RegExpChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QRegExpValidator_connect_RegExpChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QRegExpValidator_RegExpChanged -func miqt_exec_callback_QRegExpValidator_RegExpChanged(cb *C.void, regExp *C.QRegExp) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(regExp *QRegExp)) +func miqt_exec_callback_QRegExpValidator_RegExpChanged(cb C.intptr_t, regExp *C.QRegExp) { + gofunc, ok := cgo.Handle(cb).Value().(func(regExp *QRegExp)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -905,12 +905,12 @@ func (this *QRegularExpressionValidator) RegularExpressionChanged(re *QRegularEx C.QRegularExpressionValidator_RegularExpressionChanged(this.h, re.cPointer()) } func (this *QRegularExpressionValidator) OnRegularExpressionChanged(slot func(re *QRegularExpression)) { - C.QRegularExpressionValidator_connect_RegularExpressionChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QRegularExpressionValidator_connect_RegularExpressionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QRegularExpressionValidator_RegularExpressionChanged -func miqt_exec_callback_QRegularExpressionValidator_RegularExpressionChanged(cb *C.void, re *C.QRegularExpression) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(re *QRegularExpression)) +func miqt_exec_callback_QRegularExpressionValidator_RegularExpressionChanged(cb C.intptr_t, re *C.QRegularExpression) { + gofunc, ok := cgo.Handle(cb).Value().(func(re *QRegularExpression)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qvalidator.h b/qt/gen_qvalidator.h index 30fa8f9..250c1ac 100644 --- a/qt/gen_qvalidator.h +++ b/qt/gen_qvalidator.h @@ -46,7 +46,7 @@ QLocale* QValidator_Locale(const QValidator* self); int QValidator_Validate(const QValidator* self, struct miqt_string* param1, int* param2); void QValidator_Fixup(const QValidator* self, struct miqt_string* param1); void QValidator_Changed(QValidator* self); -void QValidator_connect_Changed(QValidator* self, void* slot); +void QValidator_connect_Changed(QValidator* self, intptr_t slot); struct miqt_string* QValidator_Tr2(const char* s, const char* c); struct miqt_string* QValidator_Tr3(const char* s, const char* c, int n); struct miqt_string* QValidator_TrUtf82(const char* s, const char* c); @@ -69,9 +69,9 @@ void QIntValidator_SetRange(QIntValidator* self, int bottom, int top); int QIntValidator_Bottom(const QIntValidator* self); int QIntValidator_Top(const QIntValidator* self); void QIntValidator_BottomChanged(QIntValidator* self, int bottom); -void QIntValidator_connect_BottomChanged(QIntValidator* self, void* slot); +void QIntValidator_connect_BottomChanged(QIntValidator* self, intptr_t slot); void QIntValidator_TopChanged(QIntValidator* self, int top); -void QIntValidator_connect_TopChanged(QIntValidator* self, void* slot); +void QIntValidator_connect_TopChanged(QIntValidator* self, intptr_t slot); struct miqt_string* QIntValidator_Tr2(const char* s, const char* c); struct miqt_string* QIntValidator_Tr3(const char* s, const char* c, int n); struct miqt_string* QIntValidator_TrUtf82(const char* s, const char* c); @@ -97,13 +97,13 @@ double QDoubleValidator_Top(const QDoubleValidator* self); int QDoubleValidator_Decimals(const QDoubleValidator* self); int QDoubleValidator_Notation(const QDoubleValidator* self); void QDoubleValidator_BottomChanged(QDoubleValidator* self, double bottom); -void QDoubleValidator_connect_BottomChanged(QDoubleValidator* self, void* slot); +void QDoubleValidator_connect_BottomChanged(QDoubleValidator* self, intptr_t slot); void QDoubleValidator_TopChanged(QDoubleValidator* self, double top); -void QDoubleValidator_connect_TopChanged(QDoubleValidator* self, void* slot); +void QDoubleValidator_connect_TopChanged(QDoubleValidator* self, intptr_t slot); void QDoubleValidator_DecimalsChanged(QDoubleValidator* self, int decimals); -void QDoubleValidator_connect_DecimalsChanged(QDoubleValidator* self, void* slot); +void QDoubleValidator_connect_DecimalsChanged(QDoubleValidator* self, intptr_t slot); void QDoubleValidator_NotationChanged(QDoubleValidator* self, int notation); -void QDoubleValidator_connect_NotationChanged(QDoubleValidator* self, void* slot); +void QDoubleValidator_connect_NotationChanged(QDoubleValidator* self, intptr_t slot); struct miqt_string* QDoubleValidator_Tr2(const char* s, const char* c); struct miqt_string* QDoubleValidator_Tr3(const char* s, const char* c, int n); struct miqt_string* QDoubleValidator_TrUtf82(const char* s, const char* c); @@ -123,7 +123,7 @@ int QRegExpValidator_Validate(const QRegExpValidator* self, struct miqt_string* void QRegExpValidator_SetRegExp(QRegExpValidator* self, QRegExp* rx); QRegExp* QRegExpValidator_RegExp(const QRegExpValidator* self); void QRegExpValidator_RegExpChanged(QRegExpValidator* self, QRegExp* regExp); -void QRegExpValidator_connect_RegExpChanged(QRegExpValidator* self, void* slot); +void QRegExpValidator_connect_RegExpChanged(QRegExpValidator* self, intptr_t slot); struct miqt_string* QRegExpValidator_Tr2(const char* s, const char* c); struct miqt_string* QRegExpValidator_Tr3(const char* s, const char* c, int n); struct miqt_string* QRegExpValidator_TrUtf82(const char* s, const char* c); @@ -142,7 +142,7 @@ int QRegularExpressionValidator_Validate(const QRegularExpressionValidator* self QRegularExpression* QRegularExpressionValidator_RegularExpression(const QRegularExpressionValidator* self); void QRegularExpressionValidator_SetRegularExpression(QRegularExpressionValidator* self, QRegularExpression* re); void QRegularExpressionValidator_RegularExpressionChanged(QRegularExpressionValidator* self, QRegularExpression* re); -void QRegularExpressionValidator_connect_RegularExpressionChanged(QRegularExpressionValidator* self, void* slot); +void QRegularExpressionValidator_connect_RegularExpressionChanged(QRegularExpressionValidator* self, intptr_t slot); struct miqt_string* QRegularExpressionValidator_Tr2(const char* s, const char* c); struct miqt_string* QRegularExpressionValidator_Tr3(const char* s, const char* c, int n); struct miqt_string* QRegularExpressionValidator_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qvariantanimation.cpp b/qt/gen_qvariantanimation.cpp index 29b8a5c..96a703a 100644 --- a/qt/gen_qvariantanimation.cpp +++ b/qt/gen_qvariantanimation.cpp @@ -88,7 +88,7 @@ void QVariantAnimation_ValueChanged(QVariantAnimation* self, QVariant* value) { self->valueChanged(*value); } -void QVariantAnimation_connect_ValueChanged(QVariantAnimation* self, void* slot) { +void QVariantAnimation_connect_ValueChanged(QVariantAnimation* self, intptr_t slot) { QVariantAnimation::connect(self, static_cast(&QVariantAnimation::valueChanged), self, [=](const QVariant& value) { const QVariant& value_ret = value; // Cast returned reference into pointer diff --git a/qt/gen_qvariantanimation.go b/qt/gen_qvariantanimation.go index 7e773a8..ca4fc84 100644 --- a/qt/gen_qvariantanimation.go +++ b/qt/gen_qvariantanimation.go @@ -140,12 +140,12 @@ func (this *QVariantAnimation) ValueChanged(value *QVariant) { C.QVariantAnimation_ValueChanged(this.h, value.cPointer()) } func (this *QVariantAnimation) OnValueChanged(slot func(value *QVariant)) { - C.QVariantAnimation_connect_ValueChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QVariantAnimation_connect_ValueChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QVariantAnimation_ValueChanged -func miqt_exec_callback_QVariantAnimation_ValueChanged(cb *C.void, value *C.QVariant) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(value *QVariant)) +func miqt_exec_callback_QVariantAnimation_ValueChanged(cb C.intptr_t, value *C.QVariant) { + gofunc, ok := cgo.Handle(cb).Value().(func(value *QVariant)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qvariantanimation.h b/qt/gen_qvariantanimation.h index fd10450..e58e94d 100644 --- a/qt/gen_qvariantanimation.h +++ b/qt/gen_qvariantanimation.h @@ -45,7 +45,7 @@ void QVariantAnimation_SetDuration(QVariantAnimation* self, int msecs); QEasingCurve* QVariantAnimation_EasingCurve(const QVariantAnimation* self); void QVariantAnimation_SetEasingCurve(QVariantAnimation* self, QEasingCurve* easing); void QVariantAnimation_ValueChanged(QVariantAnimation* self, QVariant* value); -void QVariantAnimation_connect_ValueChanged(QVariantAnimation* self, void* slot); +void QVariantAnimation_connect_ValueChanged(QVariantAnimation* self, intptr_t slot); struct miqt_string* QVariantAnimation_Tr2(const char* s, const char* c); struct miqt_string* QVariantAnimation_Tr3(const char* s, const char* c, int n); struct miqt_string* QVariantAnimation_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qwidget.cpp b/qt/gen_qwidget.cpp index ec349ee..036db5e 100644 --- a/qt/gen_qwidget.cpp +++ b/qt/gen_qwidget.cpp @@ -1145,7 +1145,7 @@ void QWidget_WindowTitleChanged(QWidget* self, struct miqt_string* title) { self->windowTitleChanged(title_QString); } -void QWidget_connect_WindowTitleChanged(QWidget* self, void* slot) { +void QWidget_connect_WindowTitleChanged(QWidget* self, intptr_t slot) { QWidget::connect(self, static_cast(&QWidget::windowTitleChanged), self, [=](const QString& title) { const QString title_ret = title; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -1159,7 +1159,7 @@ void QWidget_WindowIconChanged(QWidget* self, QIcon* icon) { self->windowIconChanged(*icon); } -void QWidget_connect_WindowIconChanged(QWidget* self, void* slot) { +void QWidget_connect_WindowIconChanged(QWidget* self, intptr_t slot) { QWidget::connect(self, static_cast(&QWidget::windowIconChanged), self, [=](const QIcon& icon) { const QIcon& icon_ret = icon; // Cast returned reference into pointer @@ -1173,7 +1173,7 @@ void QWidget_WindowIconTextChanged(QWidget* self, struct miqt_string* iconText) self->windowIconTextChanged(iconText_QString); } -void QWidget_connect_WindowIconTextChanged(QWidget* self, void* slot) { +void QWidget_connect_WindowIconTextChanged(QWidget* self, intptr_t slot) { QWidget::connect(self, static_cast(&QWidget::windowIconTextChanged), self, [=](const QString& iconText) { const QString iconText_ret = iconText; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -1187,7 +1187,7 @@ void QWidget_CustomContextMenuRequested(QWidget* self, QPoint* pos) { self->customContextMenuRequested(*pos); } -void QWidget_connect_CustomContextMenuRequested(QWidget* self, void* slot) { +void QWidget_connect_CustomContextMenuRequested(QWidget* self, intptr_t slot) { QWidget::connect(self, static_cast(&QWidget::customContextMenuRequested), self, [=](const QPoint& pos) { const QPoint& pos_ret = pos; // Cast returned reference into pointer diff --git a/qt/gen_qwidget.go b/qt/gen_qwidget.go index c017099..e2b0fd1 100644 --- a/qt/gen_qwidget.go +++ b/qt/gen_qwidget.go @@ -1289,12 +1289,12 @@ func (this *QWidget) WindowTitleChanged(title string) { C.QWidget_WindowTitleChanged(this.h, (*C.struct_miqt_string)(title_ms)) } func (this *QWidget) OnWindowTitleChanged(slot func(title string)) { - C.QWidget_connect_WindowTitleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWidget_connect_WindowTitleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWidget_WindowTitleChanged -func miqt_exec_callback_QWidget_WindowTitleChanged(cb *C.void, title *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(title string)) +func miqt_exec_callback_QWidget_WindowTitleChanged(cb C.intptr_t, title *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(title string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1312,12 +1312,12 @@ func (this *QWidget) WindowIconChanged(icon *QIcon) { C.QWidget_WindowIconChanged(this.h, icon.cPointer()) } func (this *QWidget) OnWindowIconChanged(slot func(icon *QIcon)) { - C.QWidget_connect_WindowIconChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWidget_connect_WindowIconChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWidget_WindowIconChanged -func miqt_exec_callback_QWidget_WindowIconChanged(cb *C.void, icon *C.QIcon) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(icon *QIcon)) +func miqt_exec_callback_QWidget_WindowIconChanged(cb C.intptr_t, icon *C.QIcon) { + gofunc, ok := cgo.Handle(cb).Value().(func(icon *QIcon)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1334,12 +1334,12 @@ func (this *QWidget) WindowIconTextChanged(iconText string) { C.QWidget_WindowIconTextChanged(this.h, (*C.struct_miqt_string)(iconText_ms)) } func (this *QWidget) OnWindowIconTextChanged(slot func(iconText string)) { - C.QWidget_connect_WindowIconTextChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWidget_connect_WindowIconTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWidget_WindowIconTextChanged -func miqt_exec_callback_QWidget_WindowIconTextChanged(cb *C.void, iconText *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(iconText string)) +func miqt_exec_callback_QWidget_WindowIconTextChanged(cb C.intptr_t, iconText *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(iconText string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -1357,12 +1357,12 @@ func (this *QWidget) CustomContextMenuRequested(pos *QPoint) { C.QWidget_CustomContextMenuRequested(this.h, pos.cPointer()) } func (this *QWidget) OnCustomContextMenuRequested(slot func(pos *QPoint)) { - C.QWidget_connect_CustomContextMenuRequested(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWidget_connect_CustomContextMenuRequested(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWidget_CustomContextMenuRequested -func miqt_exec_callback_QWidget_CustomContextMenuRequested(cb *C.void, pos *C.QPoint) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(pos *QPoint)) +func miqt_exec_callback_QWidget_CustomContextMenuRequested(cb C.intptr_t, pos *C.QPoint) { + gofunc, ok := cgo.Handle(cb).Value().(func(pos *QPoint)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qwidget.h b/qt/gen_qwidget.h index 1edaa58..91549e0 100644 --- a/qt/gen_qwidget.h +++ b/qt/gen_qwidget.h @@ -337,13 +337,13 @@ QWindow* QWidget_WindowHandle(const QWidget* self); QScreen* QWidget_Screen(const QWidget* self); QWidget* QWidget_CreateWindowContainer(QWindow* window); void QWidget_WindowTitleChanged(QWidget* self, struct miqt_string* title); -void QWidget_connect_WindowTitleChanged(QWidget* self, void* slot); +void QWidget_connect_WindowTitleChanged(QWidget* self, intptr_t slot); void QWidget_WindowIconChanged(QWidget* self, QIcon* icon); -void QWidget_connect_WindowIconChanged(QWidget* self, void* slot); +void QWidget_connect_WindowIconChanged(QWidget* self, intptr_t slot); void QWidget_WindowIconTextChanged(QWidget* self, struct miqt_string* iconText); -void QWidget_connect_WindowIconTextChanged(QWidget* self, void* slot); +void QWidget_connect_WindowIconTextChanged(QWidget* self, intptr_t slot); void QWidget_CustomContextMenuRequested(QWidget* self, QPoint* pos); -void QWidget_connect_CustomContextMenuRequested(QWidget* self, void* slot); +void QWidget_connect_CustomContextMenuRequested(QWidget* self, intptr_t slot); QVariant* QWidget_InputMethodQuery(const QWidget* self, int param1); int QWidget_InputMethodHints(const QWidget* self); void QWidget_SetInputMethodHints(QWidget* self, int hints); diff --git a/qt/gen_qwindow.cpp b/qt/gen_qwindow.cpp index 92ec8c5..29bba87 100644 --- a/qt/gen_qwindow.cpp +++ b/qt/gen_qwindow.cpp @@ -507,7 +507,7 @@ void QWindow_ScreenChanged(QWindow* self, QScreen* screen) { self->screenChanged(screen); } -void QWindow_connect_ScreenChanged(QWindow* self, void* slot) { +void QWindow_connect_ScreenChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::screenChanged), self, [=](QScreen* screen) { QScreen* sigval1 = screen; miqt_exec_callback_QWindow_ScreenChanged(slot, sigval1); @@ -518,7 +518,7 @@ void QWindow_ModalityChanged(QWindow* self, int modality) { self->modalityChanged(static_cast(modality)); } -void QWindow_connect_ModalityChanged(QWindow* self, void* slot) { +void QWindow_connect_ModalityChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::modalityChanged), self, [=](Qt::WindowModality modality) { Qt::WindowModality modality_ret = modality; int sigval1 = static_cast(modality_ret); @@ -530,7 +530,7 @@ void QWindow_WindowStateChanged(QWindow* self, int windowState) { self->windowStateChanged(static_cast(windowState)); } -void QWindow_connect_WindowStateChanged(QWindow* self, void* slot) { +void QWindow_connect_WindowStateChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::windowStateChanged), self, [=](Qt::WindowState windowState) { Qt::WindowState windowState_ret = windowState; int sigval1 = static_cast(windowState_ret); @@ -543,7 +543,7 @@ void QWindow_WindowTitleChanged(QWindow* self, struct miqt_string* title) { self->windowTitleChanged(title_QString); } -void QWindow_connect_WindowTitleChanged(QWindow* self, void* slot) { +void QWindow_connect_WindowTitleChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::windowTitleChanged), self, [=](const QString& title) { const QString title_ret = title; // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory @@ -557,7 +557,7 @@ void QWindow_XChanged(QWindow* self, int arg) { self->xChanged(static_cast(arg)); } -void QWindow_connect_XChanged(QWindow* self, void* slot) { +void QWindow_connect_XChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::xChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_XChanged(slot, sigval1); @@ -568,7 +568,7 @@ void QWindow_YChanged(QWindow* self, int arg) { self->yChanged(static_cast(arg)); } -void QWindow_connect_YChanged(QWindow* self, void* slot) { +void QWindow_connect_YChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::yChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_YChanged(slot, sigval1); @@ -579,7 +579,7 @@ void QWindow_WidthChanged(QWindow* self, int arg) { self->widthChanged(static_cast(arg)); } -void QWindow_connect_WidthChanged(QWindow* self, void* slot) { +void QWindow_connect_WidthChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::widthChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_WidthChanged(slot, sigval1); @@ -590,7 +590,7 @@ void QWindow_HeightChanged(QWindow* self, int arg) { self->heightChanged(static_cast(arg)); } -void QWindow_connect_HeightChanged(QWindow* self, void* slot) { +void QWindow_connect_HeightChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::heightChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_HeightChanged(slot, sigval1); @@ -601,7 +601,7 @@ void QWindow_MinimumWidthChanged(QWindow* self, int arg) { self->minimumWidthChanged(static_cast(arg)); } -void QWindow_connect_MinimumWidthChanged(QWindow* self, void* slot) { +void QWindow_connect_MinimumWidthChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::minimumWidthChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_MinimumWidthChanged(slot, sigval1); @@ -612,7 +612,7 @@ void QWindow_MinimumHeightChanged(QWindow* self, int arg) { self->minimumHeightChanged(static_cast(arg)); } -void QWindow_connect_MinimumHeightChanged(QWindow* self, void* slot) { +void QWindow_connect_MinimumHeightChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::minimumHeightChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_MinimumHeightChanged(slot, sigval1); @@ -623,7 +623,7 @@ void QWindow_MaximumWidthChanged(QWindow* self, int arg) { self->maximumWidthChanged(static_cast(arg)); } -void QWindow_connect_MaximumWidthChanged(QWindow* self, void* slot) { +void QWindow_connect_MaximumWidthChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::maximumWidthChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_MaximumWidthChanged(slot, sigval1); @@ -634,7 +634,7 @@ void QWindow_MaximumHeightChanged(QWindow* self, int arg) { self->maximumHeightChanged(static_cast(arg)); } -void QWindow_connect_MaximumHeightChanged(QWindow* self, void* slot) { +void QWindow_connect_MaximumHeightChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::maximumHeightChanged), self, [=](int arg) { int sigval1 = arg; miqt_exec_callback_QWindow_MaximumHeightChanged(slot, sigval1); @@ -645,7 +645,7 @@ void QWindow_VisibleChanged(QWindow* self, bool arg) { self->visibleChanged(arg); } -void QWindow_connect_VisibleChanged(QWindow* self, void* slot) { +void QWindow_connect_VisibleChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::visibleChanged), self, [=](bool arg) { bool sigval1 = arg; miqt_exec_callback_QWindow_VisibleChanged(slot, sigval1); @@ -656,7 +656,7 @@ void QWindow_VisibilityChanged(QWindow* self, int visibility) { self->visibilityChanged(static_cast(visibility)); } -void QWindow_connect_VisibilityChanged(QWindow* self, void* slot) { +void QWindow_connect_VisibilityChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::visibilityChanged), self, [=](QWindow::Visibility visibility) { QWindow::Visibility visibility_ret = visibility; int sigval1 = static_cast(visibility_ret); @@ -668,7 +668,7 @@ void QWindow_ActiveChanged(QWindow* self) { self->activeChanged(); } -void QWindow_connect_ActiveChanged(QWindow* self, void* slot) { +void QWindow_connect_ActiveChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::activeChanged), self, [=]() { miqt_exec_callback_QWindow_ActiveChanged(slot); }); @@ -678,7 +678,7 @@ void QWindow_ContentOrientationChanged(QWindow* self, int orientation) { self->contentOrientationChanged(static_cast(orientation)); } -void QWindow_connect_ContentOrientationChanged(QWindow* self, void* slot) { +void QWindow_connect_ContentOrientationChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::contentOrientationChanged), self, [=](Qt::ScreenOrientation orientation) { Qt::ScreenOrientation orientation_ret = orientation; int sigval1 = static_cast(orientation_ret); @@ -690,7 +690,7 @@ void QWindow_FocusObjectChanged(QWindow* self, QObject* object) { self->focusObjectChanged(object); } -void QWindow_connect_FocusObjectChanged(QWindow* self, void* slot) { +void QWindow_connect_FocusObjectChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::focusObjectChanged), self, [=](QObject* object) { QObject* sigval1 = object; miqt_exec_callback_QWindow_FocusObjectChanged(slot, sigval1); @@ -701,7 +701,7 @@ void QWindow_OpacityChanged(QWindow* self, double opacity) { self->opacityChanged(static_cast(opacity)); } -void QWindow_connect_OpacityChanged(QWindow* self, void* slot) { +void QWindow_connect_OpacityChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::opacityChanged), self, [=](qreal opacity) { qreal opacity_ret = opacity; double sigval1 = static_cast(opacity_ret); @@ -713,7 +713,7 @@ void QWindow_TransientParentChanged(QWindow* self, QWindow* transientParent) { self->transientParentChanged(transientParent); } -void QWindow_connect_TransientParentChanged(QWindow* self, void* slot) { +void QWindow_connect_TransientParentChanged(QWindow* self, intptr_t slot) { QWindow::connect(self, static_cast(&QWindow::transientParentChanged), self, [=](QWindow* transientParent) { QWindow* sigval1 = transientParent; miqt_exec_callback_QWindow_TransientParentChanged(slot, sigval1); diff --git a/qt/gen_qwindow.go b/qt/gen_qwindow.go index c0c1318..508bf23 100644 --- a/qt/gen_qwindow.go +++ b/qt/gen_qwindow.go @@ -599,12 +599,12 @@ func (this *QWindow) ScreenChanged(screen *QScreen) { C.QWindow_ScreenChanged(this.h, screen.cPointer()) } func (this *QWindow) OnScreenChanged(slot func(screen *QScreen)) { - C.QWindow_connect_ScreenChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_ScreenChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_ScreenChanged -func miqt_exec_callback_QWindow_ScreenChanged(cb *C.void, screen *C.QScreen) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(screen *QScreen)) +func miqt_exec_callback_QWindow_ScreenChanged(cb C.intptr_t, screen *C.QScreen) { + gofunc, ok := cgo.Handle(cb).Value().(func(screen *QScreen)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -619,12 +619,12 @@ func (this *QWindow) ModalityChanged(modality WindowModality) { C.QWindow_ModalityChanged(this.h, (C.int)(modality)) } func (this *QWindow) OnModalityChanged(slot func(modality WindowModality)) { - C.QWindow_connect_ModalityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_ModalityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_ModalityChanged -func miqt_exec_callback_QWindow_ModalityChanged(cb *C.void, modality C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(modality WindowModality)) +func miqt_exec_callback_QWindow_ModalityChanged(cb C.intptr_t, modality C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(modality WindowModality)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -639,12 +639,12 @@ func (this *QWindow) WindowStateChanged(windowState WindowState) { C.QWindow_WindowStateChanged(this.h, (C.int)(windowState)) } func (this *QWindow) OnWindowStateChanged(slot func(windowState WindowState)) { - C.QWindow_connect_WindowStateChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_WindowStateChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_WindowStateChanged -func miqt_exec_callback_QWindow_WindowStateChanged(cb *C.void, windowState C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(windowState WindowState)) +func miqt_exec_callback_QWindow_WindowStateChanged(cb C.intptr_t, windowState C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(windowState WindowState)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -661,12 +661,12 @@ func (this *QWindow) WindowTitleChanged(title string) { C.QWindow_WindowTitleChanged(this.h, (*C.struct_miqt_string)(title_ms)) } func (this *QWindow) OnWindowTitleChanged(slot func(title string)) { - C.QWindow_connect_WindowTitleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_WindowTitleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_WindowTitleChanged -func miqt_exec_callback_QWindow_WindowTitleChanged(cb *C.void, title *C.struct_miqt_string) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(title string)) +func miqt_exec_callback_QWindow_WindowTitleChanged(cb C.intptr_t, title *C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(title string)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -684,12 +684,12 @@ func (this *QWindow) XChanged(arg int) { C.QWindow_XChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnXChanged(slot func(arg int)) { - C.QWindow_connect_XChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_XChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_XChanged -func miqt_exec_callback_QWindow_XChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_XChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -704,12 +704,12 @@ func (this *QWindow) YChanged(arg int) { C.QWindow_YChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnYChanged(slot func(arg int)) { - C.QWindow_connect_YChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_YChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_YChanged -func miqt_exec_callback_QWindow_YChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_YChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -724,12 +724,12 @@ func (this *QWindow) WidthChanged(arg int) { C.QWindow_WidthChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnWidthChanged(slot func(arg int)) { - C.QWindow_connect_WidthChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_WidthChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_WidthChanged -func miqt_exec_callback_QWindow_WidthChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_WidthChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -744,12 +744,12 @@ func (this *QWindow) HeightChanged(arg int) { C.QWindow_HeightChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnHeightChanged(slot func(arg int)) { - C.QWindow_connect_HeightChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_HeightChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_HeightChanged -func miqt_exec_callback_QWindow_HeightChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_HeightChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -764,12 +764,12 @@ func (this *QWindow) MinimumWidthChanged(arg int) { C.QWindow_MinimumWidthChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnMinimumWidthChanged(slot func(arg int)) { - C.QWindow_connect_MinimumWidthChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_MinimumWidthChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_MinimumWidthChanged -func miqt_exec_callback_QWindow_MinimumWidthChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_MinimumWidthChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -784,12 +784,12 @@ func (this *QWindow) MinimumHeightChanged(arg int) { C.QWindow_MinimumHeightChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnMinimumHeightChanged(slot func(arg int)) { - C.QWindow_connect_MinimumHeightChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_MinimumHeightChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_MinimumHeightChanged -func miqt_exec_callback_QWindow_MinimumHeightChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_MinimumHeightChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -804,12 +804,12 @@ func (this *QWindow) MaximumWidthChanged(arg int) { C.QWindow_MaximumWidthChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnMaximumWidthChanged(slot func(arg int)) { - C.QWindow_connect_MaximumWidthChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_MaximumWidthChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_MaximumWidthChanged -func miqt_exec_callback_QWindow_MaximumWidthChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_MaximumWidthChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -824,12 +824,12 @@ func (this *QWindow) MaximumHeightChanged(arg int) { C.QWindow_MaximumHeightChanged(this.h, (C.int)(arg)) } func (this *QWindow) OnMaximumHeightChanged(slot func(arg int)) { - C.QWindow_connect_MaximumHeightChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_MaximumHeightChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_MaximumHeightChanged -func miqt_exec_callback_QWindow_MaximumHeightChanged(cb *C.void, arg C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg int)) +func miqt_exec_callback_QWindow_MaximumHeightChanged(cb C.intptr_t, arg C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -844,12 +844,12 @@ func (this *QWindow) VisibleChanged(arg bool) { C.QWindow_VisibleChanged(this.h, (C.bool)(arg)) } func (this *QWindow) OnVisibleChanged(slot func(arg bool)) { - C.QWindow_connect_VisibleChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_VisibleChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_VisibleChanged -func miqt_exec_callback_QWindow_VisibleChanged(cb *C.void, arg C.bool) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(arg bool)) +func miqt_exec_callback_QWindow_VisibleChanged(cb C.intptr_t, arg C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(arg bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -864,12 +864,12 @@ func (this *QWindow) VisibilityChanged(visibility QWindow__Visibility) { C.QWindow_VisibilityChanged(this.h, (C.int)(visibility)) } func (this *QWindow) OnVisibilityChanged(slot func(visibility QWindow__Visibility)) { - C.QWindow_connect_VisibilityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_VisibilityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_VisibilityChanged -func miqt_exec_callback_QWindow_VisibilityChanged(cb *C.void, visibility C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(visibility QWindow__Visibility)) +func miqt_exec_callback_QWindow_VisibilityChanged(cb C.intptr_t, visibility C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(visibility QWindow__Visibility)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -884,12 +884,12 @@ func (this *QWindow) ActiveChanged() { C.QWindow_ActiveChanged(this.h) } func (this *QWindow) OnActiveChanged(slot func()) { - C.QWindow_connect_ActiveChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_ActiveChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_ActiveChanged -func miqt_exec_callback_QWindow_ActiveChanged(cb *C.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +func miqt_exec_callback_QWindow_ActiveChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -901,12 +901,12 @@ func (this *QWindow) ContentOrientationChanged(orientation ScreenOrientation) { C.QWindow_ContentOrientationChanged(this.h, (C.int)(orientation)) } func (this *QWindow) OnContentOrientationChanged(slot func(orientation ScreenOrientation)) { - C.QWindow_connect_ContentOrientationChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_ContentOrientationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_ContentOrientationChanged -func miqt_exec_callback_QWindow_ContentOrientationChanged(cb *C.void, orientation C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(orientation ScreenOrientation)) +func miqt_exec_callback_QWindow_ContentOrientationChanged(cb C.intptr_t, orientation C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(orientation ScreenOrientation)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -921,12 +921,12 @@ func (this *QWindow) FocusObjectChanged(object *QObject) { C.QWindow_FocusObjectChanged(this.h, object.cPointer()) } func (this *QWindow) OnFocusObjectChanged(slot func(object *QObject)) { - C.QWindow_connect_FocusObjectChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_FocusObjectChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_FocusObjectChanged -func miqt_exec_callback_QWindow_FocusObjectChanged(cb *C.void, object *C.QObject) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(object *QObject)) +func miqt_exec_callback_QWindow_FocusObjectChanged(cb C.intptr_t, object *C.QObject) { + gofunc, ok := cgo.Handle(cb).Value().(func(object *QObject)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -941,12 +941,12 @@ func (this *QWindow) OpacityChanged(opacity float64) { C.QWindow_OpacityChanged(this.h, (C.double)(opacity)) } func (this *QWindow) OnOpacityChanged(slot func(opacity float64)) { - C.QWindow_connect_OpacityChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_OpacityChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_OpacityChanged -func miqt_exec_callback_QWindow_OpacityChanged(cb *C.void, opacity C.double) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(opacity float64)) +func miqt_exec_callback_QWindow_OpacityChanged(cb C.intptr_t, opacity C.double) { + gofunc, ok := cgo.Handle(cb).Value().(func(opacity float64)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } @@ -961,12 +961,12 @@ func (this *QWindow) TransientParentChanged(transientParent *QWindow) { C.QWindow_TransientParentChanged(this.h, transientParent.cPointer()) } func (this *QWindow) OnTransientParentChanged(slot func(transientParent *QWindow)) { - C.QWindow_connect_TransientParentChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + C.QWindow_connect_TransientParentChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWindow_TransientParentChanged -func miqt_exec_callback_QWindow_TransientParentChanged(cb *C.void, transientParent *C.QWindow) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(transientParent *QWindow)) +func miqt_exec_callback_QWindow_TransientParentChanged(cb C.intptr_t, transientParent *C.QWindow) { + gofunc, ok := cgo.Handle(cb).Value().(func(transientParent *QWindow)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } diff --git a/qt/gen_qwindow.h b/qt/gen_qwindow.h index 06c3ed5..2ba6a52 100644 --- a/qt/gen_qwindow.h +++ b/qt/gen_qwindow.h @@ -159,43 +159,43 @@ void QWindow_SetMaximumHeight(QWindow* self, int h); void QWindow_Alert(QWindow* self, int msec); void QWindow_RequestUpdate(QWindow* self); void QWindow_ScreenChanged(QWindow* self, QScreen* screen); -void QWindow_connect_ScreenChanged(QWindow* self, void* slot); +void QWindow_connect_ScreenChanged(QWindow* self, intptr_t slot); void QWindow_ModalityChanged(QWindow* self, int modality); -void QWindow_connect_ModalityChanged(QWindow* self, void* slot); +void QWindow_connect_ModalityChanged(QWindow* self, intptr_t slot); void QWindow_WindowStateChanged(QWindow* self, int windowState); -void QWindow_connect_WindowStateChanged(QWindow* self, void* slot); +void QWindow_connect_WindowStateChanged(QWindow* self, intptr_t slot); void QWindow_WindowTitleChanged(QWindow* self, struct miqt_string* title); -void QWindow_connect_WindowTitleChanged(QWindow* self, void* slot); +void QWindow_connect_WindowTitleChanged(QWindow* self, intptr_t slot); void QWindow_XChanged(QWindow* self, int arg); -void QWindow_connect_XChanged(QWindow* self, void* slot); +void QWindow_connect_XChanged(QWindow* self, intptr_t slot); void QWindow_YChanged(QWindow* self, int arg); -void QWindow_connect_YChanged(QWindow* self, void* slot); +void QWindow_connect_YChanged(QWindow* self, intptr_t slot); void QWindow_WidthChanged(QWindow* self, int arg); -void QWindow_connect_WidthChanged(QWindow* self, void* slot); +void QWindow_connect_WidthChanged(QWindow* self, intptr_t slot); void QWindow_HeightChanged(QWindow* self, int arg); -void QWindow_connect_HeightChanged(QWindow* self, void* slot); +void QWindow_connect_HeightChanged(QWindow* self, intptr_t slot); void QWindow_MinimumWidthChanged(QWindow* self, int arg); -void QWindow_connect_MinimumWidthChanged(QWindow* self, void* slot); +void QWindow_connect_MinimumWidthChanged(QWindow* self, intptr_t slot); void QWindow_MinimumHeightChanged(QWindow* self, int arg); -void QWindow_connect_MinimumHeightChanged(QWindow* self, void* slot); +void QWindow_connect_MinimumHeightChanged(QWindow* self, intptr_t slot); void QWindow_MaximumWidthChanged(QWindow* self, int arg); -void QWindow_connect_MaximumWidthChanged(QWindow* self, void* slot); +void QWindow_connect_MaximumWidthChanged(QWindow* self, intptr_t slot); void QWindow_MaximumHeightChanged(QWindow* self, int arg); -void QWindow_connect_MaximumHeightChanged(QWindow* self, void* slot); +void QWindow_connect_MaximumHeightChanged(QWindow* self, intptr_t slot); void QWindow_VisibleChanged(QWindow* self, bool arg); -void QWindow_connect_VisibleChanged(QWindow* self, void* slot); +void QWindow_connect_VisibleChanged(QWindow* self, intptr_t slot); void QWindow_VisibilityChanged(QWindow* self, int visibility); -void QWindow_connect_VisibilityChanged(QWindow* self, void* slot); +void QWindow_connect_VisibilityChanged(QWindow* self, intptr_t slot); void QWindow_ActiveChanged(QWindow* self); -void QWindow_connect_ActiveChanged(QWindow* self, void* slot); +void QWindow_connect_ActiveChanged(QWindow* self, intptr_t slot); void QWindow_ContentOrientationChanged(QWindow* self, int orientation); -void QWindow_connect_ContentOrientationChanged(QWindow* self, void* slot); +void QWindow_connect_ContentOrientationChanged(QWindow* self, intptr_t slot); void QWindow_FocusObjectChanged(QWindow* self, QObject* object); -void QWindow_connect_FocusObjectChanged(QWindow* self, void* slot); +void QWindow_connect_FocusObjectChanged(QWindow* self, intptr_t slot); void QWindow_OpacityChanged(QWindow* self, double opacity); -void QWindow_connect_OpacityChanged(QWindow* self, void* slot); +void QWindow_connect_OpacityChanged(QWindow* self, intptr_t slot); void QWindow_TransientParentChanged(QWindow* self, QWindow* transientParent); -void QWindow_connect_TransientParentChanged(QWindow* self, void* slot); +void QWindow_connect_TransientParentChanged(QWindow* self, intptr_t slot); struct miqt_string* QWindow_Tr2(const char* s, const char* c); struct miqt_string* QWindow_Tr3(const char* s, const char* c, int n); struct miqt_string* QWindow_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qwizard.cpp b/qt/gen_qwizard.cpp index aa7ac67..43df15d 100644 --- a/qt/gen_qwizard.cpp +++ b/qt/gen_qwizard.cpp @@ -247,7 +247,7 @@ void QWizard_CurrentIdChanged(QWizard* self, int id) { self->currentIdChanged(static_cast(id)); } -void QWizard_connect_CurrentIdChanged(QWizard* self, void* slot) { +void QWizard_connect_CurrentIdChanged(QWizard* self, intptr_t slot) { QWizard::connect(self, static_cast(&QWizard::currentIdChanged), self, [=](int id) { int sigval1 = id; miqt_exec_callback_QWizard_CurrentIdChanged(slot, sigval1); @@ -258,7 +258,7 @@ void QWizard_HelpRequested(QWizard* self) { self->helpRequested(); } -void QWizard_connect_HelpRequested(QWizard* self, void* slot) { +void QWizard_connect_HelpRequested(QWizard* self, intptr_t slot) { QWizard::connect(self, static_cast(&QWizard::helpRequested), self, [=]() { miqt_exec_callback_QWizard_HelpRequested(slot); }); @@ -268,7 +268,7 @@ void QWizard_CustomButtonClicked(QWizard* self, int which) { self->customButtonClicked(static_cast(which)); } -void QWizard_connect_CustomButtonClicked(QWizard* self, void* slot) { +void QWizard_connect_CustomButtonClicked(QWizard* self, intptr_t slot) { QWizard::connect(self, static_cast(&QWizard::customButtonClicked), self, [=](int which) { int sigval1 = which; miqt_exec_callback_QWizard_CustomButtonClicked(slot, sigval1); @@ -279,7 +279,7 @@ void QWizard_PageAdded(QWizard* self, int id) { self->pageAdded(static_cast(id)); } -void QWizard_connect_PageAdded(QWizard* self, void* slot) { +void QWizard_connect_PageAdded(QWizard* self, intptr_t slot) { QWizard::connect(self, static_cast(&QWizard::pageAdded), self, [=](int id) { int sigval1 = id; miqt_exec_callback_QWizard_PageAdded(slot, sigval1); @@ -290,7 +290,7 @@ void QWizard_PageRemoved(QWizard* self, int id) { self->pageRemoved(static_cast(id)); } -void QWizard_connect_PageRemoved(QWizard* self, void* slot) { +void QWizard_connect_PageRemoved(QWizard* self, intptr_t slot) { QWizard::connect(self, static_cast(&QWizard::pageRemoved), self, [=](int id) { int sigval1 = id; miqt_exec_callback_QWizard_PageRemoved(slot, sigval1); @@ -459,7 +459,7 @@ void QWizardPage_CompleteChanged(QWizardPage* self) { self->completeChanged(); } -void QWizardPage_connect_CompleteChanged(QWizardPage* self, void* slot) { +void QWizardPage_connect_CompleteChanged(QWizardPage* self, intptr_t slot) { QWizardPage::connect(self, static_cast(&QWizardPage::completeChanged), self, [=]() { miqt_exec_callback_QWizardPage_CompleteChanged(slot); }); diff --git a/qt/gen_qwizard.go b/qt/gen_qwizard.go index d2fb0fd..7720801 100644 --- a/qt/gen_qwizard.go +++ b/qt/gen_qwizard.go @@ -352,12 +352,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, id C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(id int)) +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?)") } @@ -372,12 +372,12 @@ func (this *QWizard) HelpRequested() { C.QWizard_HelpRequested(this.h) } func (this *QWizard) OnHelpRequested(slot func()) { - C.QWizard_connect_HelpRequested(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +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?)") } @@ -389,12 +389,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, which C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(which int)) +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?)") } @@ -409,12 +409,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, id C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(id int)) +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?)") } @@ -429,12 +429,12 @@ 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, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void, id C.int) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(id int)) +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?)") } @@ -672,12 +672,12 @@ func (this *QWizardPage) CompleteChanged() { C.QWizardPage_CompleteChanged(this.h) } func (this *QWizardPage) OnCompleteChanged(slot func()) { - C.QWizardPage_connect_CompleteChanged(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot)))) + 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.void) { - gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func()) +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?)") } diff --git a/qt/gen_qwizard.h b/qt/gen_qwizard.h index 4747856..fc35742 100644 --- a/qt/gen_qwizard.h +++ b/qt/gen_qwizard.h @@ -79,15 +79,15 @@ void QWizard_SetDefaultProperty(QWizard* self, const char* className, const char void QWizard_SetVisible(QWizard* self, bool visible); QSize* QWizard_SizeHint(const QWizard* self); void QWizard_CurrentIdChanged(QWizard* self, int id); -void QWizard_connect_CurrentIdChanged(QWizard* self, void* slot); +void QWizard_connect_CurrentIdChanged(QWizard* self, intptr_t slot); void QWizard_HelpRequested(QWizard* self); -void QWizard_connect_HelpRequested(QWizard* self, void* slot); +void QWizard_connect_HelpRequested(QWizard* self, intptr_t slot); void QWizard_CustomButtonClicked(QWizard* self, int which); -void QWizard_connect_CustomButtonClicked(QWizard* self, void* slot); +void QWizard_connect_CustomButtonClicked(QWizard* self, intptr_t slot); void QWizard_PageAdded(QWizard* self, int id); -void QWizard_connect_PageAdded(QWizard* self, void* slot); +void QWizard_connect_PageAdded(QWizard* self, intptr_t slot); void QWizard_PageRemoved(QWizard* self, int id); -void QWizard_connect_PageRemoved(QWizard* self, void* slot); +void QWizard_connect_PageRemoved(QWizard* self, intptr_t slot); void QWizard_Back(QWizard* self); void QWizard_Next(QWizard* self); void QWizard_Restart(QWizard* self); @@ -122,7 +122,7 @@ bool QWizardPage_ValidatePage(QWizardPage* self); bool QWizardPage_IsComplete(const QWizardPage* self); int QWizardPage_NextId(const QWizardPage* self); void QWizardPage_CompleteChanged(QWizardPage* self); -void QWizardPage_connect_CompleteChanged(QWizardPage* self, void* slot); +void QWizardPage_connect_CompleteChanged(QWizardPage* self, intptr_t slot); struct miqt_string* QWizardPage_Tr2(const char* s, const char* c); struct miqt_string* QWizardPage_Tr3(const char* s, const char* c, int n); struct miqt_string* QWizardPage_TrUtf82(const char* s, const char* c);