PythonQtWrapper_QRectF.cpp
336 lines
| 8.1 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QRectF.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
QRectF* PythonQtWrapper_QRectF::new_QRectF() | ||||
{ | ||||
return new QRectF(); } | ||||
QRectF* PythonQtWrapper_QRectF::new_QRectF(const QPointF& topleft, const QPointF& bottomRight) | ||||
{ | ||||
return new QRectF(topleft, bottomRight); } | ||||
QRectF* PythonQtWrapper_QRectF::new_QRectF(const QPointF& topleft, const QSizeF& size) | ||||
{ | ||||
return new QRectF(topleft, size); } | ||||
QRectF* PythonQtWrapper_QRectF::new_QRectF(const QRect& rect) | ||||
{ | ||||
return new QRectF(rect); } | ||||
QRectF* PythonQtWrapper_QRectF::new_QRectF(qreal left, qreal top, qreal width, qreal height) | ||||
{ | ||||
return new QRectF(left, top, width, height); } | ||||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setWidth(QRectF* theWrappedObject, qreal w) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setWidth(w); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::isEmpty(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->isEmpty(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::width(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->width(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveBottomRight(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveBottomRight(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setTopLeft(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setTopLeft(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRectF PythonQtWrapper_QRectF::translated(QRectF* theWrappedObject, qreal dx, qreal dy) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->translated(dx, dy); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::intersects(QRectF* theWrappedObject, const QRectF& r) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->intersects(r); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::translate(QRectF* theWrappedObject, qreal dx, qreal dy) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->translate(dx, dy); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setTopRight(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setTopRight(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveRight(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveRight(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, const QPointF& p) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->contains(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveTo(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveTo(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QRectF::bottomRight(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->bottomRight(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setBottom(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setBottom(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::translate(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->translate(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::bottom(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->bottom(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveTo(QRectF* theWrappedObject, qreal x, qreal t) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveTo(x, t); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QRectF::center(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->center(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setHeight(QRectF* theWrappedObject, qreal h) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setHeight(h); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setLeft(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setLeft(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRectF PythonQtWrapper_QRectF::normalized(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->normalized(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::readFrom(QRectF* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | arg__1 >> (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setRect(QRectF* theWrappedObject, qreal x, qreal y, qreal w, qreal h) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setRect(x, y, w, h); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRectF PythonQtWrapper_QRectF::adjusted(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->adjusted(x1, y1, x2, y2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::left(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->left(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveLeft(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveLeft(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QRectF::topRight(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->topRight(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::isNull(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->isNull(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setRight(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setRight(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveTopLeft(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveTopLeft(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveTop(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveTop(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRectF PythonQtWrapper_QRectF::translated(QRectF* theWrappedObject, const QPointF& p) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->translated(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QSizeF PythonQtWrapper_QRectF::size(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->size(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setX(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setX(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QRectF::bottomLeft(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->bottomLeft(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::operator_equal(QRectF* theWrappedObject, const QRectF& arg__2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return (*theWrappedObject)== arg__2; | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveBottomLeft(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveBottomLeft(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::isValid(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->isValid(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRectF PythonQtWrapper_QRectF::intersected(QRectF* theWrappedObject, const QRectF& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->intersected(other); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveTopRight(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveTopRight(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::height(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->height(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveBottom(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveBottom(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::moveCenter(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->moveCenter(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, const QRectF& r) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->contains(r); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setBottomRight(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setBottomRight(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QRectF::topLeft(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->topLeft(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::y(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->y(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::writeTo(QRectF* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | arg__1 << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::top(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->top(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRect PythonQtWrapper_QRectF::toRect(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->toRect(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::x(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->x(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setSize(QRectF* theWrappedObject, const QSizeF& s) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setSize(s); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRect PythonQtWrapper_QRectF::toAlignedRect(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->toAlignedRect(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::adjust(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->adjust(x1, y1, x2, y2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QRectF::setBottomLeft(QRectF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setBottomLeft(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setCoords(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setCoords(x1, y1, x2, y2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setTop(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setTop(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QRectF PythonQtWrapper_QRectF::united(QRectF* theWrappedObject, const QRectF& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->united(other); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QRectF::setY(QRectF* theWrappedObject, qreal pos) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setY(pos); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, qreal x, qreal y) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->contains(x, y); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QRectF::right(QRectF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->right(); | ||
florianlink
|
r13 | } | ||