Skip to content

Commit

Permalink
qt: rebuild (adds void*/unsafe.Pointer and metacast)
Browse files Browse the repository at this point in the history
  • Loading branch information
mappu committed Sep 20, 2024
1 parent 9d98b44 commit 2f99fed
Show file tree
Hide file tree
Showing 588 changed files with 8,591 additions and 171 deletions.
22 changes: 22 additions & 0 deletions qt/gen_qabstractanimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ QMetaObject* QAbstractAnimation_MetaObject(const QAbstractAnimation* self) {
return (QMetaObject*) self->metaObject();
}

void* QAbstractAnimation_Metacast(QAbstractAnimation* self, const char* param1) {
return self->qt_metacast(param1);
}

void QAbstractAnimation_connect_Metacast(QAbstractAnimation* self, void* slot) {
QAbstractAnimation::connect(self, static_cast<void (QAbstractAnimation::*)(const char*)>(&QAbstractAnimation::qt_metacast), self, [=](const char* param1) {
const char* sigval1 = (const char*) param1;
miqt_exec_callback_QAbstractAnimation_Metacast(slot, sigval1);
});
}

struct miqt_string* QAbstractAnimation_Tr(const char* s) {
QString _ret = QAbstractAnimation::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
Expand Down Expand Up @@ -193,6 +204,17 @@ QMetaObject* QAnimationDriver_MetaObject(const QAnimationDriver* self) {
return (QMetaObject*) self->metaObject();
}

void* QAnimationDriver_Metacast(QAnimationDriver* self, const char* param1) {
return self->qt_metacast(param1);
}

void QAnimationDriver_connect_Metacast(QAnimationDriver* self, void* slot) {
QAnimationDriver::connect(self, static_cast<void (QAnimationDriver::*)(const char*)>(&QAnimationDriver::qt_metacast), self, [=](const char* param1) {
const char* sigval1 = (const char*) param1;
miqt_exec_callback_QAnimationDriver_Metacast(slot, sigval1);
});
}

struct miqt_string* QAnimationDriver_Tr(const char* s) {
QString _ret = QAnimationDriver::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
Expand Down
46 changes: 46 additions & 0 deletions qt/gen_qabstractanimation.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,29 @@ func (this *QAbstractAnimation) MetaObject() *QMetaObject {
return newQMetaObject_U(unsafe.Pointer(C.QAbstractAnimation_MetaObject(this.h)))
}

func (this *QAbstractAnimation) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return C.QAbstractAnimation_Metacast(this.h, param1_Cstring)
}
func (this *QAbstractAnimation) OnMetacast(slot func(param1 string)) {
C.QAbstractAnimation_connect_Metacast(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}

//export miqt_exec_callback_QAbstractAnimation_Metacast
func miqt_exec_callback_QAbstractAnimation_Metacast(cb *C.void, param1 *C.char) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}

// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (unsafe.Pointer)(param1_ret)

gofunc(slotval1)
}

func QAbstractAnimation_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
Expand Down Expand Up @@ -329,6 +352,29 @@ func (this *QAnimationDriver) MetaObject() *QMetaObject {
return newQMetaObject_U(unsafe.Pointer(C.QAnimationDriver_MetaObject(this.h)))
}

func (this *QAnimationDriver) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return C.QAnimationDriver_Metacast(this.h, param1_Cstring)
}
func (this *QAnimationDriver) OnMetacast(slot func(param1 string)) {
C.QAnimationDriver_connect_Metacast(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}

//export miqt_exec_callback_QAnimationDriver_Metacast
func miqt_exec_callback_QAnimationDriver_Metacast(cb *C.void, param1 *C.char) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}

// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (unsafe.Pointer)(param1_ret)

gofunc(slotval1)
}

func QAnimationDriver_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
Expand Down
4 changes: 4 additions & 0 deletions qt/gen_qabstractanimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ typedef struct QObject QObject;
#endif

