#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define WORKAROUND_INNER_CLASS_DEFINITION_QInputMethodEvent__Attribute #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qevent.h" #include "_cgo_export.h" QInputEvent* QInputEvent_new(int typeVal, QInputDevice* m_dev) { return new QInputEvent(static_cast(typeVal), m_dev); } QInputEvent* QInputEvent_new2(int typeVal, QInputDevice* m_dev, int modifiers) { return new QInputEvent(static_cast(typeVal), m_dev, static_cast(modifiers)); } QInputEvent* QInputEvent_Clone(const QInputEvent* self) { return self->clone(); } QInputDevice* QInputEvent_Device(const QInputEvent* self) { return (QInputDevice*) self->device(); } int QInputEvent_DeviceType(const QInputEvent* self) { QInputDevice::DeviceType _ret = self->deviceType(); return static_cast(_ret); } int QInputEvent_Modifiers(const QInputEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } void QInputEvent_SetModifiers(QInputEvent* self, int modifiers) { self->setModifiers(static_cast(modifiers)); } unsigned long long QInputEvent_Timestamp(const QInputEvent* self) { quint64 _ret = self->timestamp(); return static_cast(_ret); } void QInputEvent_SetTimestamp(QInputEvent* self, unsigned long long timestamp) { self->setTimestamp(static_cast(timestamp)); } void QInputEvent_Delete(QInputEvent* self) { delete self; } QPointerEvent* QPointerEvent_new(int typeVal, QPointingDevice* dev) { return new QPointerEvent(static_cast(typeVal), dev); } QPointerEvent* QPointerEvent_new2(int typeVal, QPointingDevice* dev, int modifiers) { return new QPointerEvent(static_cast(typeVal), dev, static_cast(modifiers)); } QPointerEvent* QPointerEvent_new3(int typeVal, QPointingDevice* dev, int modifiers, struct miqt_array* /* of QEventPoint* */ points) { QList points_QList; points_QList.reserve(points->len); QEventPoint** points_arr = static_cast(points->data); for(size_t i = 0; i < points->len; ++i) { points_QList.push_back(*(points_arr[i])); } return new QPointerEvent(static_cast(typeVal), dev, static_cast(modifiers), points_QList); } QPointerEvent* QPointerEvent_Clone(const QPointerEvent* self) { return self->clone(); } QPointingDevice* QPointerEvent_PointingDevice(const QPointerEvent* self) { return (QPointingDevice*) self->pointingDevice(); } int QPointerEvent_PointerType(const QPointerEvent* self) { QPointingDevice::PointerType _ret = self->pointerType(); return static_cast(_ret); } void QPointerEvent_SetTimestamp(QPointerEvent* self, unsigned long long timestamp) { self->setTimestamp(static_cast(timestamp)); } ptrdiff_t QPointerEvent_PointCount(const QPointerEvent* self) { qsizetype _ret = self->pointCount(); return static_cast(_ret); } QEventPoint* QPointerEvent_Point(QPointerEvent* self, ptrdiff_t i) { QEventPoint& _ret = self->point((qsizetype)(i)); // Cast returned reference into pointer return &_ret; } struct miqt_array* QPointerEvent_Points(const QPointerEvent* self) { const QList& _ret = self->points(); // Convert QList<> from C++ memory to manually-managed C memory QEventPoint** _arr = static_cast(malloc(sizeof(QEventPoint*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QEventPoint(_ret[i]); } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } QEventPoint* QPointerEvent_PointById(QPointerEvent* self, int id) { return self->pointById(static_cast(id)); } bool QPointerEvent_AllPointsGrabbed(const QPointerEvent* self) { return self->allPointsGrabbed(); } bool QPointerEvent_IsBeginEvent(const QPointerEvent* self) { return self->isBeginEvent(); } bool QPointerEvent_IsUpdateEvent(const QPointerEvent* self) { return self->isUpdateEvent(); } bool QPointerEvent_IsEndEvent(const QPointerEvent* self) { return self->isEndEvent(); } bool QPointerEvent_AllPointsAccepted(const QPointerEvent* self) { return self->allPointsAccepted(); } void QPointerEvent_SetAccepted(QPointerEvent* self, bool accepted) { self->setAccepted(accepted); } QObject* QPointerEvent_ExclusiveGrabber(const QPointerEvent* self, QEventPoint* point) { return self->exclusiveGrabber(*point); } void QPointerEvent_SetExclusiveGrabber(QPointerEvent* self, QEventPoint* point, QObject* exclusiveGrabber) { self->setExclusiveGrabber(*point, exclusiveGrabber); } void QPointerEvent_ClearPassiveGrabbers(QPointerEvent* self, QEventPoint* point) { self->clearPassiveGrabbers(*point); } bool QPointerEvent_AddPassiveGrabber(QPointerEvent* self, QEventPoint* point, QObject* grabber) { return self->addPassiveGrabber(*point, grabber); } bool QPointerEvent_RemovePassiveGrabber(QPointerEvent* self, QEventPoint* point, QObject* grabber) { return self->removePassiveGrabber(*point, grabber); } void QPointerEvent_Delete(QPointerEvent* self) { delete self; } QSinglePointEvent* QSinglePointEvent_Clone(const QSinglePointEvent* self) { return self->clone(); } int QSinglePointEvent_Button(const QSinglePointEvent* self) { Qt::MouseButton _ret = self->button(); return static_cast(_ret); } int QSinglePointEvent_Buttons(const QSinglePointEvent* self) { Qt::MouseButtons _ret = self->buttons(); return static_cast(_ret); } QPointF* QSinglePointEvent_Position(const QSinglePointEvent* self) { return new QPointF(self->position()); } QPointF* QSinglePointEvent_ScenePosition(const QSinglePointEvent* self) { return new QPointF(self->scenePosition()); } QPointF* QSinglePointEvent_GlobalPosition(const QSinglePointEvent* self) { return new QPointF(self->globalPosition()); } bool QSinglePointEvent_IsBeginEvent(const QSinglePointEvent* self) { return self->isBeginEvent(); } bool QSinglePointEvent_IsUpdateEvent(const QSinglePointEvent* self) { return self->isUpdateEvent(); } bool QSinglePointEvent_IsEndEvent(const QSinglePointEvent* self) { return self->isEndEvent(); } QObject* QSinglePointEvent_ExclusivePointGrabber(const QSinglePointEvent* self) { return self->exclusivePointGrabber(); } void QSinglePointEvent_SetExclusivePointGrabber(QSinglePointEvent* self, QObject* exclusiveGrabber) { self->setExclusivePointGrabber(exclusiveGrabber); } void QSinglePointEvent_Delete(QSinglePointEvent* self) { delete self; } QEnterEvent* QEnterEvent_new(QPointF* localPos, QPointF* scenePos, QPointF* globalPos) { return new QEnterEvent(*localPos, *scenePos, *globalPos); } QEnterEvent* QEnterEvent_new2(QPointF* localPos, QPointF* scenePos, QPointF* globalPos, QPointingDevice* device) { return new QEnterEvent(*localPos, *scenePos, *globalPos, device); } QEnterEvent* QEnterEvent_Clone(const QEnterEvent* self) { return self->clone(); } QPoint* QEnterEvent_Pos(const QEnterEvent* self) { return new QPoint(self->pos()); } QPoint* QEnterEvent_GlobalPos(const QEnterEvent* self) { return new QPoint(self->globalPos()); } int QEnterEvent_X(const QEnterEvent* self) { return self->x(); } int QEnterEvent_Y(const QEnterEvent* self) { return self->y(); } int QEnterEvent_GlobalX(const QEnterEvent* self) { return self->globalX(); } int QEnterEvent_GlobalY(const QEnterEvent* self) { return self->globalY(); } QPointF* QEnterEvent_LocalPos(const QEnterEvent* self) { return new QPointF(self->localPos()); } QPointF* QEnterEvent_WindowPos(const QEnterEvent* self) { return new QPointF(self->windowPos()); } QPointF* QEnterEvent_ScreenPos(const QEnterEvent* self) { return new QPointF(self->screenPos()); } void QEnterEvent_Delete(QEnterEvent* self) { delete self; } QMouseEvent* QMouseEvent_new(int typeVal, QPointF* localPos, int button, int buttons, int modifiers) { return new QMouseEvent(static_cast(typeVal), *localPos, static_cast(button), static_cast(buttons), static_cast(modifiers)); } QMouseEvent* QMouseEvent_new2(int typeVal, QPointF* localPos, QPointF* globalPos, int button, int buttons, int modifiers) { return new QMouseEvent(static_cast(typeVal), *localPos, *globalPos, static_cast(button), static_cast(buttons), static_cast(modifiers)); } QMouseEvent* QMouseEvent_new3(int typeVal, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, int button, int buttons, int modifiers) { return new QMouseEvent(static_cast(typeVal), *localPos, *scenePos, *globalPos, static_cast(button), static_cast(buttons), static_cast(modifiers)); } QMouseEvent* QMouseEvent_new4(int typeVal, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, int button, int buttons, int modifiers, int source) { return new QMouseEvent(static_cast(typeVal), *localPos, *scenePos, *globalPos, static_cast(button), static_cast(buttons), static_cast(modifiers), static_cast(source)); } QMouseEvent* QMouseEvent_new5(int typeVal, QPointF* localPos, int button, int buttons, int modifiers, QPointingDevice* device) { return new QMouseEvent(static_cast(typeVal), *localPos, static_cast(button), static_cast(buttons), static_cast(modifiers), device); } QMouseEvent* QMouseEvent_new6(int typeVal, QPointF* localPos, QPointF* globalPos, int button, int buttons, int modifiers, QPointingDevice* device) { return new QMouseEvent(static_cast(typeVal), *localPos, *globalPos, static_cast(button), static_cast(buttons), static_cast(modifiers), device); } QMouseEvent* QMouseEvent_new7(int typeVal, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, int button, int buttons, int modifiers, QPointingDevice* device) { return new QMouseEvent(static_cast(typeVal), *localPos, *scenePos, *globalPos, static_cast(button), static_cast(buttons), static_cast(modifiers), device); } QMouseEvent* QMouseEvent_new8(int typeVal, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, int button, int buttons, int modifiers, int source, QPointingDevice* device) { return new QMouseEvent(static_cast(typeVal), *localPos, *scenePos, *globalPos, static_cast(button), static_cast(buttons), static_cast(modifiers), static_cast(source), device); } QMouseEvent* QMouseEvent_Clone(const QMouseEvent* self) { return self->clone(); } QPoint* QMouseEvent_Pos(const QMouseEvent* self) { return new QPoint(self->pos()); } QPoint* QMouseEvent_GlobalPos(const QMouseEvent* self) { return new QPoint(self->globalPos()); } int QMouseEvent_X(const QMouseEvent* self) { return self->x(); } int QMouseEvent_Y(const QMouseEvent* self) { return self->y(); } int QMouseEvent_GlobalX(const QMouseEvent* self) { return self->globalX(); } int QMouseEvent_GlobalY(const QMouseEvent* self) { return self->globalY(); } QPointF* QMouseEvent_LocalPos(const QMouseEvent* self) { return new QPointF(self->localPos()); } QPointF* QMouseEvent_WindowPos(const QMouseEvent* self) { return new QPointF(self->windowPos()); } QPointF* QMouseEvent_ScreenPos(const QMouseEvent* self) { return new QPointF(self->screenPos()); } int QMouseEvent_Source(const QMouseEvent* self) { Qt::MouseEventSource _ret = self->source(); return static_cast(_ret); } int QMouseEvent_Flags(const QMouseEvent* self) { Qt::MouseEventFlags _ret = self->flags(); return static_cast(_ret); } void QMouseEvent_Delete(QMouseEvent* self) { delete self; } QHoverEvent* QHoverEvent_new(int typeVal, QPointF* scenePos, QPointF* globalPos, QPointF* oldPos) { return new QHoverEvent(static_cast(typeVal), *scenePos, *globalPos, *oldPos); } QHoverEvent* QHoverEvent_new2(int typeVal, QPointF* pos, QPointF* oldPos) { return new QHoverEvent(static_cast(typeVal), *pos, *oldPos); } QHoverEvent* QHoverEvent_new3(int typeVal, QPointF* scenePos, QPointF* globalPos, QPointF* oldPos, int modifiers) { return new QHoverEvent(static_cast(typeVal), *scenePos, *globalPos, *oldPos, static_cast(modifiers)); } QHoverEvent* QHoverEvent_new4(int typeVal, QPointF* scenePos, QPointF* globalPos, QPointF* oldPos, int modifiers, QPointingDevice* device) { return new QHoverEvent(static_cast(typeVal), *scenePos, *globalPos, *oldPos, static_cast(modifiers), device); } QHoverEvent* QHoverEvent_new5(int typeVal, QPointF* pos, QPointF* oldPos, int modifiers) { return new QHoverEvent(static_cast(typeVal), *pos, *oldPos, static_cast(modifiers)); } QHoverEvent* QHoverEvent_new6(int typeVal, QPointF* pos, QPointF* oldPos, int modifiers, QPointingDevice* device) { return new QHoverEvent(static_cast(typeVal), *pos, *oldPos, static_cast(modifiers), device); } QHoverEvent* QHoverEvent_Clone(const QHoverEvent* self) { return self->clone(); } QPoint* QHoverEvent_Pos(const QHoverEvent* self) { return new QPoint(self->pos()); } QPointF* QHoverEvent_PosF(const QHoverEvent* self) { return new QPointF(self->posF()); } bool QHoverEvent_IsUpdateEvent(const QHoverEvent* self) { return self->isUpdateEvent(); } QPoint* QHoverEvent_OldPos(const QHoverEvent* self) { return new QPoint(self->oldPos()); } QPointF* QHoverEvent_OldPosF(const QHoverEvent* self) { return new QPointF(self->oldPosF()); } void QHoverEvent_Delete(QHoverEvent* self) { delete self; } QWheelEvent* QWheelEvent_new(QPointF* pos, QPointF* globalPos, QPoint* pixelDelta, QPoint* angleDelta, int buttons, int modifiers, int phase, bool inverted) { return new QWheelEvent(*pos, *globalPos, *pixelDelta, *angleDelta, static_cast(buttons), static_cast(modifiers), static_cast(phase), inverted); } QWheelEvent* QWheelEvent_new2(QPointF* pos, QPointF* globalPos, QPoint* pixelDelta, QPoint* angleDelta, int buttons, int modifiers, int phase, bool inverted, int source) { return new QWheelEvent(*pos, *globalPos, *pixelDelta, *angleDelta, static_cast(buttons), static_cast(modifiers), static_cast(phase), inverted, static_cast(source)); } QWheelEvent* QWheelEvent_new3(QPointF* pos, QPointF* globalPos, QPoint* pixelDelta, QPoint* angleDelta, int buttons, int modifiers, int phase, bool inverted, int source, QPointingDevice* device) { return new QWheelEvent(*pos, *globalPos, *pixelDelta, *angleDelta, static_cast(buttons), static_cast(modifiers), static_cast(phase), inverted, static_cast(source), device); } QWheelEvent* QWheelEvent_Clone(const QWheelEvent* self) { return self->clone(); } QPoint* QWheelEvent_PixelDelta(const QWheelEvent* self) { return new QPoint(self->pixelDelta()); } QPoint* QWheelEvent_AngleDelta(const QWheelEvent* self) { return new QPoint(self->angleDelta()); } int QWheelEvent_Phase(const QWheelEvent* self) { Qt::ScrollPhase _ret = self->phase(); return static_cast(_ret); } bool QWheelEvent_Inverted(const QWheelEvent* self) { return self->inverted(); } bool QWheelEvent_IsInverted(const QWheelEvent* self) { return self->isInverted(); } bool QWheelEvent_HasPixelDelta(const QWheelEvent* self) { return self->hasPixelDelta(); } bool QWheelEvent_IsBeginEvent(const QWheelEvent* self) { return self->isBeginEvent(); } bool QWheelEvent_IsUpdateEvent(const QWheelEvent* self) { return self->isUpdateEvent(); } bool QWheelEvent_IsEndEvent(const QWheelEvent* self) { return self->isEndEvent(); } int QWheelEvent_Source(const QWheelEvent* self) { Qt::MouseEventSource _ret = self->source(); return static_cast(_ret); } void QWheelEvent_Delete(QWheelEvent* self) { delete self; } QTabletEvent* QTabletEvent_new(int t, QPointingDevice* device, QPointF* pos, QPointF* globalPos, double pressure, float xTilt, float yTilt, float tangentialPressure, double rotation, float z, int keyState, int button, int buttons) { return new QTabletEvent(static_cast(t), device, *pos, *globalPos, static_cast(pressure), static_cast(xTilt), static_cast(yTilt), static_cast(tangentialPressure), static_cast(rotation), static_cast(z), static_cast(keyState), static_cast(button), static_cast(buttons)); } QTabletEvent* QTabletEvent_Clone(const QTabletEvent* self) { return self->clone(); } QPoint* QTabletEvent_Pos(const QTabletEvent* self) { return new QPoint(self->pos()); } QPoint* QTabletEvent_GlobalPos(const QTabletEvent* self) { return new QPoint(self->globalPos()); } QPointF* QTabletEvent_PosF(const QTabletEvent* self) { return new QPointF(self->posF()); } QPointF* QTabletEvent_GlobalPosF(const QTabletEvent* self) { return new QPointF(self->globalPosF()); } int QTabletEvent_X(const QTabletEvent* self) { return self->x(); } int QTabletEvent_Y(const QTabletEvent* self) { return self->y(); } int QTabletEvent_GlobalX(const QTabletEvent* self) { return self->globalX(); } int QTabletEvent_GlobalY(const QTabletEvent* self) { return self->globalY(); } double QTabletEvent_HiResGlobalX(const QTabletEvent* self) { qreal _ret = self->hiResGlobalX(); return static_cast(_ret); } double QTabletEvent_HiResGlobalY(const QTabletEvent* self) { qreal _ret = self->hiResGlobalY(); return static_cast(_ret); } long long QTabletEvent_UniqueId(const QTabletEvent* self) { qint64 _ret = self->uniqueId(); return static_cast(_ret); } double QTabletEvent_Pressure(const QTabletEvent* self) { qreal _ret = self->pressure(); return static_cast(_ret); } double QTabletEvent_Rotation(const QTabletEvent* self) { qreal _ret = self->rotation(); return static_cast(_ret); } double QTabletEvent_Z(const QTabletEvent* self) { qreal _ret = self->z(); return static_cast(_ret); } double QTabletEvent_TangentialPressure(const QTabletEvent* self) { qreal _ret = self->tangentialPressure(); return static_cast(_ret); } double QTabletEvent_XTilt(const QTabletEvent* self) { qreal _ret = self->xTilt(); return static_cast(_ret); } double QTabletEvent_YTilt(const QTabletEvent* self) { qreal _ret = self->yTilt(); return static_cast(_ret); } void QTabletEvent_Delete(QTabletEvent* self) { delete self; } QNativeGestureEvent* QNativeGestureEvent_new(int typeVal, QPointingDevice* dev, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, double value, unsigned long long sequenceId, unsigned long long intArgument) { return new QNativeGestureEvent(static_cast(typeVal), dev, *localPos, *scenePos, *globalPos, static_cast(value), static_cast(sequenceId), static_cast(intArgument)); } QNativeGestureEvent* QNativeGestureEvent_new2(int typeVal, QPointingDevice* dev, int fingerCount, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, double value, QPointF* delta) { return new QNativeGestureEvent(static_cast(typeVal), dev, static_cast(fingerCount), *localPos, *scenePos, *globalPos, static_cast(value), *delta); } QNativeGestureEvent* QNativeGestureEvent_new3(int typeVal, QPointingDevice* dev, int fingerCount, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, double value, QPointF* delta, unsigned long long sequenceId) { return new QNativeGestureEvent(static_cast(typeVal), dev, static_cast(fingerCount), *localPos, *scenePos, *globalPos, static_cast(value), *delta, static_cast(sequenceId)); } QNativeGestureEvent* QNativeGestureEvent_Clone(const QNativeGestureEvent* self) { return self->clone(); } int QNativeGestureEvent_GestureType(const QNativeGestureEvent* self) { Qt::NativeGestureType _ret = self->gestureType(); return static_cast(_ret); } int QNativeGestureEvent_FingerCount(const QNativeGestureEvent* self) { return self->fingerCount(); } double QNativeGestureEvent_Value(const QNativeGestureEvent* self) { qreal _ret = self->value(); return static_cast(_ret); } QPointF* QNativeGestureEvent_Delta(const QNativeGestureEvent* self) { return new QPointF(self->delta()); } QPoint* QNativeGestureEvent_Pos(const QNativeGestureEvent* self) { return new QPoint(self->pos()); } QPoint* QNativeGestureEvent_GlobalPos(const QNativeGestureEvent* self) { return new QPoint(self->globalPos()); } QPointF* QNativeGestureEvent_LocalPos(const QNativeGestureEvent* self) { return new QPointF(self->localPos()); } QPointF* QNativeGestureEvent_WindowPos(const QNativeGestureEvent* self) { return new QPointF(self->windowPos()); } QPointF* QNativeGestureEvent_ScreenPos(const QNativeGestureEvent* self) { return new QPointF(self->screenPos()); } void QNativeGestureEvent_Delete(QNativeGestureEvent* self) { delete self; } QKeyEvent* QKeyEvent_new(int typeVal, int key, int modifiers) { return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers)); } QKeyEvent* QKeyEvent_new2(int typeVal, int key, int modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers) { return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), static_cast(nativeScanCode), static_cast(nativeVirtualKey), static_cast(nativeModifiers)); } QKeyEvent* QKeyEvent_new3(int typeVal, int key, int modifiers, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), text_QString); } QKeyEvent* QKeyEvent_new4(int typeVal, int key, int modifiers, struct miqt_string text, bool autorep) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), text_QString, autorep); } QKeyEvent* QKeyEvent_new5(int typeVal, int key, int modifiers, struct miqt_string text, bool autorep, uint16_t count) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), text_QString, autorep, static_cast(count)); } QKeyEvent* QKeyEvent_new6(int typeVal, int key, int modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), static_cast(nativeScanCode), static_cast(nativeVirtualKey), static_cast(nativeModifiers), text_QString); } QKeyEvent* QKeyEvent_new7(int typeVal, int key, int modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, struct miqt_string text, bool autorep) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), static_cast(nativeScanCode), static_cast(nativeVirtualKey), static_cast(nativeModifiers), text_QString, autorep); } QKeyEvent* QKeyEvent_new8(int typeVal, int key, int modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, struct miqt_string text, bool autorep, uint16_t count) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), static_cast(nativeScanCode), static_cast(nativeVirtualKey), static_cast(nativeModifiers), text_QString, autorep, static_cast(count)); } QKeyEvent* QKeyEvent_new9(int typeVal, int key, int modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, struct miqt_string text, bool autorep, uint16_t count, QInputDevice* device) { QString text_QString = QString::fromUtf8(text.data, text.len); return new QKeyEvent(static_cast(typeVal), static_cast(key), static_cast(modifiers), static_cast(nativeScanCode), static_cast(nativeVirtualKey), static_cast(nativeModifiers), text_QString, autorep, static_cast(count), device); } QKeyEvent* QKeyEvent_Clone(const QKeyEvent* self) { return self->clone(); } int QKeyEvent_Key(const QKeyEvent* self) { return self->key(); } bool QKeyEvent_Matches(const QKeyEvent* self, int key) { return self->matches(static_cast(key)); } int QKeyEvent_Modifiers(const QKeyEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } QKeyCombination* QKeyEvent_KeyCombination(const QKeyEvent* self) { return new QKeyCombination(self->keyCombination()); } struct miqt_string QKeyEvent_Text(const QKeyEvent* self) { QString _ret = self->text(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } bool QKeyEvent_IsAutoRepeat(const QKeyEvent* self) { return self->isAutoRepeat(); } int QKeyEvent_Count(const QKeyEvent* self) { return self->count(); } unsigned int QKeyEvent_NativeScanCode(const QKeyEvent* self) { quint32 _ret = self->nativeScanCode(); return static_cast(_ret); } unsigned int QKeyEvent_NativeVirtualKey(const QKeyEvent* self) { quint32 _ret = self->nativeVirtualKey(); return static_cast(_ret); } unsigned int QKeyEvent_NativeModifiers(const QKeyEvent* self) { quint32 _ret = self->nativeModifiers(); return static_cast(_ret); } void QKeyEvent_Delete(QKeyEvent* self) { delete self; } QFocusEvent* QFocusEvent_new(int typeVal) { return new QFocusEvent(static_cast(typeVal)); } QFocusEvent* QFocusEvent_new2(int typeVal, int reason) { return new QFocusEvent(static_cast(typeVal), static_cast(reason)); } QFocusEvent* QFocusEvent_Clone(const QFocusEvent* self) { return self->clone(); } bool QFocusEvent_GotFocus(const QFocusEvent* self) { return self->gotFocus(); } bool QFocusEvent_LostFocus(const QFocusEvent* self) { return self->lostFocus(); } int QFocusEvent_Reason(const QFocusEvent* self) { Qt::FocusReason _ret = self->reason(); return static_cast(_ret); } void QFocusEvent_Delete(QFocusEvent* self) { delete self; } QPaintEvent* QPaintEvent_new(QRegion* paintRegion) { return new QPaintEvent(*paintRegion); } QPaintEvent* QPaintEvent_new2(QRect* paintRect) { return new QPaintEvent(*paintRect); } QPaintEvent* QPaintEvent_Clone(const QPaintEvent* self) { return self->clone(); } QRect* QPaintEvent_Rect(const QPaintEvent* self) { const QRect& _ret = self->rect(); // Cast returned reference into pointer return const_cast(&_ret); } QRegion* QPaintEvent_Region(const QPaintEvent* self) { const QRegion& _ret = self->region(); // Cast returned reference into pointer return const_cast(&_ret); } void QPaintEvent_Delete(QPaintEvent* self) { delete self; } QMoveEvent* QMoveEvent_new(QPoint* pos, QPoint* oldPos) { return new QMoveEvent(*pos, *oldPos); } QMoveEvent* QMoveEvent_Clone(const QMoveEvent* self) { return self->clone(); } QPoint* QMoveEvent_Pos(const QMoveEvent* self) { const QPoint& _ret = self->pos(); // Cast returned reference into pointer return const_cast(&_ret); } QPoint* QMoveEvent_OldPos(const QMoveEvent* self) { const QPoint& _ret = self->oldPos(); // Cast returned reference into pointer return const_cast(&_ret); } void QMoveEvent_Delete(QMoveEvent* self) { delete self; } QExposeEvent* QExposeEvent_new(QRegion* m_region) { return new QExposeEvent(*m_region); } QExposeEvent* QExposeEvent_Clone(const QExposeEvent* self) { return self->clone(); } QRegion* QExposeEvent_Region(const QExposeEvent* self) { const QRegion& _ret = self->region(); // Cast returned reference into pointer return const_cast(&_ret); } void QExposeEvent_Delete(QExposeEvent* self) { delete self; } QPlatformSurfaceEvent* QPlatformSurfaceEvent_new(int surfaceEventType) { return new QPlatformSurfaceEvent(static_cast(surfaceEventType)); } QPlatformSurfaceEvent* QPlatformSurfaceEvent_Clone(const QPlatformSurfaceEvent* self) { return self->clone(); } int QPlatformSurfaceEvent_SurfaceEventType(const QPlatformSurfaceEvent* self) { QPlatformSurfaceEvent::SurfaceEventType _ret = self->surfaceEventType(); return static_cast(_ret); } void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self) { delete self; } QResizeEvent* QResizeEvent_new(QSize* size, QSize* oldSize) { return new QResizeEvent(*size, *oldSize); } QResizeEvent* QResizeEvent_Clone(const QResizeEvent* self) { return self->clone(); } QSize* QResizeEvent_Size(const QResizeEvent* self) { const QSize& _ret = self->size(); // Cast returned reference into pointer return const_cast(&_ret); } QSize* QResizeEvent_OldSize(const QResizeEvent* self) { const QSize& _ret = self->oldSize(); // Cast returned reference into pointer return const_cast(&_ret); } void QResizeEvent_Delete(QResizeEvent* self) { delete self; } QCloseEvent* QCloseEvent_new() { return new QCloseEvent(); } QCloseEvent* QCloseEvent_Clone(const QCloseEvent* self) { return self->clone(); } void QCloseEvent_Delete(QCloseEvent* self) { delete self; } QIconDragEvent* QIconDragEvent_new() { return new QIconDragEvent(); } QIconDragEvent* QIconDragEvent_Clone(const QIconDragEvent* self) { return self->clone(); } void QIconDragEvent_Delete(QIconDragEvent* self) { delete self; } QShowEvent* QShowEvent_new() { return new QShowEvent(); } QShowEvent* QShowEvent_Clone(const QShowEvent* self) { return self->clone(); } void QShowEvent_Delete(QShowEvent* self) { delete self; } QHideEvent* QHideEvent_new() { return new QHideEvent(); } QHideEvent* QHideEvent_Clone(const QHideEvent* self) { return self->clone(); } void QHideEvent_Delete(QHideEvent* self) { delete self; } QContextMenuEvent* QContextMenuEvent_new(int reason, QPoint* pos, QPoint* globalPos) { return new QContextMenuEvent(static_cast(reason), *pos, *globalPos); } QContextMenuEvent* QContextMenuEvent_new2(int reason, QPoint* pos) { return new QContextMenuEvent(static_cast(reason), *pos); } QContextMenuEvent* QContextMenuEvent_new3(int reason, QPoint* pos, QPoint* globalPos, int modifiers) { return new QContextMenuEvent(static_cast(reason), *pos, *globalPos, static_cast(modifiers)); } QContextMenuEvent* QContextMenuEvent_Clone(const QContextMenuEvent* self) { return self->clone(); } int QContextMenuEvent_X(const QContextMenuEvent* self) { return self->x(); } int QContextMenuEvent_Y(const QContextMenuEvent* self) { return self->y(); } int QContextMenuEvent_GlobalX(const QContextMenuEvent* self) { return self->globalX(); } int QContextMenuEvent_GlobalY(const QContextMenuEvent* self) { return self->globalY(); } QPoint* QContextMenuEvent_Pos(const QContextMenuEvent* self) { const QPoint& _ret = self->pos(); // Cast returned reference into pointer return const_cast(&_ret); } QPoint* QContextMenuEvent_GlobalPos(const QContextMenuEvent* self) { const QPoint& _ret = self->globalPos(); // Cast returned reference into pointer return const_cast(&_ret); } int QContextMenuEvent_Reason(const QContextMenuEvent* self) { QContextMenuEvent::Reason _ret = self->reason(); return static_cast(_ret); } void QContextMenuEvent_Delete(QContextMenuEvent* self) { delete self; } QInputMethodEvent* QInputMethodEvent_new() { return new QInputMethodEvent(); } QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array* /* of QInputMethodEvent__Attribute* */ attributes) { QString preeditText_QString = QString::fromUtf8(preeditText.data, preeditText.len); QList attributes_QList; attributes_QList.reserve(attributes->len); QInputMethodEvent__Attribute** attributes_arr = static_cast(attributes->data); for(size_t i = 0; i < attributes->len; ++i) { attributes_QList.push_back(*(attributes_arr[i])); } return new QInputMethodEvent(preeditText_QString, attributes_QList); } QInputMethodEvent* QInputMethodEvent_Clone(const QInputMethodEvent* self) { return self->clone(); } void QInputMethodEvent_SetCommitString(QInputMethodEvent* self, struct miqt_string commitString) { QString commitString_QString = QString::fromUtf8(commitString.data, commitString.len); self->setCommitString(commitString_QString); } struct miqt_array* QInputMethodEvent_Attributes(const QInputMethodEvent* self) { const QList& _ret = self->attributes(); // Convert QList<> from C++ memory to manually-managed C memory QInputMethodEvent__Attribute** _arr = static_cast(malloc(sizeof(QInputMethodEvent__Attribute*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QInputMethodEvent::Attribute(_ret[i]); } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_string QInputMethodEvent_PreeditString(const QInputMethodEvent* self) { const QString _ret = self->preeditString(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QInputMethodEvent_CommitString(const QInputMethodEvent* self) { const QString _ret = self->commitString(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } int QInputMethodEvent_ReplacementStart(const QInputMethodEvent* self) { return self->replacementStart(); } int QInputMethodEvent_ReplacementLength(const QInputMethodEvent* self) { return self->replacementLength(); } void QInputMethodEvent_SetCommitString2(QInputMethodEvent* self, struct miqt_string commitString, int replaceFrom) { QString commitString_QString = QString::fromUtf8(commitString.data, commitString.len); self->setCommitString(commitString_QString, static_cast(replaceFrom)); } void QInputMethodEvent_SetCommitString3(QInputMethodEvent* self, struct miqt_string commitString, int replaceFrom, int replaceLength) { QString commitString_QString = QString::fromUtf8(commitString.data, commitString.len); self->setCommitString(commitString_QString, static_cast(replaceFrom), static_cast(replaceLength)); } void QInputMethodEvent_Delete(QInputMethodEvent* self) { delete self; } QInputMethodQueryEvent* QInputMethodQueryEvent_new(int queries) { return new QInputMethodQueryEvent(static_cast(queries)); } QInputMethodQueryEvent* QInputMethodQueryEvent_Clone(const QInputMethodQueryEvent* self) { return self->clone(); } int QInputMethodQueryEvent_Queries(const QInputMethodQueryEvent* self) { Qt::InputMethodQueries _ret = self->queries(); return static_cast(_ret); } void QInputMethodQueryEvent_SetValue(QInputMethodQueryEvent* self, int query, QVariant* value) { self->setValue(static_cast(query), *value); } QVariant* QInputMethodQueryEvent_Value(const QInputMethodQueryEvent* self, int query) { return new QVariant(self->value(static_cast(query))); } void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self) { delete self; } QDropEvent* QDropEvent_new(QPointF* pos, int actions, QMimeData* data, int buttons, int modifiers) { return new QDropEvent(*pos, static_cast(actions), data, static_cast(buttons), static_cast(modifiers)); } QDropEvent* QDropEvent_new2(QPointF* pos, int actions, QMimeData* data, int buttons, int modifiers, int typeVal) { return new QDropEvent(*pos, static_cast(actions), data, static_cast(buttons), static_cast(modifiers), static_cast(typeVal)); } QDropEvent* QDropEvent_Clone(const QDropEvent* self) { return self->clone(); } QPoint* QDropEvent_Pos(const QDropEvent* self) { return new QPoint(self->pos()); } QPointF* QDropEvent_PosF(const QDropEvent* self) { return new QPointF(self->posF()); } int QDropEvent_MouseButtons(const QDropEvent* self) { Qt::MouseButtons _ret = self->mouseButtons(); return static_cast(_ret); } int QDropEvent_KeyboardModifiers(const QDropEvent* self) { Qt::KeyboardModifiers _ret = self->keyboardModifiers(); return static_cast(_ret); } QPointF* QDropEvent_Position(const QDropEvent* self) { return new QPointF(self->position()); } int QDropEvent_Buttons(const QDropEvent* self) { Qt::MouseButtons _ret = self->buttons(); return static_cast(_ret); } int QDropEvent_Modifiers(const QDropEvent* self) { Qt::KeyboardModifiers _ret = self->modifiers(); return static_cast(_ret); } int QDropEvent_PossibleActions(const QDropEvent* self) { Qt::DropActions _ret = self->possibleActions(); return static_cast(_ret); } int QDropEvent_ProposedAction(const QDropEvent* self) { Qt::DropAction _ret = self->proposedAction(); return static_cast(_ret); } void QDropEvent_AcceptProposedAction(QDropEvent* self) { self->acceptProposedAction(); } int QDropEvent_DropAction(const QDropEvent* self) { Qt::DropAction _ret = self->dropAction(); return static_cast(_ret); } void QDropEvent_SetDropAction(QDropEvent* self, int action) { self->setDropAction(static_cast(action)); } QObject* QDropEvent_Source(const QDropEvent* self) { return self->source(); } QMimeData* QDropEvent_MimeData(const QDropEvent* self) { return (QMimeData*) self->mimeData(); } void QDropEvent_Delete(QDropEvent* self) { delete self; } QDragMoveEvent* QDragMoveEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers) { return new QDragMoveEvent(*pos, static_cast(actions), data, static_cast(buttons), static_cast(modifiers)); } QDragMoveEvent* QDragMoveEvent_new2(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers, int typeVal) { return new QDragMoveEvent(*pos, static_cast(actions), data, static_cast(buttons), static_cast(modifiers), static_cast(typeVal)); } QDragMoveEvent* QDragMoveEvent_Clone(const QDragMoveEvent* self) { return self->clone(); } QRect* QDragMoveEvent_AnswerRect(const QDragMoveEvent* self) { return new QRect(self->answerRect()); } void QDragMoveEvent_Accept(QDragMoveEvent* self) { self->accept(); } void QDragMoveEvent_Ignore(QDragMoveEvent* self) { self->ignore(); } void QDragMoveEvent_AcceptWithQRect(QDragMoveEvent* self, QRect* r) { self->accept(*r); } void QDragMoveEvent_IgnoreWithQRect(QDragMoveEvent* self, QRect* r) { self->ignore(*r); } void QDragMoveEvent_Delete(QDragMoveEvent* self) { delete self; } QDragEnterEvent* QDragEnterEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers) { return new QDragEnterEvent(*pos, static_cast(actions), data, static_cast(buttons), static_cast(modifiers)); } QDragEnterEvent* QDragEnterEvent_Clone(const QDragEnterEvent* self) { return self->clone(); } void QDragEnterEvent_Delete(QDragEnterEvent* self) { delete self; } QDragLeaveEvent* QDragLeaveEvent_new() { return new QDragLeaveEvent(); } QDragLeaveEvent* QDragLeaveEvent_Clone(const QDragLeaveEvent* self) { return self->clone(); } void QDragLeaveEvent_Delete(QDragLeaveEvent* self) { delete self; } QHelpEvent* QHelpEvent_new(int typeVal, QPoint* pos, QPoint* globalPos) { return new QHelpEvent(static_cast(typeVal), *pos, *globalPos); } QHelpEvent* QHelpEvent_Clone(const QHelpEvent* self) { return self->clone(); } int QHelpEvent_X(const QHelpEvent* self) { return self->x(); } int QHelpEvent_Y(const QHelpEvent* self) { return self->y(); } int QHelpEvent_GlobalX(const QHelpEvent* self) { return self->globalX(); } int QHelpEvent_GlobalY(const QHelpEvent* self) { return self->globalY(); } QPoint* QHelpEvent_Pos(const QHelpEvent* self) { const QPoint& _ret = self->pos(); // Cast returned reference into pointer return const_cast(&_ret); } QPoint* QHelpEvent_GlobalPos(const QHelpEvent* self) { const QPoint& _ret = self->globalPos(); // Cast returned reference into pointer return const_cast(&_ret); } void QHelpEvent_Delete(QHelpEvent* self) { delete self; } QStatusTipEvent* QStatusTipEvent_new(struct miqt_string tip) { QString tip_QString = QString::fromUtf8(tip.data, tip.len); return new QStatusTipEvent(tip_QString); } QStatusTipEvent* QStatusTipEvent_Clone(const QStatusTipEvent* self) { return self->clone(); } struct miqt_string QStatusTipEvent_Tip(const QStatusTipEvent* self) { QString _ret = self->tip(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QStatusTipEvent_Delete(QStatusTipEvent* self) { delete self; } QWhatsThisClickedEvent* QWhatsThisClickedEvent_new(struct miqt_string href) { QString href_QString = QString::fromUtf8(href.data, href.len); return new QWhatsThisClickedEvent(href_QString); } QWhatsThisClickedEvent* QWhatsThisClickedEvent_Clone(const QWhatsThisClickedEvent* self) { return self->clone(); } struct miqt_string QWhatsThisClickedEvent_Href(const QWhatsThisClickedEvent* self) { QString _ret = self->href(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self) { delete self; } QActionEvent* QActionEvent_new(int typeVal, QAction* action) { return new QActionEvent(static_cast(typeVal), action); } QActionEvent* QActionEvent_new2(int typeVal, QAction* action, QAction* before) { return new QActionEvent(static_cast(typeVal), action, before); } QActionEvent* QActionEvent_Clone(const QActionEvent* self) { return self->clone(); } QAction* QActionEvent_Action(const QActionEvent* self) { return self->action(); } QAction* QActionEvent_Before(const QActionEvent* self) { return self->before(); } void QActionEvent_Delete(QActionEvent* self) { delete self; } QFileOpenEvent* QFileOpenEvent_new(struct miqt_string file) { QString file_QString = QString::fromUtf8(file.data, file.len); return new QFileOpenEvent(file_QString); } QFileOpenEvent* QFileOpenEvent_new2(QUrl* url) { return new QFileOpenEvent(*url); } QFileOpenEvent* QFileOpenEvent_Clone(const QFileOpenEvent* self) { return self->clone(); } struct miqt_string QFileOpenEvent_File(const QFileOpenEvent* self) { QString _ret = self->file(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } QUrl* QFileOpenEvent_Url(const QFileOpenEvent* self) { return new QUrl(self->url()); } bool QFileOpenEvent_OpenFile(const QFileOpenEvent* self, QFile* file, int flags) { return self->openFile(*file, static_cast(flags)); } void QFileOpenEvent_Delete(QFileOpenEvent* self) { delete self; } QToolBarChangeEvent* QToolBarChangeEvent_new(bool t) { return new QToolBarChangeEvent(t); } QToolBarChangeEvent* QToolBarChangeEvent_Clone(const QToolBarChangeEvent* self) { return self->clone(); } bool QToolBarChangeEvent_Toggle(const QToolBarChangeEvent* self) { return self->toggle(); } void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self) { delete self; } QShortcutEvent* QShortcutEvent_new(QKeySequence* key, int id) { return new QShortcutEvent(*key, static_cast(id)); } QShortcutEvent* QShortcutEvent_new2(QKeySequence* key, int id, bool ambiguous) { return new QShortcutEvent(*key, static_cast(id), ambiguous); } QShortcutEvent* QShortcutEvent_Clone(const QShortcutEvent* self) { return self->clone(); } QKeySequence* QShortcutEvent_Key(const QShortcutEvent* self) { const QKeySequence& _ret = self->key(); // Cast returned reference into pointer return const_cast(&_ret); } int QShortcutEvent_ShortcutId(const QShortcutEvent* self) { return self->shortcutId(); } bool QShortcutEvent_IsAmbiguous(const QShortcutEvent* self) { return self->isAmbiguous(); } void QShortcutEvent_Delete(QShortcutEvent* self) { delete self; } QWindowStateChangeEvent* QWindowStateChangeEvent_new(int oldState) { return new QWindowStateChangeEvent(static_cast(oldState)); } QWindowStateChangeEvent* QWindowStateChangeEvent_new2(int oldState, bool isOverride) { return new QWindowStateChangeEvent(static_cast(oldState), isOverride); } QWindowStateChangeEvent* QWindowStateChangeEvent_Clone(const QWindowStateChangeEvent* self) { return self->clone(); } int QWindowStateChangeEvent_OldState(const QWindowStateChangeEvent* self) { Qt::WindowStates _ret = self->oldState(); return static_cast(_ret); } bool QWindowStateChangeEvent_IsOverride(const QWindowStateChangeEvent* self) { return self->isOverride(); } void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self) { delete self; } QTouchEvent* QTouchEvent_new(int eventType) { return new QTouchEvent(static_cast(eventType)); } QTouchEvent* QTouchEvent_new2(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates) { return new QTouchEvent(static_cast(eventType), device, static_cast(modifiers), static_cast(touchPointStates)); } QTouchEvent* QTouchEvent_new3(int eventType, QPointingDevice* device) { return new QTouchEvent(static_cast(eventType), device); } QTouchEvent* QTouchEvent_new4(int eventType, QPointingDevice* device, int modifiers) { return new QTouchEvent(static_cast(eventType), device, static_cast(modifiers)); } QTouchEvent* QTouchEvent_new5(int eventType, QPointingDevice* device, int modifiers, struct miqt_array* /* of QEventPoint* */ touchPoints) { QList touchPoints_QList; touchPoints_QList.reserve(touchPoints->len); QEventPoint** touchPoints_arr = static_cast(touchPoints->data); for(size_t i = 0; i < touchPoints->len; ++i) { touchPoints_QList.push_back(*(touchPoints_arr[i])); } return new QTouchEvent(static_cast(eventType), device, static_cast(modifiers), touchPoints_QList); } QTouchEvent* QTouchEvent_new6(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates, struct miqt_array* /* of QEventPoint* */ touchPoints) { QList touchPoints_QList; touchPoints_QList.reserve(touchPoints->len); QEventPoint** touchPoints_arr = static_cast(touchPoints->data); for(size_t i = 0; i < touchPoints->len; ++i) { touchPoints_QList.push_back(*(touchPoints_arr[i])); } return new QTouchEvent(static_cast(eventType), device, static_cast(modifiers), static_cast(touchPointStates), touchPoints_QList); } QTouchEvent* QTouchEvent_Clone(const QTouchEvent* self) { return self->clone(); } QObject* QTouchEvent_Target(const QTouchEvent* self) { return self->target(); } uint8_t QTouchEvent_TouchPointStates(const QTouchEvent* self) { QEventPoint::States _ret = self->touchPointStates(); return static_cast(_ret); } struct miqt_array* QTouchEvent_TouchPoints(const QTouchEvent* self) { const QList& _ret = self->touchPoints(); // Convert QList<> from C++ memory to manually-managed C memory QEventPoint** _arr = static_cast(malloc(sizeof(QEventPoint*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = new QEventPoint(_ret[i]); } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } bool QTouchEvent_IsBeginEvent(const QTouchEvent* self) { return self->isBeginEvent(); } bool QTouchEvent_IsUpdateEvent(const QTouchEvent* self) { return self->isUpdateEvent(); } bool QTouchEvent_IsEndEvent(const QTouchEvent* self) { return self->isEndEvent(); } void QTouchEvent_Delete(QTouchEvent* self) { delete self; } QScrollPrepareEvent* QScrollPrepareEvent_new(QPointF* startPos) { return new QScrollPrepareEvent(*startPos); } QScrollPrepareEvent* QScrollPrepareEvent_Clone(const QScrollPrepareEvent* self) { return self->clone(); } QPointF* QScrollPrepareEvent_StartPos(const QScrollPrepareEvent* self) { return new QPointF(self->startPos()); } QSizeF* QScrollPrepareEvent_ViewportSize(const QScrollPrepareEvent* self) { return new QSizeF(self->viewportSize()); } QRectF* QScrollPrepareEvent_ContentPosRange(const QScrollPrepareEvent* self) { return new QRectF(self->contentPosRange()); } QPointF* QScrollPrepareEvent_ContentPos(const QScrollPrepareEvent* self) { return new QPointF(self->contentPos()); } void QScrollPrepareEvent_SetViewportSize(QScrollPrepareEvent* self, QSizeF* size) { self->setViewportSize(*size); } void QScrollPrepareEvent_SetContentPosRange(QScrollPrepareEvent* self, QRectF* rect) { self->setContentPosRange(*rect); } void QScrollPrepareEvent_SetContentPos(QScrollPrepareEvent* self, QPointF* pos) { self->setContentPos(*pos); } void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self) { delete self; } QScrollEvent* QScrollEvent_new(QPointF* contentPos, QPointF* overshoot, int scrollState) { return new QScrollEvent(*contentPos, *overshoot, static_cast(scrollState)); } QScrollEvent* QScrollEvent_Clone(const QScrollEvent* self) { return self->clone(); } QPointF* QScrollEvent_ContentPos(const QScrollEvent* self) { return new QPointF(self->contentPos()); } QPointF* QScrollEvent_OvershootDistance(const QScrollEvent* self) { return new QPointF(self->overshootDistance()); } int QScrollEvent_ScrollState(const QScrollEvent* self) { QScrollEvent::ScrollState _ret = self->scrollState(); return static_cast(_ret); } void QScrollEvent_Delete(QScrollEvent* self) { delete self; } QScreenOrientationChangeEvent* QScreenOrientationChangeEvent_new(QScreen* screen, int orientation) { return new QScreenOrientationChangeEvent(screen, static_cast(orientation)); } QScreenOrientationChangeEvent* QScreenOrientationChangeEvent_Clone(const QScreenOrientationChangeEvent* self) { return self->clone(); } QScreen* QScreenOrientationChangeEvent_Screen(const QScreenOrientationChangeEvent* self) { return self->screen(); } int QScreenOrientationChangeEvent_Orientation(const QScreenOrientationChangeEvent* self) { Qt::ScreenOrientation _ret = self->orientation(); return static_cast(_ret); } void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self) { delete self; } QApplicationStateChangeEvent* QApplicationStateChangeEvent_new(int state) { return new QApplicationStateChangeEvent(static_cast(state)); } QApplicationStateChangeEvent* QApplicationStateChangeEvent_Clone(const QApplicationStateChangeEvent* self) { return self->clone(); } int QApplicationStateChangeEvent_ApplicationState(const QApplicationStateChangeEvent* self) { Qt::ApplicationState _ret = self->applicationState(); return static_cast(_ret); } void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self) { delete self; } QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new(int typ, int s, int l, QVariant* val) { return new QInputMethodEvent::Attribute(static_cast(typ), static_cast(s), static_cast(l), *val); } QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new2(int typ, int s, int l) { return new QInputMethodEvent::Attribute(static_cast(typ), static_cast(s), static_cast(l)); } QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new3(QInputMethodEvent__Attribute* param1) { return new QInputMethodEvent::Attribute(*param1); } void QInputMethodEvent__Attribute_OperatorAssign(QInputMethodEvent__Attribute* self, QInputMethodEvent__Attribute* param1) { self->operator=(*param1); } void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self) { delete self; }