#include #include #include #include #include #include #include #include #include #include "gen_qmouseeventtransition.h" #include "_cgo_export.h" QMouseEventTransition* QMouseEventTransition_new() { return new QMouseEventTransition(); } QMouseEventTransition* QMouseEventTransition_new2(QObject* object, int typeVal, int button) { return new QMouseEventTransition(object, static_cast(typeVal), static_cast(button)); } QMouseEventTransition* QMouseEventTransition_new3(QState* sourceState) { return new QMouseEventTransition(sourceState); } QMouseEventTransition* QMouseEventTransition_new4(QObject* object, int typeVal, int button, QState* sourceState) { return new QMouseEventTransition(object, static_cast(typeVal), static_cast(button), sourceState); } QMetaObject* QMouseEventTransition_MetaObject(const QMouseEventTransition* self) { return (QMetaObject*) self->metaObject(); } void* QMouseEventTransition_Metacast(QMouseEventTransition* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QMouseEventTransition_Tr(const char* s) { QString _ret = QMouseEventTransition::tr(s); // 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 QMouseEventTransition_TrUtf8(const char* s) { QString _ret = QMouseEventTransition::trUtf8(s); // 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 QMouseEventTransition_Button(const QMouseEventTransition* self) { Qt::MouseButton _ret = self->button(); return static_cast(_ret); } void QMouseEventTransition_SetButton(QMouseEventTransition* self, int button) { self->setButton(static_cast(button)); } int QMouseEventTransition_ModifierMask(const QMouseEventTransition* self) { Qt::KeyboardModifiers _ret = self->modifierMask(); return static_cast(_ret); } void QMouseEventTransition_SetModifierMask(QMouseEventTransition* self, int modifiers) { self->setModifierMask(static_cast(modifiers)); } QPainterPath* QMouseEventTransition_HitTestPath(const QMouseEventTransition* self) { return new QPainterPath(self->hitTestPath()); } void QMouseEventTransition_SetHitTestPath(QMouseEventTransition* self, QPainterPath* path) { self->setHitTestPath(*path); } struct miqt_string QMouseEventTransition_Tr2(const char* s, const char* c) { QString _ret = QMouseEventTransition::tr(s, c); // 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 QMouseEventTransition_Tr3(const char* s, const char* c, int n) { QString _ret = QMouseEventTransition::tr(s, c, static_cast(n)); // 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 QMouseEventTransition_TrUtf82(const char* s, const char* c) { QString _ret = QMouseEventTransition::trUtf8(s, c); // 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 QMouseEventTransition_TrUtf83(const char* s, const char* c, int n) { QString _ret = QMouseEventTransition::trUtf8(s, c, static_cast(n)); // 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 QMouseEventTransition_Delete(QMouseEventTransition* self) { delete self; }