PythonQtWrapper_QRegion.h
59 lines
| 2.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QREGION_H | ||
#define PYTHONQTWRAPPER_QREGION_H | ||||
#include <qregion.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qdatastream.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qvector.h> | ||||
class PythonQtWrapper_QRegion : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(RegionType ) | ||||
enum RegionType{ | ||||
Rectangle = QRegion::Rectangle, Ellipse = QRegion::Ellipse}; | ||||
public slots: | ||||
QRegion* new_QRegion(); | ||||
QRegion* new_QRegion(const QBitmap& bitmap); | ||||
QRegion* new_QRegion(const QPolygon& pa, Qt::FillRule fillRule = Qt::OddEvenFill); | ||||
QRegion* new_QRegion(const QRect& r, QRegion::RegionType t = QRegion::Rectangle); | ||||
QRegion* new_QRegion(const QRegion& region); | ||||
QRegion* new_QRegion(int x, int y, int w, int h, QRegion::RegionType t = QRegion::Rectangle); | ||||
void delete_QRegion(QRegion* obj) { delete obj; } | ||||
QRect boundingRect(QRegion* theWrappedObject) const; | ||||
bool contains(QRegion* theWrappedObject, const QPoint& p) const; | ||||
bool contains(QRegion* theWrappedObject, const QRect& r) const; | ||||
QRegion intersect(QRegion* theWrappedObject, const QRect& r) const; | ||||
QRegion intersected(QRegion* theWrappedObject, const QRect& r) const; | ||||
QRegion intersected(QRegion* theWrappedObject, const QRegion& r) const; | ||||
bool intersects(QRegion* theWrappedObject, const QRect& r) const; | ||||
bool intersects(QRegion* theWrappedObject, const QRegion& r) const; | ||||
bool isEmpty(QRegion* theWrappedObject) const; | ||||
int numRects(QRegion* theWrappedObject) const; | ||||
const QRegion operator_and(QRegion* theWrappedObject, const QRect& r) const; | ||||
const QRegion operator_add(QRegion* theWrappedObject, const QRect& r) const; | ||||
void writeTo(QRegion* theWrappedObject, QDataStream& arg__1); | ||||
bool operator_equal(QRegion* theWrappedObject, const QRegion& r) const; | ||||
void readFrom(QRegion* theWrappedObject, QDataStream& arg__1); | ||||
QVector<QRect > rects(QRegion* theWrappedObject) const; | ||||
void setRects(QRegion* theWrappedObject, const QRect* rect, int num); | ||||
QRegion subtracted(QRegion* theWrappedObject, const QRegion& r) const; | ||||
void translate(QRegion* theWrappedObject, const QPoint& p); | ||||
void translate(QRegion* theWrappedObject, int dx, int dy); | ||||
QRegion translated(QRegion* theWrappedObject, const QPoint& p) const; | ||||
QRegion translated(QRegion* theWrappedObject, int dx, int dy) const; | ||||
QRegion unite(QRegion* theWrappedObject, const QRect& r) const; | ||||
QRegion united(QRegion* theWrappedObject, const QRect& r) const; | ||||
QRegion united(QRegion* theWrappedObject, const QRegion& r) const; | ||||
QRegion xored(QRegion* theWrappedObject, const QRegion& r) const; | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QREGION_H | ||||