PythonQtWrapper_QPen.cpp
170 lines
| 4.0 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QPen.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QBrush> | ||
#include <QVariant> | ||||
#include <qbrush.h> | ||||
#include <qcolor.h> | ||||
#include <qdatastream.h> | ||||
#include <qpen.h> | ||||
#include <qvector.h> | ||||
QPen* PythonQtWrapper_QPen::new_QPen() | ||||
{ | ||||
return new QPen(); } | ||||
QPen* PythonQtWrapper_QPen::new_QPen(Qt::PenStyle arg__1) | ||||
{ | ||||
return new QPen(arg__1); } | ||||
QPen* PythonQtWrapper_QPen::new_QPen(const QBrush& brush, qreal width, Qt::PenStyle s, Qt::PenCapStyle c, Qt::PenJoinStyle j) | ||||
{ | ||||
return new QPen(brush, width, s, c, j); } | ||||
QPen* PythonQtWrapper_QPen::new_QPen(const QColor& color) | ||||
{ | ||||
return new QPen(color); } | ||||
QPen* PythonQtWrapper_QPen::new_QPen(const QPen& pen) | ||||
{ | ||||
return new QPen(pen); } | ||||
florianlink
|
r73 | QVector<qreal > PythonQtWrapper_QPen::dashPattern(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->dashPattern()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::writeTo(QPen* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QBrush PythonQtWrapper_QPen::brush(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->brush()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qreal PythonQtWrapper_QPen::miterLimit(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->miterLimit()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setCapStyle(QPen* theWrappedObject, Qt::PenCapStyle pcs) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setCapStyle(pcs)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setJoinStyle(QPen* theWrappedObject, Qt::PenJoinStyle pcs) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setJoinStyle(pcs)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QPen::width(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->width()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | Qt::PenCapStyle PythonQtWrapper_QPen::capStyle(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->capStyle()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setWidthF(QPen* theWrappedObject, qreal width) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setWidthF(width)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QPen::isCosmetic(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isCosmetic()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::readFrom(QPen* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 >> (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setDashPattern(QPen* theWrappedObject, const QVector<qreal >& pattern) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDashPattern(pattern)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qreal PythonQtWrapper_QPen::widthF(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->widthF()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QPen::setDashOffset(QPen* theWrappedObject, qreal doffset) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDashOffset(doffset)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QPen::operator_equal(QPen* theWrappedObject, const QPen& p) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setMiterLimit(QPen* theWrappedObject, qreal limit) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setMiterLimit(limit)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setStyle(QPen* theWrappedObject, Qt::PenStyle arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setStyle(arg__1)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QColor PythonQtWrapper_QPen::color(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->color()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setCosmetic(QPen* theWrappedObject, bool cosmetic) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setCosmetic(cosmetic)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setBrush(QPen* theWrappedObject, const QBrush& brush) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setBrush(brush)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qreal PythonQtWrapper_QPen::dashOffset(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->dashOffset()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | Qt::PenStyle PythonQtWrapper_QPen::style(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->style()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | Qt::PenJoinStyle PythonQtWrapper_QPen::joinStyle(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->joinStyle()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setColor(QPen* theWrappedObject, const QColor& color) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setColor(color)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QPen::isSolid(QPen* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isSolid()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QPen::setWidth(QPen* theWrappedObject, int width) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setWidth(width)); | ||
} | ||||
QString PythonQtWrapper_QPen::toString(QPen* obj) { | ||||
QString result; | ||||
QDebug d(&result); | ||||
d << *obj; | ||||
return result; | ||||
florianlink
|
r13 | } | ||