#ifndef PYTHONQTWRAPPER_QGRAPHICSPATHITEM_H #define PYTHONQTWRAPPER_QGRAPHICSPATHITEM_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include class PythonQtShell_QGraphicsPathItem : public QGraphicsPathItem { public: PythonQtShell_QGraphicsPathItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPathItem(parent, scene),_wrapper(NULL) {}; PythonQtShell_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPathItem(path, parent, scene),_wrapper(NULL) {}; virtual bool isObscuredBy(const QGraphicsItem* item) const; virtual QPainterPath opaqueArea() const; PythonQtInstanceWrapper* _wrapper; }; class PythonQtPublicPromoter_QGraphicsPathItem : public QGraphicsPathItem { public: inline QPainterPath promoted_opaqueArea() const { return QGraphicsPathItem::opaqueArea(); } inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPathItem::isObscuredBy(item); } }; class PythonQtWrapper_QGraphicsPathItem : public QObject { Q_OBJECT public: Q_ENUMS(enum_1 ) enum enum_1{ Type = QGraphicsPathItem::Type}; public slots: QGraphicsPathItem* new_QGraphicsPathItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); QGraphicsPathItem* new_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); void delete_QGraphicsPathItem(QGraphicsPathItem* obj) { delete obj; } QPainterPath opaqueArea(QGraphicsPathItem* theWrappedObject) const; void paint(QGraphicsPathItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); QPainterPath path(QGraphicsPathItem* theWrappedObject) const; QPainterPath shape(QGraphicsPathItem* theWrappedObject) const; int type(QGraphicsPathItem* theWrappedObject) const; QRectF boundingRect(QGraphicsPathItem* theWrappedObject) const; bool isObscuredBy(QGraphicsPathItem* theWrappedObject, const QGraphicsItem* item) const; void setPath(QGraphicsPathItem* theWrappedObject, const QPainterPath& path); bool contains(QGraphicsPathItem* theWrappedObject, const QPointF& point) const; }; #endif // PYTHONQTWRAPPER_QGRAPHICSPATHITEM_H