PythonQtWrapper_QGraphicsSimpleTextItem.h
63 lines
| 2.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSSIMPLETEXTITEM_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSSIMPLETEXTITEM_H | ||||
#include <qgraphicsitem.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qfont.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> | ||||
florianlink
|
r24 | 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; | ||||
}; | ||||
florianlink
|
r28 | 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(); } | ||||
}; | ||||
florianlink
|
r13 | 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; } | ||||
florianlink
|
r73 | QRectF boundingRect(QGraphicsSimpleTextItem* theWrappedObject) const; | ||
florianlink
|
r28 | QPainterPath shape(QGraphicsSimpleTextItem* theWrappedObject) const; | ||
bool isObscuredBy(QGraphicsSimpleTextItem* theWrappedObject, const QGraphicsItem* item) const; | ||||
florianlink
|
r73 | QFont font(QGraphicsSimpleTextItem* theWrappedObject) const; | ||
florianlink
|
r13 | void paint(QGraphicsSimpleTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); | ||
florianlink
|
r28 | int type(QGraphicsSimpleTextItem* theWrappedObject) const; | ||
florianlink
|
r13 | void setFont(QGraphicsSimpleTextItem* theWrappedObject, const QFont& font); | ||
florianlink
|
r73 | void setText(QGraphicsSimpleTextItem* theWrappedObject, const QString& text); | ||
florianlink
|
r24 | QString text(QGraphicsSimpleTextItem* theWrappedObject) const; | ||
bool contains(QGraphicsSimpleTextItem* theWrappedObject, const QPointF& point) const; | ||||
florianlink
|
r28 | QPainterPath opaqueArea(QGraphicsSimpleTextItem* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRAPHICSSIMPLETEXTITEM_H | ||||