#include #include #include #include #include "qline.h" #include "gen_qline.h" #include "_cgo_export.h" QLine* QLine_new() { return new QLine(); } QLine* QLine_new2(QPoint* pt1, QPoint* pt2) { return new QLine(*pt1, *pt2); } QLine* QLine_new3(int x1, int y1, int x2, int y2) { return new QLine(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } QLine* QLine_new4(QLine* param1) { return new QLine(*param1); } bool QLine_IsNull(const QLine* self) { return self->isNull(); } QPoint* QLine_P1(const QLine* self) { QPoint _ret = self->p1(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } QPoint* QLine_P2(const QLine* self) { QPoint _ret = self->p2(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } int QLine_X1(const QLine* self) { return self->x1(); } int QLine_Y1(const QLine* self) { return self->y1(); } int QLine_X2(const QLine* self) { return self->x2(); } int QLine_Y2(const QLine* self) { return self->y2(); } int QLine_Dx(const QLine* self) { return self->dx(); } int QLine_Dy(const QLine* self) { return self->dy(); } void QLine_Translate(QLine* self, QPoint* p) { self->translate(*p); } void QLine_Translate2(QLine* self, int dx, int dy) { self->translate(static_cast(dx), static_cast(dy)); } QLine* QLine_Translated(const QLine* self, QPoint* p) { QLine _ret = self->translated(*p); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLine(_ret)); } QLine* QLine_Translated2(const QLine* self, int dx, int dy) { QLine _ret = self->translated(static_cast(dx), static_cast(dy)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLine(_ret)); } QPoint* QLine_Center(const QLine* self) { QPoint _ret = self->center(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPoint(_ret)); } void QLine_SetP1(QLine* self, QPoint* p1) { self->setP1(*p1); } void QLine_SetP2(QLine* self, QPoint* p2) { self->setP2(*p2); } void QLine_SetPoints(QLine* self, QPoint* p1, QPoint* p2) { self->setPoints(*p1, *p2); } void QLine_SetLine(QLine* self, int x1, int y1, int x2, int y2) { self->setLine(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } bool QLine_OperatorEqual(const QLine* self, QLine* d) { return self->operator==(*d); } bool QLine_OperatorNotEqual(const QLine* self, QLine* d) { return self->operator!=(*d); } void QLine_Delete(QLine* self) { delete self; } QLineF* QLineF_new() { return new QLineF(); } QLineF* QLineF_new2(QPointF* pt1, QPointF* pt2) { return new QLineF(*pt1, *pt2); } QLineF* QLineF_new3(double x1, double y1, double x2, double y2) { return new QLineF(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } QLineF* QLineF_new4(QLine* line) { return new QLineF(*line); } QLineF* QLineF_new5(QLineF* param1) { return new QLineF(*param1); } QLineF* QLineF_FromPolar(double length, double angle) { QLineF _ret = QLineF::fromPolar(static_cast(length), static_cast(angle)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLineF(_ret)); } bool QLineF_IsNull(const QLineF* self) { return self->isNull(); } QPointF* QLineF_P1(const QLineF* self) { QPointF _ret = self->p1(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } QPointF* QLineF_P2(const QLineF* self) { QPointF _ret = self->p2(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } double QLineF_X1(const QLineF* self) { return self->x1(); } double QLineF_Y1(const QLineF* self) { return self->y1(); } double QLineF_X2(const QLineF* self) { return self->x2(); } double QLineF_Y2(const QLineF* self) { return self->y2(); } double QLineF_Dx(const QLineF* self) { return self->dx(); } double QLineF_Dy(const QLineF* self) { return self->dy(); } double QLineF_Length(const QLineF* self) { return self->length(); } void QLineF_SetLength(QLineF* self, double lenVal) { self->setLength(static_cast(lenVal)); } double QLineF_Angle(const QLineF* self) { return self->angle(); } void QLineF_SetAngle(QLineF* self, double angle) { self->setAngle(static_cast(angle)); } double QLineF_AngleTo(const QLineF* self, QLineF* l) { return self->angleTo(*l); } QLineF* QLineF_UnitVector(const QLineF* self) { QLineF _ret = self->unitVector(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLineF(_ret)); } QLineF* QLineF_NormalVector(const QLineF* self) { QLineF _ret = self->normalVector(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLineF(_ret)); } uintptr_t QLineF_Intersects(const QLineF* self, QLineF* l, QPointF* intersectionPoint) { QLineF::IntersectionType _ret = self->intersects(*l, intersectionPoint); return static_cast(_ret); } uintptr_t QLineF_Intersect(const QLineF* self, QLineF* l, QPointF* intersectionPoint) { QLineF::IntersectType _ret = self->intersect(*l, intersectionPoint); return static_cast(_ret); } double QLineF_AngleWithQLineF(const QLineF* self, QLineF* l) { return self->angle(*l); } QPointF* QLineF_PointAt(const QLineF* self, double t) { QPointF _ret = self->pointAt(static_cast(t)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QLineF_Translate(QLineF* self, QPointF* p) { self->translate(*p); } void QLineF_Translate2(QLineF* self, double dx, double dy) { self->translate(static_cast(dx), static_cast(dy)); } QLineF* QLineF_Translated(const QLineF* self, QPointF* p) { QLineF _ret = self->translated(*p); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLineF(_ret)); } QLineF* QLineF_Translated2(const QLineF* self, double dx, double dy) { QLineF _ret = self->translated(static_cast(dx), static_cast(dy)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLineF(_ret)); } QPointF* QLineF_Center(const QLineF* self) { QPointF _ret = self->center(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPointF(_ret)); } void QLineF_SetP1(QLineF* self, QPointF* p1) { self->setP1(*p1); } void QLineF_SetP2(QLineF* self, QPointF* p2) { self->setP2(*p2); } void QLineF_SetPoints(QLineF* self, QPointF* p1, QPointF* p2) { self->setPoints(*p1, *p2); } void QLineF_SetLine(QLineF* self, double x1, double y1, double x2, double y2) { self->setLine(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } bool QLineF_OperatorEqual(const QLineF* self, QLineF* d) { return self->operator==(*d); } bool QLineF_OperatorNotEqual(const QLineF* self, QLineF* d) { return self->operator!=(*d); } QLine* QLineF_ToLine(const QLineF* self) { QLine _ret = self->toLine(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QLine(_ret)); } void QLineF_Delete(QLineF* self) { delete self; }