##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QPainterPath.h
97 lines | 6.5 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QPAINTERPATH_H
#define PYTHONQTWRAPPER_QPAINTERPATH_H
#include <qpainterpath.h>
#include <QObject>
#include <QPainterPath>
#include <QVariant>
#include <qdatastream.h>
#include <qfont.h>
#include <qlist.h>
#include <qmatrix.h>
#include <qpainterpath.h>
#include <qpoint.h>
#include <qpolygon.h>
#include <qrect.h>
#include <qregion.h>
#include <qtransform.h>
class PythonQtWrapper_QPainterPath : public QObject
{ Q_OBJECT
public:
Q_ENUMS(ElementType )
enum ElementType{
MoveToElement = QPainterPath::MoveToElement, LineToElement = QPainterPath::LineToElement, CurveToElement = QPainterPath::CurveToElement, CurveToDataElement = QPainterPath::CurveToDataElement};
public slots:
QPainterPath* new_QPainterPath();
QPainterPath* new_QPainterPath(const QPainterPath& other);
QPainterPath* new_QPainterPath(const QPointF& startPoint);
void delete_QPainterPath(QPainterPath* obj) { delete obj; }
void addEllipse(QPainterPath* theWrappedObject, const QPointF& center, qreal rx, qreal ry);
void addEllipse(QPainterPath* theWrappedObject, const QRectF& rect);
void addEllipse(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h);
void addPath(QPainterPath* theWrappedObject, const QPainterPath& path);
void addPolygon(QPainterPath* theWrappedObject, const QPolygonF& polygon);
void addRect(QPainterPath* theWrappedObject, const QRectF& rect);
void addRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h);
void addRegion(QPainterPath* theWrappedObject, const QRegion& region);
void addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int roundness);
void addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int xRnd, int yRnd);
void addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int roundness);
void addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xRnd, int yRnd);
void addRoundedRect(QPainterPath* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize);
void addRoundedRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize);
void addText(QPainterPath* theWrappedObject, const QPointF& point, const QFont& f, const QString& text);
void addText(QPainterPath* theWrappedObject, qreal x, qreal y, const QFont& f, const QString& text);
qreal angleAtPercent(QPainterPath* theWrappedObject, qreal t) const;
void arcMoveTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal angle);
void arcMoveTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal angle);
void arcTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal startAngle, qreal arcLength);
void arcTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal startAngle, qreal arcLength);
QRectF boundingRect(QPainterPath* theWrappedObject) const;
void closeSubpath(QPainterPath* theWrappedObject);
void connectPath(QPainterPath* theWrappedObject, const QPainterPath& path);
bool contains(QPainterPath* theWrappedObject, const QPainterPath& p) const;
bool contains(QPainterPath* theWrappedObject, const QPointF& pt) const;
bool contains(QPainterPath* theWrappedObject, const QRectF& rect) const;
QRectF controlPointRect(QPainterPath* theWrappedObject) const;
void cubicTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt1, const QPointF& ctrlPt2, const QPointF& endPt);
void cubicTo(QPainterPath* theWrappedObject, qreal ctrlPt1x, qreal ctrlPt1y, qreal ctrlPt2x, qreal ctrlPt2y, qreal endPtx, qreal endPty);
QPointF currentPosition(QPainterPath* theWrappedObject) const;
const QPainterPath::Element& elementAt(QPainterPath* theWrappedObject, int i) const;
int elementCount(QPainterPath* theWrappedObject) const;
Qt::FillRule fillRule(QPainterPath* theWrappedObject) const;
QPainterPath intersected(QPainterPath* theWrappedObject, const QPainterPath& r) const;
bool intersects(QPainterPath* theWrappedObject, const QPainterPath& p) const;
bool intersects(QPainterPath* theWrappedObject, const QRectF& rect) const;
bool isEmpty(QPainterPath* theWrappedObject) const;
qreal length(QPainterPath* theWrappedObject) const;
void lineTo(QPainterPath* theWrappedObject, const QPointF& p);
void lineTo(QPainterPath* theWrappedObject, qreal x, qreal y);
void moveTo(QPainterPath* theWrappedObject, const QPointF& p);
void moveTo(QPainterPath* theWrappedObject, qreal x, qreal y);
void writeTo(QPainterPath* theWrappedObject, QDataStream& arg__1);
bool operator_equal(QPainterPath* theWrappedObject, const QPainterPath& other) const;
void readFrom(QPainterPath* theWrappedObject, QDataStream& arg__1);
qreal percentAtLength(QPainterPath* theWrappedObject, qreal t) const;
QPointF pointAtPercent(QPainterPath* theWrappedObject, qreal t) const;
void quadTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt, const QPointF& endPt);
void quadTo(QPainterPath* theWrappedObject, qreal ctrlPtx, qreal ctrlPty, qreal endPtx, qreal endPty);
void setElementPositionAt(QPainterPath* theWrappedObject, int i, qreal x, qreal y);
void setFillRule(QPainterPath* theWrappedObject, Qt::FillRule fillRule);
QPainterPath simplified(QPainterPath* theWrappedObject) const;
qreal slopeAtPercent(QPainterPath* theWrappedObject, qreal t) const;
QPainterPath subtracted(QPainterPath* theWrappedObject, const QPainterPath& r) const;
QPainterPath subtractedInverted(QPainterPath* theWrappedObject, const QPainterPath& r) const;
QPolygonF toFillPolygon(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const;
QPolygonF toFillPolygon(QPainterPath* theWrappedObject, const QTransform& matrix) const;
QList<QPolygonF > toFillPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const;
QList<QPolygonF > toFillPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const;
QPainterPath toReversed(QPainterPath* theWrappedObject) const;
QList<QPolygonF > toSubpathPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const;
QList<QPolygonF > toSubpathPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const;
QPainterPath united(QPainterPath* theWrappedObject, const QPainterPath& r) const;
};
#endif // PYTHONQTWRAPPER_QPAINTERPATH_H