##// END OF EJS Templates
added methods to qt namespace...
added methods to qt namespace git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@71 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r35:b8dce620ba5c
Show More
PythonQtWrapper_QLineF.h
64 lines | 2.8 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QLINEF_H
#define PYTHONQTWRAPPER_QLINEF_H
#include <qline.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qdatastream.h>
#include <qline.h>
#include <qpoint.h>
class PythonQtWrapper_QLineF : public QObject
{ Q_OBJECT
public:
Q_ENUMS(IntersectType )
enum IntersectType{
NoIntersection = QLineF::NoIntersection, BoundedIntersection = QLineF::BoundedIntersection, UnboundedIntersection = QLineF::UnboundedIntersection};
public slots:
QLineF* new_QLineF();
QLineF* new_QLineF(const QLine& line);
QLineF* new_QLineF(const QPointF& pt1, const QPointF& pt2);
QLineF* new_QLineF(qreal x1, qreal y1, qreal x2, qreal y2);
QLineF* new_QLineF(const QLineF& other) {
QLineF* a = new QLineF();
*((QLineF*)a) = other;
return a; }
void delete_QLineF(QLineF* obj) { delete obj; }
QPointF pointAt(QLineF* theWrappedObject, qreal t) const;
void setP1(QLineF* theWrappedObject, const QPointF& p1);
void setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2);
qreal y2(QLineF* theWrappedObject) const;
void setLength(QLineF* theWrappedObject, qreal len);
qreal angle(QLineF* theWrappedObject, const QLineF& l) const;
qreal length(QLineF* theWrappedObject) const;
void setAngle(QLineF* theWrappedObject, qreal angle);
qreal x1(QLineF* theWrappedObject) const;
QLine toLine(QLineF* theWrappedObject) const;
qreal y1(QLineF* theWrappedObject) const;
qreal x2(QLineF* theWrappedObject) const;
QLineF translated(QLineF* theWrappedObject, qreal dx, qreal dy) const;
void setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2);
void setP2(QLineF* theWrappedObject, const QPointF& p2);
qreal angle(QLineF* theWrappedObject) const;
qreal dx(QLineF* theWrappedObject) const;
QLineF translated(QLineF* theWrappedObject, const QPointF& p) const;
bool isNull(QLineF* theWrappedObject) const;
QPointF p1(QLineF* theWrappedObject) const;
void translate(QLineF* theWrappedObject, qreal dx, qreal dy);
bool operator_equal(QLineF* theWrappedObject, const QLineF& d) const;
QPointF p2(QLineF* theWrappedObject) const;
void translate(QLineF* theWrappedObject, const QPointF& p);
QLineF::IntersectType intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const;
QLineF unitVector(QLineF* theWrappedObject) const;
void writeTo(QLineF* theWrappedObject, QDataStream& arg__1);
void readFrom(QLineF* theWrappedObject, QDataStream& arg__1);
qreal angleTo(QLineF* theWrappedObject, const QLineF& l) const;
qreal dy(QLineF* theWrappedObject) const;
QLineF static_QLineF_fromPolar(qreal length, qreal angle);
QLineF normalVector(QLineF* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QLINEF_H