|
|
#include "PythonQtWrapper_QPolygon.h"
|
|
|
|
|
|
#include <PythonQtSignalReceiver.h>
|
|
|
#include <PythonQtMethodInfo.h>
|
|
|
#include <PythonQtConversion.h>
|
|
|
#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); }
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::writeTo(QPolygon* theWrappedObject, QDataStream& stream)
|
|
|
{
|
|
|
stream << (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
QVector<QPoint >* PythonQtWrapper_QPolygon::fill(QPolygon* theWrappedObject, const QPoint& t, int size)
|
|
|
{
|
|
|
return &( theWrappedObject->fill(t, size));
|
|
|
}
|
|
|
|
|
|
QPolygon PythonQtWrapper_QPolygon::subtracted(QPolygon* theWrappedObject, const QPolygon& r) const
|
|
|
{
|
|
|
return ( theWrappedObject->subtracted(r));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject, const QPoint& t) const
|
|
|
{
|
|
|
return ( theWrappedObject->count(t));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::squeeze(QPolygon* theWrappedObject)
|
|
|
{
|
|
|
( theWrappedObject->squeeze());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::pop_back(QPolygon* theWrappedObject)
|
|
|
{
|
|
|
( theWrappedObject->pop_back());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::reserve(QPolygon* theWrappedObject, int size)
|
|
|
{
|
|
|
( theWrappedObject->reserve(size));
|
|
|
}
|
|
|
|
|
|
const QPoint* PythonQtWrapper_QPolygon::first(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return &( theWrappedObject->first());
|
|
|
}
|
|
|
|
|
|
QRect PythonQtWrapper_QPolygon::boundingRect(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->boundingRect());
|
|
|
}
|
|
|
|
|
|
QList<QPoint > PythonQtWrapper_QPolygon::toList(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->toList());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::replace(QPolygon* theWrappedObject, int i, const QPoint& t)
|
|
|
{
|
|
|
( theWrappedObject->replace(i, t));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QPolygon::contains(QPolygon* theWrappedObject, const QPoint& t) const
|
|
|
{
|
|
|
return ( theWrappedObject->contains(t));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QPolygon::empty(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->empty());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::append(QPolygon* theWrappedObject, const QPoint& t)
|
|
|
{
|
|
|
( theWrappedObject->append(t));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i, int n)
|
|
|
{
|
|
|
( theWrappedObject->remove(i, n));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::pop_front(QPolygon* theWrappedObject)
|
|
|
{
|
|
|
( theWrappedObject->pop_front());
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QPolygon::indexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const
|
|
|
{
|
|
|
return ( theWrappedObject->indexOf(t, from));
|
|
|
}
|
|
|
|
|
|
QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i) const
|
|
|
{
|
|
|
return ( theWrappedObject->value(i));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::clear(QPolygon* theWrappedObject)
|
|
|
{
|
|
|
( theWrappedObject->clear());
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QPolygon::size(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->size());
|
|
|
}
|
|
|
|
|
|
QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i, const QPoint& defaultValue) const
|
|
|
{
|
|
|
return ( theWrappedObject->value(i, defaultValue));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, int dx, int dy)
|
|
|
{
|
|
|
( theWrappedObject->translate(dx, dy));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, const QPoint& offset)
|
|
|
{
|
|
|
( theWrappedObject->translate(offset));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QPolygon::lastIndexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const
|
|
|
{
|
|
|
return ( theWrappedObject->lastIndexOf(t, from));
|
|
|
}
|
|
|
|
|
|
QPolygon PythonQtWrapper_QPolygon::united(QPolygon* theWrappedObject, const QPolygon& r) const
|
|
|
{
|
|
|
return ( theWrappedObject->united(r));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::resize(QPolygon* theWrappedObject, int size)
|
|
|
{
|
|
|
( theWrappedObject->resize(size));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::setSharable(QPolygon* theWrappedObject, bool sharable)
|
|
|
{
|
|
|
( theWrappedObject->setSharable(sharable));
|
|
|
}
|
|
|
|
|
|
const QPoint* PythonQtWrapper_QPolygon::at(QPolygon* theWrappedObject, int i) const
|
|
|
{
|
|
|
return &( theWrappedObject->at(i));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->count());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::prepend(QPolygon* theWrappedObject, const QPoint& t)
|
|
|
{
|
|
|
( theWrappedObject->prepend(t));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QPolygon::operator_equal(QPolygon* theWrappedObject, const QVector<QPoint >& v) const
|
|
|
{
|
|
|
return ( (*theWrappedObject)== v);
|
|
|
}
|
|
|
|
|
|
QVector<QPoint > PythonQtWrapper_QPolygon::static_QPolygon_fromList(const QList<QPoint >& list)
|
|
|
{
|
|
|
return (QPolygon::fromList(list));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QPolygon::isEmpty(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->isEmpty());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::push_back(QPolygon* theWrappedObject, const QPoint& t)
|
|
|
{
|
|
|
( theWrappedObject->push_back(t));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::push_front(QPolygon* theWrappedObject, const QPoint& t)
|
|
|
{
|
|
|
( theWrappedObject->push_front(t));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QPolygon::capacity(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->capacity());
|
|
|
}
|
|
|
|
|
|
const QPoint* PythonQtWrapper_QPolygon::last(QPolygon* theWrappedObject) const
|
|
|
{
|
|
|
return &( theWrappedObject->last());
|
|
|
}
|
|
|
|
|
|
QPolygon PythonQtWrapper_QPolygon::intersected(QPolygon* theWrappedObject, const QPolygon& r) const
|
|
|
{
|
|
|
return ( theWrappedObject->intersected(r));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QPolygon::containsPoint(QPolygon* theWrappedObject, const QPoint& pt, Qt::FillRule fillRule) const
|
|
|
{
|
|
|
return ( theWrappedObject->containsPoint(pt, fillRule));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i)
|
|
|
{
|
|
|
( theWrappedObject->remove(i));
|
|
|
}
|
|
|
|
|
|
QVector<QPoint > PythonQtWrapper_QPolygon::mid(QPolygon* theWrappedObject, int pos, int length) const
|
|
|
{
|
|
|
return ( theWrappedObject->mid(pos, length));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QPolygon::readFrom(QPolygon* theWrappedObject, QDataStream& stream)
|
|
|
{
|
|
|
stream >> (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QPolygon::toString(QPolygon* obj) {
|
|
|
QString result;
|
|
|
QDebug d(&result);
|
|
|
d << *obj;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
|