#ifndef PYTHONQTWRAPPER_QGRAPHICSPOLYGONITEM_H #define PYTHONQTWRAPPER_QGRAPHICSPOLYGONITEM_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class PythonQtShell_QGraphicsPolygonItem : public QGraphicsPolygonItem { public: PythonQtShell_QGraphicsPolygonItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPolygonItem(parent, scene),_wrapper(NULL) {}; PythonQtShell_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPolygonItem(polygon, parent, scene),_wrapper(NULL) {}; virtual bool isObscuredBy(const QGraphicsItem* item) const; virtual QPainterPath opaqueArea() const; PythonQtInstanceWrapper* _wrapper; }; class PythonQtPublicPromoter_QGraphicsPolygonItem : public QGraphicsPolygonItem { public: inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPolygonItem::isObscuredBy(item); } inline QPainterPath promoted_opaqueArea() const { return QGraphicsPolygonItem::opaqueArea(); } }; class PythonQtWrapper_QGraphicsPolygonItem : public QObject { Q_OBJECT public: Q_ENUMS(enum_1 ) enum enum_1{ Type = QGraphicsPolygonItem::Type}; public slots: QGraphicsPolygonItem* new_QGraphicsPolygonItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); QGraphicsPolygonItem* new_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); void delete_QGraphicsPolygonItem(QGraphicsPolygonItem* obj) { delete obj; } bool isObscuredBy(QGraphicsPolygonItem* theWrappedObject, const QGraphicsItem* item) const; void setFillRule(QGraphicsPolygonItem* theWrappedObject, Qt::FillRule rule); bool contains(QGraphicsPolygonItem* theWrappedObject, const QPointF& point) const; QRectF boundingRect(QGraphicsPolygonItem* theWrappedObject) const; Qt::FillRule fillRule(QGraphicsPolygonItem* theWrappedObject) const; void setPolygon(QGraphicsPolygonItem* theWrappedObject, const QPolygonF& polygon); void paint(QGraphicsPolygonItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); QPainterPath opaqueArea(QGraphicsPolygonItem* theWrappedObject) const; QPolygonF polygon(QGraphicsPolygonItem* theWrappedObject) const; QPainterPath shape(QGraphicsPolygonItem* theWrappedObject) const; int type(QGraphicsPolygonItem* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QGRAPHICSPOLYGONITEM_H