PythonQtWrapper_QRect.h
91 lines
| 4.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QRECT_H | ||
#define PYTHONQTWRAPPER_QRECT_H | ||||
#include <qrect.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
class PythonQtWrapper_QRect : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QRect* new_QRect(); | ||||
QRect* new_QRect(const QPoint& topleft, const QPoint& bottomright); | ||||
QRect* new_QRect(const QPoint& topleft, const QSize& size); | ||||
QRect* new_QRect(int left, int top, int width, int height); | ||||
florianlink
|
r24 | QRect* new_QRect(const QRect& other) { | ||
QRect* a = new QRect(); | ||||
*((QRect*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QRect(QRect* obj) { delete obj; } | ||
florianlink
|
r24 | bool contains(QRect* theWrappedObject, int x, int y) const; | ||
void moveTopRight(QRect* theWrappedObject, const QPoint& p); | ||||
bool isValid(QRect* theWrappedObject) const; | ||||
bool contains(QRect* theWrappedObject, int x, int y, bool proper) const; | ||||
florianlink
|
r28 | void moveTo(QRect* theWrappedObject, const QPoint& p); | ||
florianlink
|
r73 | void writeTo(QRect* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r24 | void setWidth(QRect* theWrappedObject, int w); | ||
int bottom(QRect* theWrappedObject) const; | ||||
QPoint bottomLeft(QRect* theWrappedObject) const; | ||||
QRect normalized(QRect* theWrappedObject) const; | ||||
void moveTop(QRect* theWrappedObject, int pos); | ||||
florianlink
|
r28 | void setHeight(QRect* theWrappedObject, int h); | ||
int left(QRect* theWrappedObject) const; | ||||
florianlink
|
r24 | void setBottomLeft(QRect* theWrappedObject, const QPoint& p); | ||
QRect adjusted(QRect* theWrappedObject, int x1, int y1, int x2, int y2) const; | ||||
florianlink
|
r28 | void setRect(QRect* theWrappedObject, int x, int y, int w, int h); | ||
int top(QRect* theWrappedObject) const; | ||||
void moveLeft(QRect* theWrappedObject, int pos); | ||||
florianlink
|
r24 | bool contains(QRect* theWrappedObject, const QPoint& p, bool proper = false) const; | ||
bool contains(QRect* theWrappedObject, const QRect& r, bool proper = false) const; | ||||
florianlink
|
r28 | void setLeft(QRect* theWrappedObject, int pos); | ||
QPoint topLeft(QRect* theWrappedObject) const; | ||||
bool isNull(QRect* theWrappedObject) const; | ||||
void translate(QRect* theWrappedObject, int dx, int dy); | ||||
void translate(QRect* theWrappedObject, const QPoint& p); | ||||
florianlink
|
r73 | void adjust(QRect* theWrappedObject, int x1, int y1, int x2, int y2); | ||
florianlink
|
r28 | QRect intersected(QRect* theWrappedObject, const QRect& other) const; | ||
void moveCenter(QRect* theWrappedObject, const QPoint& p); | ||||
void setBottom(QRect* theWrappedObject, int pos); | ||||
void moveTo(QRect* theWrappedObject, int x, int t); | ||||
QSize size(QRect* theWrappedObject) const; | ||||
void moveBottomLeft(QRect* theWrappedObject, const QPoint& p); | ||||
int y(QRect* theWrappedObject) const; | ||||
florianlink
|
r73 | void setRight(QRect* theWrappedObject, int pos); | ||
void moveTopLeft(QRect* theWrappedObject, const QPoint& p); | ||||
QRect translated(QRect* theWrappedObject, int dx, int dy) const; | ||||
void readFrom(QRect* theWrappedObject, QDataStream& arg__1); | ||||
int height(QRect* theWrappedObject) const; | ||||
void setTopRight(QRect* theWrappedObject, const QPoint& p); | ||||
void setX(QRect* theWrappedObject, int x); | ||||
void moveBottom(QRect* theWrappedObject, int pos); | ||||
bool operator_equal(QRect* theWrappedObject, const QRect& arg__2); | ||||
int right(QRect* theWrappedObject) const; | ||||
void setY(QRect* theWrappedObject, int y); | ||||
int width(QRect* theWrappedObject) const; | ||||
QPoint center(QRect* theWrappedObject) const; | ||||
bool intersects(QRect* theWrappedObject, const QRect& r) const; | ||||
void setTop(QRect* theWrappedObject, int pos); | ||||
void setSize(QRect* theWrappedObject, const QSize& s); | ||||
QRect united(QRect* theWrappedObject, const QRect& other) const; | ||||
void setTopLeft(QRect* theWrappedObject, const QPoint& p); | ||||
QPoint bottomRight(QRect* theWrappedObject) const; | ||||
void setBottomRight(QRect* theWrappedObject, const QPoint& p); | ||||
QRect translated(QRect* theWrappedObject, const QPoint& p) const; | ||||
QPoint topRight(QRect* theWrappedObject) const; | ||||
void moveRight(QRect* theWrappedObject, int pos); | ||||
int x(QRect* theWrappedObject) const; | ||||
bool isEmpty(QRect* theWrappedObject) const; | ||||
void moveBottomRight(QRect* theWrappedObject, const QPoint& p); | ||||
void setCoords(QRect* theWrappedObject, int x1, int y1, int x2, int y2); | ||||
QString toString(QRect*); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QRECT_H | ||||