mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
1423 lines
43 KiB
C++
1423 lines
43 KiB
C++
#include <QChildEvent>
|
|
#include <QEvent>
|
|
#include <QGraphicsRotation>
|
|
#include <QGraphicsScale>
|
|
#include <QGraphicsTransform>
|
|
#include <QMatrix4x4>
|
|
#include <QMetaMethod>
|
|
#include <QMetaObject>
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <QTimerEvent>
|
|
#include <QVector3D>
|
|
#include <qgraphicstransform.h>
|
|
#include "gen_qgraphicstransform.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void miqt_exec_callback_QGraphicsTransform_applyTo(const QGraphicsTransform*, intptr_t, QMatrix4x4*);
|
|
bool miqt_exec_callback_QGraphicsTransform_event(QGraphicsTransform*, intptr_t, QEvent*);
|
|
bool miqt_exec_callback_QGraphicsTransform_eventFilter(QGraphicsTransform*, intptr_t, QObject*, QEvent*);
|
|
void miqt_exec_callback_QGraphicsTransform_timerEvent(QGraphicsTransform*, intptr_t, QTimerEvent*);
|
|
void miqt_exec_callback_QGraphicsTransform_childEvent(QGraphicsTransform*, intptr_t, QChildEvent*);
|
|
void miqt_exec_callback_QGraphicsTransform_customEvent(QGraphicsTransform*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QGraphicsTransform_connectNotify(QGraphicsTransform*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QGraphicsTransform_disconnectNotify(QGraphicsTransform*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QGraphicsScale_originChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsScale_xScaleChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsScale_yScaleChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsScale_zScaleChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsScale_scaleChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsScale_applyTo(const QGraphicsScale*, intptr_t, QMatrix4x4*);
|
|
bool miqt_exec_callback_QGraphicsScale_event(QGraphicsScale*, intptr_t, QEvent*);
|
|
bool miqt_exec_callback_QGraphicsScale_eventFilter(QGraphicsScale*, intptr_t, QObject*, QEvent*);
|
|
void miqt_exec_callback_QGraphicsScale_timerEvent(QGraphicsScale*, intptr_t, QTimerEvent*);
|
|
void miqt_exec_callback_QGraphicsScale_childEvent(QGraphicsScale*, intptr_t, QChildEvent*);
|
|
void miqt_exec_callback_QGraphicsScale_customEvent(QGraphicsScale*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QGraphicsScale_connectNotify(QGraphicsScale*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QGraphicsScale_disconnectNotify(QGraphicsScale*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QGraphicsRotation_originChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsRotation_angleChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsRotation_axisChanged(intptr_t);
|
|
void miqt_exec_callback_QGraphicsRotation_applyTo(const QGraphicsRotation*, intptr_t, QMatrix4x4*);
|
|
bool miqt_exec_callback_QGraphicsRotation_event(QGraphicsRotation*, intptr_t, QEvent*);
|
|
bool miqt_exec_callback_QGraphicsRotation_eventFilter(QGraphicsRotation*, intptr_t, QObject*, QEvent*);
|
|
void miqt_exec_callback_QGraphicsRotation_timerEvent(QGraphicsRotation*, intptr_t, QTimerEvent*);
|
|
void miqt_exec_callback_QGraphicsRotation_childEvent(QGraphicsRotation*, intptr_t, QChildEvent*);
|
|
void miqt_exec_callback_QGraphicsRotation_customEvent(QGraphicsRotation*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QGraphicsRotation_connectNotify(QGraphicsRotation*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QGraphicsRotation_disconnectNotify(QGraphicsRotation*, intptr_t, QMetaMethod*);
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
class MiqtVirtualQGraphicsTransform final : public QGraphicsTransform {
|
|
public:
|
|
|
|
MiqtVirtualQGraphicsTransform(): QGraphicsTransform() {};
|
|
MiqtVirtualQGraphicsTransform(QObject* parent): QGraphicsTransform(parent) {};
|
|
|
|
virtual ~MiqtVirtualQGraphicsTransform() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__applyTo = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void applyTo(QMatrix4x4* matrix) const override {
|
|
if (handle__applyTo == 0) {
|
|
return; // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
QMatrix4x4* sigval1 = matrix;
|
|
|
|
miqt_exec_callback_QGraphicsTransform_applyTo(this, handle__applyTo, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__event = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool event(QEvent* event) override {
|
|
if (handle__event == 0) {
|
|
return QGraphicsTransform::event(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGraphicsTransform_event(this, handle__event, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_event(QEvent* event) {
|
|
|
|
return QGraphicsTransform::event(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__eventFilter = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
if (handle__eventFilter == 0) {
|
|
return QGraphicsTransform::eventFilter(watched, event);
|
|
}
|
|
|
|
QObject* sigval1 = watched;
|
|
QEvent* sigval2 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGraphicsTransform_eventFilter(this, handle__eventFilter, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_eventFilter(QObject* watched, QEvent* event) {
|
|
|
|
return QGraphicsTransform::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__timerEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
if (handle__timerEvent == 0) {
|
|
QGraphicsTransform::timerEvent(event);
|
|
return;
|
|
}
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsTransform_timerEvent(this, handle__timerEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_timerEvent(QTimerEvent* event) {
|
|
|
|
QGraphicsTransform::timerEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__childEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
if (handle__childEvent == 0) {
|
|
QGraphicsTransform::childEvent(event);
|
|
return;
|
|
}
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsTransform_childEvent(this, handle__childEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_childEvent(QChildEvent* event) {
|
|
|
|
QGraphicsTransform::childEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__customEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void customEvent(QEvent* event) override {
|
|
if (handle__customEvent == 0) {
|
|
QGraphicsTransform::customEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsTransform_customEvent(this, handle__customEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_customEvent(QEvent* event) {
|
|
|
|
QGraphicsTransform::customEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__connectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
if (handle__connectNotify == 0) {
|
|
QGraphicsTransform::connectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGraphicsTransform_connectNotify(this, handle__connectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_connectNotify(QMetaMethod* signal) {
|
|
|
|
QGraphicsTransform::connectNotify(*signal);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__disconnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
if (handle__disconnectNotify == 0) {
|
|
QGraphicsTransform::disconnectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGraphicsTransform_disconnectNotify(this, handle__disconnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_disconnectNotify(QMetaMethod* signal) {
|
|
|
|
QGraphicsTransform::disconnectNotify(*signal);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QGraphicsTransform* QGraphicsTransform_new() {
|
|
return new MiqtVirtualQGraphicsTransform();
|
|
}
|
|
|
|
QGraphicsTransform* QGraphicsTransform_new2(QObject* parent) {
|
|
return new MiqtVirtualQGraphicsTransform(parent);
|
|
}
|
|
|
|
void QGraphicsTransform_virtbase(QGraphicsTransform* src, QObject** outptr_QObject) {
|
|
*outptr_QObject = static_cast<QObject*>(src);
|
|
}
|
|
|
|
QMetaObject* QGraphicsTransform_metaObject(const QGraphicsTransform* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsTransform_metacast(QGraphicsTransform* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QGraphicsTransform_tr(const char* s) {
|
|
QString _ret = QGraphicsTransform::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsTransform_trUtf8(const char* s) {
|
|
QString _ret = QGraphicsTransform::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QGraphicsTransform_applyTo(const QGraphicsTransform* self, QMatrix4x4* matrix) {
|
|
self->applyTo(matrix);
|
|
}
|
|
|
|
struct miqt_string QGraphicsTransform_tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsTransform::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsTransform_tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsTransform::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsTransform_trUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsTransform::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsTransform_trUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsTransform::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_applyTo(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__applyTo = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_event(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__event = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QGraphicsTransform_virtualbase_event(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_event(event);
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_eventFilter(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__eventFilter = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QGraphicsTransform_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
|
|
return ( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_eventFilter(watched, event);
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_timerEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__timerEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsTransform_virtualbase_timerEvent(void* self, QTimerEvent* event) {
|
|
( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_timerEvent(event);
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_childEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__childEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsTransform_virtualbase_childEvent(void* self, QChildEvent* event) {
|
|
( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_childEvent(event);
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_customEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__customEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsTransform_virtualbase_customEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_customEvent(event);
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_connectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__connectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsTransform_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_connectNotify(signal);
|
|
}
|
|
|
|
bool QGraphicsTransform_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsTransform* self_cast = dynamic_cast<MiqtVirtualQGraphicsTransform*>( (QGraphicsTransform*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__disconnectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsTransform_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_disconnectNotify(signal);
|
|
}
|
|
|
|
void QGraphicsTransform_delete(QGraphicsTransform* self) {
|
|
delete self;
|
|
}
|
|
|
|
class MiqtVirtualQGraphicsScale final : public QGraphicsScale {
|
|
public:
|
|
|
|
MiqtVirtualQGraphicsScale(): QGraphicsScale() {};
|
|
MiqtVirtualQGraphicsScale(QObject* parent): QGraphicsScale(parent) {};
|
|
|
|
virtual ~MiqtVirtualQGraphicsScale() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__applyTo = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void applyTo(QMatrix4x4* matrix) const override {
|
|
if (handle__applyTo == 0) {
|
|
QGraphicsScale::applyTo(matrix);
|
|
return;
|
|
}
|
|
|
|
QMatrix4x4* sigval1 = matrix;
|
|
|
|
miqt_exec_callback_QGraphicsScale_applyTo(this, handle__applyTo, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_applyTo(QMatrix4x4* matrix) const {
|
|
|
|
QGraphicsScale::applyTo(matrix);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__event = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool event(QEvent* event) override {
|
|
if (handle__event == 0) {
|
|
return QGraphicsScale::event(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGraphicsScale_event(this, handle__event, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_event(QEvent* event) {
|
|
|
|
return QGraphicsScale::event(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__eventFilter = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
if (handle__eventFilter == 0) {
|
|
return QGraphicsScale::eventFilter(watched, event);
|
|
}
|
|
|
|
QObject* sigval1 = watched;
|
|
QEvent* sigval2 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGraphicsScale_eventFilter(this, handle__eventFilter, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_eventFilter(QObject* watched, QEvent* event) {
|
|
|
|
return QGraphicsScale::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__timerEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
if (handle__timerEvent == 0) {
|
|
QGraphicsScale::timerEvent(event);
|
|
return;
|
|
}
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsScale_timerEvent(this, handle__timerEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_timerEvent(QTimerEvent* event) {
|
|
|
|
QGraphicsScale::timerEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__childEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
if (handle__childEvent == 0) {
|
|
QGraphicsScale::childEvent(event);
|
|
return;
|
|
}
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsScale_childEvent(this, handle__childEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_childEvent(QChildEvent* event) {
|
|
|
|
QGraphicsScale::childEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__customEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void customEvent(QEvent* event) override {
|
|
if (handle__customEvent == 0) {
|
|
QGraphicsScale::customEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsScale_customEvent(this, handle__customEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_customEvent(QEvent* event) {
|
|
|
|
QGraphicsScale::customEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__connectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
if (handle__connectNotify == 0) {
|
|
QGraphicsScale::connectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGraphicsScale_connectNotify(this, handle__connectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_connectNotify(QMetaMethod* signal) {
|
|
|
|
QGraphicsScale::connectNotify(*signal);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__disconnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
if (handle__disconnectNotify == 0) {
|
|
QGraphicsScale::disconnectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGraphicsScale_disconnectNotify(this, handle__disconnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_disconnectNotify(QMetaMethod* signal) {
|
|
|
|
QGraphicsScale::disconnectNotify(*signal);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QGraphicsScale* QGraphicsScale_new() {
|
|
return new MiqtVirtualQGraphicsScale();
|
|
}
|
|
|
|
QGraphicsScale* QGraphicsScale_new2(QObject* parent) {
|
|
return new MiqtVirtualQGraphicsScale(parent);
|
|
}
|
|
|
|
void QGraphicsScale_virtbase(QGraphicsScale* src, QGraphicsTransform** outptr_QGraphicsTransform) {
|
|
*outptr_QGraphicsTransform = static_cast<QGraphicsTransform*>(src);
|
|
}
|
|
|
|
QMetaObject* QGraphicsScale_metaObject(const QGraphicsScale* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsScale_metacast(QGraphicsScale* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QGraphicsScale_tr(const char* s) {
|
|
QString _ret = QGraphicsScale::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsScale_trUtf8(const char* s) {
|
|
QString _ret = QGraphicsScale::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
QVector3D* QGraphicsScale_origin(const QGraphicsScale* self) {
|
|
return new QVector3D(self->origin());
|
|
}
|
|
|
|
void QGraphicsScale_setOrigin(QGraphicsScale* self, QVector3D* point) {
|
|
self->setOrigin(*point);
|
|
}
|
|
|
|
double QGraphicsScale_xScale(const QGraphicsScale* self) {
|
|
qreal _ret = self->xScale();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QGraphicsScale_setXScale(QGraphicsScale* self, double xScale) {
|
|
self->setXScale(static_cast<qreal>(xScale));
|
|
}
|
|
|
|
double QGraphicsScale_yScale(const QGraphicsScale* self) {
|
|
qreal _ret = self->yScale();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QGraphicsScale_setYScale(QGraphicsScale* self, double yScale) {
|
|
self->setYScale(static_cast<qreal>(yScale));
|
|
}
|
|
|
|
double QGraphicsScale_zScale(const QGraphicsScale* self) {
|
|
qreal _ret = self->zScale();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QGraphicsScale_setZScale(QGraphicsScale* self, double zScale) {
|
|
self->setZScale(static_cast<qreal>(zScale));
|
|
}
|
|
|
|
void QGraphicsScale_applyTo(const QGraphicsScale* self, QMatrix4x4* matrix) {
|
|
self->applyTo(matrix);
|
|
}
|
|
|
|
void QGraphicsScale_originChanged(QGraphicsScale* self) {
|
|
self->originChanged();
|
|
}
|
|
|
|
void QGraphicsScale_connect_originChanged(QGraphicsScale* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale::connect(self, static_cast<void (QGraphicsScale::*)()>(&QGraphicsScale::originChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsScale_originChanged(slot);
|
|
});
|
|
}
|
|
|
|
void QGraphicsScale_xScaleChanged(QGraphicsScale* self) {
|
|
self->xScaleChanged();
|
|
}
|
|
|
|
void QGraphicsScale_connect_xScaleChanged(QGraphicsScale* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale::connect(self, static_cast<void (QGraphicsScale::*)()>(&QGraphicsScale::xScaleChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsScale_xScaleChanged(slot);
|
|
});
|
|
}
|
|
|
|
void QGraphicsScale_yScaleChanged(QGraphicsScale* self) {
|
|
self->yScaleChanged();
|
|
}
|
|
|
|
void QGraphicsScale_connect_yScaleChanged(QGraphicsScale* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale::connect(self, static_cast<void (QGraphicsScale::*)()>(&QGraphicsScale::yScaleChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsScale_yScaleChanged(slot);
|
|
});
|
|
}
|
|
|
|
void QGraphicsScale_zScaleChanged(QGraphicsScale* self) {
|
|
self->zScaleChanged();
|
|
}
|
|
|
|
void QGraphicsScale_connect_zScaleChanged(QGraphicsScale* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale::connect(self, static_cast<void (QGraphicsScale::*)()>(&QGraphicsScale::zScaleChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsScale_zScaleChanged(slot);
|
|
});
|
|
}
|
|
|
|
void QGraphicsScale_scaleChanged(QGraphicsScale* self) {
|
|
self->scaleChanged();
|
|
}
|
|
|
|
void QGraphicsScale_connect_scaleChanged(QGraphicsScale* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale::connect(self, static_cast<void (QGraphicsScale::*)()>(&QGraphicsScale::scaleChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsScale_scaleChanged(slot);
|
|
});
|
|
}
|
|
|
|
struct miqt_string QGraphicsScale_tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsScale::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsScale_tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsScale::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsScale_trUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsScale::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsScale_trUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsScale::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_applyTo(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__applyTo = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsScale_virtualbase_applyTo(const void* self, QMatrix4x4* matrix) {
|
|
( (const MiqtVirtualQGraphicsScale*)(self) )->virtualbase_applyTo(matrix);
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_event(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__event = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QGraphicsScale_virtualbase_event(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQGraphicsScale*)(self) )->virtualbase_event(event);
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_eventFilter(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__eventFilter = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QGraphicsScale_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
|
|
return ( (MiqtVirtualQGraphicsScale*)(self) )->virtualbase_eventFilter(watched, event);
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_timerEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__timerEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsScale_virtualbase_timerEvent(void* self, QTimerEvent* event) {
|
|
( (MiqtVirtualQGraphicsScale*)(self) )->virtualbase_timerEvent(event);
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_childEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__childEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsScale_virtualbase_childEvent(void* self, QChildEvent* event) {
|
|
( (MiqtVirtualQGraphicsScale*)(self) )->virtualbase_childEvent(event);
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_customEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__customEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsScale_virtualbase_customEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQGraphicsScale*)(self) )->virtualbase_customEvent(event);
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_connectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__connectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsScale_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGraphicsScale*)(self) )->virtualbase_connectNotify(signal);
|
|
}
|
|
|
|
bool QGraphicsScale_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsScale* self_cast = dynamic_cast<MiqtVirtualQGraphicsScale*>( (QGraphicsScale*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__disconnectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsScale_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGraphicsScale*)(self) )->virtualbase_disconnectNotify(signal);
|
|
}
|
|
|
|
void QGraphicsScale_delete(QGraphicsScale* self) {
|
|
delete self;
|
|
}
|
|
|
|
class MiqtVirtualQGraphicsRotation final : public QGraphicsRotation {
|
|
public:
|
|
|
|
MiqtVirtualQGraphicsRotation(): QGraphicsRotation() {};
|
|
MiqtVirtualQGraphicsRotation(QObject* parent): QGraphicsRotation(parent) {};
|
|
|
|
virtual ~MiqtVirtualQGraphicsRotation() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__applyTo = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void applyTo(QMatrix4x4* matrix) const override {
|
|
if (handle__applyTo == 0) {
|
|
QGraphicsRotation::applyTo(matrix);
|
|
return;
|
|
}
|
|
|
|
QMatrix4x4* sigval1 = matrix;
|
|
|
|
miqt_exec_callback_QGraphicsRotation_applyTo(this, handle__applyTo, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_applyTo(QMatrix4x4* matrix) const {
|
|
|
|
QGraphicsRotation::applyTo(matrix);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__event = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool event(QEvent* event) override {
|
|
if (handle__event == 0) {
|
|
return QGraphicsRotation::event(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGraphicsRotation_event(this, handle__event, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_event(QEvent* event) {
|
|
|
|
return QGraphicsRotation::event(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__eventFilter = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
if (handle__eventFilter == 0) {
|
|
return QGraphicsRotation::eventFilter(watched, event);
|
|
}
|
|
|
|
QObject* sigval1 = watched;
|
|
QEvent* sigval2 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QGraphicsRotation_eventFilter(this, handle__eventFilter, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_eventFilter(QObject* watched, QEvent* event) {
|
|
|
|
return QGraphicsRotation::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__timerEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
if (handle__timerEvent == 0) {
|
|
QGraphicsRotation::timerEvent(event);
|
|
return;
|
|
}
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsRotation_timerEvent(this, handle__timerEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_timerEvent(QTimerEvent* event) {
|
|
|
|
QGraphicsRotation::timerEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__childEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
if (handle__childEvent == 0) {
|
|
QGraphicsRotation::childEvent(event);
|
|
return;
|
|
}
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsRotation_childEvent(this, handle__childEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_childEvent(QChildEvent* event) {
|
|
|
|
QGraphicsRotation::childEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__customEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void customEvent(QEvent* event) override {
|
|
if (handle__customEvent == 0) {
|
|
QGraphicsRotation::customEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QGraphicsRotation_customEvent(this, handle__customEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_customEvent(QEvent* event) {
|
|
|
|
QGraphicsRotation::customEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__connectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
if (handle__connectNotify == 0) {
|
|
QGraphicsRotation::connectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGraphicsRotation_connectNotify(this, handle__connectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_connectNotify(QMetaMethod* signal) {
|
|
|
|
QGraphicsRotation::connectNotify(*signal);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__disconnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
if (handle__disconnectNotify == 0) {
|
|
QGraphicsRotation::disconnectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QGraphicsRotation_disconnectNotify(this, handle__disconnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_disconnectNotify(QMetaMethod* signal) {
|
|
|
|
QGraphicsRotation::disconnectNotify(*signal);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QGraphicsRotation* QGraphicsRotation_new() {
|
|
return new MiqtVirtualQGraphicsRotation();
|
|
}
|
|
|
|
QGraphicsRotation* QGraphicsRotation_new2(QObject* parent) {
|
|
return new MiqtVirtualQGraphicsRotation(parent);
|
|
}
|
|
|
|
void QGraphicsRotation_virtbase(QGraphicsRotation* src, QGraphicsTransform** outptr_QGraphicsTransform) {
|
|
*outptr_QGraphicsTransform = static_cast<QGraphicsTransform*>(src);
|
|
}
|
|
|
|
QMetaObject* QGraphicsRotation_metaObject(const QGraphicsRotation* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QGraphicsRotation_metacast(QGraphicsRotation* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QGraphicsRotation_tr(const char* s) {
|
|
QString _ret = QGraphicsRotation::tr(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsRotation_trUtf8(const char* s) {
|
|
QString _ret = QGraphicsRotation::trUtf8(s);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
QVector3D* QGraphicsRotation_origin(const QGraphicsRotation* self) {
|
|
return new QVector3D(self->origin());
|
|
}
|
|
|
|
void QGraphicsRotation_setOrigin(QGraphicsRotation* self, QVector3D* point) {
|
|
self->setOrigin(*point);
|
|
}
|
|
|
|
double QGraphicsRotation_angle(const QGraphicsRotation* self) {
|
|
qreal _ret = self->angle();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QGraphicsRotation_setAngle(QGraphicsRotation* self, double angle) {
|
|
self->setAngle(static_cast<qreal>(angle));
|
|
}
|
|
|
|
QVector3D* QGraphicsRotation_axis(const QGraphicsRotation* self) {
|
|
return new QVector3D(self->axis());
|
|
}
|
|
|
|
void QGraphicsRotation_setAxis(QGraphicsRotation* self, QVector3D* axis) {
|
|
self->setAxis(*axis);
|
|
}
|
|
|
|
void QGraphicsRotation_setAxisWithAxis(QGraphicsRotation* self, int axis) {
|
|
self->setAxis(static_cast<Qt::Axis>(axis));
|
|
}
|
|
|
|
void QGraphicsRotation_applyTo(const QGraphicsRotation* self, QMatrix4x4* matrix) {
|
|
self->applyTo(matrix);
|
|
}
|
|
|
|
void QGraphicsRotation_originChanged(QGraphicsRotation* self) {
|
|
self->originChanged();
|
|
}
|
|
|
|
void QGraphicsRotation_connect_originChanged(QGraphicsRotation* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation::connect(self, static_cast<void (QGraphicsRotation::*)()>(&QGraphicsRotation::originChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsRotation_originChanged(slot);
|
|
});
|
|
}
|
|
|
|
void QGraphicsRotation_angleChanged(QGraphicsRotation* self) {
|
|
self->angleChanged();
|
|
}
|
|
|
|
void QGraphicsRotation_connect_angleChanged(QGraphicsRotation* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation::connect(self, static_cast<void (QGraphicsRotation::*)()>(&QGraphicsRotation::angleChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsRotation_angleChanged(slot);
|
|
});
|
|
}
|
|
|
|
void QGraphicsRotation_axisChanged(QGraphicsRotation* self) {
|
|
self->axisChanged();
|
|
}
|
|
|
|
void QGraphicsRotation_connect_axisChanged(QGraphicsRotation* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation::connect(self, static_cast<void (QGraphicsRotation::*)()>(&QGraphicsRotation::axisChanged), self, [=]() {
|
|
miqt_exec_callback_QGraphicsRotation_axisChanged(slot);
|
|
});
|
|
}
|
|
|
|
struct miqt_string QGraphicsRotation_tr2(const char* s, const char* c) {
|
|
QString _ret = QGraphicsRotation::tr(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsRotation_tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsRotation::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsRotation_trUtf82(const char* s, const char* c) {
|
|
QString _ret = QGraphicsRotation::trUtf8(s, c);
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QGraphicsRotation_trUtf83(const char* s, const char* c, int n) {
|
|
QString _ret = QGraphicsRotation::trUtf8(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_applyTo(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__applyTo = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsRotation_virtualbase_applyTo(const void* self, QMatrix4x4* matrix) {
|
|
( (const MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_applyTo(matrix);
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_event(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__event = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QGraphicsRotation_virtualbase_event(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_event(event);
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_eventFilter(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__eventFilter = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QGraphicsRotation_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event) {
|
|
return ( (MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_eventFilter(watched, event);
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_timerEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__timerEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsRotation_virtualbase_timerEvent(void* self, QTimerEvent* event) {
|
|
( (MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_timerEvent(event);
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_childEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__childEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsRotation_virtualbase_childEvent(void* self, QChildEvent* event) {
|
|
( (MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_childEvent(event);
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_customEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__customEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsRotation_virtualbase_customEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_customEvent(event);
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_connectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__connectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsRotation_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_connectNotify(signal);
|
|
}
|
|
|
|
bool QGraphicsRotation_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQGraphicsRotation* self_cast = dynamic_cast<MiqtVirtualQGraphicsRotation*>( (QGraphicsRotation*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__disconnectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QGraphicsRotation_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_disconnectNotify(signal);
|
|
}
|
|
|
|
void QGraphicsRotation_delete(QGraphicsRotation* self) {
|
|
delete self;
|
|
}
|
|
|