PythonQtWrapper_QPolygon.cpp
250 lines
| 6.3 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QPolygon.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qlist.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qvector.h> | ||||
QPolygon* PythonQtWrapper_QPolygon::new_QPolygon() | ||||
{ | ||||
return new QPolygon(); } | ||||
QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QPolygon& a) | ||||
{ | ||||
return new QPolygon(a); } | ||||
QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QRect& r, bool closed) | ||||
{ | ||||
return new QPolygon(r, closed); } | ||||
QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QVector<QPoint >& v) | ||||
{ | ||||
return new QPolygon(v); } | ||||
QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(int size) | ||||
{ | ||||
return new QPolygon(size); } | ||||
|
r73 | void PythonQtWrapper_QPolygon::writeTo(QPolygon* theWrappedObject, QDataStream& stream) | ||
|
r13 | { | ||
|
r73 | stream << (*theWrappedObject); | ||
|
r13 | } | ||
|
r73 | QVector<QPoint >* PythonQtWrapper_QPolygon::fill(QPolygon* theWrappedObject, const QPoint& t, int size) | ||
|
r13 | { | ||
|
r73 | return &( theWrappedObject->fill(t, size)); | ||
|
r13 | } | ||
|
r28 | QPolygon PythonQtWrapper_QPolygon::subtracted(QPolygon* theWrappedObject, const QPolygon& r) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->subtracted(r)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject, const QPoint& t) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->count(t)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::squeeze(QPolygon* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->squeeze()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::pop_back(QPolygon* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->pop_back()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::reserve(QPolygon* theWrappedObject, int size) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->reserve(size)); | ||
|
r13 | } | ||
|
r73 | const QPoint* PythonQtWrapper_QPolygon::first(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return &( theWrappedObject->first()); | ||
|
r13 | } | ||
|
r73 | QRect PythonQtWrapper_QPolygon::boundingRect(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->boundingRect()); | ||
|
r13 | } | ||
|
r73 | QList<QPoint > PythonQtWrapper_QPolygon::toList(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->toList()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::replace(QPolygon* theWrappedObject, int i, const QPoint& t) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->replace(i, t)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QPolygon::contains(QPolygon* theWrappedObject, const QPoint& t) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->contains(t)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QPolygon::empty(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->empty()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::append(QPolygon* theWrappedObject, const QPoint& t) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->append(t)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i, int n) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->remove(i, n)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::pop_front(QPolygon* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->pop_front()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QPolygon::indexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->indexOf(t, from)); | ||
|
r13 | } | ||
|
r73 | QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->value(i)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::clear(QPolygon* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->clear()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QPolygon::size(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->size()); | ||
|
r13 | } | ||
|
r73 | QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i, const QPoint& defaultValue) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->value(i, defaultValue)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, int dx, int dy) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->translate(dx, dy)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, const QPoint& offset) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->translate(offset)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QPolygon::lastIndexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->lastIndexOf(t, from)); | ||
|
r13 | } | ||
|
r73 | QPolygon PythonQtWrapper_QPolygon::united(QPolygon* theWrappedObject, const QPolygon& r) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->united(r)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::resize(QPolygon* theWrappedObject, int size) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->resize(size)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::setSharable(QPolygon* theWrappedObject, bool sharable) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setSharable(sharable)); | ||
|
r13 | } | ||
|
r73 | const QPoint* PythonQtWrapper_QPolygon::at(QPolygon* theWrappedObject, int i) const | ||
|
r13 | { | ||
|
r73 | return &( theWrappedObject->at(i)); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->count()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::prepend(QPolygon* theWrappedObject, const QPoint& t) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->prepend(t)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QPolygon::operator_equal(QPolygon* theWrappedObject, const QVector<QPoint >& v) const | ||
|
r13 | { | ||
|
r73 | return ( (*theWrappedObject)== v); | ||
|
r13 | } | ||
|
r28 | QVector<QPoint > PythonQtWrapper_QPolygon::static_QPolygon_fromList(const QList<QPoint >& list) | ||
|
r13 | { | ||
|
r73 | return (QPolygon::fromList(list)); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QPolygon::isEmpty(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isEmpty()); | ||
} | ||||
void PythonQtWrapper_QPolygon::push_back(QPolygon* theWrappedObject, const QPoint& t) | ||||
{ | ||||
( theWrappedObject->push_back(t)); | ||||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QPolygon::push_front(QPolygon* theWrappedObject, const QPoint& t) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->push_front(t)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QPolygon::capacity(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->capacity()); | ||
|
r13 | } | ||
|
r73 | const QPoint* PythonQtWrapper_QPolygon::last(QPolygon* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return &( theWrappedObject->last()); | ||
|
r13 | } | ||
|
r73 | QPolygon PythonQtWrapper_QPolygon::intersected(QPolygon* theWrappedObject, const QPolygon& r) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->intersected(r)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QPolygon::containsPoint(QPolygon* theWrappedObject, const QPoint& pt, Qt::FillRule fillRule) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->containsPoint(pt, fillRule)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->remove(i)); | ||
|
r13 | } | ||
|
r73 | QVector<QPoint > PythonQtWrapper_QPolygon::mid(QPolygon* theWrappedObject, int pos, int length) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->mid(pos, length)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QPolygon::readFrom(QPolygon* theWrappedObject, QDataStream& stream) | ||
|
r13 | { | ||
|
r73 | stream >> (*theWrappedObject); | ||
} | ||||
QString PythonQtWrapper_QPolygon::toString(QPolygon* obj) { | ||||
QString result; | ||||
QDebug d(&result); | ||||
d << *obj; | ||||
return result; | ||||
|
r13 | } | ||