QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QGraphicsRectItem.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QGRAPHICSRECTITEM_H
2 #define QTSCRIPTSHELL_QGRAPHICSRECTITEM_H
3 
4 #include <qgraphicsitem.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QGraphicsRectItem : public QGraphicsRectItem
9 {
10 public:
11  QtScriptShell_QGraphicsRectItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
12  QtScriptShell_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
13  QtScriptShell_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
15 
16  void advance(int phase);
17  QRectF boundingRect() const;
18  bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const;
19  bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const;
20  bool contains(const QPointF& point) const;
21  void contextMenuEvent(QGraphicsSceneContextMenuEvent* event);
22  void dragEnterEvent(QGraphicsSceneDragDropEvent* event);
23  void dragLeaveEvent(QGraphicsSceneDragDropEvent* event);
24  void dragMoveEvent(QGraphicsSceneDragDropEvent* event);
25  void dropEvent(QGraphicsSceneDragDropEvent* event);
26  QVariant extension(const QVariant& variant) const;
27  void focusInEvent(QFocusEvent* event);
28  void focusOutEvent(QFocusEvent* event);
29  void hoverEnterEvent(QGraphicsSceneHoverEvent* event);
30  void hoverLeaveEvent(QGraphicsSceneHoverEvent* event);
31  void hoverMoveEvent(QGraphicsSceneHoverEvent* event);
32  void inputMethodEvent(QInputMethodEvent* event);
33  QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
34  bool isObscuredBy(const QGraphicsItem* item) const;
35  QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value);
36  void keyPressEvent(QKeyEvent* event);
37  void keyReleaseEvent(QKeyEvent* event);
38  void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event);
39  void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
40  void mousePressEvent(QGraphicsSceneMouseEvent* event);
41  void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
42  QPainterPath opaqueArea() const;
43  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
44  bool sceneEvent(QEvent* event);
45  bool sceneEventFilter(QGraphicsItem* watched, QEvent* event);
46  QPainterPath shape() const;
47  int type() const;
48  void wheelEvent(QGraphicsSceneWheelEvent* event);
49 
50  QScriptValue __qtscript_self;
51 };
52 
53 #endif // QTSCRIPTSHELL_QGRAPHICSRECTITEM_H