PythonQtWrapper_QAbstractGraphicsShapeItem.h
95 lines
| 4.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QABSTRACTGRAPHICSSHAPEITEM_H | ||
#define PYTHONQTWRAPPER_QABSTRACTGRAPHICSSHAPEITEM_H | ||||
#include <qgraphicsitem.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qgraphicsitem.h> | ||||
#include <qgraphicsscene.h> | ||||
#include <qgraphicssceneevent.h> | ||||
#include <qgraphicswidget.h> | ||||
#include <qlist.h> | ||||
#include <qpainter.h> | ||||
#include <qpainterpath.h> | ||||
#include <qpen.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qstyleoption.h> | ||||
#include <qtransform.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QAbstractGraphicsShapeItem : public QAbstractGraphicsShapeItem | ||
{ | ||||
public: | ||||
PythonQtShell_QAbstractGraphicsShapeItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QAbstractGraphicsShapeItem(parent, scene),_wrapper(NULL) {}; | ||||
virtual void advance(int phase); | ||||
virtual QRectF boundingRect() const; | ||||
virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; | ||||
virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; | ||||
virtual bool contains(const QPointF& point) const; | ||||
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); | ||||
virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dropEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual QVariant extension(const QVariant& variant) const; | ||||
virtual void focusInEvent(QFocusEvent* event); | ||||
virtual void focusOutEvent(QFocusEvent* event); | ||||
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void inputMethodEvent(QInputMethodEvent* event); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; | ||||
virtual bool isObscuredBy(const QGraphicsItem* item) const; | ||||
virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); | ||||
virtual void keyPressEvent(QKeyEvent* event); | ||||
virtual void keyReleaseEvent(QKeyEvent* event); | ||||
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual QPainterPath opaqueArea() const; | ||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); | ||||
virtual bool sceneEvent(QEvent* event); | ||||
virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); | ||||
virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); | ||||
virtual QPainterPath shape() const; | ||||
virtual bool supportsExtension(QGraphicsItem::Extension extension) const; | ||||
virtual int type() const; | ||||
virtual void wheelEvent(QGraphicsSceneWheelEvent* event); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QAbstractGraphicsShapeItem : public QAbstractGraphicsShapeItem | ||
{ public: | ||||
inline QPainterPath promoted_opaqueArea() const { return QAbstractGraphicsShapeItem::opaqueArea(); } | ||||
inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QAbstractGraphicsShapeItem::isObscuredBy(item); } | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QAbstractGraphicsShapeItem : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
florianlink
|
r24 | QAbstractGraphicsShapeItem* new_QAbstractGraphicsShapeItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); | ||
florianlink
|
r13 | void delete_QAbstractGraphicsShapeItem(QAbstractGraphicsShapeItem* obj) { delete obj; } | ||
florianlink
|
r28 | void setBrush(QAbstractGraphicsShapeItem* theWrappedObject, const QBrush& brush); | ||
QBrush brush(QAbstractGraphicsShapeItem* theWrappedObject) const; | ||||
florianlink
|
r13 | QPainterPath opaqueArea(QAbstractGraphicsShapeItem* theWrappedObject) const; | ||
florianlink
|
r28 | bool isObscuredBy(QAbstractGraphicsShapeItem* theWrappedObject, const QGraphicsItem* item) const; | ||
florianlink
|
r13 | QPen pen(QAbstractGraphicsShapeItem* theWrappedObject) const; | ||
void setPen(QAbstractGraphicsShapeItem* theWrappedObject, const QPen& pen); | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QABSTRACTGRAPHICSSHAPEITEM_H | ||||