morpheus

A Matrix client written in Go-QT
git clone git://archive.git.mtrnord.blog/Nordgedanken/morpheus.git
Log | Files | Refs | README | LICENSE

commit 392630329238342477828a6e24b639e07b1c7f66
parent 291250a59dfe65e698d7e7b66f2dcd5cdd26ff9d
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 21 Oct 2017 19:10:07 +0200

Don't commit moc files

Signed-off-by: MTRNord <mtrnord1@gmail.com>

Diffstat:
M.gitignore | 2++
Dui/moc.cpp | 668-------------------------------------------------------------------------------
Dui/moc.go | 1543-------------------------------------------------------------------------------
Dui/moc.h | 130-------------------------------------------------------------------------------
Dui/moc_cgo_windows_windows_amd64.go | 10----------
Dui/moc_moc.h | 207-------------------------------------------------------------------------------
6 files changed, 2 insertions(+), 2558 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -18,3 +18,4 @@ rcc* debug* log/ data/ +ui/moc* +\ No newline at end of file diff --git a/ui/moc.cpp b/ui/moc.cpp @@ -1,668 +0,0 @@ - - -#define protected public -#define private public - -#include "moc.h" -#include "_cgo_export.h" - -#include <QByteArray> -#include <QChildEvent> -#include <QEvent> -#include <QLayout> -#include <QLayoutItem> -#include <QList> -#include <QMetaMethod> -#include <QMetaObject> -#include <QObject> -#include <QRect> -#include <QSize> -#include <QSizePolicy> -#include <QSpacerItem> -#include <QString> -#include <QTime> -#include <QTimer> -#include <QTimerEvent> -#include <QVBoxLayout> -#include <QWidget> - - -class QRoomVBoxLayoutWithTriggerSlot: public QVBoxLayout -{ -Q_OBJECT -public: - QRoomVBoxLayoutWithTriggerSlot() : QVBoxLayout() {qRegisterMetaType<quintptr>("quintptr");QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType();QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaTypes();callbackQRoomVBoxLayoutWithTriggerSlot_Constructor(this);}; - QRoomVBoxLayoutWithTriggerSlot(QWidget *parent) : QVBoxLayout(parent) {qRegisterMetaType<quintptr>("quintptr");QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType();QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaTypes();callbackQRoomVBoxLayoutWithTriggerSlot_Constructor(this);}; - QLayoutItem * takeAt(int index) { return static_cast<QLayoutItem*>(callbackQRoomVBoxLayoutWithTriggerSlot_TakeAt(this, index)); }; - void addItem(QLayoutItem * item) { callbackQRoomVBoxLayoutWithTriggerSlot_AddItem(this, item); }; - void invalidate() { callbackQRoomVBoxLayoutWithTriggerSlot_Invalidate(this); }; - void setGeometry(const QRect & r) { callbackQRoomVBoxLayoutWithTriggerSlot_SetGeometry(this, const_cast<QRect*>(&r)); }; - QLayoutItem * itemAt(int index) const { return static_cast<QLayoutItem*>(callbackQRoomVBoxLayoutWithTriggerSlot_ItemAt(const_cast<void*>(static_cast<const void*>(this)), index)); }; - QSize maximumSize() const { return *static_cast<QSize*>(callbackQRoomVBoxLayoutWithTriggerSlot_MaximumSize(const_cast<void*>(static_cast<const void*>(this)))); }; - QSize minimumSize() const { return *static_cast<QSize*>(callbackQRoomVBoxLayoutWithTriggerSlot_MinimumSize(const_cast<void*>(static_cast<const void*>(this)))); }; - QSize sizeHint() const { return *static_cast<QSize*>(callbackQRoomVBoxLayoutWithTriggerSlot_SizeHint(const_cast<void*>(static_cast<const void*>(this)))); }; - Qt::Orientations expandingDirections() const { return static_cast<Qt::Orientation>(callbackQRoomVBoxLayoutWithTriggerSlot_ExpandingDirections(const_cast<void*>(static_cast<const void*>(this)))); }; - bool hasHeightForWidth() const { return callbackQRoomVBoxLayoutWithTriggerSlot_HasHeightForWidth(const_cast<void*>(static_cast<const void*>(this))) != 0; }; - int count() const { return callbackQRoomVBoxLayoutWithTriggerSlot_Count(const_cast<void*>(static_cast<const void*>(this))); }; - int heightForWidth(int w) const { return callbackQRoomVBoxLayoutWithTriggerSlot_HeightForWidth(const_cast<void*>(static_cast<const void*>(this)), w); }; - int minimumHeightForWidth(int w) const { return callbackQRoomVBoxLayoutWithTriggerSlot_MinimumHeightForWidth(const_cast<void*>(static_cast<const void*>(this)), w); }; - QLayout * layout() { return static_cast<QLayout*>(callbackQRoomVBoxLayoutWithTriggerSlot_Layout(this)); }; - void childEvent(QChildEvent * e) { callbackQRoomVBoxLayoutWithTriggerSlot_ChildEvent(this, e); }; - QRect geometry() const { return *static_cast<QRect*>(callbackQRoomVBoxLayoutWithTriggerSlot_Geometry(const_cast<void*>(static_cast<const void*>(this)))); }; - QSizePolicy::ControlTypes controlTypes() const { return static_cast<QSizePolicy::ControlType>(callbackQRoomVBoxLayoutWithTriggerSlot_ControlTypes(const_cast<void*>(static_cast<const void*>(this)))); }; - bool isEmpty() const { return callbackQRoomVBoxLayoutWithTriggerSlot_IsEmpty(const_cast<void*>(static_cast<const void*>(this))) != 0; }; - int indexOf(QWidget * widget) const { return callbackQRoomVBoxLayoutWithTriggerSlot_IndexOf(const_cast<void*>(static_cast<const void*>(this)), widget); }; - bool event(QEvent * e) { return callbackQRoomVBoxLayoutWithTriggerSlot_Event(this, e) != 0; }; - bool eventFilter(QObject * watched, QEvent * event) { return callbackQRoomVBoxLayoutWithTriggerSlot_EventFilter(this, watched, event) != 0; }; - void connectNotify(const QMetaMethod & sign) { callbackQRoomVBoxLayoutWithTriggerSlot_ConnectNotify(this, const_cast<QMetaMethod*>(&sign)); }; - void customEvent(QEvent * event) { callbackQRoomVBoxLayoutWithTriggerSlot_CustomEvent(this, event); }; - void deleteLater() { callbackQRoomVBoxLayoutWithTriggerSlot_DeleteLater(this); }; - void Signal_Destroyed(QObject * obj) { callbackQRoomVBoxLayoutWithTriggerSlot_Destroyed(this, obj); }; - void disconnectNotify(const QMetaMethod & sign) { callbackQRoomVBoxLayoutWithTriggerSlot_DisconnectNotify(this, const_cast<QMetaMethod*>(&sign)); }; - void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); Moc_PackedString objectNamePacked = { const_cast<char*>(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQRoomVBoxLayoutWithTriggerSlot_ObjectNameChanged(this, objectNamePacked); }; - void timerEvent(QTimerEvent * event) { callbackQRoomVBoxLayoutWithTriggerSlot_TimerEvent(this, event); }; - - QSpacerItem * spacerItem() { return static_cast<QSpacerItem*>(callbackQRoomVBoxLayoutWithTriggerSlot_SpacerItem(this)); }; - QWidget * widget() { return static_cast<QWidget*>(callbackQRoomVBoxLayoutWithTriggerSlot_Widget(this)); }; -signals: -public slots: - void TriggerRoom(QString roomID) { QByteArray tdf131c = roomID.toUtf8(); Moc_PackedString roomIDPacked = { const_cast<char*>(tdf131c.prepend("WHITESPACE").constData()+10), tdf131c.size()-10 };callbackQRoomVBoxLayoutWithTriggerSlot_TriggerRoom(this, roomIDPacked); }; -private: -}; - -Q_DECLARE_METATYPE(QRoomVBoxLayoutWithTriggerSlot*) - - -void QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaTypes() { -} - -class QVBoxLayoutWithTriggerSlot: public QVBoxLayout -{ -Q_OBJECT -public: - QVBoxLayoutWithTriggerSlot() : QVBoxLayout() {qRegisterMetaType<quintptr>("quintptr");QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType();QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaTypes();callbackQVBoxLayoutWithTriggerSlot_Constructor(this);}; - QVBoxLayoutWithTriggerSlot(QWidget *parent) : QVBoxLayout(parent) {qRegisterMetaType<quintptr>("quintptr");QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType();QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaTypes();callbackQVBoxLayoutWithTriggerSlot_Constructor(this);}; - QLayoutItem * takeAt(int index) { return static_cast<QLayoutItem*>(callbackQVBoxLayoutWithTriggerSlot_TakeAt(this, index)); }; - void addItem(QLayoutItem * item) { callbackQVBoxLayoutWithTriggerSlot_AddItem(this, item); }; - void invalidate() { callbackQVBoxLayoutWithTriggerSlot_Invalidate(this); }; - void setGeometry(const QRect & r) { callbackQVBoxLayoutWithTriggerSlot_SetGeometry(this, const_cast<QRect*>(&r)); }; - QLayoutItem * itemAt(int index) const { return static_cast<QLayoutItem*>(callbackQVBoxLayoutWithTriggerSlot_ItemAt(const_cast<void*>(static_cast<const void*>(this)), index)); }; - QSize maximumSize() const { return *static_cast<QSize*>(callbackQVBoxLayoutWithTriggerSlot_MaximumSize(const_cast<void*>(static_cast<const void*>(this)))); }; - QSize minimumSize() const { return *static_cast<QSize*>(callbackQVBoxLayoutWithTriggerSlot_MinimumSize(const_cast<void*>(static_cast<const void*>(this)))); }; - QSize sizeHint() const { return *static_cast<QSize*>(callbackQVBoxLayoutWithTriggerSlot_SizeHint(const_cast<void*>(static_cast<const void*>(this)))); }; - Qt::Orientations expandingDirections() const { return static_cast<Qt::Orientation>(callbackQVBoxLayoutWithTriggerSlot_ExpandingDirections(const_cast<void*>(static_cast<const void*>(this)))); }; - bool hasHeightForWidth() const { return callbackQVBoxLayoutWithTriggerSlot_HasHeightForWidth(const_cast<void*>(static_cast<const void*>(this))) != 0; }; - int count() const { return callbackQVBoxLayoutWithTriggerSlot_Count(const_cast<void*>(static_cast<const void*>(this))); }; - int heightForWidth(int w) const { return callbackQVBoxLayoutWithTriggerSlot_HeightForWidth(const_cast<void*>(static_cast<const void*>(this)), w); }; - int minimumHeightForWidth(int w) const { return callbackQVBoxLayoutWithTriggerSlot_MinimumHeightForWidth(const_cast<void*>(static_cast<const void*>(this)), w); }; - QLayout * layout() { return static_cast<QLayout*>(callbackQVBoxLayoutWithTriggerSlot_Layout(this)); }; - void childEvent(QChildEvent * e) { callbackQVBoxLayoutWithTriggerSlot_ChildEvent(this, e); }; - QRect geometry() const { return *static_cast<QRect*>(callbackQVBoxLayoutWithTriggerSlot_Geometry(const_cast<void*>(static_cast<const void*>(this)))); }; - QSizePolicy::ControlTypes controlTypes() const { return static_cast<QSizePolicy::ControlType>(callbackQVBoxLayoutWithTriggerSlot_ControlTypes(const_cast<void*>(static_cast<const void*>(this)))); }; - bool isEmpty() const { return callbackQVBoxLayoutWithTriggerSlot_IsEmpty(const_cast<void*>(static_cast<const void*>(this))) != 0; }; - int indexOf(QWidget * widget) const { return callbackQVBoxLayoutWithTriggerSlot_IndexOf(const_cast<void*>(static_cast<const void*>(this)), widget); }; - bool event(QEvent * e) { return callbackQVBoxLayoutWithTriggerSlot_Event(this, e) != 0; }; - bool eventFilter(QObject * watched, QEvent * event) { return callbackQVBoxLayoutWithTriggerSlot_EventFilter(this, watched, event) != 0; }; - void connectNotify(const QMetaMethod & sign) { callbackQVBoxLayoutWithTriggerSlot_ConnectNotify(this, const_cast<QMetaMethod*>(&sign)); }; - void customEvent(QEvent * event) { callbackQVBoxLayoutWithTriggerSlot_CustomEvent(this, event); }; - void deleteLater() { callbackQVBoxLayoutWithTriggerSlot_DeleteLater(this); }; - void Signal_Destroyed(QObject * obj) { callbackQVBoxLayoutWithTriggerSlot_Destroyed(this, obj); }; - void disconnectNotify(const QMetaMethod & sign) { callbackQVBoxLayoutWithTriggerSlot_DisconnectNotify(this, const_cast<QMetaMethod*>(&sign)); }; - void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); Moc_PackedString objectNamePacked = { const_cast<char*>(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQVBoxLayoutWithTriggerSlot_ObjectNameChanged(this, objectNamePacked); }; - void timerEvent(QTimerEvent * event) { callbackQVBoxLayoutWithTriggerSlot_TimerEvent(this, event); }; - - QSpacerItem * spacerItem() { return static_cast<QSpacerItem*>(callbackQVBoxLayoutWithTriggerSlot_SpacerItem(this)); }; - QWidget * widget() { return static_cast<QWidget*>(callbackQVBoxLayoutWithTriggerSlot_Widget(this)); }; -signals: -public slots: - void TriggerMessage(QString messageBody, QString sender, qint64 timestamp) { QByteArray t59bf16 = messageBody.toUtf8(); Moc_PackedString messageBodyPacked = { const_cast<char*>(t59bf16.prepend("WHITESPACE").constData()+10), t59bf16.size()-10 };QByteArray tacc6a3 = sender.toUtf8(); Moc_PackedString senderPacked = { const_cast<char*>(tacc6a3.prepend("WHITESPACE").constData()+10), tacc6a3.size()-10 };callbackQVBoxLayoutWithTriggerSlot_TriggerMessage(this, messageBodyPacked, senderPacked, timestamp); }; -private: -}; - -Q_DECLARE_METATYPE(QVBoxLayoutWithTriggerSlot*) - - -void QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaTypes() { -} - -void QRoomVBoxLayoutWithTriggerSlot_TriggerRoom(void* ptr, struct Moc_PackedString roomID) -{ - QMetaObject::invokeMethod(static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr), "TriggerRoom", Q_ARG(QString, QString::fromUtf8(roomID.data, roomID.len))); -} - -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType() -{ - return qRegisterMetaType<QRoomVBoxLayoutWithTriggerSlot*>(); -} - -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType2(char* typeName) -{ - return qRegisterMetaType<QRoomVBoxLayoutWithTriggerSlot*>(const_cast<const char*>(typeName)); -} - -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType() -{ -#ifdef QT_QML_LIB - return qmlRegisterType<QRoomVBoxLayoutWithTriggerSlot>(); -#else - return 0; -#endif -} - -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType2(char* uri, int versionMajor, int versionMinor, char* qmlName) -{ -#ifdef QT_QML_LIB - return qmlRegisterType<QRoomVBoxLayoutWithTriggerSlot>(const_cast<const char*>(uri), versionMajor, versionMinor, const_cast<const char*>(qmlName)); -#else - return 0; -#endif -} - -void* QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_atList(void* ptr, int i) -{ - return new QByteArray(static_cast<QList<QByteArray>*>(ptr)->at(i)); -} - -void QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_setList(void* ptr, void* i) -{ - static_cast<QList<QByteArray>*>(ptr)->append(*static_cast<QByteArray*>(i)); -} - -void* QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_newList(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QByteArray>; -} - -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_atList2(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject*>*>(ptr)->at(i)); -} - -void QRoomVBoxLayoutWithTriggerSlot___findChildren_setList2(void* ptr, void* i) -{ - static_cast<QList<QObject*>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_newList2(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject*>; -} - -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_atList3(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject*>*>(ptr)->at(i)); -} - -void QRoomVBoxLayoutWithTriggerSlot___findChildren_setList3(void* ptr, void* i) -{ - static_cast<QList<QObject*>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_newList3(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject*>; -} - -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_atList(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject*>*>(ptr)->at(i)); -} - -void QRoomVBoxLayoutWithTriggerSlot___findChildren_setList(void* ptr, void* i) -{ - static_cast<QList<QObject*>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_newList(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject*>; -} - -void* QRoomVBoxLayoutWithTriggerSlot___children_atList(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject *>*>(ptr)->at(i)); -} - -void QRoomVBoxLayoutWithTriggerSlot___children_setList(void* ptr, void* i) -{ - static_cast<QList<QObject *>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QRoomVBoxLayoutWithTriggerSlot___children_newList(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject *>; -} - -void* QRoomVBoxLayoutWithTriggerSlot_NewQRoomVBoxLayoutWithTriggerSlot() -{ - return new QRoomVBoxLayoutWithTriggerSlot(); -} - -void* QRoomVBoxLayoutWithTriggerSlot_NewQRoomVBoxLayoutWithTriggerSlot2(void* parent) -{ - return new QRoomVBoxLayoutWithTriggerSlot(static_cast<QWidget*>(parent)); -} - -void QRoomVBoxLayoutWithTriggerSlot_DestroyQRoomVBoxLayoutWithTriggerSlot(void* ptr) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->~QRoomVBoxLayoutWithTriggerSlot(); -} - -void* QRoomVBoxLayoutWithTriggerSlot_TakeAtDefault(void* ptr, int index) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::takeAt(index); -} - -void QRoomVBoxLayoutWithTriggerSlot_AddItemDefault(void* ptr, void* item) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::addItem(static_cast<QLayoutItem*>(item)); -} - -void QRoomVBoxLayoutWithTriggerSlot_InvalidateDefault(void* ptr) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::invalidate(); -} - -void QRoomVBoxLayoutWithTriggerSlot_SetGeometryDefault(void* ptr, void* r) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::setGeometry(*static_cast<QRect*>(r)); -} - -void* QRoomVBoxLayoutWithTriggerSlot_ItemAtDefault(void* ptr, int index) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::itemAt(index); -} - -void* QRoomVBoxLayoutWithTriggerSlot_MaximumSizeDefault(void* ptr) -{ - return ({ QSize tmpValue = static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::maximumSize(); new QSize(tmpValue.width(), tmpValue.height()); }); -} - -void* QRoomVBoxLayoutWithTriggerSlot_MinimumSizeDefault(void* ptr) -{ - return ({ QSize tmpValue = static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::minimumSize(); new QSize(tmpValue.width(), tmpValue.height()); }); -} - -void* QRoomVBoxLayoutWithTriggerSlot_SizeHintDefault(void* ptr) -{ - return ({ QSize tmpValue = static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::sizeHint(); new QSize(tmpValue.width(), tmpValue.height()); }); -} - -long long QRoomVBoxLayoutWithTriggerSlot_ExpandingDirectionsDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::expandingDirections(); -} - -char QRoomVBoxLayoutWithTriggerSlot_HasHeightForWidthDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::hasHeightForWidth(); -} - -int QRoomVBoxLayoutWithTriggerSlot_CountDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::count(); -} - -int QRoomVBoxLayoutWithTriggerSlot_HeightForWidthDefault(void* ptr, int w) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::heightForWidth(w); -} - -int QRoomVBoxLayoutWithTriggerSlot_MinimumHeightForWidthDefault(void* ptr, int w) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::minimumHeightForWidth(w); -} - -void* QRoomVBoxLayoutWithTriggerSlot_LayoutDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::layout(); -} - -void QRoomVBoxLayoutWithTriggerSlot_ChildEventDefault(void* ptr, void* e) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::childEvent(static_cast<QChildEvent*>(e)); -} - -void* QRoomVBoxLayoutWithTriggerSlot_GeometryDefault(void* ptr) -{ - return ({ QRect tmpValue = static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::geometry(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); -} - -long long QRoomVBoxLayoutWithTriggerSlot_ControlTypesDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::controlTypes(); -} - -char QRoomVBoxLayoutWithTriggerSlot_IsEmptyDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::isEmpty(); -} - -int QRoomVBoxLayoutWithTriggerSlot_IndexOfDefault(void* ptr, void* widget) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::indexOf(static_cast<QWidget*>(widget)); -} - -char QRoomVBoxLayoutWithTriggerSlot_EventDefault(void* ptr, void* e) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::event(static_cast<QEvent*>(e)); -} - -char QRoomVBoxLayoutWithTriggerSlot_EventFilterDefault(void* ptr, void* watched, void* event) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event)); -} - -void QRoomVBoxLayoutWithTriggerSlot_ConnectNotifyDefault(void* ptr, void* sign) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::connectNotify(*static_cast<QMetaMethod*>(sign)); -} - -void QRoomVBoxLayoutWithTriggerSlot_CustomEventDefault(void* ptr, void* event) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::customEvent(static_cast<QEvent*>(event)); -} - -void QRoomVBoxLayoutWithTriggerSlot_DeleteLaterDefault(void* ptr) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::deleteLater(); -} - -void QRoomVBoxLayoutWithTriggerSlot_DisconnectNotifyDefault(void* ptr, void* sign) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::disconnectNotify(*static_cast<QMetaMethod*>(sign)); -} - -void QRoomVBoxLayoutWithTriggerSlot_TimerEventDefault(void* ptr, void* event) -{ - static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::timerEvent(static_cast<QTimerEvent*>(event)); -} - - - -void* QRoomVBoxLayoutWithTriggerSlot_SpacerItemDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::spacerItem(); -} - -void* QRoomVBoxLayoutWithTriggerSlot_WidgetDefault(void* ptr) -{ - return static_cast<QRoomVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::widget(); -} - -void QVBoxLayoutWithTriggerSlot_TriggerMessage(void* ptr, struct Moc_PackedString messageBody, struct Moc_PackedString sender, long long timestamp) -{ - QMetaObject::invokeMethod(static_cast<QVBoxLayoutWithTriggerSlot*>(ptr), "TriggerMessage", Q_ARG(QString, QString::fromUtf8(messageBody.data, messageBody.len)), Q_ARG(QString, QString::fromUtf8(sender.data, sender.len)), Q_ARG(qint64, timestamp)); -} - -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType() -{ - return qRegisterMetaType<QVBoxLayoutWithTriggerSlot*>(); -} - -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType2(char* typeName) -{ - return qRegisterMetaType<QVBoxLayoutWithTriggerSlot*>(const_cast<const char*>(typeName)); -} - -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType() -{ -#ifdef QT_QML_LIB - return qmlRegisterType<QVBoxLayoutWithTriggerSlot>(); -#else - return 0; -#endif -} - -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType2(char* uri, int versionMajor, int versionMinor, char* qmlName) -{ -#ifdef QT_QML_LIB - return qmlRegisterType<QVBoxLayoutWithTriggerSlot>(const_cast<const char*>(uri), versionMajor, versionMinor, const_cast<const char*>(qmlName)); -#else - return 0; -#endif -} - -void* QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_atList(void* ptr, int i) -{ - return new QByteArray(static_cast<QList<QByteArray>*>(ptr)->at(i)); -} - -void QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_setList(void* ptr, void* i) -{ - static_cast<QList<QByteArray>*>(ptr)->append(*static_cast<QByteArray*>(i)); -} - -void* QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_newList(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QByteArray>; -} - -void* QVBoxLayoutWithTriggerSlot___findChildren_atList2(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject*>*>(ptr)->at(i)); -} - -void QVBoxLayoutWithTriggerSlot___findChildren_setList2(void* ptr, void* i) -{ - static_cast<QList<QObject*>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QVBoxLayoutWithTriggerSlot___findChildren_newList2(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject*>; -} - -void* QVBoxLayoutWithTriggerSlot___findChildren_atList3(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject*>*>(ptr)->at(i)); -} - -void QVBoxLayoutWithTriggerSlot___findChildren_setList3(void* ptr, void* i) -{ - static_cast<QList<QObject*>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QVBoxLayoutWithTriggerSlot___findChildren_newList3(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject*>; -} - -void* QVBoxLayoutWithTriggerSlot___findChildren_atList(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject*>*>(ptr)->at(i)); -} - -void QVBoxLayoutWithTriggerSlot___findChildren_setList(void* ptr, void* i) -{ - static_cast<QList<QObject*>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QVBoxLayoutWithTriggerSlot___findChildren_newList(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject*>; -} - -void* QVBoxLayoutWithTriggerSlot___children_atList(void* ptr, int i) -{ - return const_cast<QObject*>(static_cast<QList<QObject *>*>(ptr)->at(i)); -} - -void QVBoxLayoutWithTriggerSlot___children_setList(void* ptr, void* i) -{ - static_cast<QList<QObject *>*>(ptr)->append(static_cast<QObject*>(i)); -} - -void* QVBoxLayoutWithTriggerSlot___children_newList(void* ptr) -{ - Q_UNUSED(ptr); - return new QList<QObject *>; -} - -void* QVBoxLayoutWithTriggerSlot_NewQVBoxLayoutWithTriggerSlot() -{ - return new QVBoxLayoutWithTriggerSlot(); -} - -void* QVBoxLayoutWithTriggerSlot_NewQVBoxLayoutWithTriggerSlot2(void* parent) -{ - return new QVBoxLayoutWithTriggerSlot(static_cast<QWidget*>(parent)); -} - -void QVBoxLayoutWithTriggerSlot_DestroyQVBoxLayoutWithTriggerSlot(void* ptr) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->~QVBoxLayoutWithTriggerSlot(); -} - -void* QVBoxLayoutWithTriggerSlot_TakeAtDefault(void* ptr, int index) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::takeAt(index); -} - -void QVBoxLayoutWithTriggerSlot_AddItemDefault(void* ptr, void* item) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::addItem(static_cast<QLayoutItem*>(item)); -} - -void QVBoxLayoutWithTriggerSlot_InvalidateDefault(void* ptr) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::invalidate(); -} - -void QVBoxLayoutWithTriggerSlot_SetGeometryDefault(void* ptr, void* r) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::setGeometry(*static_cast<QRect*>(r)); -} - -void* QVBoxLayoutWithTriggerSlot_ItemAtDefault(void* ptr, int index) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::itemAt(index); -} - -void* QVBoxLayoutWithTriggerSlot_MaximumSizeDefault(void* ptr) -{ - return ({ QSize tmpValue = static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::maximumSize(); new QSize(tmpValue.width(), tmpValue.height()); }); -} - -void* QVBoxLayoutWithTriggerSlot_MinimumSizeDefault(void* ptr) -{ - return ({ QSize tmpValue = static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::minimumSize(); new QSize(tmpValue.width(), tmpValue.height()); }); -} - -void* QVBoxLayoutWithTriggerSlot_SizeHintDefault(void* ptr) -{ - return ({ QSize tmpValue = static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::sizeHint(); new QSize(tmpValue.width(), tmpValue.height()); }); -} - -long long QVBoxLayoutWithTriggerSlot_ExpandingDirectionsDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::expandingDirections(); -} - -char QVBoxLayoutWithTriggerSlot_HasHeightForWidthDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::hasHeightForWidth(); -} - -int QVBoxLayoutWithTriggerSlot_CountDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::count(); -} - -int QVBoxLayoutWithTriggerSlot_HeightForWidthDefault(void* ptr, int w) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::heightForWidth(w); -} - -int QVBoxLayoutWithTriggerSlot_MinimumHeightForWidthDefault(void* ptr, int w) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::minimumHeightForWidth(w); -} - -void* QVBoxLayoutWithTriggerSlot_LayoutDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::layout(); -} - -void QVBoxLayoutWithTriggerSlot_ChildEventDefault(void* ptr, void* e) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::childEvent(static_cast<QChildEvent*>(e)); -} - -void* QVBoxLayoutWithTriggerSlot_GeometryDefault(void* ptr) -{ - return ({ QRect tmpValue = static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::geometry(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); -} - -long long QVBoxLayoutWithTriggerSlot_ControlTypesDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::controlTypes(); -} - -char QVBoxLayoutWithTriggerSlot_IsEmptyDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::isEmpty(); -} - -int QVBoxLayoutWithTriggerSlot_IndexOfDefault(void* ptr, void* widget) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::indexOf(static_cast<QWidget*>(widget)); -} - -char QVBoxLayoutWithTriggerSlot_EventDefault(void* ptr, void* e) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::event(static_cast<QEvent*>(e)); -} - -char QVBoxLayoutWithTriggerSlot_EventFilterDefault(void* ptr, void* watched, void* event) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event)); -} - -void QVBoxLayoutWithTriggerSlot_ConnectNotifyDefault(void* ptr, void* sign) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::connectNotify(*static_cast<QMetaMethod*>(sign)); -} - -void QVBoxLayoutWithTriggerSlot_CustomEventDefault(void* ptr, void* event) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::customEvent(static_cast<QEvent*>(event)); -} - -void QVBoxLayoutWithTriggerSlot_DeleteLaterDefault(void* ptr) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::deleteLater(); -} - -void QVBoxLayoutWithTriggerSlot_DisconnectNotifyDefault(void* ptr, void* sign) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::disconnectNotify(*static_cast<QMetaMethod*>(sign)); -} - -void QVBoxLayoutWithTriggerSlot_TimerEventDefault(void* ptr, void* event) -{ - static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::timerEvent(static_cast<QTimerEvent*>(event)); -} - - - -void* QVBoxLayoutWithTriggerSlot_SpacerItemDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::spacerItem(); -} - -void* QVBoxLayoutWithTriggerSlot_WidgetDefault(void* ptr) -{ - return static_cast<QVBoxLayoutWithTriggerSlot*>(ptr)->QVBoxLayout::widget(); -} - -#include "moc_moc.h" diff --git a/ui/moc.go b/ui/moc.go @@ -1,1543 +0,0 @@ -package ui - -//#include <stdint.h> -//#include <stdlib.h> -//#include <string.h> -//#include "moc.h" -import "C" -import ( - "runtime" - "unsafe" - - "github.com/therecipe/qt" - std_core "github.com/therecipe/qt/core" - std_widgets "github.com/therecipe/qt/widgets" -) - -func cGoUnpackString(s C.struct_Moc_PackedString) string { - if len := int(s.len); len == -1 { - return C.GoString(s.data) - } - return C.GoStringN(s.data, C.int(s.len)) -} - -type QRoomVBoxLayoutWithTriggerSlot_ITF interface { - std_widgets.QVBoxLayout_ITF - QRoomVBoxLayoutWithTriggerSlot_PTR() *QRoomVBoxLayoutWithTriggerSlot -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) QRoomVBoxLayoutWithTriggerSlot_PTR() *QRoomVBoxLayoutWithTriggerSlot { - return ptr -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) Pointer() unsafe.Pointer { - if ptr != nil { - return ptr.QVBoxLayout_PTR().Pointer() - } - return nil -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) SetPointer(p unsafe.Pointer) { - if ptr != nil { - ptr.QVBoxLayout_PTR().SetPointer(p) - } -} - -func PointerFromQRoomVBoxLayoutWithTriggerSlot(ptr QRoomVBoxLayoutWithTriggerSlot_ITF) unsafe.Pointer { - if ptr != nil { - return ptr.QRoomVBoxLayoutWithTriggerSlot_PTR().Pointer() - } - return nil -} - -func NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr unsafe.Pointer) *QRoomVBoxLayoutWithTriggerSlot { - var n *QRoomVBoxLayoutWithTriggerSlot - if gPtr, ok := qt.Receive(ptr); !ok { - n = new(QRoomVBoxLayoutWithTriggerSlot) - n.SetPointer(ptr) - } else { - switch deduced := gPtr.(type) { - case *QRoomVBoxLayoutWithTriggerSlot: - n = deduced - - case *std_widgets.QVBoxLayout: - n = &QRoomVBoxLayoutWithTriggerSlot{QVBoxLayout: *deduced} - - default: - n = new(QRoomVBoxLayoutWithTriggerSlot) - n.SetPointer(ptr) - } - } - return n -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Constructor -func callbackQRoomVBoxLayoutWithTriggerSlot_Constructor(ptr unsafe.Pointer) { - gPtr := NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr) - qt.Register(ptr, gPtr) -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_TriggerRoom -func callbackQRoomVBoxLayoutWithTriggerSlot_TriggerRoom(ptr unsafe.Pointer, roomID C.struct_Moc_PackedString) { - if signal := qt.GetSignal(ptr, "TriggerRoom"); signal != nil { - signal.(func(string))(cGoUnpackString(roomID)) - } - -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) ConnectTriggerRoom(f func(roomID string)) { - if ptr.Pointer() != nil { - - if signal := qt.LendSignal(ptr.Pointer(), "TriggerRoom"); signal != nil { - qt.ConnectSignal(ptr.Pointer(), "TriggerRoom", func(roomID string) { - signal.(func(string))(roomID) - f(roomID) - }) - } else { - qt.ConnectSignal(ptr.Pointer(), "TriggerRoom", f) - } - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) DisconnectTriggerRoom() { - if ptr.Pointer() != nil { - - qt.DisconnectSignal(ptr.Pointer(), "TriggerRoom") - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) TriggerRoom(roomID string) { - if ptr.Pointer() != nil { - var roomIDC *C.char - if roomID != "" { - roomIDC = C.CString(roomID) - defer C.free(unsafe.Pointer(roomIDC)) - } - C.QRoomVBoxLayoutWithTriggerSlot_TriggerRoom(ptr.Pointer(), C.struct_Moc_PackedString{data: roomIDC, len: C.longlong(len(roomID))}) - } -} - -func QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType() int { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType())) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) QRegisterMetaType() int { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType())) -} - -func QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType2(typeName string) int { - var typeNameC *C.char - if typeName != "" { - typeNameC = C.CString(typeName) - defer C.free(unsafe.Pointer(typeNameC)) - } - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType2(typeNameC))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) QRegisterMetaType2(typeName string) int { - var typeNameC *C.char - if typeName != "" { - typeNameC = C.CString(typeName) - defer C.free(unsafe.Pointer(typeNameC)) - } - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType2(typeNameC))) -} - -func QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType() int { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType())) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) QmlRegisterType() int { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType())) -} - -func QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType2(uri string, versionMajor int, versionMinor int, qmlName string) int { - var uriC *C.char - if uri != "" { - uriC = C.CString(uri) - defer C.free(unsafe.Pointer(uriC)) - } - var qmlNameC *C.char - if qmlName != "" { - qmlNameC = C.CString(qmlName) - defer C.free(unsafe.Pointer(qmlNameC)) - } - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType2(uriC, C.int(int32(versionMajor)), C.int(int32(versionMinor)), qmlNameC))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) QmlRegisterType2(uri string, versionMajor int, versionMinor int, qmlName string) int { - var uriC *C.char - if uri != "" { - uriC = C.CString(uri) - defer C.free(unsafe.Pointer(uriC)) - } - var qmlNameC *C.char - if qmlName != "" { - qmlNameC = C.CString(qmlName) - defer C.free(unsafe.Pointer(qmlNameC)) - } - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType2(uriC, C.int(int32(versionMajor)), C.int(int32(versionMinor)), qmlNameC))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __dynamicPropertyNames_atList(i int) *std_core.QByteArray { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQByteArrayFromPointer(C.QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i)))) - runtime.SetFinalizer(tmpValue, (*std_core.QByteArray).DestroyQByteArray) - return tmpValue - } - return nil -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __dynamicPropertyNames_setList(i std_core.QByteArray_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_setList(ptr.Pointer(), std_core.PointerFromQByteArray(i)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __dynamicPropertyNames_newList() unsafe.Pointer { - return unsafe.Pointer(C.QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_newList(ptr.Pointer())) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_atList2(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QRoomVBoxLayoutWithTriggerSlot___findChildren_atList2(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_setList2(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot___findChildren_setList2(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_newList2() unsafe.Pointer { - return unsafe.Pointer(C.QRoomVBoxLayoutWithTriggerSlot___findChildren_newList2(ptr.Pointer())) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_atList3(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QRoomVBoxLayoutWithTriggerSlot___findChildren_atList3(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_setList3(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot___findChildren_setList3(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_newList3() unsafe.Pointer { - return unsafe.Pointer(C.QRoomVBoxLayoutWithTriggerSlot___findChildren_newList3(ptr.Pointer())) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_atList(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QRoomVBoxLayoutWithTriggerSlot___findChildren_atList(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_setList(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot___findChildren_setList(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __findChildren_newList() unsafe.Pointer { - return unsafe.Pointer(C.QRoomVBoxLayoutWithTriggerSlot___findChildren_newList(ptr.Pointer())) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __children_atList(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QRoomVBoxLayoutWithTriggerSlot___children_atList(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __children_setList(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot___children_setList(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) __children_newList() unsafe.Pointer { - return unsafe.Pointer(C.QRoomVBoxLayoutWithTriggerSlot___children_newList(ptr.Pointer())) -} - -func NewQRoomVBoxLayoutWithTriggerSlot() *QRoomVBoxLayoutWithTriggerSlot { - var tmpValue = NewQRoomVBoxLayoutWithTriggerSlotFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_NewQRoomVBoxLayoutWithTriggerSlot()) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue -} - -func NewQRoomVBoxLayoutWithTriggerSlot2(parent std_widgets.QWidget_ITF) *QRoomVBoxLayoutWithTriggerSlot { - var tmpValue = NewQRoomVBoxLayoutWithTriggerSlotFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_NewQRoomVBoxLayoutWithTriggerSlot2(std_widgets.PointerFromQWidget(parent))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) DestroyQRoomVBoxLayoutWithTriggerSlot() { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_DestroyQRoomVBoxLayoutWithTriggerSlot(ptr.Pointer()) - ptr.SetPointer(nil) - runtime.SetFinalizer(ptr, nil) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_TakeAt -func callbackQRoomVBoxLayoutWithTriggerSlot_TakeAt(ptr unsafe.Pointer, index C.int) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "takeAt"); signal != nil { - return std_widgets.PointerFromQLayoutItem(signal.(func(int) *std_widgets.QLayoutItem)(int(int32(index)))) - } - - return std_widgets.PointerFromQLayoutItem(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).TakeAtDefault(int(int32(index)))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) TakeAtDefault(index int) *std_widgets.QLayoutItem { - if ptr.Pointer() != nil { - return std_widgets.NewQLayoutItemFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_TakeAtDefault(ptr.Pointer(), C.int(int32(index)))) - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_AddItem -func callbackQRoomVBoxLayoutWithTriggerSlot_AddItem(ptr unsafe.Pointer, item unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "addItem"); signal != nil { - signal.(func(*std_widgets.QLayoutItem))(std_widgets.NewQLayoutItemFromPointer(item)) - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).AddItemDefault(std_widgets.NewQLayoutItemFromPointer(item)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) AddItemDefault(item std_widgets.QLayoutItem_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_AddItemDefault(ptr.Pointer(), std_widgets.PointerFromQLayoutItem(item)) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Invalidate -func callbackQRoomVBoxLayoutWithTriggerSlot_Invalidate(ptr unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "invalidate"); signal != nil { - signal.(func())() - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).InvalidateDefault() - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) InvalidateDefault() { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_InvalidateDefault(ptr.Pointer()) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_SetGeometry -func callbackQRoomVBoxLayoutWithTriggerSlot_SetGeometry(ptr unsafe.Pointer, r unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "setGeometry"); signal != nil { - signal.(func(*std_core.QRect))(std_core.NewQRectFromPointer(r)) - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).SetGeometryDefault(std_core.NewQRectFromPointer(r)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) SetGeometryDefault(r std_core.QRect_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_SetGeometryDefault(ptr.Pointer(), std_core.PointerFromQRect(r)) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_ItemAt -func callbackQRoomVBoxLayoutWithTriggerSlot_ItemAt(ptr unsafe.Pointer, index C.int) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "itemAt"); signal != nil { - return std_widgets.PointerFromQLayoutItem(signal.(func(int) *std_widgets.QLayoutItem)(int(int32(index)))) - } - - return std_widgets.PointerFromQLayoutItem(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).ItemAtDefault(int(int32(index)))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) ItemAtDefault(index int) *std_widgets.QLayoutItem { - if ptr.Pointer() != nil { - return std_widgets.NewQLayoutItemFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_ItemAtDefault(ptr.Pointer(), C.int(int32(index)))) - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_MaximumSize -func callbackQRoomVBoxLayoutWithTriggerSlot_MaximumSize(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "maximumSize"); signal != nil { - return std_core.PointerFromQSize(signal.(func() *std_core.QSize)()) - } - - return std_core.PointerFromQSize(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).MaximumSizeDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) MaximumSizeDefault() *std_core.QSize { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQSizeFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_MaximumSizeDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QSize).DestroyQSize) - return tmpValue - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_MinimumSize -func callbackQRoomVBoxLayoutWithTriggerSlot_MinimumSize(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "minimumSize"); signal != nil { - return std_core.PointerFromQSize(signal.(func() *std_core.QSize)()) - } - - return std_core.PointerFromQSize(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).MinimumSizeDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) MinimumSizeDefault() *std_core.QSize { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQSizeFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_MinimumSizeDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QSize).DestroyQSize) - return tmpValue - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_SizeHint -func callbackQRoomVBoxLayoutWithTriggerSlot_SizeHint(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "sizeHint"); signal != nil { - return std_core.PointerFromQSize(signal.(func() *std_core.QSize)()) - } - - return std_core.PointerFromQSize(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).SizeHintDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) SizeHintDefault() *std_core.QSize { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQSizeFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_SizeHintDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QSize).DestroyQSize) - return tmpValue - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_ExpandingDirections -func callbackQRoomVBoxLayoutWithTriggerSlot_ExpandingDirections(ptr unsafe.Pointer) C.longlong { - if signal := qt.GetSignal(ptr, "expandingDirections"); signal != nil { - return C.longlong(signal.(func() std_core.Qt__Orientation)()) - } - - return C.longlong(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).ExpandingDirectionsDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) ExpandingDirectionsDefault() std_core.Qt__Orientation { - if ptr.Pointer() != nil { - return std_core.Qt__Orientation(C.QRoomVBoxLayoutWithTriggerSlot_ExpandingDirectionsDefault(ptr.Pointer())) - } - return 0 -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_HasHeightForWidth -func callbackQRoomVBoxLayoutWithTriggerSlot_HasHeightForWidth(ptr unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "hasHeightForWidth"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func() bool)()))) - } - - return C.char(int8(qt.GoBoolToInt(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).HasHeightForWidthDefault()))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) HasHeightForWidthDefault() bool { - if ptr.Pointer() != nil { - return C.QRoomVBoxLayoutWithTriggerSlot_HasHeightForWidthDefault(ptr.Pointer()) != 0 - } - return false -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Count -func callbackQRoomVBoxLayoutWithTriggerSlot_Count(ptr unsafe.Pointer) C.int { - if signal := qt.GetSignal(ptr, "count"); signal != nil { - return C.int(int32(signal.(func() int)())) - } - - return C.int(int32(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).CountDefault())) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) CountDefault() int { - if ptr.Pointer() != nil { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_CountDefault(ptr.Pointer()))) - } - return 0 -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_HeightForWidth -func callbackQRoomVBoxLayoutWithTriggerSlot_HeightForWidth(ptr unsafe.Pointer, w C.int) C.int { - if signal := qt.GetSignal(ptr, "heightForWidth"); signal != nil { - return C.int(int32(signal.(func(int) int)(int(int32(w))))) - } - - return C.int(int32(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).HeightForWidthDefault(int(int32(w))))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) HeightForWidthDefault(w int) int { - if ptr.Pointer() != nil { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_HeightForWidthDefault(ptr.Pointer(), C.int(int32(w))))) - } - return 0 -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_MinimumHeightForWidth -func callbackQRoomVBoxLayoutWithTriggerSlot_MinimumHeightForWidth(ptr unsafe.Pointer, w C.int) C.int { - if signal := qt.GetSignal(ptr, "minimumHeightForWidth"); signal != nil { - return C.int(int32(signal.(func(int) int)(int(int32(w))))) - } - - return C.int(int32(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).MinimumHeightForWidthDefault(int(int32(w))))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) MinimumHeightForWidthDefault(w int) int { - if ptr.Pointer() != nil { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_MinimumHeightForWidthDefault(ptr.Pointer(), C.int(int32(w))))) - } - return 0 -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Layout -func callbackQRoomVBoxLayoutWithTriggerSlot_Layout(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "layout"); signal != nil { - return std_widgets.PointerFromQLayout(signal.(func() *std_widgets.QLayout)()) - } - - return std_widgets.PointerFromQLayout(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).LayoutDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) LayoutDefault() *std_widgets.QLayout { - if ptr.Pointer() != nil { - var tmpValue = std_widgets.NewQLayoutFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_LayoutDefault(ptr.Pointer())) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_ChildEvent -func callbackQRoomVBoxLayoutWithTriggerSlot_ChildEvent(ptr unsafe.Pointer, e unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "childEvent"); signal != nil { - signal.(func(*std_core.QChildEvent))(std_core.NewQChildEventFromPointer(e)) - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).ChildEventDefault(std_core.NewQChildEventFromPointer(e)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) ChildEventDefault(e std_core.QChildEvent_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_ChildEventDefault(ptr.Pointer(), std_core.PointerFromQChildEvent(e)) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Geometry -func callbackQRoomVBoxLayoutWithTriggerSlot_Geometry(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "geometry"); signal != nil { - return std_core.PointerFromQRect(signal.(func() *std_core.QRect)()) - } - - return std_core.PointerFromQRect(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).GeometryDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) GeometryDefault() *std_core.QRect { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQRectFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_GeometryDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QRect).DestroyQRect) - return tmpValue - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_ControlTypes -func callbackQRoomVBoxLayoutWithTriggerSlot_ControlTypes(ptr unsafe.Pointer) C.longlong { - if signal := qt.GetSignal(ptr, "controlTypes"); signal != nil { - return C.longlong(signal.(func() std_widgets.QSizePolicy__ControlType)()) - } - - return C.longlong(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).ControlTypesDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) ControlTypesDefault() std_widgets.QSizePolicy__ControlType { - if ptr.Pointer() != nil { - return std_widgets.QSizePolicy__ControlType(C.QRoomVBoxLayoutWithTriggerSlot_ControlTypesDefault(ptr.Pointer())) - } - return 0 -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_IsEmpty -func callbackQRoomVBoxLayoutWithTriggerSlot_IsEmpty(ptr unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "isEmpty"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func() bool)()))) - } - - return C.char(int8(qt.GoBoolToInt(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).IsEmptyDefault()))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) IsEmptyDefault() bool { - if ptr.Pointer() != nil { - return C.QRoomVBoxLayoutWithTriggerSlot_IsEmptyDefault(ptr.Pointer()) != 0 - } - return false -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_IndexOf -func callbackQRoomVBoxLayoutWithTriggerSlot_IndexOf(ptr unsafe.Pointer, widget unsafe.Pointer) C.int { - if signal := qt.GetSignal(ptr, "indexOf"); signal != nil { - return C.int(int32(signal.(func(*std_widgets.QWidget) int)(std_widgets.NewQWidgetFromPointer(widget)))) - } - - return C.int(int32(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).IndexOfDefault(std_widgets.NewQWidgetFromPointer(widget)))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) IndexOfDefault(widget std_widgets.QWidget_ITF) int { - if ptr.Pointer() != nil { - return int(int32(C.QRoomVBoxLayoutWithTriggerSlot_IndexOfDefault(ptr.Pointer(), std_widgets.PointerFromQWidget(widget)))) - } - return 0 -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Event -func callbackQRoomVBoxLayoutWithTriggerSlot_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "event"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func(*std_core.QEvent) bool)(std_core.NewQEventFromPointer(e))))) - } - - return C.char(int8(qt.GoBoolToInt(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).EventDefault(std_core.NewQEventFromPointer(e))))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) EventDefault(e std_core.QEvent_ITF) bool { - if ptr.Pointer() != nil { - return C.QRoomVBoxLayoutWithTriggerSlot_EventDefault(ptr.Pointer(), std_core.PointerFromQEvent(e)) != 0 - } - return false -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_EventFilter -func callbackQRoomVBoxLayoutWithTriggerSlot_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "eventFilter"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func(*std_core.QObject, *std_core.QEvent) bool)(std_core.NewQObjectFromPointer(watched), std_core.NewQEventFromPointer(event))))) - } - - return C.char(int8(qt.GoBoolToInt(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).EventFilterDefault(std_core.NewQObjectFromPointer(watched), std_core.NewQEventFromPointer(event))))) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) EventFilterDefault(watched std_core.QObject_ITF, event std_core.QEvent_ITF) bool { - if ptr.Pointer() != nil { - return C.QRoomVBoxLayoutWithTriggerSlot_EventFilterDefault(ptr.Pointer(), std_core.PointerFromQObject(watched), std_core.PointerFromQEvent(event)) != 0 - } - return false -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_ConnectNotify -func callbackQRoomVBoxLayoutWithTriggerSlot_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "connectNotify"); signal != nil { - signal.(func(*std_core.QMetaMethod))(std_core.NewQMetaMethodFromPointer(sign)) - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).ConnectNotifyDefault(std_core.NewQMetaMethodFromPointer(sign)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) ConnectNotifyDefault(sign std_core.QMetaMethod_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_ConnectNotifyDefault(ptr.Pointer(), std_core.PointerFromQMetaMethod(sign)) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_CustomEvent -func callbackQRoomVBoxLayoutWithTriggerSlot_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "customEvent"); signal != nil { - signal.(func(*std_core.QEvent))(std_core.NewQEventFromPointer(event)) - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).CustomEventDefault(std_core.NewQEventFromPointer(event)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) CustomEventDefault(event std_core.QEvent_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_CustomEventDefault(ptr.Pointer(), std_core.PointerFromQEvent(event)) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_DeleteLater -func callbackQRoomVBoxLayoutWithTriggerSlot_DeleteLater(ptr unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "deleteLater"); signal != nil { - signal.(func())() - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).DeleteLaterDefault() - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) DeleteLaterDefault() { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_DeleteLaterDefault(ptr.Pointer()) - ptr.SetPointer(nil) - runtime.SetFinalizer(ptr, nil) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Destroyed -func callbackQRoomVBoxLayoutWithTriggerSlot_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "destroyed"); signal != nil { - signal.(func(*std_core.QObject))(std_core.NewQObjectFromPointer(obj)) - } - -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_DisconnectNotify -func callbackQRoomVBoxLayoutWithTriggerSlot_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "disconnectNotify"); signal != nil { - signal.(func(*std_core.QMetaMethod))(std_core.NewQMetaMethodFromPointer(sign)) - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).DisconnectNotifyDefault(std_core.NewQMetaMethodFromPointer(sign)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) DisconnectNotifyDefault(sign std_core.QMetaMethod_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_DisconnectNotifyDefault(ptr.Pointer(), std_core.PointerFromQMetaMethod(sign)) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_ObjectNameChanged -func callbackQRoomVBoxLayoutWithTriggerSlot_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_Moc_PackedString) { - if signal := qt.GetSignal(ptr, "objectNameChanged"); signal != nil { - signal.(func(string))(cGoUnpackString(objectName)) - } - -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_TimerEvent -func callbackQRoomVBoxLayoutWithTriggerSlot_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "timerEvent"); signal != nil { - signal.(func(*std_core.QTimerEvent))(std_core.NewQTimerEventFromPointer(event)) - } else { - NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).TimerEventDefault(std_core.NewQTimerEventFromPointer(event)) - } -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) TimerEventDefault(event std_core.QTimerEvent_ITF) { - if ptr.Pointer() != nil { - C.QRoomVBoxLayoutWithTriggerSlot_TimerEventDefault(ptr.Pointer(), std_core.PointerFromQTimerEvent(event)) - } -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_SpacerItem -func callbackQRoomVBoxLayoutWithTriggerSlot_SpacerItem(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "spacerItem"); signal != nil { - return std_widgets.PointerFromQSpacerItem(signal.(func() *std_widgets.QSpacerItem)()) - } - - return std_widgets.PointerFromQSpacerItem(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).SpacerItemDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) SpacerItemDefault() *std_widgets.QSpacerItem { - if ptr.Pointer() != nil { - return std_widgets.NewQSpacerItemFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_SpacerItemDefault(ptr.Pointer())) - } - return nil -} - -//export callbackQRoomVBoxLayoutWithTriggerSlot_Widget -func callbackQRoomVBoxLayoutWithTriggerSlot_Widget(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "widget"); signal != nil { - return std_widgets.PointerFromQWidget(signal.(func() *std_widgets.QWidget)()) - } - - return std_widgets.PointerFromQWidget(NewQRoomVBoxLayoutWithTriggerSlotFromPointer(ptr).WidgetDefault()) -} - -func (ptr *QRoomVBoxLayoutWithTriggerSlot) WidgetDefault() *std_widgets.QWidget { - if ptr.Pointer() != nil { - var tmpValue = std_widgets.NewQWidgetFromPointer(C.QRoomVBoxLayoutWithTriggerSlot_WidgetDefault(ptr.Pointer())) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -type QVBoxLayoutWithTriggerSlot_ITF interface { - std_widgets.QVBoxLayout_ITF - QVBoxLayoutWithTriggerSlot_PTR() *QVBoxLayoutWithTriggerSlot -} - -func (ptr *QVBoxLayoutWithTriggerSlot) QVBoxLayoutWithTriggerSlot_PTR() *QVBoxLayoutWithTriggerSlot { - return ptr -} - -func (ptr *QVBoxLayoutWithTriggerSlot) Pointer() unsafe.Pointer { - if ptr != nil { - return ptr.QVBoxLayout_PTR().Pointer() - } - return nil -} - -func (ptr *QVBoxLayoutWithTriggerSlot) SetPointer(p unsafe.Pointer) { - if ptr != nil { - ptr.QVBoxLayout_PTR().SetPointer(p) - } -} - -func PointerFromQVBoxLayoutWithTriggerSlot(ptr QVBoxLayoutWithTriggerSlot_ITF) unsafe.Pointer { - if ptr != nil { - return ptr.QVBoxLayoutWithTriggerSlot_PTR().Pointer() - } - return nil -} - -func NewQVBoxLayoutWithTriggerSlotFromPointer(ptr unsafe.Pointer) *QVBoxLayoutWithTriggerSlot { - var n *QVBoxLayoutWithTriggerSlot - if gPtr, ok := qt.Receive(ptr); !ok { - n = new(QVBoxLayoutWithTriggerSlot) - n.SetPointer(ptr) - } else { - switch deduced := gPtr.(type) { - case *QVBoxLayoutWithTriggerSlot: - n = deduced - - case *std_widgets.QVBoxLayout: - n = &QVBoxLayoutWithTriggerSlot{QVBoxLayout: *deduced} - - default: - n = new(QVBoxLayoutWithTriggerSlot) - n.SetPointer(ptr) - } - } - return n -} - -//export callbackQVBoxLayoutWithTriggerSlot_Constructor -func callbackQVBoxLayoutWithTriggerSlot_Constructor(ptr unsafe.Pointer) { - gPtr := NewQVBoxLayoutWithTriggerSlotFromPointer(ptr) - qt.Register(ptr, gPtr) -} - -//export callbackQVBoxLayoutWithTriggerSlot_TriggerMessage -func callbackQVBoxLayoutWithTriggerSlot_TriggerMessage(ptr unsafe.Pointer, messageBody C.struct_Moc_PackedString, sender C.struct_Moc_PackedString, timestamp C.longlong) { - if signal := qt.GetSignal(ptr, "TriggerMessage"); signal != nil { - signal.(func(string, string, int64))(cGoUnpackString(messageBody), cGoUnpackString(sender), int64(timestamp)) - } - -} - -func (ptr *QVBoxLayoutWithTriggerSlot) ConnectTriggerMessage(f func(messageBody string, sender string, timestamp int64)) { - if ptr.Pointer() != nil { - - if signal := qt.LendSignal(ptr.Pointer(), "TriggerMessage"); signal != nil { - qt.ConnectSignal(ptr.Pointer(), "TriggerMessage", func(messageBody string, sender string, timestamp int64) { - signal.(func(string, string, int64))(messageBody, sender, timestamp) - f(messageBody, sender, timestamp) - }) - } else { - qt.ConnectSignal(ptr.Pointer(), "TriggerMessage", f) - } - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) DisconnectTriggerMessage() { - if ptr.Pointer() != nil { - - qt.DisconnectSignal(ptr.Pointer(), "TriggerMessage") - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) TriggerMessage(messageBody string, sender string, timestamp int64) { - if ptr.Pointer() != nil { - var messageBodyC *C.char - if messageBody != "" { - messageBodyC = C.CString(messageBody) - defer C.free(unsafe.Pointer(messageBodyC)) - } - var senderC *C.char - if sender != "" { - senderC = C.CString(sender) - defer C.free(unsafe.Pointer(senderC)) - } - C.QVBoxLayoutWithTriggerSlot_TriggerMessage(ptr.Pointer(), C.struct_Moc_PackedString{data: messageBodyC, len: C.longlong(len(messageBody))}, C.struct_Moc_PackedString{data: senderC, len: C.longlong(len(sender))}, C.longlong(timestamp)) - } -} - -func QVBoxLayoutWithTriggerSlot_QRegisterMetaType() int { - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType())) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) QRegisterMetaType() int { - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType())) -} - -func QVBoxLayoutWithTriggerSlot_QRegisterMetaType2(typeName string) int { - var typeNameC *C.char - if typeName != "" { - typeNameC = C.CString(typeName) - defer C.free(unsafe.Pointer(typeNameC)) - } - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType2(typeNameC))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) QRegisterMetaType2(typeName string) int { - var typeNameC *C.char - if typeName != "" { - typeNameC = C.CString(typeName) - defer C.free(unsafe.Pointer(typeNameC)) - } - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType2(typeNameC))) -} - -func QVBoxLayoutWithTriggerSlot_QmlRegisterType() int { - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType())) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) QmlRegisterType() int { - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType())) -} - -func QVBoxLayoutWithTriggerSlot_QmlRegisterType2(uri string, versionMajor int, versionMinor int, qmlName string) int { - var uriC *C.char - if uri != "" { - uriC = C.CString(uri) - defer C.free(unsafe.Pointer(uriC)) - } - var qmlNameC *C.char - if qmlName != "" { - qmlNameC = C.CString(qmlName) - defer C.free(unsafe.Pointer(qmlNameC)) - } - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType2(uriC, C.int(int32(versionMajor)), C.int(int32(versionMinor)), qmlNameC))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) QmlRegisterType2(uri string, versionMajor int, versionMinor int, qmlName string) int { - var uriC *C.char - if uri != "" { - uriC = C.CString(uri) - defer C.free(unsafe.Pointer(uriC)) - } - var qmlNameC *C.char - if qmlName != "" { - qmlNameC = C.CString(qmlName) - defer C.free(unsafe.Pointer(qmlNameC)) - } - return int(int32(C.QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType2(uriC, C.int(int32(versionMajor)), C.int(int32(versionMinor)), qmlNameC))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __dynamicPropertyNames_atList(i int) *std_core.QByteArray { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQByteArrayFromPointer(C.QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i)))) - runtime.SetFinalizer(tmpValue, (*std_core.QByteArray).DestroyQByteArray) - return tmpValue - } - return nil -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __dynamicPropertyNames_setList(i std_core.QByteArray_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_setList(ptr.Pointer(), std_core.PointerFromQByteArray(i)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __dynamicPropertyNames_newList() unsafe.Pointer { - return unsafe.Pointer(C.QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_newList(ptr.Pointer())) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_atList2(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QVBoxLayoutWithTriggerSlot___findChildren_atList2(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_setList2(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot___findChildren_setList2(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_newList2() unsafe.Pointer { - return unsafe.Pointer(C.QVBoxLayoutWithTriggerSlot___findChildren_newList2(ptr.Pointer())) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_atList3(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QVBoxLayoutWithTriggerSlot___findChildren_atList3(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_setList3(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot___findChildren_setList3(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_newList3() unsafe.Pointer { - return unsafe.Pointer(C.QVBoxLayoutWithTriggerSlot___findChildren_newList3(ptr.Pointer())) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_atList(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QVBoxLayoutWithTriggerSlot___findChildren_atList(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_setList(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot___findChildren_setList(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __findChildren_newList() unsafe.Pointer { - return unsafe.Pointer(C.QVBoxLayoutWithTriggerSlot___findChildren_newList(ptr.Pointer())) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __children_atList(i int) *std_core.QObject { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQObjectFromPointer(C.QVBoxLayoutWithTriggerSlot___children_atList(ptr.Pointer(), C.int(int32(i)))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __children_setList(i std_core.QObject_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot___children_setList(ptr.Pointer(), std_core.PointerFromQObject(i)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) __children_newList() unsafe.Pointer { - return unsafe.Pointer(C.QVBoxLayoutWithTriggerSlot___children_newList(ptr.Pointer())) -} - -func NewQVBoxLayoutWithTriggerSlot() *QVBoxLayoutWithTriggerSlot { - var tmpValue = NewQVBoxLayoutWithTriggerSlotFromPointer(C.QVBoxLayoutWithTriggerSlot_NewQVBoxLayoutWithTriggerSlot()) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue -} - -func NewQVBoxLayoutWithTriggerSlot2(parent std_widgets.QWidget_ITF) *QVBoxLayoutWithTriggerSlot { - var tmpValue = NewQVBoxLayoutWithTriggerSlotFromPointer(C.QVBoxLayoutWithTriggerSlot_NewQVBoxLayoutWithTriggerSlot2(std_widgets.PointerFromQWidget(parent))) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue -} - -func (ptr *QVBoxLayoutWithTriggerSlot) DestroyQVBoxLayoutWithTriggerSlot() { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_DestroyQVBoxLayoutWithTriggerSlot(ptr.Pointer()) - ptr.SetPointer(nil) - runtime.SetFinalizer(ptr, nil) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_TakeAt -func callbackQVBoxLayoutWithTriggerSlot_TakeAt(ptr unsafe.Pointer, index C.int) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "takeAt"); signal != nil { - return std_widgets.PointerFromQLayoutItem(signal.(func(int) *std_widgets.QLayoutItem)(int(int32(index)))) - } - - return std_widgets.PointerFromQLayoutItem(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).TakeAtDefault(int(int32(index)))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) TakeAtDefault(index int) *std_widgets.QLayoutItem { - if ptr.Pointer() != nil { - return std_widgets.NewQLayoutItemFromPointer(C.QVBoxLayoutWithTriggerSlot_TakeAtDefault(ptr.Pointer(), C.int(int32(index)))) - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_AddItem -func callbackQVBoxLayoutWithTriggerSlot_AddItem(ptr unsafe.Pointer, item unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "addItem"); signal != nil { - signal.(func(*std_widgets.QLayoutItem))(std_widgets.NewQLayoutItemFromPointer(item)) - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).AddItemDefault(std_widgets.NewQLayoutItemFromPointer(item)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) AddItemDefault(item std_widgets.QLayoutItem_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_AddItemDefault(ptr.Pointer(), std_widgets.PointerFromQLayoutItem(item)) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_Invalidate -func callbackQVBoxLayoutWithTriggerSlot_Invalidate(ptr unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "invalidate"); signal != nil { - signal.(func())() - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).InvalidateDefault() - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) InvalidateDefault() { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_InvalidateDefault(ptr.Pointer()) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_SetGeometry -func callbackQVBoxLayoutWithTriggerSlot_SetGeometry(ptr unsafe.Pointer, r unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "setGeometry"); signal != nil { - signal.(func(*std_core.QRect))(std_core.NewQRectFromPointer(r)) - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).SetGeometryDefault(std_core.NewQRectFromPointer(r)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) SetGeometryDefault(r std_core.QRect_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_SetGeometryDefault(ptr.Pointer(), std_core.PointerFromQRect(r)) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_ItemAt -func callbackQVBoxLayoutWithTriggerSlot_ItemAt(ptr unsafe.Pointer, index C.int) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "itemAt"); signal != nil { - return std_widgets.PointerFromQLayoutItem(signal.(func(int) *std_widgets.QLayoutItem)(int(int32(index)))) - } - - return std_widgets.PointerFromQLayoutItem(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).ItemAtDefault(int(int32(index)))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) ItemAtDefault(index int) *std_widgets.QLayoutItem { - if ptr.Pointer() != nil { - return std_widgets.NewQLayoutItemFromPointer(C.QVBoxLayoutWithTriggerSlot_ItemAtDefault(ptr.Pointer(), C.int(int32(index)))) - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_MaximumSize -func callbackQVBoxLayoutWithTriggerSlot_MaximumSize(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "maximumSize"); signal != nil { - return std_core.PointerFromQSize(signal.(func() *std_core.QSize)()) - } - - return std_core.PointerFromQSize(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).MaximumSizeDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) MaximumSizeDefault() *std_core.QSize { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQSizeFromPointer(C.QVBoxLayoutWithTriggerSlot_MaximumSizeDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QSize).DestroyQSize) - return tmpValue - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_MinimumSize -func callbackQVBoxLayoutWithTriggerSlot_MinimumSize(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "minimumSize"); signal != nil { - return std_core.PointerFromQSize(signal.(func() *std_core.QSize)()) - } - - return std_core.PointerFromQSize(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).MinimumSizeDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) MinimumSizeDefault() *std_core.QSize { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQSizeFromPointer(C.QVBoxLayoutWithTriggerSlot_MinimumSizeDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QSize).DestroyQSize) - return tmpValue - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_SizeHint -func callbackQVBoxLayoutWithTriggerSlot_SizeHint(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "sizeHint"); signal != nil { - return std_core.PointerFromQSize(signal.(func() *std_core.QSize)()) - } - - return std_core.PointerFromQSize(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).SizeHintDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) SizeHintDefault() *std_core.QSize { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQSizeFromPointer(C.QVBoxLayoutWithTriggerSlot_SizeHintDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QSize).DestroyQSize) - return tmpValue - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_ExpandingDirections -func callbackQVBoxLayoutWithTriggerSlot_ExpandingDirections(ptr unsafe.Pointer) C.longlong { - if signal := qt.GetSignal(ptr, "expandingDirections"); signal != nil { - return C.longlong(signal.(func() std_core.Qt__Orientation)()) - } - - return C.longlong(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).ExpandingDirectionsDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) ExpandingDirectionsDefault() std_core.Qt__Orientation { - if ptr.Pointer() != nil { - return std_core.Qt__Orientation(C.QVBoxLayoutWithTriggerSlot_ExpandingDirectionsDefault(ptr.Pointer())) - } - return 0 -} - -//export callbackQVBoxLayoutWithTriggerSlot_HasHeightForWidth -func callbackQVBoxLayoutWithTriggerSlot_HasHeightForWidth(ptr unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "hasHeightForWidth"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func() bool)()))) - } - - return C.char(int8(qt.GoBoolToInt(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).HasHeightForWidthDefault()))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) HasHeightForWidthDefault() bool { - if ptr.Pointer() != nil { - return C.QVBoxLayoutWithTriggerSlot_HasHeightForWidthDefault(ptr.Pointer()) != 0 - } - return false -} - -//export callbackQVBoxLayoutWithTriggerSlot_Count -func callbackQVBoxLayoutWithTriggerSlot_Count(ptr unsafe.Pointer) C.int { - if signal := qt.GetSignal(ptr, "count"); signal != nil { - return C.int(int32(signal.(func() int)())) - } - - return C.int(int32(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).CountDefault())) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) CountDefault() int { - if ptr.Pointer() != nil { - return int(int32(C.QVBoxLayoutWithTriggerSlot_CountDefault(ptr.Pointer()))) - } - return 0 -} - -//export callbackQVBoxLayoutWithTriggerSlot_HeightForWidth -func callbackQVBoxLayoutWithTriggerSlot_HeightForWidth(ptr unsafe.Pointer, w C.int) C.int { - if signal := qt.GetSignal(ptr, "heightForWidth"); signal != nil { - return C.int(int32(signal.(func(int) int)(int(int32(w))))) - } - - return C.int(int32(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).HeightForWidthDefault(int(int32(w))))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) HeightForWidthDefault(w int) int { - if ptr.Pointer() != nil { - return int(int32(C.QVBoxLayoutWithTriggerSlot_HeightForWidthDefault(ptr.Pointer(), C.int(int32(w))))) - } - return 0 -} - -//export callbackQVBoxLayoutWithTriggerSlot_MinimumHeightForWidth -func callbackQVBoxLayoutWithTriggerSlot_MinimumHeightForWidth(ptr unsafe.Pointer, w C.int) C.int { - if signal := qt.GetSignal(ptr, "minimumHeightForWidth"); signal != nil { - return C.int(int32(signal.(func(int) int)(int(int32(w))))) - } - - return C.int(int32(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).MinimumHeightForWidthDefault(int(int32(w))))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) MinimumHeightForWidthDefault(w int) int { - if ptr.Pointer() != nil { - return int(int32(C.QVBoxLayoutWithTriggerSlot_MinimumHeightForWidthDefault(ptr.Pointer(), C.int(int32(w))))) - } - return 0 -} - -//export callbackQVBoxLayoutWithTriggerSlot_Layout -func callbackQVBoxLayoutWithTriggerSlot_Layout(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "layout"); signal != nil { - return std_widgets.PointerFromQLayout(signal.(func() *std_widgets.QLayout)()) - } - - return std_widgets.PointerFromQLayout(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).LayoutDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) LayoutDefault() *std_widgets.QLayout { - if ptr.Pointer() != nil { - var tmpValue = std_widgets.NewQLayoutFromPointer(C.QVBoxLayoutWithTriggerSlot_LayoutDefault(ptr.Pointer())) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_ChildEvent -func callbackQVBoxLayoutWithTriggerSlot_ChildEvent(ptr unsafe.Pointer, e unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "childEvent"); signal != nil { - signal.(func(*std_core.QChildEvent))(std_core.NewQChildEventFromPointer(e)) - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).ChildEventDefault(std_core.NewQChildEventFromPointer(e)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) ChildEventDefault(e std_core.QChildEvent_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_ChildEventDefault(ptr.Pointer(), std_core.PointerFromQChildEvent(e)) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_Geometry -func callbackQVBoxLayoutWithTriggerSlot_Geometry(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "geometry"); signal != nil { - return std_core.PointerFromQRect(signal.(func() *std_core.QRect)()) - } - - return std_core.PointerFromQRect(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).GeometryDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) GeometryDefault() *std_core.QRect { - if ptr.Pointer() != nil { - var tmpValue = std_core.NewQRectFromPointer(C.QVBoxLayoutWithTriggerSlot_GeometryDefault(ptr.Pointer())) - runtime.SetFinalizer(tmpValue, (*std_core.QRect).DestroyQRect) - return tmpValue - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_ControlTypes -func callbackQVBoxLayoutWithTriggerSlot_ControlTypes(ptr unsafe.Pointer) C.longlong { - if signal := qt.GetSignal(ptr, "controlTypes"); signal != nil { - return C.longlong(signal.(func() std_widgets.QSizePolicy__ControlType)()) - } - - return C.longlong(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).ControlTypesDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) ControlTypesDefault() std_widgets.QSizePolicy__ControlType { - if ptr.Pointer() != nil { - return std_widgets.QSizePolicy__ControlType(C.QVBoxLayoutWithTriggerSlot_ControlTypesDefault(ptr.Pointer())) - } - return 0 -} - -//export callbackQVBoxLayoutWithTriggerSlot_IsEmpty -func callbackQVBoxLayoutWithTriggerSlot_IsEmpty(ptr unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "isEmpty"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func() bool)()))) - } - - return C.char(int8(qt.GoBoolToInt(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).IsEmptyDefault()))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) IsEmptyDefault() bool { - if ptr.Pointer() != nil { - return C.QVBoxLayoutWithTriggerSlot_IsEmptyDefault(ptr.Pointer()) != 0 - } - return false -} - -//export callbackQVBoxLayoutWithTriggerSlot_IndexOf -func callbackQVBoxLayoutWithTriggerSlot_IndexOf(ptr unsafe.Pointer, widget unsafe.Pointer) C.int { - if signal := qt.GetSignal(ptr, "indexOf"); signal != nil { - return C.int(int32(signal.(func(*std_widgets.QWidget) int)(std_widgets.NewQWidgetFromPointer(widget)))) - } - - return C.int(int32(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).IndexOfDefault(std_widgets.NewQWidgetFromPointer(widget)))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) IndexOfDefault(widget std_widgets.QWidget_ITF) int { - if ptr.Pointer() != nil { - return int(int32(C.QVBoxLayoutWithTriggerSlot_IndexOfDefault(ptr.Pointer(), std_widgets.PointerFromQWidget(widget)))) - } - return 0 -} - -//export callbackQVBoxLayoutWithTriggerSlot_Event -func callbackQVBoxLayoutWithTriggerSlot_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "event"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func(*std_core.QEvent) bool)(std_core.NewQEventFromPointer(e))))) - } - - return C.char(int8(qt.GoBoolToInt(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).EventDefault(std_core.NewQEventFromPointer(e))))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) EventDefault(e std_core.QEvent_ITF) bool { - if ptr.Pointer() != nil { - return C.QVBoxLayoutWithTriggerSlot_EventDefault(ptr.Pointer(), std_core.PointerFromQEvent(e)) != 0 - } - return false -} - -//export callbackQVBoxLayoutWithTriggerSlot_EventFilter -func callbackQVBoxLayoutWithTriggerSlot_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char { - if signal := qt.GetSignal(ptr, "eventFilter"); signal != nil { - return C.char(int8(qt.GoBoolToInt(signal.(func(*std_core.QObject, *std_core.QEvent) bool)(std_core.NewQObjectFromPointer(watched), std_core.NewQEventFromPointer(event))))) - } - - return C.char(int8(qt.GoBoolToInt(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).EventFilterDefault(std_core.NewQObjectFromPointer(watched), std_core.NewQEventFromPointer(event))))) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) EventFilterDefault(watched std_core.QObject_ITF, event std_core.QEvent_ITF) bool { - if ptr.Pointer() != nil { - return C.QVBoxLayoutWithTriggerSlot_EventFilterDefault(ptr.Pointer(), std_core.PointerFromQObject(watched), std_core.PointerFromQEvent(event)) != 0 - } - return false -} - -//export callbackQVBoxLayoutWithTriggerSlot_ConnectNotify -func callbackQVBoxLayoutWithTriggerSlot_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "connectNotify"); signal != nil { - signal.(func(*std_core.QMetaMethod))(std_core.NewQMetaMethodFromPointer(sign)) - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).ConnectNotifyDefault(std_core.NewQMetaMethodFromPointer(sign)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) ConnectNotifyDefault(sign std_core.QMetaMethod_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_ConnectNotifyDefault(ptr.Pointer(), std_core.PointerFromQMetaMethod(sign)) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_CustomEvent -func callbackQVBoxLayoutWithTriggerSlot_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "customEvent"); signal != nil { - signal.(func(*std_core.QEvent))(std_core.NewQEventFromPointer(event)) - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).CustomEventDefault(std_core.NewQEventFromPointer(event)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) CustomEventDefault(event std_core.QEvent_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_CustomEventDefault(ptr.Pointer(), std_core.PointerFromQEvent(event)) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_DeleteLater -func callbackQVBoxLayoutWithTriggerSlot_DeleteLater(ptr unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "deleteLater"); signal != nil { - signal.(func())() - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).DeleteLaterDefault() - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) DeleteLaterDefault() { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_DeleteLaterDefault(ptr.Pointer()) - ptr.SetPointer(nil) - runtime.SetFinalizer(ptr, nil) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_Destroyed -func callbackQVBoxLayoutWithTriggerSlot_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "destroyed"); signal != nil { - signal.(func(*std_core.QObject))(std_core.NewQObjectFromPointer(obj)) - } - -} - -//export callbackQVBoxLayoutWithTriggerSlot_DisconnectNotify -func callbackQVBoxLayoutWithTriggerSlot_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "disconnectNotify"); signal != nil { - signal.(func(*std_core.QMetaMethod))(std_core.NewQMetaMethodFromPointer(sign)) - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).DisconnectNotifyDefault(std_core.NewQMetaMethodFromPointer(sign)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) DisconnectNotifyDefault(sign std_core.QMetaMethod_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_DisconnectNotifyDefault(ptr.Pointer(), std_core.PointerFromQMetaMethod(sign)) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_ObjectNameChanged -func callbackQVBoxLayoutWithTriggerSlot_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_Moc_PackedString) { - if signal := qt.GetSignal(ptr, "objectNameChanged"); signal != nil { - signal.(func(string))(cGoUnpackString(objectName)) - } - -} - -//export callbackQVBoxLayoutWithTriggerSlot_TimerEvent -func callbackQVBoxLayoutWithTriggerSlot_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) { - if signal := qt.GetSignal(ptr, "timerEvent"); signal != nil { - signal.(func(*std_core.QTimerEvent))(std_core.NewQTimerEventFromPointer(event)) - } else { - NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).TimerEventDefault(std_core.NewQTimerEventFromPointer(event)) - } -} - -func (ptr *QVBoxLayoutWithTriggerSlot) TimerEventDefault(event std_core.QTimerEvent_ITF) { - if ptr.Pointer() != nil { - C.QVBoxLayoutWithTriggerSlot_TimerEventDefault(ptr.Pointer(), std_core.PointerFromQTimerEvent(event)) - } -} - -//export callbackQVBoxLayoutWithTriggerSlot_SpacerItem -func callbackQVBoxLayoutWithTriggerSlot_SpacerItem(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "spacerItem"); signal != nil { - return std_widgets.PointerFromQSpacerItem(signal.(func() *std_widgets.QSpacerItem)()) - } - - return std_widgets.PointerFromQSpacerItem(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).SpacerItemDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) SpacerItemDefault() *std_widgets.QSpacerItem { - if ptr.Pointer() != nil { - return std_widgets.NewQSpacerItemFromPointer(C.QVBoxLayoutWithTriggerSlot_SpacerItemDefault(ptr.Pointer())) - } - return nil -} - -//export callbackQVBoxLayoutWithTriggerSlot_Widget -func callbackQVBoxLayoutWithTriggerSlot_Widget(ptr unsafe.Pointer) unsafe.Pointer { - if signal := qt.GetSignal(ptr, "widget"); signal != nil { - return std_widgets.PointerFromQWidget(signal.(func() *std_widgets.QWidget)()) - } - - return std_widgets.PointerFromQWidget(NewQVBoxLayoutWithTriggerSlotFromPointer(ptr).WidgetDefault()) -} - -func (ptr *QVBoxLayoutWithTriggerSlot) WidgetDefault() *std_widgets.QWidget { - if ptr.Pointer() != nil { - var tmpValue = std_widgets.NewQWidgetFromPointer(C.QVBoxLayoutWithTriggerSlot_WidgetDefault(ptr.Pointer())) - if !qt.ExistsSignal(tmpValue.Pointer(), "destroyed") { - tmpValue.ConnectDestroyed(func(*std_core.QObject) { tmpValue.SetPointer(nil) }) - } - return tmpValue - } - return nil -} diff --git a/ui/moc.h b/ui/moc.h @@ -1,129 +0,0 @@ - - -#pragma once - -#ifndef GO_MOC_H -#define GO_MOC_H - -#include <stdint.h> - -#ifdef __cplusplus -class QRoomVBoxLayoutWithTriggerSlot; -void QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaTypes(); -class QVBoxLayoutWithTriggerSlot; -void QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaTypes(); -extern "C" { -#endif - -struct Moc_PackedString { char* data; long long len; }; -struct Moc_PackedList { void* data; long long len; }; -void QRoomVBoxLayoutWithTriggerSlot_TriggerRoom(void* ptr, struct Moc_PackedString roomID); -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType(); -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QRegisterMetaType2(char* typeName); -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType(); -int QRoomVBoxLayoutWithTriggerSlot_QRoomVBoxLayoutWithTriggerSlot_QmlRegisterType2(char* uri, int versionMajor, int versionMinor, char* qmlName); -void* QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_atList(void* ptr, int i); -void QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_setList(void* ptr, void* i); -void* QRoomVBoxLayoutWithTriggerSlot___dynamicPropertyNames_newList(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_atList2(void* ptr, int i); -void QRoomVBoxLayoutWithTriggerSlot___findChildren_setList2(void* ptr, void* i); -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_newList2(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_atList3(void* ptr, int i); -void QRoomVBoxLayoutWithTriggerSlot___findChildren_setList3(void* ptr, void* i); -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_newList3(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_atList(void* ptr, int i); -void QRoomVBoxLayoutWithTriggerSlot___findChildren_setList(void* ptr, void* i); -void* QRoomVBoxLayoutWithTriggerSlot___findChildren_newList(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot___children_atList(void* ptr, int i); -void QRoomVBoxLayoutWithTriggerSlot___children_setList(void* ptr, void* i); -void* QRoomVBoxLayoutWithTriggerSlot___children_newList(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot_NewQRoomVBoxLayoutWithTriggerSlot(); -void* QRoomVBoxLayoutWithTriggerSlot_NewQRoomVBoxLayoutWithTriggerSlot2(void* parent); -void QRoomVBoxLayoutWithTriggerSlot_DestroyQRoomVBoxLayoutWithTriggerSlot(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot_TakeAtDefault(void* ptr, int index); -void QRoomVBoxLayoutWithTriggerSlot_AddItemDefault(void* ptr, void* item); -void QRoomVBoxLayoutWithTriggerSlot_InvalidateDefault(void* ptr); -void QRoomVBoxLayoutWithTriggerSlot_SetGeometryDefault(void* ptr, void* r); -void* QRoomVBoxLayoutWithTriggerSlot_ItemAtDefault(void* ptr, int index); -void* QRoomVBoxLayoutWithTriggerSlot_MaximumSizeDefault(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot_MinimumSizeDefault(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot_SizeHintDefault(void* ptr); -long long QRoomVBoxLayoutWithTriggerSlot_ExpandingDirectionsDefault(void* ptr); -char QRoomVBoxLayoutWithTriggerSlot_HasHeightForWidthDefault(void* ptr); -int QRoomVBoxLayoutWithTriggerSlot_CountDefault(void* ptr); -int QRoomVBoxLayoutWithTriggerSlot_HeightForWidthDefault(void* ptr, int w); -int QRoomVBoxLayoutWithTriggerSlot_MinimumHeightForWidthDefault(void* ptr, int w); -void* QRoomVBoxLayoutWithTriggerSlot_LayoutDefault(void* ptr); -void QRoomVBoxLayoutWithTriggerSlot_ChildEventDefault(void* ptr, void* e); -void* QRoomVBoxLayoutWithTriggerSlot_GeometryDefault(void* ptr); -long long QRoomVBoxLayoutWithTriggerSlot_ControlTypesDefault(void* ptr); -char QRoomVBoxLayoutWithTriggerSlot_IsEmptyDefault(void* ptr); -int QRoomVBoxLayoutWithTriggerSlot_IndexOfDefault(void* ptr, void* widget); -char QRoomVBoxLayoutWithTriggerSlot_EventDefault(void* ptr, void* e); -char QRoomVBoxLayoutWithTriggerSlot_EventFilterDefault(void* ptr, void* watched, void* event); -void QRoomVBoxLayoutWithTriggerSlot_ConnectNotifyDefault(void* ptr, void* sign); -void QRoomVBoxLayoutWithTriggerSlot_CustomEventDefault(void* ptr, void* event); -void QRoomVBoxLayoutWithTriggerSlot_DeleteLaterDefault(void* ptr); -void QRoomVBoxLayoutWithTriggerSlot_DisconnectNotifyDefault(void* ptr, void* sign); -void QRoomVBoxLayoutWithTriggerSlot_TimerEventDefault(void* ptr, void* event); -; -void* QRoomVBoxLayoutWithTriggerSlot_SpacerItemDefault(void* ptr); -void* QRoomVBoxLayoutWithTriggerSlot_WidgetDefault(void* ptr); -void QVBoxLayoutWithTriggerSlot_TriggerMessage(void* ptr, struct Moc_PackedString messageBody, struct Moc_PackedString sender, long long timestamp); -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType(); -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QRegisterMetaType2(char* typeName); -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType(); -int QVBoxLayoutWithTriggerSlot_QVBoxLayoutWithTriggerSlot_QmlRegisterType2(char* uri, int versionMajor, int versionMinor, char* qmlName); -void* QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_atList(void* ptr, int i); -void QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_setList(void* ptr, void* i); -void* QVBoxLayoutWithTriggerSlot___dynamicPropertyNames_newList(void* ptr); -void* QVBoxLayoutWithTriggerSlot___findChildren_atList2(void* ptr, int i); -void QVBoxLayoutWithTriggerSlot___findChildren_setList2(void* ptr, void* i); -void* QVBoxLayoutWithTriggerSlot___findChildren_newList2(void* ptr); -void* QVBoxLayoutWithTriggerSlot___findChildren_atList3(void* ptr, int i); -void QVBoxLayoutWithTriggerSlot___findChildren_setList3(void* ptr, void* i); -void* QVBoxLayoutWithTriggerSlot___findChildren_newList3(void* ptr); -void* QVBoxLayoutWithTriggerSlot___findChildren_atList(void* ptr, int i); -void QVBoxLayoutWithTriggerSlot___findChildren_setList(void* ptr, void* i); -void* QVBoxLayoutWithTriggerSlot___findChildren_newList(void* ptr); -void* QVBoxLayoutWithTriggerSlot___children_atList(void* ptr, int i); -void QVBoxLayoutWithTriggerSlot___children_setList(void* ptr, void* i); -void* QVBoxLayoutWithTriggerSlot___children_newList(void* ptr); -void* QVBoxLayoutWithTriggerSlot_NewQVBoxLayoutWithTriggerSlot(); -void* QVBoxLayoutWithTriggerSlot_NewQVBoxLayoutWithTriggerSlot2(void* parent); -void QVBoxLayoutWithTriggerSlot_DestroyQVBoxLayoutWithTriggerSlot(void* ptr); -void* QVBoxLayoutWithTriggerSlot_TakeAtDefault(void* ptr, int index); -void QVBoxLayoutWithTriggerSlot_AddItemDefault(void* ptr, void* item); -void QVBoxLayoutWithTriggerSlot_InvalidateDefault(void* ptr); -void QVBoxLayoutWithTriggerSlot_SetGeometryDefault(void* ptr, void* r); -void* QVBoxLayoutWithTriggerSlot_ItemAtDefault(void* ptr, int index); -void* QVBoxLayoutWithTriggerSlot_MaximumSizeDefault(void* ptr); -void* QVBoxLayoutWithTriggerSlot_MinimumSizeDefault(void* ptr); -void* QVBoxLayoutWithTriggerSlot_SizeHintDefault(void* ptr); -long long QVBoxLayoutWithTriggerSlot_ExpandingDirectionsDefault(void* ptr); -char QVBoxLayoutWithTriggerSlot_HasHeightForWidthDefault(void* ptr); -int QVBoxLayoutWithTriggerSlot_CountDefault(void* ptr); -int QVBoxLayoutWithTriggerSlot_HeightForWidthDefault(void* ptr, int w); -int QVBoxLayoutWithTriggerSlot_MinimumHeightForWidthDefault(void* ptr, int w); -void* QVBoxLayoutWithTriggerSlot_LayoutDefault(void* ptr); -void QVBoxLayoutWithTriggerSlot_ChildEventDefault(void* ptr, void* e); -void* QVBoxLayoutWithTriggerSlot_GeometryDefault(void* ptr); -long long QVBoxLayoutWithTriggerSlot_ControlTypesDefault(void* ptr); -char QVBoxLayoutWithTriggerSlot_IsEmptyDefault(void* ptr); -int QVBoxLayoutWithTriggerSlot_IndexOfDefault(void* ptr, void* widget); -char QVBoxLayoutWithTriggerSlot_EventDefault(void* ptr, void* e); -char QVBoxLayoutWithTriggerSlot_EventFilterDefault(void* ptr, void* watched, void* event); -void QVBoxLayoutWithTriggerSlot_ConnectNotifyDefault(void* ptr, void* sign); -void QVBoxLayoutWithTriggerSlot_CustomEventDefault(void* ptr, void* event); -void QVBoxLayoutWithTriggerSlot_DeleteLaterDefault(void* ptr); -void QVBoxLayoutWithTriggerSlot_DisconnectNotifyDefault(void* ptr, void* sign); -void QVBoxLayoutWithTriggerSlot_TimerEventDefault(void* ptr, void* event); -; -void* QVBoxLayoutWithTriggerSlot_SpacerItemDefault(void* ptr); -void* QVBoxLayoutWithTriggerSlot_WidgetDefault(void* ptr); - -#ifdef __cplusplus -} -#endif - -#endif -\ No newline at end of file diff --git a/ui/moc_cgo_windows_windows_amd64.go b/ui/moc_cgo_windows_windows_amd64.go @@ -1,10 +0,0 @@ -package ui - -/* -#cgo CFLAGS: -fno-keep-inline-dllexport -march=nocona -mtune=core2 -O2 -Wextra -Wall -W -DUNICODE -D_UNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -#cgo CXXFLAGS: -fno-keep-inline-dllexport -march=nocona -mtune=core2 -O2 -Wextra -Wall -W -fexceptions -mthreads -DUNICODE -D_UNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -#cgo CXXFLAGS: -I../../Morpheus -I. -isystem C:/msys64/mingw64/include/QtWidgets -isystem C:/msys64/mingw64/include/QtGui -isystem C:/msys64/mingw64/include/QtCore -Irelease -IC:/msys64/mingw64/share/qt5/mkspecs/win32-g++ -#cgo LDFLAGS: -Wl,-subsystem,windows -mthreads -#cgo LDFLAGS: -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -LC:/msys64/mingw64/lib -lqtmain -lshell32 -lQt5Widgets -lQt5Gui -lQt5Core -#cgo LDFLAGS: -Wl,--allow-multiple-definition -*/ diff --git a/ui/moc_moc.h b/ui/moc_moc.h @@ -1,207 +0,0 @@ -/**************************************************************************** -** Meta object code from reading C++ file 'moc.cpp' -** -** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.2) -** -** WARNING! All changes made in this file will be lost! -*****************************************************************************/ - -#include <QtCore/qbytearray.h> -#include <QtCore/qmetatype.h> -#if !defined(Q_MOC_OUTPUT_REVISION) -#error "The header file 'moc.cpp' doesn't include <QObject>." -#elif Q_MOC_OUTPUT_REVISION != 67 -#error "This file was generated using the moc from 5.9.2. It" -#error "cannot be used with the include files from this version of Qt." -#error "(The moc has changed too much.)" -#endif - -QT_BEGIN_MOC_NAMESPACE -QT_WARNING_PUSH -QT_WARNING_DISABLE_DEPRECATED -struct qt_meta_stringdata_QRoomVBoxLayoutWithTriggerSlot_t { - QByteArrayData data[4]; - char stringdata0[51]; -}; -#define QT_MOC_LITERAL(idx, ofs, len) \ - Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ - qptrdiff(offsetof(qt_meta_stringdata_QRoomVBoxLayoutWithTriggerSlot_t, stringdata0) + ofs \ - - idx * sizeof(QByteArrayData)) \ - ) -static const qt_meta_stringdata_QRoomVBoxLayoutWithTriggerSlot_t qt_meta_stringdata_QRoomVBoxLayoutWithTriggerSlot = { - { -QT_MOC_LITERAL(0, 0, 30), // "QRoomVBoxLayoutWithTriggerSlot" -QT_MOC_LITERAL(1, 31, 11), // "TriggerRoom" -QT_MOC_LITERAL(2, 43, 0), // "" -QT_MOC_LITERAL(3, 44, 6) // "roomID" - - }, - "QRoomVBoxLayoutWithTriggerSlot\0" - "TriggerRoom\0\0roomID" -}; -#undef QT_MOC_LITERAL - -static const uint qt_meta_data_QRoomVBoxLayoutWithTriggerSlot[] = { - - // content: - 7, // revision - 0, // classname - 0, 0, // classinfo - 1, 14, // methods - 0, 0, // properties - 0, 0, // enums/sets - 0, 0, // constructors - 0, // flags - 0, // signalCount - - // slots: name, argc, parameters, tag, flags - 1, 1, 19, 2, 0x0a /* Public */, - - // slots: parameters - QMetaType::Void, QMetaType::QString, 3, - - 0 // eod -}; - -void QRoomVBoxLayoutWithTriggerSlot::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) -{ - if (_c == QMetaObject::InvokeMetaMethod) { - QRoomVBoxLayoutWithTriggerSlot *_t = static_cast<QRoomVBoxLayoutWithTriggerSlot *>(_o); - Q_UNUSED(_t) - switch (_id) { - case 0: _t->TriggerRoom((*reinterpret_cast< QString(*)>(_a[1]))); break; - default: ; - } - } -} - -const QMetaObject QRoomVBoxLayoutWithTriggerSlot::staticMetaObject = { - { &QVBoxLayout::staticMetaObject, qt_meta_stringdata_QRoomVBoxLayoutWithTriggerSlot.data, - qt_meta_data_QRoomVBoxLayoutWithTriggerSlot, qt_static_metacall, nullptr, nullptr} -}; - - -const QMetaObject *QRoomVBoxLayoutWithTriggerSlot::metaObject() const -{ - return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; -} - -void *QRoomVBoxLayoutWithTriggerSlot::qt_metacast(const char *_clname) -{ - if (!_clname) return nullptr; - if (!strcmp(_clname, qt_meta_stringdata_QRoomVBoxLayoutWithTriggerSlot.stringdata0)) - return static_cast<void*>(this); - return QVBoxLayout::qt_metacast(_clname); -} - -int QRoomVBoxLayoutWithTriggerSlot::qt_metacall(QMetaObject::Call _c, int _id, void **_a) -{ - _id = QVBoxLayout::qt_metacall(_c, _id, _a); - if (_id < 0) - return _id; - if (_c == QMetaObject::InvokeMetaMethod) { - if (_id < 1) - qt_static_metacall(this, _c, _id, _a); - _id -= 1; - } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { - if (_id < 1) - *reinterpret_cast<int*>(_a[0]) = -1; - _id -= 1; - } - return _id; -} -struct qt_meta_stringdata_QVBoxLayoutWithTriggerSlot_t { - QByteArrayData data[6]; - char stringdata0[72]; -}; -#define QT_MOC_LITERAL(idx, ofs, len) \ - Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ - qptrdiff(offsetof(qt_meta_stringdata_QVBoxLayoutWithTriggerSlot_t, stringdata0) + ofs \ - - idx * sizeof(QByteArrayData)) \ - ) -static const qt_meta_stringdata_QVBoxLayoutWithTriggerSlot_t qt_meta_stringdata_QVBoxLayoutWithTriggerSlot = { - { -QT_MOC_LITERAL(0, 0, 26), // "QVBoxLayoutWithTriggerSlot" -QT_MOC_LITERAL(1, 27, 14), // "TriggerMessage" -QT_MOC_LITERAL(2, 42, 0), // "" -QT_MOC_LITERAL(3, 43, 11), // "messageBody" -QT_MOC_LITERAL(4, 55, 6), // "sender" -QT_MOC_LITERAL(5, 62, 9) // "timestamp" - - }, - "QVBoxLayoutWithTriggerSlot\0TriggerMessage\0" - "\0messageBody\0sender\0timestamp" -}; -#undef QT_MOC_LITERAL - -static const uint qt_meta_data_QVBoxLayoutWithTriggerSlot[] = { - - // content: - 7, // revision - 0, // classname - 0, 0, // classinfo - 1, 14, // methods - 0, 0, // properties - 0, 0, // enums/sets - 0, 0, // constructors - 0, // flags - 0, // signalCount - - // slots: name, argc, parameters, tag, flags - 1, 3, 19, 2, 0x0a /* Public */, - - // slots: parameters - QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::LongLong, 3, 4, 5, - - 0 // eod -}; - -void QVBoxLayoutWithTriggerSlot::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) -{ - if (_c == QMetaObject::InvokeMetaMethod) { - QVBoxLayoutWithTriggerSlot *_t = static_cast<QVBoxLayoutWithTriggerSlot *>(_o); - Q_UNUSED(_t) - switch (_id) { - case 0: _t->TriggerMessage((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< qint64(*)>(_a[3]))); break; - default: ; - } - } -} - -const QMetaObject QVBoxLayoutWithTriggerSlot::staticMetaObject = { - { &QVBoxLayout::staticMetaObject, qt_meta_stringdata_QVBoxLayoutWithTriggerSlot.data, - qt_meta_data_QVBoxLayoutWithTriggerSlot, qt_static_metacall, nullptr, nullptr} -}; - - -const QMetaObject *QVBoxLayoutWithTriggerSlot::metaObject() const -{ - return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; -} - -void *QVBoxLayoutWithTriggerSlot::qt_metacast(const char *_clname) -{ - if (!_clname) return nullptr; - if (!strcmp(_clname, qt_meta_stringdata_QVBoxLayoutWithTriggerSlot.stringdata0)) - return static_cast<void*>(this); - return QVBoxLayout::qt_metacast(_clname); -} - -int QVBoxLayoutWithTriggerSlot::qt_metacall(QMetaObject::Call _c, int _id, void **_a) -{ - _id = QVBoxLayout::qt_metacall(_c, _id, _a); - if (_id < 0) - return _id; - if (_c == QMetaObject::InvokeMetaMethod) { - if (_id < 1) - qt_static_metacall(this, _c, _id, _a); - _id -= 1; - } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { - if (_id < 1) - *reinterpret_cast<int*>(_a[0]) = -1; - _id -= 1; - } - return _id; -} -QT_WARNING_POP -QT_END_MOC_NAMESPACE