|
|
#ifndef PYTHONQTWRAPPER_QGRAPHICSRECTITEM_H
|
|
|
#define PYTHONQTWRAPPER_QGRAPHICSRECTITEM_H
|
|
|
|
|
|
#include <qgraphicsitem.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <PythonQt.h>
|
|
|
|
|
|
#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>
|
|
|
|
|
|
class PythonQtShell_QGraphicsRectItem : public QGraphicsRectItem
|
|
|
{
|
|
|
public:
|
|
|
PythonQtShell_QGraphicsRectItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsRectItem(parent, scene),_wrapper(NULL) {};
|
|
|
PythonQtShell_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsRectItem(rect, parent, scene),_wrapper(NULL) {};
|
|
|
PythonQtShell_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsRectItem(x, y, w, h, parent, scene),_wrapper(NULL) {};
|
|
|
|
|
|
virtual bool isObscuredBy(const QGraphicsItem* item) const;
|
|
|
virtual QPainterPath opaqueArea() const;
|
|
|
|
|
|
PythonQtInstanceWrapper* _wrapper;
|
|
|
};
|
|
|
|
|
|
class PythonQtPublicPromoter_QGraphicsRectItem : public QGraphicsRectItem
|
|
|
{ public:
|
|
|
inline QPainterPath promoted_opaqueArea() const { return QGraphicsRectItem::opaqueArea(); }
|
|
|
inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsRectItem::isObscuredBy(item); }
|
|
|
};
|
|
|
|
|
|
class PythonQtWrapper_QGraphicsRectItem : public QObject
|
|
|
{ Q_OBJECT
|
|
|
public:
|
|
|
Q_ENUMS(enum_1 )
|
|
|
enum enum_1{
|
|
|
Type = QGraphicsRectItem::Type};
|
|
|
public slots:
|
|
|
QGraphicsRectItem* new_QGraphicsRectItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
|
|
|
QGraphicsRectItem* new_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
|
|
|
QGraphicsRectItem* new_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
|
|
|
void delete_QGraphicsRectItem(QGraphicsRectItem* obj) { delete obj; }
|
|
|
void setRect(QGraphicsRectItem* theWrappedObject, const QRectF& rect);
|
|
|
void paint(QGraphicsRectItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
|
|
|
bool contains(QGraphicsRectItem* theWrappedObject, const QPointF& point) const;
|
|
|
QPainterPath opaqueArea(QGraphicsRectItem* theWrappedObject) const;
|
|
|
int type(QGraphicsRectItem* theWrappedObject) const;
|
|
|
QRectF boundingRect(QGraphicsRectItem* theWrappedObject) const;
|
|
|
QRectF rect(QGraphicsRectItem* theWrappedObject) const;
|
|
|
QPainterPath shape(QGraphicsRectItem* theWrappedObject) const;
|
|
|
bool isObscuredBy(QGraphicsRectItem* theWrappedObject, const QGraphicsItem* item) const;
|
|
|
void setRect(QGraphicsRectItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h);
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QGRAPHICSRECTITEM_H
|
|
|
|