PythonQtWrapper_QGraphicsEllipseItem.cpp
149 lines
| 5.3 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QGraphicsEllipseItem.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qgraphicsitem.h> | ||||
#include <qgraphicsscene.h> | ||||
#include <qpainter.h> | ||||
#include <qpainterpath.h> | ||||
#include <qpen.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qstyleoption.h> | ||||
#include <qwidget.h> | ||||
|
r24 | bool PythonQtShell_QGraphicsEllipseItem::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_QGraphicsEllipseItem::staticMetaObject, | ||||
"isObscuredBy(QGraphicsEllipseItem*,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 QGraphicsEllipseItem::isObscuredBy(item); | ||||
} | ||||
QPainterPath PythonQtShell_QGraphicsEllipseItem::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_QGraphicsEllipseItem::staticMetaObject, | ||||
"opaqueArea(QGraphicsEllipseItem*)"); | ||||
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 QGraphicsEllipseItem::opaqueArea(); | ||||
} | ||||
|
r13 | QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(QGraphicsItem* parent, QGraphicsScene* scene) | ||
{ | ||||
|
r24 | return new PythonQtShell_QGraphicsEllipseItem(parent, scene); } | ||
|
r13 | |||
QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent, QGraphicsScene* scene) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QGraphicsEllipseItem(rect, parent, scene); } | ||
|
r13 | |||
QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent, QGraphicsScene* scene) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QGraphicsEllipseItem(x, y, w, h, parent, scene); } | ||
|
r13 | |||
|
r28 | void PythonQtWrapper_QGraphicsEllipseItem::setRect(QGraphicsEllipseItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setRect(x, y, w, h); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QGraphicsEllipseItem::startAngle(QGraphicsEllipseItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->startAngle(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsEllipseItem::setRect(QGraphicsEllipseItem* theWrappedObject, const QRectF& rect) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setRect(rect); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsEllipseItem::setSpanAngle(QGraphicsEllipseItem* theWrappedObject, int angle) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setSpanAngle(angle); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsEllipseItem::setStartAngle(QGraphicsEllipseItem* theWrappedObject, int angle) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setStartAngle(angle); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QGraphicsEllipseItem::paint(QGraphicsEllipseItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->paint(painter, option, widget); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QGraphicsEllipseItem::type(QGraphicsEllipseItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->type(); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsEllipseItem::shape(QGraphicsEllipseItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->shape(); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QGraphicsEllipseItem::spanAngle(QGraphicsEllipseItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->spanAngle(); | ||
|
r13 | } | ||
|
r28 | QPainterPath PythonQtWrapper_QGraphicsEllipseItem::opaqueArea(QGraphicsEllipseItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsEllipseItem*)theWrappedObject)->promoted_opaqueArea(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsEllipseItem::contains(QGraphicsEllipseItem* theWrappedObject, const QPointF& point) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->contains(point); | ||
|
r24 | } | ||
|
r28 | QRectF PythonQtWrapper_QGraphicsEllipseItem::rect(QGraphicsEllipseItem* theWrappedObject) const | ||
|
r24 | { | ||
|
r28 | return theWrappedObject->rect(); | ||
|
r24 | } | ||
|
r28 | QRectF PythonQtWrapper_QGraphicsEllipseItem::boundingRect(QGraphicsEllipseItem* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->boundingRect(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QGraphicsEllipseItem::isObscuredBy(QGraphicsEllipseItem* theWrappedObject, const QGraphicsItem* item) const | ||
|
r13 | { | ||
|
r28 | return ((PythonQtPublicPromoter_QGraphicsEllipseItem*)theWrappedObject)->promoted_isObscuredBy(item); | ||
|
r13 | } | ||