PythonQtWrapper_QGraphicsPathItem.h
60 lines
| 2.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSPATHITEM_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSPATHITEM_H | ||||
#include <qgraphicsitem.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
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> | ||||
florianlink
|
r24 | 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; | ||||
}; | ||||
florianlink
|
r28 | 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); } | ||||
}; | ||||
florianlink
|
r13 | 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); | ||||
florianlink
|
r24 | QPainterPath path(QGraphicsPathItem* theWrappedObject) const; | ||
florianlink
|
r28 | int type(QGraphicsPathItem* theWrappedObject) const; | ||
florianlink
|
r24 | QRectF boundingRect(QGraphicsPathItem* theWrappedObject) const; | ||
florianlink
|
r28 | bool isObscuredBy(QGraphicsPathItem* theWrappedObject, const QGraphicsItem* item) const; | ||
void setPath(QGraphicsPathItem* theWrappedObject, const QPainterPath& path); | ||||
QPainterPath shape(QGraphicsPathItem* theWrappedObject) const; | ||||
bool contains(QGraphicsPathItem* theWrappedObject, const QPointF& point) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRAPHICSPATHITEM_H | ||||