#ifndef PYTHONQTWRAPPER_QGRAPHICSSIMPLETEXTITEM_H #define PYTHONQTWRAPPER_QGRAPHICSSIMPLETEXTITEM_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class PythonQtShell_QGraphicsSimpleTextItem : public QGraphicsSimpleTextItem { public: PythonQtShell_QGraphicsSimpleTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsSimpleTextItem(parent, scene),_wrapper(NULL) {}; PythonQtShell_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsSimpleTextItem(text, parent, scene),_wrapper(NULL) {}; virtual bool isObscuredBy(const QGraphicsItem* item) const; virtual QPainterPath opaqueArea() const; PythonQtInstanceWrapper* _wrapper; }; class PythonQtPublicPromoter_QGraphicsSimpleTextItem : public QGraphicsSimpleTextItem { public: inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsSimpleTextItem::isObscuredBy(item); } inline QPainterPath promoted_opaqueArea() const { return QGraphicsSimpleTextItem::opaqueArea(); } }; class PythonQtWrapper_QGraphicsSimpleTextItem : public QObject { Q_OBJECT public: Q_ENUMS(enum_1 ) enum enum_1{ Type = QGraphicsSimpleTextItem::Type}; public slots: QGraphicsSimpleTextItem* new_QGraphicsSimpleTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); QGraphicsSimpleTextItem* new_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); void delete_QGraphicsSimpleTextItem(QGraphicsSimpleTextItem* obj) { delete obj; } QPainterPath shape(QGraphicsSimpleTextItem* theWrappedObject) const; QFont font(QGraphicsSimpleTextItem* theWrappedObject) const; bool isObscuredBy(QGraphicsSimpleTextItem* theWrappedObject, const QGraphicsItem* item) const; void paint(QGraphicsSimpleTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); void setText(QGraphicsSimpleTextItem* theWrappedObject, const QString& text); int type(QGraphicsSimpleTextItem* theWrappedObject) const; void setFont(QGraphicsSimpleTextItem* theWrappedObject, const QFont& font); QString text(QGraphicsSimpleTextItem* theWrappedObject) const; bool contains(QGraphicsSimpleTextItem* theWrappedObject, const QPointF& point) const; QRectF boundingRect(QGraphicsSimpleTextItem* theWrappedObject) const; QPainterPath opaqueArea(QGraphicsSimpleTextItem* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QGRAPHICSSIMPLETEXTITEM_H