PythonQtWrapper_QPolygon.h
72 lines
| 3.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QPOLYGON_H | ||
#define PYTHONQTWRAPPER_QPOLYGON_H | ||||
#include <qpolygon.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qlist.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qvector.h> | ||||
class PythonQtWrapper_QPolygon : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QPolygon* new_QPolygon(); | ||||
QPolygon* new_QPolygon(const QPolygon& a); | ||||
QPolygon* new_QPolygon(const QRect& r, bool closed = false); | ||||
QPolygon* new_QPolygon(const QVector<QPoint >& v); | ||||
QPolygon* new_QPolygon(int size); | ||||
void delete_QPolygon(QPolygon* obj) { delete obj; } | ||||
florianlink
|
r73 | void writeTo(QPolygon* theWrappedObject, QDataStream& stream); | ||
QVector<QPoint >* fill(QPolygon* theWrappedObject, const QPoint& t, int size); | ||||
florianlink
|
r28 | QPolygon subtracted(QPolygon* theWrappedObject, const QPolygon& r) const; | ||
florianlink
|
r73 | int count(QPolygon* theWrappedObject, const QPoint& t) const; | ||
void squeeze(QPolygon* theWrappedObject); | ||||
void pop_back(QPolygon* theWrappedObject); | ||||
void reserve(QPolygon* theWrappedObject, int size); | ||||
const QPoint* first(QPolygon* theWrappedObject) const; | ||||
florianlink
|
r28 | QRect boundingRect(QPolygon* theWrappedObject) const; | ||
florianlink
|
r73 | QList<QPoint > toList(QPolygon* theWrappedObject) const; | ||
florianlink
|
r28 | void replace(QPolygon* theWrappedObject, int i, const QPoint& t); | ||
florianlink
|
r73 | bool contains(QPolygon* theWrappedObject, const QPoint& t) const; | ||
bool empty(QPolygon* theWrappedObject) const; | ||||
void append(QPolygon* theWrappedObject, const QPoint& t); | ||||
void remove(QPolygon* theWrappedObject, int i, int n); | ||||
void pop_front(QPolygon* theWrappedObject); | ||||
florianlink
|
r28 | int indexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const; | ||
florianlink
|
r73 | QPoint value(QPolygon* theWrappedObject, int i) const; | ||
florianlink
|
r28 | void clear(QPolygon* theWrappedObject); | ||
florianlink
|
r73 | int size(QPolygon* theWrappedObject) const; | ||
florianlink
|
r24 | QPoint value(QPolygon* theWrappedObject, int i, const QPoint& defaultValue) const; | ||
florianlink
|
r28 | void translate(QPolygon* theWrappedObject, int dx, int dy); | ||
void translate(QPolygon* theWrappedObject, const QPoint& offset); | ||||
florianlink
|
r73 | int lastIndexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const; | ||
florianlink
|
r28 | QPolygon united(QPolygon* theWrappedObject, const QPolygon& r) const; | ||
florianlink
|
r73 | void resize(QPolygon* theWrappedObject, int size); | ||
void setSharable(QPolygon* theWrappedObject, bool sharable); | ||||
const QPoint* at(QPolygon* theWrappedObject, int i) const; | ||||
florianlink
|
r28 | int count(QPolygon* theWrappedObject) const; | ||
florianlink
|
r73 | void prepend(QPolygon* theWrappedObject, const QPoint& t); | ||
bool operator_equal(QPolygon* theWrappedObject, const QVector<QPoint >& v) const; | ||||
florianlink
|
r28 | QVector<QPoint > static_QPolygon_fromList(const QList<QPoint >& list); | ||
bool isEmpty(QPolygon* theWrappedObject) const; | ||||
florianlink
|
r73 | void push_back(QPolygon* theWrappedObject, const QPoint& t); | ||
florianlink
|
r28 | void push_front(QPolygon* theWrappedObject, const QPoint& t); | ||
florianlink
|
r73 | int capacity(QPolygon* theWrappedObject) const; | ||
const QPoint* last(QPolygon* theWrappedObject) const; | ||||
florianlink
|
r28 | QPolygon intersected(QPolygon* theWrappedObject, const QPolygon& r) const; | ||
bool containsPoint(QPolygon* theWrappedObject, const QPoint& pt, Qt::FillRule fillRule) const; | ||||
florianlink
|
r73 | void remove(QPolygon* theWrappedObject, int i); | ||
QVector<QPoint > mid(QPolygon* theWrappedObject, int pos, int length) const; | ||||
void readFrom(QPolygon* theWrappedObject, QDataStream& stream); | ||||
QString toString(QPolygon*); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QPOLYGON_H | ||||