PythonQtWrapper_QLine.cpp
129 lines
| 3.0 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QLine.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qline.h> | ||||
#include <qpoint.h> | ||||
QLine* PythonQtWrapper_QLine::new_QLine() | ||||
{ | ||||
return new QLine(); } | ||||
QLine* PythonQtWrapper_QLine::new_QLine(const QPoint& pt1, const QPoint& pt2) | ||||
{ | ||||
return new QLine(pt1, pt2); } | ||||
QLine* PythonQtWrapper_QLine::new_QLine(int x1, int y1, int x2, int y2) | ||||
{ | ||||
return new QLine(x1, y1, x2, y2); } | ||||
|
r73 | int PythonQtWrapper_QLine::x1(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->x1()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QLine::x2(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->x2()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QLine::y1(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->y1()); | ||
|
r13 | } | ||
|
r73 | QPoint PythonQtWrapper_QLine::p2(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->p2()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::writeTo(QLine* theWrappedObject, QDataStream& arg__1) | ||
|
r13 | { | ||
|
r73 | arg__1 << (*theWrappedObject); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::setP2(QLine* theWrappedObject, const QPoint& p2) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setP2(p2)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QLine::isNull(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isNull()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::setLine(QLine* theWrappedObject, int x1, int y1, int x2, int y2) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setLine(x1, y1, x2, y2)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QLine::operator_equal(QLine* theWrappedObject, const QLine& d) const | ||
|
r13 | { | ||
|
r73 | return ( (*theWrappedObject)== d); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QLine::dy(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->dy()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::readFrom(QLine* theWrappedObject, QDataStream& arg__1) | ||
|
r13 | { | ||
|
r73 | arg__1 >> (*theWrappedObject); | ||
|
r13 | } | ||
|
r73 | QPoint PythonQtWrapper_QLine::p1(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->p1()); | ||
|
r13 | } | ||
|
r73 | QLine PythonQtWrapper_QLine::translated(QLine* theWrappedObject, int dx, int dy) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->translated(dx, dy)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QLine::y2(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->y2()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QLine::dx(QLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->dx()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::setP1(QLine* theWrappedObject, const QPoint& p1) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setP1(p1)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::translate(QLine* theWrappedObject, int dx, int dy) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->translate(dx, dy)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::translate(QLine* theWrappedObject, const QPoint& p) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->translate(p)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QLine::setPoints(QLine* theWrappedObject, const QPoint& p1, const QPoint& p2) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setPoints(p1, p2)); | ||
|
r13 | } | ||
|
r73 | QLine PythonQtWrapper_QLine::translated(QLine* theWrappedObject, const QPoint& p) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->translated(p)); | ||
} | ||||
QString PythonQtWrapper_QLine::toString(QLine* obj) { | ||||
QString result; | ||||
QDebug d(&result); | ||||
d << *obj; | ||||
return result; | ||||
|
r13 | } | ||