2024-08-25 04:08:24 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <QChildEvent>
|
|
|
|
#include <QDynamicPropertyChangeEvent>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QTimerEvent>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qcoreevent.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qcoreevent.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QEvent* QEvent_new(int typeVal) {
|
|
|
|
return new QEvent(static_cast<QEvent::Type>(typeVal));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QEvent* QEvent_new2(QEvent* other) {
|
|
|
|
return new QEvent(*other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QEvent_OperatorAssign(QEvent* self, QEvent* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QEvent_Type(const QEvent* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QEvent::Type _ret = self->type();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
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));
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QEvent_Delete(QEvent* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QEvent*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QTimerEvent* QTimerEvent_new(int timerId) {
|
|
|
|
return new QTimerEvent(static_cast<int>(timerId));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QTimerEvent* QTimerEvent_new2(QTimerEvent* param1) {
|
|
|
|
return new QTimerEvent(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTimerEvent_virtbase(QTimerEvent* src, QEvent** outptr_QEvent) {
|
|
|
|
*outptr_QEvent = static_cast<QEvent*>(src);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QTimerEvent_Delete(QTimerEvent* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QTimerEvent*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QChildEvent* QChildEvent_new(int typeVal, QObject* child) {
|
|
|
|
return new QChildEvent(static_cast<QEvent::Type>(typeVal), child);
|
|
|
|
}
|
|
|
|
|
|
|
|
QChildEvent* QChildEvent_new2(QChildEvent* param1) {
|
|
|
|
return new QChildEvent(*param1);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
void QChildEvent_virtbase(QChildEvent* src, QEvent** outptr_QEvent) {
|
|
|
|
*outptr_QEvent = static_cast<QEvent*>(src);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChildEvent_Delete(QChildEvent* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QChildEvent*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new(struct miqt_string name) {
|
2024-10-18 23:53:33 +00:00
|
|
|
QByteArray name_QByteArray(name.data, name.len);
|
2024-12-07 04:15:57 +00:00
|
|
|
return new QDynamicPropertyChangeEvent(name_QByteArray);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new2(QDynamicPropertyChangeEvent* param1) {
|
|
|
|
return new QDynamicPropertyChangeEvent(*param1);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
void QDynamicPropertyChangeEvent_virtbase(QDynamicPropertyChangeEvent* src, QEvent** outptr_QEvent) {
|
|
|
|
*outptr_QEvent = static_cast<QEvent*>(src);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDynamicPropertyChangeEvent_PropertyName(const QDynamicPropertyChangeEvent* self) {
|
|
|
|
QByteArray _qb = self->propertyName();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _qb.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _qb.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QDynamicPropertyChangeEvent*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|