QMetaObject* QAbstractAnimation_MetaObject(const QAbstractAnimation* self);
void* QAbstractAnimation_Metacast(QAbstractAnimation* self, const char* param1);
void* QAbstractAnimation_connect_Metacast(QAbstractAnimation* self, void* slot);
struct miqt_string* QAbstractAnimation_Tr(const char* s);
struct miqt_string* QAbstractAnimation_TrUtf8(const char* s);
int QAbstractAnimation_State(const QAbstractAnimation* self);
Expand Down Expand Up @@ -65,6 +67,8 @@ void QAbstractAnimation_Delete(QAbstractAnimation* self);
QAnimationDriver* QAnimationDriver_new();
QAnimationDriver* QAnimationDriver_new2(QObject* parent);
QMetaObject* QAnimationDriver_MetaObject(const QAnimationDriver* self);
void* QAnimationDriver_Metacast(QAnimationDriver* self, const char* param1);
void* QAnimationDriver_connect_Metacast(QAnimationDriver* self, void* slot);
struct miqt_string* QAnimationDriver_Tr(const char* s);
struct miqt_string* QAnimationDriver_TrUtf8(const char* s);
void QAnimationDriver_Advance(QAnimationDriver* self);
Expand Down
11 changes: 11 additions & 0 deletions qt/gen_qabstractbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ QMetaObject* QAbstractButton_MetaObject(const QAbstractButton* self) {
return (QMetaObject*) self->metaObject();
}

void* QAbstractButton_Metacast(QAbstractButton* self, const char* param1) {
return self->qt_metacast(param1);
}

void QAbstractButton_connect_Metacast(QAbstractButton* self, void* slot) {
QAbstractButton::connect(self, static_cast<void (QAbstractButton::*)(const char*)>(&QAbstractButton::qt_metacast), self, [=](const char* param1) {
const char* sigval1 = (const char*) param1;
miqt_exec_callback_QAbstractButton_Metacast(slot, sigval1);
});
}

struct miqt_string* QAbstractButton_Tr(const char* s) {
QString _ret = QAbstractButton::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
Expand Down
23 changes: 23 additions & 0 deletions qt/gen_qabstractbutton.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@ func (this *QAbstractButton) MetaObject() *QMetaObject {
return newQMetaObject_U(unsafe.Pointer(C.QAbstractButton_MetaObject(this.h)))
}

func (this *QAbstractButton) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return C.QAbstractButton_Metacast(this.h, param1_Cstring)
}
func (this *QAbstractButton) OnMetacast(slot func(param1 string)) {
C.QAbstractButton_connect_Metacast(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}

//export miqt_exec_callback_QAbstractButton_Metacast
func miqt_exec_callback_QAbstractButton_Metacast(cb *C.void, param1 *C.char) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}

// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (unsafe.Pointer)(param1_ret)

gofunc(slotval1)
}

func QAbstractButton_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
Expand Down
2 changes: 2 additions & 0 deletions qt/gen_qabstractbutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ typedef struct QSize QSize;
#endif

QMetaObject* QAbstractButton_MetaObject(const QAbstractButton* self);
void* QAbstractButton_Metacast(QAbstractButton* self, const char* param1);
void* QAbstractButton_connect_Metacast(QAbstractButton* self, void* slot);
struct miqt_string* QAbstractButton_Tr(const char* s);
struct miqt_string* QAbstractButton_TrUtf8(const char* s);
void QAbstractButton_SetText(QAbstractButton* self, struct miqt_string* text);
Expand Down
16 changes: 16 additions & 0 deletions qt/gen_qabstracteventdispatcher.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <QAbstractEventDispatcher>
#define WORKAROUND_INNER_CLASS_DEFINITION_QAbstractEventDispatcher__TimerInfo
#include <QAbstractNativeEventFilter>
#include <QByteArray>
#include <QList>
#include <QMetaObject>
#include <QObject>
Expand All @@ -17,6 +18,17 @@ QMetaObject* QAbstractEventDispatcher_MetaObject(const QAbstractEventDispatcher*
return (QMetaObject*) self->metaObject();
}

