##// END OF EJS Templates
added builtin support for variants etc., this will replace the direct includes in PythonQt...
added builtin support for variants etc., this will replace the direct includes in PythonQt git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@129 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r93:7b53f64eae84
Show More
PythonQtWrapper_QAbstractGraphicsShapeItem.h
95 lines | 4.2 KiB | text/x-c | CLexer
/ generated_cpp / com_trolltech_qt_gui / PythonQtWrapper_QAbstractGraphicsShapeItem.h
#ifndef PYTHONQTWRAPPER_QABSTRACTGRAPHICSSHAPEITEM_H
#define PYTHONQTWRAPPER_QABSTRACTGRAPHICSSHAPEITEM_H
#include <qgraphicsitem.h>
#include <QObject>
#include <PythonQt.h>
#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>
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;
};
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); }
};
class PythonQtWrapper_QAbstractGraphicsShapeItem : public QObject
{ Q_OBJECT
public:
public slots:
QAbstractGraphicsShapeItem* new_QAbstractGraphicsShapeItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
void delete_QAbstractGraphicsShapeItem(QAbstractGraphicsShapeItem* obj) { delete obj; }
QPainterPath opaqueArea(QAbstractGraphicsShapeItem* theWrappedObject) const;
bool isObscuredBy(QAbstractGraphicsShapeItem* theWrappedObject, const QGraphicsItem* item) const;
QPen pen(QAbstractGraphicsShapeItem* theWrappedObject) const;
void setBrush(QAbstractGraphicsShapeItem* theWrappedObject, const QBrush& brush);
void setPen(QAbstractGraphicsShapeItem* theWrappedObject, const QPen& pen);
QBrush brush(QAbstractGraphicsShapeItem* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QABSTRACTGRAPHICSSHAPEITEM_H