PythonQtWrapper_QGraphicsItemAnimation.cpp
292 lines
| 10.6 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QGraphicsItemAnimation.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QPair> | ||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qgraphicsitem.h> | ||||
#include <qgraphicsitemanimation.h> | ||||
#include <qlist.h> | ||||
#include <qmatrix.h> | ||||
#include <qobject.h> | ||||
#include <qpair.h> | ||||
#include <qpoint.h> | ||||
#include <qtimeline.h> | ||||
florianlink
|
r24 | void PythonQtShell_QGraphicsItemAnimation::afterAnimationStep(qreal step) | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "afterAnimationStep"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItemAnimation::staticMetaObject, | ||||
"afterAnimationStep(QGraphicsItemAnimation*,qreal )"); | ||||
void* args[2] = {NULL, (void*)&step}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItemAnimation::afterAnimationStep(step); | ||||
} | ||||
void PythonQtShell_QGraphicsItemAnimation::beforeAnimationStep(qreal step) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beforeAnimationStep"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItemAnimation::staticMetaObject, | ||||
"beforeAnimationStep(QGraphicsItemAnimation*,qreal )"); | ||||
void* args[2] = {NULL, (void*)&step}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItemAnimation::beforeAnimationStep(step); | ||||
} | ||||
void PythonQtShell_QGraphicsItemAnimation::childEvent(QChildEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItemAnimation::staticMetaObject, | ||||
"childEvent(QGraphicsItemAnimation*,QChildEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItemAnimation::childEvent(arg__1); | ||||
} | ||||
void PythonQtShell_QGraphicsItemAnimation::customEvent(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItemAnimation::staticMetaObject, | ||||
"customEvent(QGraphicsItemAnimation*,QEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItemAnimation::customEvent(arg__1); | ||||
} | ||||
bool PythonQtShell_QGraphicsItemAnimation::event(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItemAnimation::staticMetaObject, | ||||
"event(QGraphicsItemAnimation*,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
returnValue = *((bool *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItemAnimation::event(arg__1); | ||||
} | ||||
bool PythonQtShell_QGraphicsItemAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItemAnimation::staticMetaObject, | ||||
"eventFilter(QGraphicsItemAnimation*,QObject* ,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
returnValue = *((bool *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItemAnimation::eventFilter(arg__1, arg__2); | ||||
} | ||||
void PythonQtShell_QGraphicsItemAnimation::timerEvent(QTimerEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItemAnimation::staticMetaObject, | ||||
"timerEvent(QGraphicsItemAnimation*,QTimerEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItemAnimation::timerEvent(arg__1); | ||||
} | ||||
florianlink
|
r13 | QGraphicsItemAnimation* PythonQtWrapper_QGraphicsItemAnimation::new_QGraphicsItemAnimation(QObject* parent) | ||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QGraphicsItemAnimation(parent); } | ||
florianlink
|
r13 | |||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::setPosAt(QGraphicsItemAnimation* theWrappedObject, qreal step, const QPointF& pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setPosAt(step, pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::setTimeLine(QGraphicsItemAnimation* theWrappedObject, QTimeLine* timeLine) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setTimeLine(timeLine); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QList<QPair<qreal , QPointF > > PythonQtWrapper_QGraphicsItemAnimation::posList(QGraphicsItemAnimation* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->posList(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::setScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sx, qreal sy) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setScaleAt(step, sx, sy); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QTimeLine* PythonQtWrapper_QGraphicsItemAnimation::timeLine(QGraphicsItemAnimation* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->timeLine(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::setItem(QGraphicsItemAnimation* theWrappedObject, QGraphicsItem* item) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setItem(item); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QList<QPair<qreal , qreal > > PythonQtWrapper_QGraphicsItemAnimation::rotationList(QGraphicsItemAnimation* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->rotationList(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QMatrix PythonQtWrapper_QGraphicsItemAnimation::matrixAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->matrixAt(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QGraphicsItem* PythonQtWrapper_QGraphicsItemAnimation::item(QGraphicsItemAnimation* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->item(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QGraphicsItemAnimation::rotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->rotationAt(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QList<QPair<qreal , QPointF > > PythonQtWrapper_QGraphicsItemAnimation::translationList(QGraphicsItemAnimation* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->translationList(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QGraphicsItemAnimation::horizontalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->horizontalScaleAt(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QGraphicsItemAnimation::horizontalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->horizontalShearAt(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QGraphicsItemAnimation::posAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->posAt(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::setShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sh, qreal sv) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setShearAt(step, sh, sv); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::afterAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | ((PythonQtPublicPromoter_QGraphicsItemAnimation*)theWrappedObject)->promoted_afterAnimationStep(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QGraphicsItemAnimation::verticalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r24 | { | ||
florianlink
|
r28 | return theWrappedObject->verticalScaleAt(step); | ||
florianlink
|
r24 | } | ||
florianlink
|
r28 | QList<QPair<qreal , QPointF > > PythonQtWrapper_QGraphicsItemAnimation::scaleList(QGraphicsItemAnimation* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->scaleList(); | ||
florianlink
|
r13 | } | ||
QList<QPair<qreal , QPointF > > PythonQtWrapper_QGraphicsItemAnimation::shearList(QGraphicsItemAnimation* theWrappedObject) const | ||||
{ | ||||
florianlink
|
r28 | return theWrappedObject->shearList(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QGraphicsItemAnimation::yTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->yTranslationAt(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QGraphicsItemAnimation::clear(QGraphicsItemAnimation* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->clear(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::setTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal dx, qreal dy) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setTranslationAt(step, dx, dy); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QGraphicsItemAnimation::xTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->xTranslationAt(step); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QGraphicsItemAnimation::setRotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal angle) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setRotationAt(step, angle); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QGraphicsItemAnimation::beforeAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step) | ||
florianlink
|
r24 | { | ||
florianlink
|
r28 | ((PythonQtPublicPromoter_QGraphicsItemAnimation*)theWrappedObject)->promoted_beforeAnimationStep(step); | ||
florianlink
|
r24 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QGraphicsItemAnimation::verticalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->verticalShearAt(step); | ||
florianlink
|
r13 | } | ||