#include #include #include #include #include #include #include #include "gen_qgraphicsgridlayout.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" class MiqtVirtualQGraphicsGridLayout : public virtual QGraphicsGridLayout { public: MiqtVirtualQGraphicsGridLayout(): QGraphicsGridLayout() {}; MiqtVirtualQGraphicsGridLayout(QGraphicsLayoutItem* parent): QGraphicsGridLayout(parent) {}; virtual ~MiqtVirtualQGraphicsGridLayout() = default; // cgo.Handle value for overwritten implementation intptr_t handle__Count = 0; // Subclass to allow providing a Go implementation virtual int count() const override { if (handle__Count == 0) { return QGraphicsGridLayout::count(); } int callback_return_value = miqt_exec_callback_QGraphicsGridLayout_Count(const_cast(this), handle__Count); return static_cast(callback_return_value); } // Wrapper to allow calling protected method int virtualbase_Count() const { return QGraphicsGridLayout::count(); } // cgo.Handle value for overwritten implementation intptr_t handle__ItemAtWithIndex = 0; // Subclass to allow providing a Go implementation virtual QGraphicsLayoutItem* itemAt(int index) const override { if (handle__ItemAtWithIndex == 0) { return QGraphicsGridLayout::itemAt(index); } int sigval1 = index; QGraphicsLayoutItem* callback_return_value = miqt_exec_callback_QGraphicsGridLayout_ItemAtWithIndex(const_cast(this), handle__ItemAtWithIndex, sigval1); return callback_return_value; } // Wrapper to allow calling protected method QGraphicsLayoutItem* virtualbase_ItemAtWithIndex(int index) const { return QGraphicsGridLayout::itemAt(static_cast(index)); } // cgo.Handle value for overwritten implementation intptr_t handle__RemoveAt = 0; // Subclass to allow providing a Go implementation virtual void removeAt(int index) override { if (handle__RemoveAt == 0) { QGraphicsGridLayout::removeAt(index); return; } int sigval1 = index; miqt_exec_callback_QGraphicsGridLayout_RemoveAt(this, handle__RemoveAt, sigval1); } // Wrapper to allow calling protected method void virtualbase_RemoveAt(int index) { QGraphicsGridLayout::removeAt(static_cast(index)); } // cgo.Handle value for overwritten implementation intptr_t handle__Invalidate = 0; // Subclass to allow providing a Go implementation virtual void invalidate() override { if (handle__Invalidate == 0) { QGraphicsGridLayout::invalidate(); return; } miqt_exec_callback_QGraphicsGridLayout_Invalidate(this, handle__Invalidate); } // Wrapper to allow calling protected method void virtualbase_Invalidate() { QGraphicsGridLayout::invalidate(); } // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; // Subclass to allow providing a Go implementation virtual void setGeometry(const QRectF& rect) override { if (handle__SetGeometry == 0) { QGraphicsGridLayout::setGeometry(rect); return; } const QRectF& rect_ret = rect; // Cast returned reference into pointer QRectF* sigval1 = const_cast(&rect_ret); miqt_exec_callback_QGraphicsGridLayout_SetGeometry(this, handle__SetGeometry, sigval1); } // Wrapper to allow calling protected method void virtualbase_SetGeometry(QRectF* rect) { QGraphicsGridLayout::setGeometry(*rect); } // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; // Subclass to allow providing a Go implementation virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint) const override { if (handle__SizeHint == 0) { return QGraphicsGridLayout::sizeHint(which, constraint); } Qt::SizeHint which_ret = which; int sigval1 = static_cast(which_ret); const QSizeF& constraint_ret = constraint; // Cast returned reference into pointer QSizeF* sigval2 = const_cast(&constraint_ret); QSizeF* callback_return_value = miqt_exec_callback_QGraphicsGridLayout_SizeHint(const_cast(this), handle__SizeHint, sigval1, sigval2); return *callback_return_value; } // Wrapper to allow calling protected method QSizeF* virtualbase_SizeHint(int which, QSizeF* constraint) const { return new QSizeF(QGraphicsGridLayout::sizeHint(static_cast(which), *constraint)); } // cgo.Handle value for overwritten implementation intptr_t handle__GetContentsMargins = 0; // Subclass to allow providing a Go implementation virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const override { if (handle__GetContentsMargins == 0) { QGraphicsGridLayout::getContentsMargins(left, top, right, bottom); return; } qreal* left_ret = left; double* sigval1 = static_cast(left_ret); qreal* top_ret = top; double* sigval2 = static_cast(top_ret); qreal* right_ret = right; double* sigval3 = static_cast(right_ret); qreal* bottom_ret = bottom; double* sigval4 = static_cast(bottom_ret); miqt_exec_callback_QGraphicsGridLayout_GetContentsMargins(const_cast(this), handle__GetContentsMargins, sigval1, sigval2, sigval3, sigval4); } // Wrapper to allow calling protected method void virtualbase_GetContentsMargins(double* left, double* top, double* right, double* bottom) const { QGraphicsGridLayout::getContentsMargins(static_cast(left), static_cast(top), static_cast(right), static_cast(bottom)); } // cgo.Handle value for overwritten implementation intptr_t handle__UpdateGeometry = 0; // Subclass to allow providing a Go implementation virtual void updateGeometry() override { if (handle__UpdateGeometry == 0) { QGraphicsGridLayout::updateGeometry(); return; } miqt_exec_callback_QGraphicsGridLayout_UpdateGeometry(this, handle__UpdateGeometry); } // Wrapper to allow calling protected method void virtualbase_UpdateGeometry() { QGraphicsGridLayout::updateGeometry(); } // cgo.Handle value for overwritten implementation intptr_t handle__WidgetEvent = 0; // Subclass to allow providing a Go implementation virtual void widgetEvent(QEvent* e) override { if (handle__WidgetEvent == 0) { QGraphicsGridLayout::widgetEvent(e); return; } QEvent* sigval1 = e; miqt_exec_callback_QGraphicsGridLayout_WidgetEvent(this, handle__WidgetEvent, sigval1); } // Wrapper to allow calling protected method void virtualbase_WidgetEvent(QEvent* e) { QGraphicsGridLayout::widgetEvent(e); } }; QGraphicsGridLayout* QGraphicsGridLayout_new() { return new MiqtVirtualQGraphicsGridLayout(); } QGraphicsGridLayout* QGraphicsGridLayout_new2(QGraphicsLayoutItem* parent) { return new MiqtVirtualQGraphicsGridLayout(parent); } void QGraphicsGridLayout_virtbase(QGraphicsGridLayout* src, QGraphicsLayout** outptr_QGraphicsLayout) { *outptr_QGraphicsLayout = static_cast(src); } void QGraphicsGridLayout_AddItem(QGraphicsGridLayout* self, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan) { self->addItem(item, static_cast(row), static_cast(column), static_cast(rowSpan), static_cast(columnSpan)); } void QGraphicsGridLayout_AddItem2(QGraphicsGridLayout* self, QGraphicsLayoutItem* item, int row, int column) { self->addItem(item, static_cast(row), static_cast(column)); } void QGraphicsGridLayout_SetHorizontalSpacing(QGraphicsGridLayout* self, double spacing) { self->setHorizontalSpacing(static_cast(spacing)); } double QGraphicsGridLayout_HorizontalSpacing(const QGraphicsGridLayout* self) { qreal _ret = self->horizontalSpacing(); return static_cast(_ret); } void QGraphicsGridLayout_SetVerticalSpacing(QGraphicsGridLayout* self, double spacing) { self->setVerticalSpacing(static_cast(spacing)); } double QGraphicsGridLayout_VerticalSpacing(const QGraphicsGridLayout* self) { qreal _ret = self->verticalSpacing(); return static_cast(_ret); } void QGraphicsGridLayout_SetSpacing(QGraphicsGridLayout* self, double spacing) { self->setSpacing(static_cast(spacing)); } void QGraphicsGridLayout_SetRowSpacing(QGraphicsGridLayout* self, int row, double spacing) { self->setRowSpacing(static_cast(row), static_cast(spacing)); } double QGraphicsGridLayout_RowSpacing(const QGraphicsGridLayout* self, int row) { qreal _ret = self->rowSpacing(static_cast(row)); return static_cast(_ret); } void QGraphicsGridLayout_SetColumnSpacing(QGraphicsGridLayout* self, int column, double spacing) { self->setColumnSpacing(static_cast(column), static_cast(spacing)); } double QGraphicsGridLayout_ColumnSpacing(const QGraphicsGridLayout* self, int column) { qreal _ret = self->columnSpacing(static_cast(column)); return static_cast(_ret); } void QGraphicsGridLayout_SetRowStretchFactor(QGraphicsGridLayout* self, int row, int stretch) { self->setRowStretchFactor(static_cast(row), static_cast(stretch)); } int QGraphicsGridLayout_RowStretchFactor(const QGraphicsGridLayout* self, int row) { return self->rowStretchFactor(static_cast(row)); } void QGraphicsGridLayout_SetColumnStretchFactor(QGraphicsGridLayout* self, int column, int stretch) { self->setColumnStretchFactor(static_cast(column), static_cast(stretch)); } int QGraphicsGridLayout_ColumnStretchFactor(const QGraphicsGridLayout* self, int column) { return self->columnStretchFactor(static_cast(column)); } void QGraphicsGridLayout_SetRowMinimumHeight(QGraphicsGridLayout* self, int row, double height) { self->setRowMinimumHeight(static_cast(row), static_cast(height)); } double QGraphicsGridLayout_RowMinimumHeight(const QGraphicsGridLayout* self, int row) { qreal _ret = self->rowMinimumHeight(static_cast(row)); return static_cast(_ret); } void QGraphicsGridLayout_SetRowPreferredHeight(QGraphicsGridLayout* self, int row, double height) { self->setRowPreferredHeight(static_cast(row), static_cast(height)); } double QGraphicsGridLayout_RowPreferredHeight(const QGraphicsGridLayout* self, int row) { qreal _ret = self->rowPreferredHeight(static_cast(row)); return static_cast(_ret); } void QGraphicsGridLayout_SetRowMaximumHeight(QGraphicsGridLayout* self, int row, double height) { self->setRowMaximumHeight(static_cast(row), static_cast(height)); } double QGraphicsGridLayout_RowMaximumHeight(const QGraphicsGridLayout* self, int row) { qreal _ret = self->rowMaximumHeight(static_cast(row)); return static_cast(_ret); } void QGraphicsGridLayout_SetRowFixedHeight(QGraphicsGridLayout* self, int row, double height) { self->setRowFixedHeight(static_cast(row), static_cast(height)); } void QGraphicsGridLayout_SetColumnMinimumWidth(QGraphicsGridLayout* self, int column, double width) { self->setColumnMinimumWidth(static_cast(column), static_cast(width)); } double QGraphicsGridLayout_ColumnMinimumWidth(const QGraphicsGridLayout* self, int column) { qreal _ret = self->columnMinimumWidth(static_cast(column)); return static_cast(_ret); } void QGraphicsGridLayout_SetColumnPreferredWidth(QGraphicsGridLayout* self, int column, double width) { self->setColumnPreferredWidth(static_cast(column), static_cast(width)); } double QGraphicsGridLayout_ColumnPreferredWidth(const QGraphicsGridLayout* self, int column) { qreal _ret = self->columnPreferredWidth(static_cast(column)); return static_cast(_ret); } void QGraphicsGridLayout_SetColumnMaximumWidth(QGraphicsGridLayout* self, int column, double width) { self->setColumnMaximumWidth(static_cast(column), static_cast(width)); } double QGraphicsGridLayout_ColumnMaximumWidth(const QGraphicsGridLayout* self, int column) { qreal _ret = self->columnMaximumWidth(static_cast(column)); return static_cast(_ret); } void QGraphicsGridLayout_SetColumnFixedWidth(QGraphicsGridLayout* self, int column, double width) { self->setColumnFixedWidth(static_cast(column), static_cast(width)); } void QGraphicsGridLayout_SetRowAlignment(QGraphicsGridLayout* self, int row, int alignment) { self->setRowAlignment(static_cast(row), static_cast(alignment)); } int QGraphicsGridLayout_RowAlignment(const QGraphicsGridLayout* self, int row) { Qt::Alignment _ret = self->rowAlignment(static_cast(row)); return static_cast(_ret); } void QGraphicsGridLayout_SetColumnAlignment(QGraphicsGridLayout* self, int column, int alignment) { self->setColumnAlignment(static_cast(column), static_cast(alignment)); } int QGraphicsGridLayout_ColumnAlignment(const QGraphicsGridLayout* self, int column) { Qt::Alignment _ret = self->columnAlignment(static_cast(column)); return static_cast(_ret); } void QGraphicsGridLayout_SetAlignment(QGraphicsGridLayout* self, QGraphicsLayoutItem* item, int alignment) { self->setAlignment(item, static_cast(alignment)); } int QGraphicsGridLayout_Alignment(const QGraphicsGridLayout* self, QGraphicsLayoutItem* item) { Qt::Alignment _ret = self->alignment(item); return static_cast(_ret); } int QGraphicsGridLayout_RowCount(const QGraphicsGridLayout* self) { return self->rowCount(); } int QGraphicsGridLayout_ColumnCount(const QGraphicsGridLayout* self) { return self->columnCount(); } QGraphicsLayoutItem* QGraphicsGridLayout_ItemAt(const QGraphicsGridLayout* self, int row, int column) { return self->itemAt(static_cast(row), static_cast(column)); } int QGraphicsGridLayout_Count(const QGraphicsGridLayout* self) { return self->count(); } QGraphicsLayoutItem* QGraphicsGridLayout_ItemAtWithIndex(const QGraphicsGridLayout* self, int index) { return self->itemAt(static_cast(index)); } void QGraphicsGridLayout_RemoveAt(QGraphicsGridLayout* self, int index) { self->removeAt(static_cast(index)); } void QGraphicsGridLayout_RemoveItem(QGraphicsGridLayout* self, QGraphicsLayoutItem* item) { self->removeItem(item); } void QGraphicsGridLayout_Invalidate(QGraphicsGridLayout* self) { self->invalidate(); } void QGraphicsGridLayout_SetGeometry(QGraphicsGridLayout* self, QRectF* rect) { self->setGeometry(*rect); } QSizeF* QGraphicsGridLayout_SizeHint(const QGraphicsGridLayout* self, int which, QSizeF* constraint) { return new QSizeF(self->sizeHint(static_cast(which), *constraint)); } void QGraphicsGridLayout_AddItem6(QGraphicsGridLayout* self, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, int alignment) { self->addItem(item, static_cast(row), static_cast(column), static_cast(rowSpan), static_cast(columnSpan), static_cast(alignment)); } void QGraphicsGridLayout_AddItem4(QGraphicsGridLayout* self, QGraphicsLayoutItem* item, int row, int column, int alignment) { self->addItem(item, static_cast(row), static_cast(column), static_cast(alignment)); } void QGraphicsGridLayout_override_virtual_Count(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__Count = slot; } int QGraphicsGridLayout_virtualbase_Count(const void* self) { return ( (const MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_Count(); } void QGraphicsGridLayout_override_virtual_ItemAtWithIndex(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__ItemAtWithIndex = slot; } QGraphicsLayoutItem* QGraphicsGridLayout_virtualbase_ItemAtWithIndex(const void* self, int index) { return ( (const MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_ItemAtWithIndex(index); } void QGraphicsGridLayout_override_virtual_RemoveAt(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__RemoveAt = slot; } void QGraphicsGridLayout_virtualbase_RemoveAt(void* self, int index) { ( (MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_RemoveAt(index); } void QGraphicsGridLayout_override_virtual_Invalidate(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__Invalidate = slot; } void QGraphicsGridLayout_virtualbase_Invalidate(void* self) { ( (MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_Invalidate(); } void QGraphicsGridLayout_override_virtual_SetGeometry(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__SetGeometry = slot; } void QGraphicsGridLayout_virtualbase_SetGeometry(void* self, QRectF* rect) { ( (MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_SetGeometry(rect); } void QGraphicsGridLayout_override_virtual_SizeHint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__SizeHint = slot; } QSizeF* QGraphicsGridLayout_virtualbase_SizeHint(const void* self, int which, QSizeF* constraint) { return ( (const MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_SizeHint(which, constraint); } void QGraphicsGridLayout_override_virtual_GetContentsMargins(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__GetContentsMargins = slot; } void QGraphicsGridLayout_virtualbase_GetContentsMargins(const void* self, double* left, double* top, double* right, double* bottom) { ( (const MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_GetContentsMargins(left, top, right, bottom); } void QGraphicsGridLayout_override_virtual_UpdateGeometry(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__UpdateGeometry = slot; } void QGraphicsGridLayout_virtualbase_UpdateGeometry(void* self) { ( (MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_UpdateGeometry(); } void QGraphicsGridLayout_override_virtual_WidgetEvent(void* self, intptr_t slot) { dynamic_cast( (QGraphicsGridLayout*)(self) )->handle__WidgetEvent = slot; } void QGraphicsGridLayout_virtualbase_WidgetEvent(void* self, QEvent* e) { ( (MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_WidgetEvent(e); } void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }