2024-08-25 04:08:24 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <QChildEvent>
|
|
|
|
#include <QDeferredDeleteEvent>
|
|
|
|
#include <QDynamicPropertyChangeEvent>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QTimerEvent>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qcoreevent.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qcoreevent.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QEvent* QEvent_new(uintptr_t typeVal) {
|
|
|
|
return new QEvent(static_cast<QEvent::Type>(typeVal));
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* QEvent_new2(QEvent* other) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QEvent(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QEvent_OperatorAssign(QEvent* self, QEvent* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QEvent_Type(const QEvent* self) {
|
|
|
|
QEvent::Type ret = self->type();
|
2024-08-29 07:01:51 +00:00
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QEvent_Spontaneous(const QEvent* self) {
|
|
|
|
return self->spontaneous();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QEvent_SetAccepted(QEvent* self, bool accepted) {
|
|
|
|
self->setAccepted(accepted);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QEvent_IsAccepted(const QEvent* self) {
|
|
|
|
return self->isAccepted();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QEvent_Accept(QEvent* self) {
|
|
|
|
self->accept();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QEvent_Ignore(QEvent* self) {
|
|
|
|
self->ignore();
|
|
|
|
}
|
|
|
|
|
|
|
|
int QEvent_RegisterEventType() {
|
|
|
|
return QEvent::registerEventType();
|
|
|
|
}
|
|
|
|
|
|
|
|
int QEvent_RegisterEventType1(int hint) {
|
|
|
|
return QEvent::registerEventType(static_cast<int>(hint));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QEvent_Delete(QEvent* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimerEvent* QTimerEvent_new(int timerId) {
|
|
|
|
return new QTimerEvent(static_cast<int>(timerId));
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimerEvent* QTimerEvent_new2(QTimerEvent* param1) {
|
|
|
|
return new QTimerEvent(*param1);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QTimerEvent_TimerId(const QTimerEvent* self) {
|
|
|
|
return self->timerId();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTimerEvent_Delete(QTimerEvent* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QChildEvent* QChildEvent_new(uintptr_t typeVal, QObject* child) {
|
|
|
|
return new QChildEvent(static_cast<QEvent::Type>(typeVal), child);
|
|
|
|
}
|
|
|
|
|
|
|
|
QChildEvent* QChildEvent_new2(QChildEvent* param1) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QChildEvent(*param1);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QObject* QChildEvent_Child(const QChildEvent* self) {
|
|
|
|
return self->child();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChildEvent_Added(const QChildEvent* self) {
|
|
|
|
return self->added();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChildEvent_Polished(const QChildEvent* self) {
|
|
|
|
return self->polished();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChildEvent_Removed(const QChildEvent* self) {
|
|
|
|
return self->removed();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QChildEvent_Delete(QChildEvent* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new(QByteArray* name) {
|
|
|
|
return new QDynamicPropertyChangeEvent(*name);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new2(QDynamicPropertyChangeEvent* param1) {
|
|
|
|
return new QDynamicPropertyChangeEvent(*param1);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QDynamicPropertyChangeEvent_PropertyName(const QDynamicPropertyChangeEvent* self) {
|
|
|
|
QByteArray ret = self->propertyName();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QByteArray*>(new QByteArray(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDeferredDeleteEvent* QDeferredDeleteEvent_new() {
|
|
|
|
return new QDeferredDeleteEvent();
|
|
|
|
}
|
|
|
|
|
|
|
|
QDeferredDeleteEvent* QDeferredDeleteEvent_new2(QDeferredDeleteEvent* param1) {
|
|
|
|
return new QDeferredDeleteEvent(*param1);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDeferredDeleteEvent_LoopLevel(const QDeferredDeleteEvent* self) {
|
|
|
|
return self->loopLevel();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDeferredDeleteEvent_Delete(QDeferredDeleteEvent* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|