PythonQtWrapper_QGraphicsItem.cpp
1533 lines
| 54.8 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QGraphicsItem.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qgraphicsitem.h> | ||||
#include <qgraphicsscene.h> | ||||
#include <qgraphicssceneevent.h> | ||||
#include <qgraphicswidget.h> | ||||
#include <qlist.h> | ||||
#include <qpainter.h> | ||||
#include <qpainterpath.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qstyleoption.h> | ||||
#include <qtransform.h> | ||||
#include <qwidget.h> | ||||
|
r24 | void PythonQtShell_QGraphicsItem::advance(int phase) | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"advance(QGraphicsItem*,int )"); | ||||
void* args[2] = {NULL, (void*)&phase}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::advance(phase); | ||||
} | ||||
QRectF PythonQtShell_QGraphicsItem::boundingRect() const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"boundingRect(QGraphicsItem*)"); | ||||
QRectF returnValue; | ||||
void* args[1] = {NULL}; | ||||
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 = *((QRectF *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
QRectF result; | ||||
return result; | ||||
} | ||||
bool PythonQtShell_QGraphicsItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"collidesWithItem(QGraphicsItem*,const QGraphicsItem* ,Qt::ItemSelectionMode )"); | ||||
bool returnValue; | ||||
void* args[3] = {NULL, (void*)&other, (void*)&mode}; | ||||
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 QGraphicsItem::collidesWithItem(other, mode); | ||||
} | ||||
bool PythonQtShell_QGraphicsItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"collidesWithPath(QGraphicsItem*,const QPainterPath& ,Qt::ItemSelectionMode )"); | ||||
bool returnValue; | ||||
void* args[3] = {NULL, (void*)&path, (void*)&mode}; | ||||
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 QGraphicsItem::collidesWithPath(path, mode); | ||||
} | ||||
bool PythonQtShell_QGraphicsItem::contains(const QPointF& point) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"contains(QGraphicsItem*,const QPointF& )"); | ||||
bool returnValue; | ||||
void* args[2] = {NULL, (void*)&point}; | ||||
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 QGraphicsItem::contains(point); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"contextMenuEvent(QGraphicsItem*,QGraphicsSceneContextMenuEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::contextMenuEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"dragEnterEvent(QGraphicsItem*,QGraphicsSceneDragDropEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::dragEnterEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"dragLeaveEvent(QGraphicsItem*,QGraphicsSceneDragDropEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::dragLeaveEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"dragMoveEvent(QGraphicsItem*,QGraphicsSceneDragDropEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::dragMoveEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::dropEvent(QGraphicsSceneDragDropEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"dropEvent(QGraphicsItem*,QGraphicsSceneDragDropEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::dropEvent(event); | ||||
} | ||||
QVariant PythonQtShell_QGraphicsItem::extension(const QVariant& variant) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"extension(QGraphicsItem*,const QVariant& )"); | ||||
QVariant returnValue; | ||||
void* args[2] = {NULL, (void*)&variant}; | ||||
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 = *((QVariant *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItem::extension(variant); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::focusInEvent(QFocusEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"focusInEvent(QGraphicsItem*,QFocusEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::focusInEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::focusOutEvent(QFocusEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"focusOutEvent(QGraphicsItem*,QFocusEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::focusOutEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"hoverEnterEvent(QGraphicsItem*,QGraphicsSceneHoverEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::hoverEnterEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"hoverLeaveEvent(QGraphicsItem*,QGraphicsSceneHoverEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::hoverLeaveEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"hoverMoveEvent(QGraphicsItem*,QGraphicsSceneHoverEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::hoverMoveEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::inputMethodEvent(QInputMethodEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"inputMethodEvent(QGraphicsItem*,QInputMethodEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::inputMethodEvent(event); | ||||
} | ||||
QVariant PythonQtShell_QGraphicsItem::inputMethodQuery(Qt::InputMethodQuery query) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"inputMethodQuery(QGraphicsItem*,Qt::InputMethodQuery )"); | ||||
QVariant returnValue; | ||||
void* args[2] = {NULL, (void*)&query}; | ||||
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 = *((QVariant *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItem::inputMethodQuery(query); | ||||
} | ||||
bool PythonQtShell_QGraphicsItem::isObscuredBy(const QGraphicsItem* item) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"isObscuredBy(QGraphicsItem*,const QGraphicsItem* )"); | ||||
bool returnValue; | ||||
void* args[2] = {NULL, (void*)&item}; | ||||
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 QGraphicsItem::isObscuredBy(item); | ||||
} | ||||
QVariant PythonQtShell_QGraphicsItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"itemChange(QGraphicsItem*,QGraphicsItem::GraphicsItemChange ,const QVariant& )"); | ||||
QVariant returnValue; | ||||
void* args[3] = {NULL, (void*)&change, (void*)&value}; | ||||
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 = *((QVariant *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItem::itemChange(change, value); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::keyPressEvent(QKeyEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"keyPressEvent(QGraphicsItem*,QKeyEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::keyPressEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::keyReleaseEvent(QKeyEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"keyReleaseEvent(QGraphicsItem*,QKeyEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::keyReleaseEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"mouseDoubleClickEvent(QGraphicsItem*,QGraphicsSceneMouseEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::mouseDoubleClickEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"mouseMoveEvent(QGraphicsItem*,QGraphicsSceneMouseEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::mouseMoveEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::mousePressEvent(QGraphicsSceneMouseEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"mousePressEvent(QGraphicsItem*,QGraphicsSceneMouseEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::mousePressEvent(event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"mouseReleaseEvent(QGraphicsItem*,QGraphicsSceneMouseEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::mouseReleaseEvent(event); | ||||
} | ||||
QPainterPath PythonQtShell_QGraphicsItem::opaqueArea() const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"opaqueArea(QGraphicsItem*)"); | ||||
QPainterPath returnValue; | ||||
void* args[1] = {NULL}; | ||||
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 = *((QPainterPath *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItem::opaqueArea(); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"paint(QGraphicsItem*,QPainter* ,const QStyleOptionGraphicsItem* ,QWidget* )"); | ||||
void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
} | ||||
bool PythonQtShell_QGraphicsItem::sceneEvent(QEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"sceneEvent(QGraphicsItem*,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
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 QGraphicsItem::sceneEvent(event); | ||||
} | ||||
bool PythonQtShell_QGraphicsItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"sceneEventFilter(QGraphicsItem*,QGraphicsItem* ,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[3] = {NULL, (void*)&watched, (void*)&event}; | ||||
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 QGraphicsItem::sceneEventFilter(watched, event); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"setExtension(QGraphicsItem*,QGraphicsItem::Extension ,const QVariant& )"); | ||||
void* args[3] = {NULL, (void*)&extension, (void*)&variant}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::setExtension(extension, variant); | ||||
} | ||||
QPainterPath PythonQtShell_QGraphicsItem::shape() const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"shape(QGraphicsItem*)"); | ||||
QPainterPath returnValue; | ||||
void* args[1] = {NULL}; | ||||
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 = *((QPainterPath *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItem::shape(); | ||||
} | ||||
bool PythonQtShell_QGraphicsItem::supportsExtension(QGraphicsItem::Extension extension) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"supportsExtension(QGraphicsItem*,QGraphicsItem::Extension )"); | ||||
bool returnValue; | ||||
void* args[2] = {NULL, (void*)&extension}; | ||||
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 QGraphicsItem::supportsExtension(extension); | ||||
} | ||||
int PythonQtShell_QGraphicsItem::type() const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"type(QGraphicsItem*)"); | ||||
int returnValue; | ||||
void* args[1] = {NULL}; | ||||
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 = *((int *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QGraphicsItem::type(); | ||||
} | ||||
void PythonQtShell_QGraphicsItem::wheelEvent(QGraphicsSceneWheelEvent* event) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QGraphicsItem::staticMetaObject, | ||||
"wheelEvent(QGraphicsItem*,QGraphicsSceneWheelEvent* )"); | ||||
void* args[2] = {NULL, (void*)&event}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QGraphicsItem::wheelEvent(event); | ||||
} | ||||
QGraphicsItem* PythonQtWrapper_QGraphicsItem::new_QGraphicsItem(QGraphicsItem* parent, QGraphicsScene* scene) | ||||
{ | ||||
return new PythonQtShell_QGraphicsItem(parent, scene); } | ||||
|
r28 | bool PythonQtWrapper_QGraphicsItem::contains(QGraphicsItem* theWrappedObject, const QPointF& point) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_contains(point); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToParent(path); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QGraphicsItem::y(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->y(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::keyReleaseEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_keyReleaseEvent(event); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromItem(item, point); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::grabKeyboard(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->grabKeyboard(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::sceneEvent(QGraphicsItem* theWrappedObject, QEvent* event) | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_sceneEvent(event); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setFlag(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlag flag, bool enabled) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setFlag(flag, enabled); | ||
|
r13 | } | ||
|
r24 | qreal PythonQtWrapper_QGraphicsItem::zValue(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->zValue(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setVisible(QGraphicsItem* theWrappedObject, bool visible) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setVisible(visible); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::show(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->show(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setBoundingRegionGranularity(QGraphicsItem* theWrappedObject, qreal granularity) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setBoundingRegionGranularity(granularity); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isEnabled(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isEnabled(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::mouseDoubleClickEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseDoubleClickEvent(event); | ||
|
r13 | } | ||
|
r28 | QVariant PythonQtWrapper_QGraphicsItem::data(QGraphicsItem* theWrappedObject, int key) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->data(key); | ||
|
r13 | } | ||
|
r28 | QGraphicsItemGroup* PythonQtWrapper_QGraphicsItem::group(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->group(); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromScene(x, y); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setGroup(QGraphicsItem* theWrappedObject, QGraphicsItemGroup* group) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setGroup(group); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToItem(item, path); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromScene(polygon); | ||
|
r13 | } | ||
|
r28 | QTransform PythonQtWrapper_QGraphicsItem::transform(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->transform(); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPointF& point) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromScene(point); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPointF& point) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromParent(point); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToItem(item, point); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToScene(x, y); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPointF& point) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToScene(point); | ||
|
r13 | } | ||
|
r28 | QVariant PythonQtWrapper_QGraphicsItem::inputMethodQuery(QGraphicsItem* theWrappedObject, Qt::InputMethodQuery query) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_inputMethodQuery(query); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::dragEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) | ||
|
r24 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragEnterEvent(event); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::unsetCursor(QGraphicsItem* theWrappedObject) | ||
|
r24 | { | ||
|
r28 | theWrappedObject->unsetCursor(); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setFocus(QGraphicsItem* theWrappedObject, Qt::FocusReason focusReason) | ||
|
r24 | { | ||
|
r28 | theWrappedObject->setFocus(focusReason); | ||
|
r24 | } | ||
|
r28 | QRectF PythonQtWrapper_QGraphicsItem::sceneBoundingRect(QGraphicsItem* theWrappedObject) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->sceneBoundingRect(); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::mouseReleaseEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) | ||
|
r24 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseReleaseEvent(event); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToScene(x, y, w, h); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromScene(rect); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::keyPressEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_keyPressEvent(event); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::pos(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->pos(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::acceptHoverEvents(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->acceptHoverEvents(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setHandlesChildEvents(QGraphicsItem* theWrappedObject, bool enabled) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setHandlesChildEvents(enabled); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::scroll(QGraphicsItem* theWrappedObject, qreal dx, qreal dy, const QRectF& rect) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->scroll(dx, dy, rect); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setAcceptsHoverEvents(QGraphicsItem* theWrappedObject, bool enabled) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setAcceptsHoverEvents(enabled); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setSelected(QGraphicsItem* theWrappedObject, bool selected) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setSelected(selected); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromScene(path); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setPos(QGraphicsItem* theWrappedObject, const QPointF& pos) | ||
|
r24 | { | ||
|
r28 | theWrappedObject->setPos(pos); | ||
|
r24 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->mapToParent(x, y, w, h); | ||
|
r24 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToItem(item, rect); | ||
|
r24 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::opaqueArea(QGraphicsItem* theWrappedObject) const | ||
|
r24 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_opaqueArea(); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::mousePressEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) | ||
|
r24 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mousePressEvent(event); | ||
|
r24 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->mapToItem(item, polygon); | ||
|
r24 | } | ||
|
r28 | QGraphicsWidget* PythonQtWrapper_QGraphicsItem::parentWidget(QGraphicsItem* theWrappedObject) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->parentWidget(); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setAcceptDrops(QGraphicsItem* theWrappedObject, bool on) | ||
|
r24 | { | ||
|
r28 | theWrappedObject->setAcceptDrops(on); | ||
|
r13 | } | ||
|
r28 | Qt::MouseButtons PythonQtWrapper_QGraphicsItem::acceptedMouseButtons(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->acceptedMouseButtons(); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromParent(x, y); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::translate(QGraphicsItem* theWrappedObject, qreal dx, qreal dy) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->translate(dx, dy); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QGraphicsItem::x(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->x(); | ||
|
r13 | } | ||
|
r28 | QRectF PythonQtWrapper_QGraphicsItem::childrenBoundingRect(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->childrenBoundingRect(); | ||
|
r13 | } | ||
|
r28 | QString PythonQtWrapper_QGraphicsItem::toolTip(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->toolTip(); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromItem(item, rect); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromParent(polygon); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setAcceptHoverEvents(QGraphicsItem* theWrappedObject, bool enabled) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setAcceptHoverEvents(enabled); | ||
|
r13 | } | ||
|
r28 | QGraphicsItem* PythonQtWrapper_QGraphicsItem::parentItem(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->parentItem(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::update(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal width, qreal height) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->update(x, y, width, height); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setToolTip(QGraphicsItem* theWrappedObject, const QString& toolTip) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setToolTip(toolTip); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isObscured(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isUnderMouse(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isUnderMouse(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isObscuredBy(QGraphicsItem* theWrappedObject, const QGraphicsItem* item) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_isObscuredBy(item); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToParent(rect); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isVisibleTo(QGraphicsItem* theWrappedObject, const QGraphicsItem* parent) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isVisibleTo(parent); | ||
|
r13 | } | ||
|
r28 | QVariant PythonQtWrapper_QGraphicsItem::itemChange(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value) | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_itemChange(change, value); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setEnabled(QGraphicsItem* theWrappedObject, bool enabled) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setEnabled(enabled); | ||
|
r13 | } | ||
|
r28 | QGraphicsWidget* PythonQtWrapper_QGraphicsItem::topLevelWidget(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->topLevelWidget(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::hide(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->hide(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::mouseMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseMoveEvent(event); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isVisible(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isVisible(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::grabMouse(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->grabMouse(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isSelected(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isSelected(); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToScene(polygon); | ||
|
r13 | } | ||
|
r28 | QGraphicsItem* PythonQtWrapper_QGraphicsItem::topLevelItem(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->topLevelItem(); | ||
|
r13 | } | ||
|
r28 | QList<QGraphicsItem* > PythonQtWrapper_QGraphicsItem::collidingItems(QGraphicsItem* theWrappedObject, Qt::ItemSelectionMode mode) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->collidingItems(mode); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromItem(item, x, y, w, h); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::clearFocus(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->clearFocus(); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToItem(item, x, y, w, h); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::scale(QGraphicsItem* theWrappedObject, qreal sx, qreal sy) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->scale(sx, sy); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setZValue(QGraphicsItem* theWrappedObject, qreal z) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setZValue(z); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::focusOutEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_focusOutEvent(event); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::handlesChildEvents(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->handlesChildEvents(); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromScene(x, y, w, h); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::acceptDrops(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->acceptDrops(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::inputMethodEvent(QGraphicsItem* theWrappedObject, QInputMethodEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_inputMethodEvent(event); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::acceptsHoverEvents(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->acceptsHoverEvents(); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromItem(item, polygon); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::focusInEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_focusInEvent(event); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::ungrabMouse(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->ungrabMouse(); | ||
|
r13 | } | ||
|
r28 | QGraphicsItem::GraphicsItemFlags PythonQtWrapper_QGraphicsItem::flags(QGraphicsItem* theWrappedObject) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->flags(); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setCursor(QGraphicsItem* theWrappedObject, const QCursor& cursor) | ||
|
r24 | { | ||
|
r28 | theWrappedObject->setCursor(cursor); | ||
|
r24 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->mapFromParent(path); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::hoverEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) | ||
|
r24 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverEnterEvent(event); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::ensureVisible(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin) | ||
|
r24 | { | ||
|
r28 | theWrappedObject->ensureVisible(x, y, w, h, xmargin, ymargin); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::ensureVisible(QGraphicsItem* theWrappedObject, const QRectF& rect, int xmargin, int ymargin) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->ensureVisible(rect, xmargin, ymargin); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isObscured(x, y, w, h); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setFlags(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlags flags) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setFlags(flags); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::shape(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_shape(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::ungrabKeyboard(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->ungrabKeyboard(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::wheelEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneWheelEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_wheelEvent(event); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromItem(item, path); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::collidesWithPath(QGraphicsItem* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_collidesWithPath(path, mode); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setParentItem(QGraphicsItem* theWrappedObject, QGraphicsItem* parent) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setParentItem(parent); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToScene(path); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::resetTransform(QGraphicsItem* theWrappedObject) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->resetTransform(); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::scenePos(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->scenePos(); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToItem(item, x, y); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToScene(rect); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::moveBy(QGraphicsItem* theWrappedObject, qreal dx, qreal dy) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->moveBy(dx, dy); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setCacheMode(QGraphicsItem* theWrappedObject, QGraphicsItem::CacheMode mode, const QSize& cacheSize) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setCacheMode(mode, cacheSize); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToParent(x, y); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::advance(QGraphicsItem* theWrappedObject, int phase) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_advance(phase); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromItem(item, x, y); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::hoverLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverLeaveEvent(event); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject, const QRectF& rect) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isObscured(rect); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::update(QGraphicsItem* theWrappedObject, const QRectF& rect) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->update(rect); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isWidget(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isWidget(); | ||
|
r13 | } | ||
|
r28 | QVariant PythonQtWrapper_QGraphicsItem::extension(QGraphicsItem* theWrappedObject, const QVariant& variant) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_extension(variant); | ||
|
r13 | } | ||
|
r28 | QGraphicsItem* PythonQtWrapper_QGraphicsItem::commonAncestorItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->commonAncestorItem(other); | ||
|
r13 | } | ||
|
r28 | QGraphicsItem::CacheMode PythonQtWrapper_QGraphicsItem::cacheMode(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->cacheMode(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::installSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->installSceneEventFilter(filterItem); | ||
|
r13 | } | ||
|
r28 | QGraphicsWidget* PythonQtWrapper_QGraphicsItem::window(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->window(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setData(QGraphicsItem* theWrappedObject, int key, const QVariant& value) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setData(key, value); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setPos(QGraphicsItem* theWrappedObject, qreal x, qreal y) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setPos(x, y); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::removeSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->removeSceneEventFilter(filterItem); | ||
|
r13 | } | ||
|
r28 | QGraphicsScene* PythonQtWrapper_QGraphicsItem::scene(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->scene(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::collidesWithItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, Qt::ItemSelectionMode mode) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_collidesWithItem(other, mode); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::hasFocus(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->hasFocus(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::contextMenuEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneContextMenuEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_contextMenuEvent(event); | ||
|
r13 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromParent(rect); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::dropEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dropEvent(event); | ||
|
r13 | } | ||
|
r28 | QTransform PythonQtWrapper_QGraphicsItem::sceneTransform(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->sceneTransform(); | ||
|
r13 | } | ||
|
r28 | QList<QGraphicsItem* > PythonQtWrapper_QGraphicsItem::childItems(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->childItems(); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QGraphicsItem::type(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_type(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QGraphicsItem::boundingRegionGranularity(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->boundingRegionGranularity(); | ||
|
r13 | } | ||
|
r28 | QCursor PythonQtWrapper_QGraphicsItem::cursor(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->cursor(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isWindow(QGraphicsItem* theWrappedObject) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->isWindow(); | ||
|
r24 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->mapToParent(polygon); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::dragLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) | ||
|
r24 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragLeaveEvent(event); | ||
|
r24 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::dragMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) | ||
|
r24 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragMoveEvent(event); | ||
|
r24 | } | ||
|
r28 | QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapFromParent(x, y, w, h); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setAcceptedMouseButtons(QGraphicsItem* theWrappedObject, Qt::MouseButtons buttons) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setAcceptedMouseButtons(buttons); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::hoverMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) | ||
|
r13 | { | ||
|
r28 | ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverMoveEvent(event); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPointF& point) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->mapToParent(point); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::shear(QGraphicsItem* theWrappedObject, qreal sh, qreal sv) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->shear(sh, sv); | ||
|
r13 | } | ||
|
r28 | QTransform PythonQtWrapper_QGraphicsItem::deviceTransform(QGraphicsItem* theWrappedObject, const QTransform& viewportTransform) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->deviceTransform(viewportTransform); | ||
|
r13 | } | ||
|
r28 | QRegion PythonQtWrapper_QGraphicsItem::boundingRegion(QGraphicsItem* theWrappedObject, const QTransform& itemToDeviceTransform) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->boundingRegion(itemToDeviceTransform); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::hasCursor(QGraphicsItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->hasCursor(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::isAncestorOf(QGraphicsItem* theWrappedObject, const QGraphicsItem* child) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isAncestorOf(child); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::rotate(QGraphicsItem* theWrappedObject, qreal angle) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->rotate(angle); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsItem::setTransform(QGraphicsItem* theWrappedObject, const QTransform& matrix, bool combine) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setTransform(matrix, combine); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsItem::sceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* watched, QEvent* event) | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_sceneEventFilter(watched, event); | ||
|
r13 | } | ||