#include #include #include #include #include #include #include "gen_qgraphicslayoutitem.h" #include "_cgo_export.h" void QGraphicsLayoutItem_SetSizePolicy(QGraphicsLayoutItem* self, QSizePolicy* policy) { self->setSizePolicy(*policy); } void QGraphicsLayoutItem_SetSizePolicy2(QGraphicsLayoutItem* self, int hPolicy, int vPolicy) { self->setSizePolicy(static_cast(hPolicy), static_cast(vPolicy)); } QSizePolicy* QGraphicsLayoutItem_SizePolicy(const QGraphicsLayoutItem* self) { return new QSizePolicy(self->sizePolicy()); } void QGraphicsLayoutItem_SetMinimumSize(QGraphicsLayoutItem* self, QSizeF* size) { self->setMinimumSize(*size); } void QGraphicsLayoutItem_SetMinimumSize2(QGraphicsLayoutItem* self, double w, double h) { self->setMinimumSize(static_cast(w), static_cast(h)); } QSizeF* QGraphicsLayoutItem_MinimumSize(const QGraphicsLayoutItem* self) { return new QSizeF(self->minimumSize()); } void QGraphicsLayoutItem_SetMinimumWidth(QGraphicsLayoutItem* self, double width) { self->setMinimumWidth(static_cast(width)); } double QGraphicsLayoutItem_MinimumWidth(const QGraphicsLayoutItem* self) { qreal _ret = self->minimumWidth(); return static_cast(_ret); } void QGraphicsLayoutItem_SetMinimumHeight(QGraphicsLayoutItem* self, double height) { self->setMinimumHeight(static_cast(height)); } double QGraphicsLayoutItem_MinimumHeight(const QGraphicsLayoutItem* self) { qreal _ret = self->minimumHeight(); return static_cast(_ret); } void QGraphicsLayoutItem_SetPreferredSize(QGraphicsLayoutItem* self, QSizeF* size) { self->setPreferredSize(*size); } void QGraphicsLayoutItem_SetPreferredSize2(QGraphicsLayoutItem* self, double w, double h) { self->setPreferredSize(static_cast(w), static_cast(h)); } QSizeF* QGraphicsLayoutItem_PreferredSize(const QGraphicsLayoutItem* self) { return new QSizeF(self->preferredSize()); } void QGraphicsLayoutItem_SetPreferredWidth(QGraphicsLayoutItem* self, double width) { self->setPreferredWidth(static_cast(width)); } double QGraphicsLayoutItem_PreferredWidth(const QGraphicsLayoutItem* self) { qreal _ret = self->preferredWidth(); return static_cast(_ret); } void QGraphicsLayoutItem_SetPreferredHeight(QGraphicsLayoutItem* self, double height) { self->setPreferredHeight(static_cast(height)); } double QGraphicsLayoutItem_PreferredHeight(const QGraphicsLayoutItem* self) { qreal _ret = self->preferredHeight(); return static_cast(_ret); } void QGraphicsLayoutItem_SetMaximumSize(QGraphicsLayoutItem* self, QSizeF* size) { self->setMaximumSize(*size); } void QGraphicsLayoutItem_SetMaximumSize2(QGraphicsLayoutItem* self, double w, double h) { self->setMaximumSize(static_cast(w), static_cast(h)); } QSizeF* QGraphicsLayoutItem_MaximumSize(const QGraphicsLayoutItem* self) { return new QSizeF(self->maximumSize()); } void QGraphicsLayoutItem_SetMaximumWidth(QGraphicsLayoutItem* self, double width) { self->setMaximumWidth(static_cast(width)); } double QGraphicsLayoutItem_MaximumWidth(const QGraphicsLayoutItem* self) { qreal _ret = self->maximumWidth(); return static_cast(_ret); } void QGraphicsLayoutItem_SetMaximumHeight(QGraphicsLayoutItem* self, double height) { self->setMaximumHeight(static_cast(height)); } double QGraphicsLayoutItem_MaximumHeight(const QGraphicsLayoutItem* self) { qreal _ret = self->maximumHeight(); return static_cast(_ret); } void QGraphicsLayoutItem_SetGeometry(QGraphicsLayoutItem* self, QRectF* rect) { self->setGeometry(*rect); } QRectF* QGraphicsLayoutItem_Geometry(const QGraphicsLayoutItem* self) { return new QRectF(self->geometry()); } void QGraphicsLayoutItem_GetContentsMargins(const QGraphicsLayoutItem* self, double* left, double* top, double* right, double* bottom) { self->getContentsMargins(static_cast(left), static_cast(top), static_cast(right), static_cast(bottom)); } QRectF* QGraphicsLayoutItem_ContentsRect(const QGraphicsLayoutItem* self) { return new QRectF(self->contentsRect()); } QSizeF* QGraphicsLayoutItem_EffectiveSizeHint(const QGraphicsLayoutItem* self, int which) { return new QSizeF(self->effectiveSizeHint(static_cast(which))); } void QGraphicsLayoutItem_UpdateGeometry(QGraphicsLayoutItem* self) { self->updateGeometry(); } bool QGraphicsLayoutItem_IsEmpty(const QGraphicsLayoutItem* self) { return self->isEmpty(); } QGraphicsLayoutItem* QGraphicsLayoutItem_ParentLayoutItem(const QGraphicsLayoutItem* self) { return self->parentLayoutItem(); } void QGraphicsLayoutItem_SetParentLayoutItem(QGraphicsLayoutItem* self, QGraphicsLayoutItem* parent) { self->setParentLayoutItem(parent); } bool QGraphicsLayoutItem_IsLayout(const QGraphicsLayoutItem* self) { return self->isLayout(); } QGraphicsItem* QGraphicsLayoutItem_GraphicsItem(const QGraphicsLayoutItem* self) { return self->graphicsItem(); } bool QGraphicsLayoutItem_OwnedByLayout(const QGraphicsLayoutItem* self) { return self->ownedByLayout(); } void QGraphicsLayoutItem_SetSizePolicy3(QGraphicsLayoutItem* self, int hPolicy, int vPolicy, int controlType) { self->setSizePolicy(static_cast(hPolicy), static_cast(vPolicy), static_cast(controlType)); } QSizeF* QGraphicsLayoutItem_EffectiveSizeHint2(const QGraphicsLayoutItem* self, int which, QSizeF* constraint) { return new QSizeF(self->effectiveSizeHint(static_cast(which), *constraint)); } void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }