#include #include #include #include #include #include "qgraphicslayoutitem.h" #include "gen_qgraphicslayoutitem.h" extern "C" { extern void miqt_exec_callback(void* cb, int argc, void* argv); } void QGraphicsLayoutItem_SetSizePolicy(QGraphicsLayoutItem* self, QSizePolicy* policy) { self->setSizePolicy(*policy); } void QGraphicsLayoutItem_SetSizePolicy2(QGraphicsLayoutItem* self, uintptr_t hPolicy, uintptr_t vPolicy) { self->setSizePolicy(static_cast(hPolicy), static_cast(vPolicy)); } QSizePolicy* QGraphicsLayoutItem_SizePolicy(QGraphicsLayoutItem* self) { QSizePolicy ret = const_cast(self)->sizePolicy(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizePolicy(ret)); } 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(QGraphicsLayoutItem* self) { QSizeF ret = const_cast(self)->minimumSize(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizeF(ret)); } void QGraphicsLayoutItem_SetMinimumWidth(QGraphicsLayoutItem* self, double width) { self->setMinimumWidth(static_cast(width)); } double QGraphicsLayoutItem_MinimumWidth(QGraphicsLayoutItem* self) { return const_cast(self)->minimumWidth(); } void QGraphicsLayoutItem_SetMinimumHeight(QGraphicsLayoutItem* self, double height) { self->setMinimumHeight(static_cast(height)); } double QGraphicsLayoutItem_MinimumHeight(QGraphicsLayoutItem* self) { return const_cast(self)->minimumHeight(); } 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(QGraphicsLayoutItem* self) { QSizeF ret = const_cast(self)->preferredSize(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizeF(ret)); } void QGraphicsLayoutItem_SetPreferredWidth(QGraphicsLayoutItem* self, double width) { self->setPreferredWidth(static_cast(width)); } double QGraphicsLayoutItem_PreferredWidth(QGraphicsLayoutItem* self) { return const_cast(self)->preferredWidth(); } void QGraphicsLayoutItem_SetPreferredHeight(QGraphicsLayoutItem* self, double height) { self->setPreferredHeight(static_cast(height)); } double QGraphicsLayoutItem_PreferredHeight(QGraphicsLayoutItem* self) { return const_cast(self)->preferredHeight(); } 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(QGraphicsLayoutItem* self) { QSizeF ret = const_cast(self)->maximumSize(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizeF(ret)); } void QGraphicsLayoutItem_SetMaximumWidth(QGraphicsLayoutItem* self, double width) { self->setMaximumWidth(static_cast(width)); } double QGraphicsLayoutItem_MaximumWidth(QGraphicsLayoutItem* self) { return const_cast(self)->maximumWidth(); } void QGraphicsLayoutItem_SetMaximumHeight(QGraphicsLayoutItem* self, double height) { self->setMaximumHeight(static_cast(height)); } double QGraphicsLayoutItem_MaximumHeight(QGraphicsLayoutItem* self) { return const_cast(self)->maximumHeight(); } void QGraphicsLayoutItem_SetGeometry(QGraphicsLayoutItem* self, QRectF* rect) { self->setGeometry(*rect); } QRectF* QGraphicsLayoutItem_Geometry(QGraphicsLayoutItem* self) { QRectF ret = const_cast(self)->geometry(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QRectF(ret)); } void QGraphicsLayoutItem_GetContentsMargins(QGraphicsLayoutItem* self, double* left, double* top, double* right, double* bottom) { const_cast(self)->getContentsMargins(static_cast(left), static_cast(top), static_cast(right), static_cast(bottom)); } QRectF* QGraphicsLayoutItem_ContentsRect(QGraphicsLayoutItem* self) { QRectF ret = const_cast(self)->contentsRect(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QRectF(ret)); } QSizeF* QGraphicsLayoutItem_EffectiveSizeHint(QGraphicsLayoutItem* self, uintptr_t which) { QSizeF ret = const_cast(self)->effectiveSizeHint(static_cast(which)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizeF(ret)); } void QGraphicsLayoutItem_UpdateGeometry(QGraphicsLayoutItem* self) { self->updateGeometry(); } QGraphicsLayoutItem* QGraphicsLayoutItem_ParentLayoutItem(QGraphicsLayoutItem* self) { return const_cast(self)->parentLayoutItem(); } void QGraphicsLayoutItem_SetParentLayoutItem(QGraphicsLayoutItem* self, QGraphicsLayoutItem* parent) { self->setParentLayoutItem(parent); } bool QGraphicsLayoutItem_IsLayout(QGraphicsLayoutItem* self) { return const_cast(self)->isLayout(); } QGraphicsItem* QGraphicsLayoutItem_GraphicsItem(QGraphicsLayoutItem* self) { return const_cast(self)->graphicsItem(); } bool QGraphicsLayoutItem_OwnedByLayout(QGraphicsLayoutItem* self) { return const_cast(self)->ownedByLayout(); } void QGraphicsLayoutItem_SetSizePolicy3(QGraphicsLayoutItem* self, uintptr_t hPolicy, uintptr_t vPolicy, uintptr_t controlType) { self->setSizePolicy(static_cast(hPolicy), static_cast(vPolicy), static_cast(controlType)); } QSizeF* QGraphicsLayoutItem_EffectiveSizeHint2(QGraphicsLayoutItem* self, uintptr_t which, QSizeF* constraint) { QSizeF ret = const_cast(self)->effectiveSizeHint(static_cast(which), *constraint); // Copy-construct value returned type into heap-allocated copy return static_cast(new QSizeF(ret)); } void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self) { delete self; }