#include #include #include #include #include #include #include #include #include #include "gen_qrect.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" QRect* QRect_new() { return new QRect(); } QRect* QRect_new2(QPoint* topleft, QPoint* bottomright) { return new QRect(*topleft, *bottomright); } QRect* QRect_new3(QPoint* topleft, QSize* size) { return new QRect(*topleft, *size); } QRect* QRect_new4(int left, int top, int width, int height) { return new QRect(static_cast(left), static_cast(top), static_cast(width), static_cast(height)); } QRect* QRect_new5(QRect* param1) { return new QRect(*param1); } bool QRect_IsNull(const QRect* self) { return self->isNull(); } bool QRect_IsEmpty(const QRect* self) { return self->isEmpty(); } bool QRect_IsValid(const QRect* self) { return self->isValid(); } int QRect_Left(const QRect* self) { return self->left(); } int QRect_Top(const QRect* self) { return self->top(); } int QRect_Right(const QRect* self) { return self->right(); } int QRect_Bottom(const QRect* self) { return self->bottom(); } QRect* QRect_Normalized(const QRect* self) { return new QRect(self->normalized()); } int QRect_X(const QRect* self) { return self->x(); } int QRect_Y(const QRect* self) { return self->y(); } void QRect_SetLeft(QRect* self, int pos) { self->setLeft(static_cast(pos)); } void QRect_SetTop(QRect* self, int pos) { self->setTop(static_cast(pos)); } void QRect_SetRight(QRect* self, int pos) { self->setRight(static_cast(pos)); } void QRect_SetBottom(QRect* self, int pos) { self->setBottom(static_cast(pos)); } void QRect_SetX(QRect* self, int x) { self->setX(static_cast(x)); } void QRect_SetY(QRect* self, int y) { self->setY(static_cast(y)); } void QRect_SetTopLeft(QRect* self, QPoint* p) { self->setTopLeft(*p); } void QRect_SetBottomRight(QRect* self, QPoint* p) { self->setBottomRight(*p); } void QRect_SetTopRight(QRect* self, QPoint* p) { self->setTopRight(*p); } void QRect_SetBottomLeft(QRect* self, QPoint* p) { self->setBottomLeft(*p); } QPoint* QRect_TopLeft(const QRect* self) { return new QPoint(self->topLeft()); } QPoint* QRect_BottomRight(const QRect* self) { return new QPoint(self->bottomRight()); } QPoint* QRect_TopRight(const QRect* self) { return new QPoint(self->topRight()); } QPoint* QRect_BottomLeft(const QRect* self) { return new QPoint(self->bottomLeft()); } QPoint* QRect_Center(const QRect* self) { return new QPoint(self->center()); } void QRect_MoveLeft(QRect* self, int pos) { self->moveLeft(static_cast(pos)); } void QRect_MoveTop(QRect* self, int pos) { self->moveTop(static_cast(pos)); } void QRect_MoveRight(QRect* self, int pos) { self->moveRight(static_cast(pos)); } void QRect_MoveBottom(QRect* self, int pos) { self->moveBottom(static_cast(pos)); } void QRect_MoveTopLeft(QRect* self, QPoint* p) { self->moveTopLeft(*p); } void QRect_MoveBottomRight(QRect* self, QPoint* p) { self->moveBottomRight(*p); } void QRect_MoveTopRight(QRect* self, QPoint* p) { self->moveTopRight(*p); } void QRect_MoveBottomLeft(QRect* self, QPoint* p) { self->moveBottomLeft(*p); } void QRect_MoveCenter(QRect* self, QPoint* p) { self->moveCenter(*p); } void QRect_Translate(QRect* self, int dx, int dy) { self->translate(static_cast(dx), static_cast(dy)); } void QRect_TranslateWithQPoint(QRect* self, QPoint* p) { self->translate(*p); } QRect* QRect_Translated(const QRect* self, int dx, int dy) { return new QRect(self->translated(static_cast(dx), static_cast(dy))); } QRect* QRect_TranslatedWithQPoint(const QRect* self, QPoint* p) { return new QRect(self->translated(*p)); } QRect* QRect_Transposed(const QRect* self) { return new QRect(self->transposed()); } void QRect_MoveTo(QRect* self, int x, int t) { self->moveTo(static_cast(x), static_cast(t)); } void QRect_MoveToWithQPoint(QRect* self, QPoint* p) { self->moveTo(*p); } void QRect_SetRect(QRect* self, int x, int y, int w, int h) { self->setRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } void QRect_GetRect(const QRect* self, int* x, int* y, int* w, int* h) { self->getRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } void QRect_SetCoords(QRect* self, int x1, int y1, int x2, int y2) { self->setCoords(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } void QRect_GetCoords(const QRect* self, int* x1, int* y1, int* x2, int* y2) { self->getCoords(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } void QRect_Adjust(QRect* self, int x1, int y1, int x2, int y2) { self->adjust(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } QRect* QRect_Adjusted(const QRect* self, int x1, int y1, int x2, int y2) { return new QRect(self->adjusted(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2))); } QSize* QRect_Size(const QRect* self) { return new QSize(self->size()); } int QRect_Width(const QRect* self) { return self->width(); } int QRect_Height(const QRect* self) { return self->height(); } void QRect_SetWidth(QRect* self, int w) { self->setWidth(static_cast(w)); } void QRect_SetHeight(QRect* self, int h) { self->setHeight(static_cast(h)); } void QRect_SetSize(QRect* self, QSize* s) { self->setSize(*s); } QRect* QRect_OperatorBitwiseOr(const QRect* self, QRect* r) { return new QRect(self->operator|(*r)); } QRect* QRect_OperatorBitwiseAnd(const QRect* self, QRect* r) { return new QRect(self->operator&(*r)); } void QRect_OperatorBitwiseOrAssign(QRect* self, QRect* r) { self->operator|=(*r); } void QRect_OperatorBitwiseAndAssign(QRect* self, QRect* r) { self->operator&=(*r); } bool QRect_Contains(const QRect* self, QRect* r) { return self->contains(*r); } bool QRect_ContainsWithQPoint(const QRect* self, QPoint* p) { return self->contains(*p); } bool QRect_Contains2(const QRect* self, int x, int y) { return self->contains(static_cast(x), static_cast(y)); } bool QRect_Contains3(const QRect* self, int x, int y, bool proper) { return self->contains(static_cast(x), static_cast(y), proper); } QRect* QRect_United(const QRect* self, QRect* other) { return new QRect(self->united(*other)); } QRect* QRect_Intersected(const QRect* self, QRect* other) { return new QRect(self->intersected(*other)); } bool QRect_Intersects(const QRect* self, QRect* r) { return self->intersects(*r); } QRect* QRect_MarginsAdded(const QRect* self, QMargins* margins) { return new QRect(self->marginsAdded(*margins)); } QRect* QRect_MarginsRemoved(const QRect* self, QMargins* margins) { return new QRect(self->marginsRemoved(*margins)); } QRect* QRect_OperatorPlusAssign(QRect* self, QMargins* margins) { QRect& _ret = self->operator+=(*margins); // Cast returned reference into pointer return &_ret; } QRect* QRect_OperatorMinusAssign(QRect* self, QMargins* margins) { QRect& _ret = self->operator-=(*margins); // Cast returned reference into pointer return &_ret; } QRect* QRect_Span(QPoint* p1, QPoint* p2) { return new QRect(QRect::span(*p1, *p2)); } QRectF* QRect_ToRectF(const QRect* self) { return new QRectF(self->toRectF()); } bool QRect_Contains22(const QRect* self, QRect* r, bool proper) { return self->contains(*r, proper); } bool QRect_Contains23(const QRect* self, QPoint* p, bool proper) { return self->contains(*p, proper); } void QRect_Delete(QRect* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } } QRectF* QRectF_new() { return new QRectF(); } QRectF* QRectF_new2(QPointF* topleft, QSizeF* size) { return new QRectF(*topleft, *size); } QRectF* QRectF_new3(QPointF* topleft, QPointF* bottomRight) { return new QRectF(*topleft, *bottomRight); } QRectF* QRectF_new4(double left, double top, double width, double height) { return new QRectF(static_cast(left), static_cast(top), static_cast(width), static_cast(height)); } QRectF* QRectF_new5(QRect* rect) { return new QRectF(*rect); } QRectF* QRectF_new6(QRectF* param1) { return new QRectF(*param1); } bool QRectF_IsNull(const QRectF* self) { return self->isNull(); } bool QRectF_IsEmpty(const QRectF* self) { return self->isEmpty(); } bool QRectF_IsValid(const QRectF* self) { return self->isValid(); } QRectF* QRectF_Normalized(const QRectF* self) { return new QRectF(self->normalized()); } double QRectF_Left(const QRectF* self) { qreal _ret = self->left(); return static_cast(_ret); } double QRectF_Top(const QRectF* self) { qreal _ret = self->top(); return static_cast(_ret); } double QRectF_Right(const QRectF* self) { qreal _ret = self->right(); return static_cast(_ret); } double QRectF_Bottom(const QRectF* self) { qreal _ret = self->bottom(); return static_cast(_ret); } double QRectF_X(const QRectF* self) { qreal _ret = self->x(); return static_cast(_ret); } double QRectF_Y(const QRectF* self) { qreal _ret = self->y(); return static_cast(_ret); } void QRectF_SetLeft(QRectF* self, double pos) { self->setLeft(static_cast(pos)); } void QRectF_SetTop(QRectF* self, double pos) { self->setTop(static_cast(pos)); } void QRectF_SetRight(QRectF* self, double pos) { self->setRight(static_cast(pos)); } void QRectF_SetBottom(QRectF* self, double pos) { self->setBottom(static_cast(pos)); } void QRectF_SetX(QRectF* self, double pos) { self->setX(static_cast(pos)); } void QRectF_SetY(QRectF* self, double pos) { self->setY(static_cast(pos)); } QPointF* QRectF_TopLeft(const QRectF* self) { return new QPointF(self->topLeft()); } QPointF* QRectF_BottomRight(const QRectF* self) { return new QPointF(self->bottomRight()); } QPointF* QRectF_TopRight(const QRectF* self) { return new QPointF(self->topRight()); } QPointF* QRectF_BottomLeft(const QRectF* self) { return new QPointF(self->bottomLeft()); } QPointF* QRectF_Center(const QRectF* self) { return new QPointF(self->center()); } void QRectF_SetTopLeft(QRectF* self, QPointF* p) { self->setTopLeft(*p); } void QRectF_SetBottomRight(QRectF* self, QPointF* p) { self->setBottomRight(*p); } void QRectF_SetTopRight(QRectF* self, QPointF* p) { self->setTopRight(*p); } void QRectF_SetBottomLeft(QRectF* self, QPointF* p) { self->setBottomLeft(*p); } void QRectF_MoveLeft(QRectF* self, double pos) { self->moveLeft(static_cast(pos)); } void QRectF_MoveTop(QRectF* self, double pos) { self->moveTop(static_cast(pos)); } void QRectF_MoveRight(QRectF* self, double pos) { self->moveRight(static_cast(pos)); } void QRectF_MoveBottom(QRectF* self, double pos) { self->moveBottom(static_cast(pos)); } void QRectF_MoveTopLeft(QRectF* self, QPointF* p) { self->moveTopLeft(*p); } void QRectF_MoveBottomRight(QRectF* self, QPointF* p) { self->moveBottomRight(*p); } void QRectF_MoveTopRight(QRectF* self, QPointF* p) { self->moveTopRight(*p); } void QRectF_MoveBottomLeft(QRectF* self, QPointF* p) { self->moveBottomLeft(*p); } void QRectF_MoveCenter(QRectF* self, QPointF* p) { self->moveCenter(*p); } void QRectF_Translate(QRectF* self, double dx, double dy) { self->translate(static_cast(dx), static_cast(dy)); } void QRectF_TranslateWithQPointF(QRectF* self, QPointF* p) { self->translate(*p); } QRectF* QRectF_Translated(const QRectF* self, double dx, double dy) { return new QRectF(self->translated(static_cast(dx), static_cast(dy))); } QRectF* QRectF_TranslatedWithQPointF(const QRectF* self, QPointF* p) { return new QRectF(self->translated(*p)); } QRectF* QRectF_Transposed(const QRectF* self) { return new QRectF(self->transposed()); } void QRectF_MoveTo(QRectF* self, double x, double y) { self->moveTo(static_cast(x), static_cast(y)); } void QRectF_MoveToWithQPointF(QRectF* self, QPointF* p) { self->moveTo(*p); } void QRectF_SetRect(QRectF* self, double x, double y, double w, double h) { self->setRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } void QRectF_GetRect(const QRectF* self, double* x, double* y, double* w, double* h) { self->getRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } void QRectF_SetCoords(QRectF* self, double x1, double y1, double x2, double y2) { self->setCoords(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } void QRectF_GetCoords(const QRectF* self, double* x1, double* y1, double* x2, double* y2) { self->getCoords(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } void QRectF_Adjust(QRectF* self, double x1, double y1, double x2, double y2) { self->adjust(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } QRectF* QRectF_Adjusted(const QRectF* self, double x1, double y1, double x2, double y2) { return new QRectF(self->adjusted(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2))); } QSizeF* QRectF_Size(const QRectF* self) { return new QSizeF(self->size()); } double QRectF_Width(const QRectF* self) { qreal _ret = self->width(); return static_cast(_ret); } double QRectF_Height(const QRectF* self) { qreal _ret = self->height(); return static_cast(_ret); } void QRectF_SetWidth(QRectF* self, double w) { self->setWidth(static_cast(w)); } void QRectF_SetHeight(QRectF* self, double h) { self->setHeight(static_cast(h)); } void QRectF_SetSize(QRectF* self, QSizeF* s) { self->setSize(*s); } QRectF* QRectF_OperatorBitwiseOr(const QRectF* self, QRectF* r) { return new QRectF(self->operator|(*r)); } QRectF* QRectF_OperatorBitwiseAnd(const QRectF* self, QRectF* r) { return new QRectF(self->operator&(*r)); } void QRectF_OperatorBitwiseOrAssign(QRectF* self, QRectF* r) { self->operator|=(*r); } void QRectF_OperatorBitwiseAndAssign(QRectF* self, QRectF* r) { self->operator&=(*r); } bool QRectF_Contains(const QRectF* self, QRectF* r) { return self->contains(*r); } bool QRectF_ContainsWithQPointF(const QRectF* self, QPointF* p) { return self->contains(*p); } bool QRectF_Contains2(const QRectF* self, double x, double y) { return self->contains(static_cast(x), static_cast(y)); } QRectF* QRectF_United(const QRectF* self, QRectF* other) { return new QRectF(self->united(*other)); } QRectF* QRectF_Intersected(const QRectF* self, QRectF* other) { return new QRectF(self->intersected(*other)); } bool QRectF_Intersects(const QRectF* self, QRectF* r) { return self->intersects(*r); } QRectF* QRectF_MarginsAdded(const QRectF* self, QMarginsF* margins) { return new QRectF(self->marginsAdded(*margins)); } QRectF* QRectF_MarginsRemoved(const QRectF* self, QMarginsF* margins) { return new QRectF(self->marginsRemoved(*margins)); } QRectF* QRectF_OperatorPlusAssign(QRectF* self, QMarginsF* margins) { QRectF& _ret = self->operator+=(*margins); // Cast returned reference into pointer return &_ret; } QRectF* QRectF_OperatorMinusAssign(QRectF* self, QMarginsF* margins) { QRectF& _ret = self->operator-=(*margins); // Cast returned reference into pointer return &_ret; } QRect* QRectF_ToRect(const QRectF* self) { return new QRect(self->toRect()); } QRect* QRectF_ToAlignedRect(const QRectF* self) { return new QRect(self->toAlignedRect()); } void QRectF_Delete(QRectF* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }