##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QGraphicsScene.h
112 lines | 7.6 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QGRAPHICSSCENE_H
#define PYTHONQTWRAPPER_QGRAPHICSSCENE_H
#include <qgraphicsscene.h>
#include <QObject>
#include <QVarLengthArray>
#include <QVariant>
#include <qbrush.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qevent.h>
#include <qfont.h>
#include <qgraphicsitem.h>
#include <qgraphicsproxywidget.h>
#include <qgraphicsscene.h>
#include <qgraphicssceneevent.h>
#include <qgraphicsview.h>
#include <qgraphicswidget.h>
#include <qline.h>
#include <qlist.h>
#include <qobject.h>
#include <qpainter.h>
#include <qpainterpath.h>
#include <qpalette.h>
#include <qpen.h>
#include <qpixmap.h>
#include <qpoint.h>
#include <qpolygon.h>
#include <qrect.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qwidget.h>
class PythonQtWrapper_QGraphicsScene : public QObject
{ Q_OBJECT
public:
Q_ENUMS(SceneLayer ItemIndexMethod )
enum SceneLayer{
ItemLayer = QGraphicsScene::ItemLayer, BackgroundLayer = QGraphicsScene::BackgroundLayer, ForegroundLayer = QGraphicsScene::ForegroundLayer, AllLayers = QGraphicsScene::AllLayers};
enum ItemIndexMethod{
BspTreeIndex = QGraphicsScene::BspTreeIndex, NoIndex = QGraphicsScene::NoIndex};
public slots:
QGraphicsScene* new_QGraphicsScene(QObject* parent = 0);
QGraphicsScene* new_QGraphicsScene(const QRectF& sceneRect, QObject* parent = 0);
QGraphicsScene* new_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent = 0);
void delete_QGraphicsScene(QGraphicsScene* obj) { delete obj; }
QGraphicsWidget* activeWindow(QGraphicsScene* theWrappedObject) const;
QGraphicsEllipseItem* addEllipse(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen = QPen(), const QBrush& brush = QBrush());
QGraphicsEllipseItem* addEllipse(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen = QPen(), const QBrush& brush = QBrush());
void addItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item);
QGraphicsLineItem* addLine(QGraphicsScene* theWrappedObject, const QLineF& line, const QPen& pen = QPen());
QGraphicsLineItem* addLine(QGraphicsScene* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2, const QPen& pen = QPen());
QGraphicsPathItem* addPath(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QPen& pen = QPen(), const QBrush& brush = QBrush());
QGraphicsPixmapItem* addPixmap(QGraphicsScene* theWrappedObject, const QPixmap& pixmap);
QGraphicsPolygonItem* addPolygon(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, const QPen& pen = QPen(), const QBrush& brush = QBrush());
QGraphicsRectItem* addRect(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen = QPen(), const QBrush& brush = QBrush());
QGraphicsRectItem* addRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen = QPen(), const QBrush& brush = QBrush());
QGraphicsSimpleTextItem* addSimpleText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font = QFont());
QGraphicsTextItem* addText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font = QFont());
QGraphicsProxyWidget* addWidget(QGraphicsScene* theWrappedObject, QWidget* widget, Qt::WindowFlags wFlags = 0);
QBrush backgroundBrush(QGraphicsScene* theWrappedObject) const;
int bspTreeDepth(QGraphicsScene* theWrappedObject) const;
void clearFocus(QGraphicsScene* theWrappedObject);
QList<QGraphicsItem* > collidingItems(QGraphicsScene* theWrappedObject, const QGraphicsItem* item, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
QGraphicsItemGroup* createItemGroup(QGraphicsScene* theWrappedObject, const QList<QGraphicsItem* >& items);
void destroyItemGroup(QGraphicsScene* theWrappedObject, QGraphicsItemGroup* group);
QGraphicsItem* focusItem(QGraphicsScene* theWrappedObject) const;
QFont font(QGraphicsScene* theWrappedObject) const;
QBrush foregroundBrush(QGraphicsScene* theWrappedObject) const;
bool hasFocus(QGraphicsScene* theWrappedObject) const;
qreal height(QGraphicsScene* theWrappedObject) const;
QVariant inputMethodQuery(QGraphicsScene* theWrappedObject, Qt::InputMethodQuery query) const;
void invalidate(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, QGraphicsScene::SceneLayers layers = QGraphicsScene::AllLayers);
QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos) const;
QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y) const;
QGraphicsScene::ItemIndexMethod itemIndexMethod(QGraphicsScene* theWrappedObject) const;
QList<QGraphicsItem* > items(QGraphicsScene* theWrappedObject) const;
QList<QGraphicsItem* > items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
QList<QGraphicsItem* > items(QGraphicsScene* theWrappedObject, const QPointF& pos) const;
QList<QGraphicsItem* > items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
QList<QGraphicsItem* > items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
QList<QGraphicsItem* > items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const;
QRectF itemsBoundingRect(QGraphicsScene* theWrappedObject) const;
QGraphicsItem* mouseGrabberItem(QGraphicsScene* theWrappedObject) const;
QPalette palette(QGraphicsScene* theWrappedObject) const;
void removeItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item);
void render(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& target = QRectF(), const QRectF& source = QRectF(), Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio);
QRectF sceneRect(QGraphicsScene* theWrappedObject) const;
QList<QGraphicsItem* > selectedItems(QGraphicsScene* theWrappedObject) const;
QPainterPath selectionArea(QGraphicsScene* theWrappedObject) const;
void setActiveWindow(QGraphicsScene* theWrappedObject, QGraphicsWidget* widget);
void setBackgroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush);
void setBspTreeDepth(QGraphicsScene* theWrappedObject, int depth);
void setFocus(QGraphicsScene* theWrappedObject, Qt::FocusReason focusReason = Qt::OtherFocusReason);
void setFocusItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item, Qt::FocusReason focusReason = Qt::OtherFocusReason);
void setFont(QGraphicsScene* theWrappedObject, const QFont& font);
void setForegroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush);
void setItemIndexMethod(QGraphicsScene* theWrappedObject, QGraphicsScene::ItemIndexMethod method);
void setPalette(QGraphicsScene* theWrappedObject, const QPalette& palette);
void setSceneRect(QGraphicsScene* theWrappedObject, const QRectF& rect);
void setSceneRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h);
void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path);
void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode arg__2);
void setStyle(QGraphicsScene* theWrappedObject, QStyle* style);
QStyle* style(QGraphicsScene* theWrappedObject) const;
void update(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h);
QList<QGraphicsView* > views(QGraphicsScene* theWrappedObject) const;
qreal width(QGraphicsScene* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QGRAPHICSSCENE_H