void* QAbstractEventDispatcher_Metacast(QAbstractEventDispatcher* self, const char* param1) {
return self->qt_metacast(param1);
}

void QAbstractEventDispatcher_connect_Metacast(QAbstractEventDispatcher* self, void* slot) {
QAbstractEventDispatcher::connect(self, static_cast<void (QAbstractEventDispatcher::*)(const char*)>(&QAbstractEventDispatcher::qt_metacast), self, [=](const char* param1) {
const char* sigval1 = (const char*) param1;
miqt_exec_callback_QAbstractEventDispatcher_Metacast(slot, sigval1);
});
}

struct miqt_string* QAbstractEventDispatcher_Tr(const char* s) {
QString _ret = QAbstractEventDispatcher::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
Expand Down Expand Up @@ -112,6 +124,10 @@ void QAbstractEventDispatcher_RemoveNativeEventFilter(QAbstractEventDispatcher*
self->removeNativeEventFilter(filterObj);
}

bool QAbstractEventDispatcher_FilterNativeEvent(QAbstractEventDispatcher* self, QByteArray* eventType, void* message, long* result) {
return self->filterNativeEvent(*eventType, message, static_cast<long*>(result));
}

void QAbstractEventDispatcher_AboutToBlock(QAbstractEventDispatcher* self) {
self->aboutToBlock();
}
Expand Down
27 changes: 27 additions & 0 deletions qt/gen_qabstracteventdispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@ func (this *QAbstractEventDispatcher) MetaObject() *QMetaObject {
return newQMetaObject_U(unsafe.Pointer(C.QAbstractEventDispatcher_MetaObject(this.h)))
}

func (this *QAbstractEventDispatcher) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return C.QAbstractEventDispatcher_Metacast(this.h, param1_Cstring)
}
func (this *QAbstractEventDispatcher) OnMetacast(slot func(param1 string)) {
C.QAbstractEventDispatcher_connect_Metacast(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}

//export miqt_exec_callback_QAbstractEventDispatcher_Metacast
func miqt_exec_callback_QAbstractEventDispatcher_Metacast(cb *C.void, param1 *C.char) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}

// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (unsafe.Pointer)(param1_ret)

gofunc(slotval1)
}

func QAbstractEventDispatcher_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
Expand Down Expand Up @@ -141,6 +164,10 @@ func (this *QAbstractEventDispatcher) RemoveNativeEventFilter(filterObj *QAbstra
C.QAbstractEventDispatcher_RemoveNativeEventFilter(this.h, filterObj.cPointer())
}

func (this *QAbstractEventDispatcher) FilterNativeEvent(eventType *QByteArray, message unsafe.Pointer, result *int64) bool {
return (bool)(C.QAbstractEventDispatcher_FilterNativeEvent(this.h, eventType.cPointer(), message, (*C.long)(unsafe.Pointer(result))))
}

func (this *QAbstractEventDispatcher) AboutToBlock() {
C.QAbstractEventDispatcher_AboutToBlock(this.h)
}
Expand Down
5 changes: 5 additions & 0 deletions qt/gen_qabstracteventdispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ typedef QAbstractEventDispatcher::TimerInfo QAbstractEventDispatcher__TimerInfo;
class QAbstractEventDispatcher__TimerInfo;
#endif
class QAbstractNativeEventFilter;
class QByteArray;
class QMetaObject;
class QObject;
class QSocketNotifier;
Expand All @@ -29,13 +30,16 @@ class QThread;
typedef struct QAbstractEventDispatcher QAbstractEventDispatcher;
typedef struct QAbstractEventDispatcher__TimerInfo QAbstractEventDispatcher__TimerInfo;
typedef struct QAbstractNativeEventFilter QAbstractNativeEventFilter;
typedef struct QByteArray QByteArray;
typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject;
typedef struct QSocketNotifier QSocketNotifier;
typedef struct QThread QThread;
#endif

