PythonQtWrapper_QTransform.h
93 lines
| 5.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTRANSFORM_H | ||
#define PYTHONQTWRAPPER_QTRANSFORM_H | ||||
#include <qtransform.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qline.h> | ||||
#include <qmatrix.h> | ||||
#include <qpainterpath.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qtransform.h> | ||||
class PythonQtWrapper_QTransform : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
florianlink
|
r24 | Q_ENUMS(TransformationType ) | ||
enum TransformationType{ | ||||
TxNone = QTransform::TxNone, TxTranslate = QTransform::TxTranslate, TxScale = QTransform::TxScale, TxRotate = QTransform::TxRotate, TxShear = QTransform::TxShear, TxProject = QTransform::TxProject}; | ||||
florianlink
|
r13 | public slots: | ||
QTransform* new_QTransform(); | ||||
QTransform* new_QTransform(const QMatrix& mtx); | ||||
QTransform* new_QTransform(qreal h11, qreal h12, qreal h13, qreal h21, qreal h22, qreal h23); | ||||
QTransform* new_QTransform(qreal h11, qreal h12, qreal h13, qreal h21, qreal h22, qreal h23, qreal h31, qreal h32, qreal h33 = 1.0); | ||||
florianlink
|
r24 | QTransform* new_QTransform(const QTransform& other) { | ||
QTransform* a = new QTransform(); | ||||
*((QTransform*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTransform(QTransform* obj) { delete obj; } | ||
florianlink
|
r28 | bool isTranslating(QTransform* theWrappedObject) const; | ||
florianlink
|
r73 | bool isScaling(QTransform* theWrappedObject) const; | ||
qreal m32(QTransform* theWrappedObject) const; | ||||
QRect mapRect(QTransform* theWrappedObject, const QRect& arg__1) const; | ||||
qreal determinant(QTransform* theWrappedObject) const; | ||||
QTransform* rotateRadians(QTransform* theWrappedObject, qreal a, Qt::Axis axis = Qt::ZAxis); | ||||
florianlink
|
r28 | qreal dy(QTransform* theWrappedObject) const; | ||
florianlink
|
r73 | void setMatrix(QTransform* theWrappedObject, qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33); | ||
QRectF mapRect(QTransform* theWrappedObject, const QRectF& arg__1) const; | ||||
florianlink
|
r28 | void writeTo(QTransform* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r73 | const QMatrix* toAffine(QTransform* theWrappedObject) const; | ||
bool isIdentity(QTransform* theWrappedObject) const; | ||||
qreal m11(QTransform* theWrappedObject) const; | ||||
bool isAffine(QTransform* theWrappedObject) const; | ||||
QPainterPath map(QTransform* theWrappedObject, const QPainterPath& p) const; | ||||
QTransform transposed(QTransform* theWrappedObject) const; | ||||
florianlink
|
r28 | QTransform inverted(QTransform* theWrappedObject, bool* invertible = 0) const; | ||
florianlink
|
r73 | qreal det(QTransform* theWrappedObject) const; | ||
QTransform* operator_multiply_assign(QTransform* theWrappedObject, qreal div); | ||||
florianlink
|
r28 | bool static_QTransform_quadToSquare(const QPolygonF& quad, QTransform& result); | ||
florianlink
|
r73 | QTransform* operator_multiply_assign(QTransform* theWrappedObject, const QTransform& arg__1); | ||
QTransform* scale(QTransform* theWrappedObject, qreal sx, qreal sy); | ||||
QTransform* shear(QTransform* theWrappedObject, qreal sh, qreal sv); | ||||
qreal m31(QTransform* theWrappedObject) const; | ||||
QTransform* translate(QTransform* theWrappedObject, qreal dx, qreal dy); | ||||
QTransform::TransformationType type(QTransform* theWrappedObject) const; | ||||
bool static_QTransform_quadToQuad(const QPolygonF& one, const QPolygonF& two, QTransform& result); | ||||
qreal m13(QTransform* theWrappedObject) const; | ||||
QTransform* operator_add_assign(QTransform* theWrappedObject, qreal div); | ||||
florianlink
|
r24 | QPoint map(QTransform* theWrappedObject, const QPoint& p) const; | ||
florianlink
|
r73 | qreal dx(QTransform* theWrappedObject) const; | ||
florianlink
|
r24 | QLine map(QTransform* theWrappedObject, const QLine& l) const; | ||
florianlink
|
r73 | QLineF map(QTransform* theWrappedObject, const QLineF& l) const; | ||
qreal m22(QTransform* theWrappedObject) const; | ||||
florianlink
|
r24 | QPointF map(QTransform* theWrappedObject, const QPointF& p) const; | ||
florianlink
|
r73 | QTransform* operator_divide_assign(QTransform* theWrappedObject, qreal div); | ||
bool isInvertible(QTransform* theWrappedObject) const; | ||||
QTransform multiplied(QTransform* theWrappedObject, const QTransform& o) const; | ||||
qreal m12(QTransform* theWrappedObject) const; | ||||
QPolygonF map(QTransform* theWrappedObject, const QPolygonF& a) const; | ||||
bool static_QTransform_squareToQuad(const QPolygonF& square, QTransform& result); | ||||
qreal m21(QTransform* theWrappedObject) const; | ||||
void reset(QTransform* theWrappedObject); | ||||
void readFrom(QTransform* theWrappedObject, QDataStream& arg__1); | ||||
QTransform adjoint(QTransform* theWrappedObject) const; | ||||
QPolygon map(QTransform* theWrappedObject, const QPolygon& a) const; | ||||
florianlink
|
r28 | QPolygon mapToPolygon(QTransform* theWrappedObject, const QRect& r) const; | ||
florianlink
|
r73 | QTransform* rotate(QTransform* theWrappedObject, qreal a, Qt::Axis axis = Qt::ZAxis); | ||
qreal m33(QTransform* theWrappedObject) const; | ||||
QRegion map(QTransform* theWrappedObject, const QRegion& r) const; | ||||
qreal m23(QTransform* theWrappedObject) const; | ||||
bool isRotating(QTransform* theWrappedObject) const; | ||||
QTransform* operator_subtract_assign(QTransform* theWrappedObject, qreal div); | ||||
bool operator_equal(QTransform* theWrappedObject, const QTransform& arg__1) const; | ||||
QString toString(QTransform*); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTRANSFORM_H | ||||