QMetaObject* QAbstractEventDispatcher_MetaObject(const QAbstractEventDispatcher* self);
void* QAbstractEventDispatcher_Metacast(QAbstractEventDispatcher* self, const char* param1);
void* QAbstractEventDispatcher_connect_Metacast(QAbstractEventDispatcher* self, void* slot);
struct miqt_string* QAbstractEventDispatcher_Tr(const char* s);
struct miqt_string* QAbstractEventDispatcher_TrUtf8(const char* s);
QAbstractEventDispatcher* QAbstractEventDispatcher_Instance();
Expand All @@ -56,6 +60,7 @@ void QAbstractEventDispatcher_StartingUp(QAbstractEventDispatcher* self);
void QAbstractEventDispatcher_ClosingDown(QAbstractEventDispatcher* self);
void QAbstractEventDispatcher_InstallNativeEventFilter(QAbstractEventDispatcher* self, QAbstractNativeEventFilter* filterObj);
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_Awake(QAbstractEventDispatcher* self);
Expand Down
11 changes: 11 additions & 0 deletions qt/gen_qabstractitemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ QMetaObject* QAbstractItemDelegate_MetaObject(const QAbstractItemDelegate* self)
return (QMetaObject*) self->metaObject();
}

void* QAbstractItemDelegate_Metacast(QAbstractItemDelegate* self, const char* param1) {
return self->qt_metacast(param1);
}

void QAbstractItemDelegate_connect_Metacast(QAbstractItemDelegate* self, void* slot) {
QAbstractItemDelegate::connect(self, static_cast<void (QAbstractItemDelegate::*)(const char*)>(&QAbstractItemDelegate::qt_metacast), self, [=](const char* param1) {
const char* sigval1 = (const char*) param1;
miqt_exec_callback_QAbstractItemDelegate_Metacast(slot, sigval1);
});
}

struct miqt_string* QAbstractItemDelegate_Tr(const char* s) {
QString _ret = QAbstractItemDelegate::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
Expand Down
23 changes: 23 additions & 0 deletions qt/gen_qabstractitemdelegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,29 @@ func (this *QAbstractItemDelegate) MetaObject() *QMetaObject {
return newQMetaObject_U(unsafe.Pointer(C.QAbstractItemDelegate_MetaObject(this.h)))
}

func (this *QAbstractItemDelegate) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return C.QAbstractItemDelegate_Metacast(this.h, param1_Cstring)
}
func (this *QAbstractItemDelegate) OnMetacast(slot func(param1 string)) {
C.QAbstractItemDelegate_connect_Metacast(this.h, unsafe.Pointer(uintptr(cgo.NewHandle(slot))))
}

//export miqt_exec_callback_QAbstractItemDelegate_Metacast
func miqt_exec_callback_QAbstractItemDelegate_Metacast(cb *C.void, param1 *C.char) {
gofunc, ok := (cgo.Handle(uintptr(unsafe.Pointer(cb))).Value()).(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}

// Convert all CABI parameters to Go parameters
param1_ret := param1
slotval1 := (unsafe.Pointer)(param1_ret)

gofunc(slotval1)
}

func QAbstractItemDelegate_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
Expand Down
2 changes: 2 additions & 0 deletions qt/gen_qabstractitemdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ typedef struct QWidget QWidget;
#endif

QMetaObject* QAbstractItemDelegate_MetaObject(const QAbstractItemDelegate* self);
void* QAbstractItemDelegate_Metacast(QAbstractItemDelegate* self, const char* param1);
void* QAbstractItemDelegate_connect_Metacast(QAbstractItemDelegate* self, void* slot);
struct miqt_string* QAbstractItemDelegate_Tr(const char* s);
struct miqt_string* QAbstractItemDelegate_TrUtf8(const char* s);
void QAbstractItemDelegate_Paint(const QAbstractItemDelegate* self, QPainter* painter, QStyleOptionViewItem* option, QModelIndex* index);
Expand Down
Loading

0 comments on commit 2f99fed

Please sign in to comment.