mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
2489 lines
70 KiB
C++
2489 lines
70 KiB
C++
#include <QLayout>
|
|
#include <QLayoutItem>
|
|
#include <QRect>
|
|
#include <QSize>
|
|
#include <QSizePolicy>
|
|
#include <QSpacerItem>
|
|
#include <QWidget>
|
|
#include <QWidgetItem>
|
|
#include <QWidgetItemV2>
|
|
#include <qlayoutitem.h>
|
|
#include "gen_qlayoutitem.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
QSize* miqt_exec_callback_QLayoutItem_sizeHint(const QLayoutItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QLayoutItem_minimumSize(const QLayoutItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QLayoutItem_maximumSize(const QLayoutItem*, intptr_t);
|
|
int miqt_exec_callback_QLayoutItem_expandingDirections(const QLayoutItem*, intptr_t);
|
|
void miqt_exec_callback_QLayoutItem_setGeometry(QLayoutItem*, intptr_t, QRect*);
|
|
QRect* miqt_exec_callback_QLayoutItem_geometry(const QLayoutItem*, intptr_t);
|
|
bool miqt_exec_callback_QLayoutItem_isEmpty(const QLayoutItem*, intptr_t);
|
|
bool miqt_exec_callback_QLayoutItem_hasHeightForWidth(const QLayoutItem*, intptr_t);
|
|
int miqt_exec_callback_QLayoutItem_heightForWidth(const QLayoutItem*, intptr_t, int);
|
|
int miqt_exec_callback_QLayoutItem_minimumHeightForWidth(const QLayoutItem*, intptr_t, int);
|
|
void miqt_exec_callback_QLayoutItem_invalidate(QLayoutItem*, intptr_t);
|
|
QWidget* miqt_exec_callback_QLayoutItem_widget(const QLayoutItem*, intptr_t);
|
|
QLayout* miqt_exec_callback_QLayoutItem_layout(QLayoutItem*, intptr_t);
|
|
QSpacerItem* miqt_exec_callback_QLayoutItem_spacerItem(QLayoutItem*, intptr_t);
|
|
int miqt_exec_callback_QLayoutItem_controlTypes(const QLayoutItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QSpacerItem_sizeHint(const QSpacerItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QSpacerItem_minimumSize(const QSpacerItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QSpacerItem_maximumSize(const QSpacerItem*, intptr_t);
|
|
int miqt_exec_callback_QSpacerItem_expandingDirections(const QSpacerItem*, intptr_t);
|
|
bool miqt_exec_callback_QSpacerItem_isEmpty(const QSpacerItem*, intptr_t);
|
|
void miqt_exec_callback_QSpacerItem_setGeometry(QSpacerItem*, intptr_t, QRect*);
|
|
QRect* miqt_exec_callback_QSpacerItem_geometry(const QSpacerItem*, intptr_t);
|
|
QSpacerItem* miqt_exec_callback_QSpacerItem_spacerItem(QSpacerItem*, intptr_t);
|
|
bool miqt_exec_callback_QSpacerItem_hasHeightForWidth(const QSpacerItem*, intptr_t);
|
|
int miqt_exec_callback_QSpacerItem_heightForWidth(const QSpacerItem*, intptr_t, int);
|
|
int miqt_exec_callback_QSpacerItem_minimumHeightForWidth(const QSpacerItem*, intptr_t, int);
|
|
void miqt_exec_callback_QSpacerItem_invalidate(QSpacerItem*, intptr_t);
|
|
QWidget* miqt_exec_callback_QSpacerItem_widget(const QSpacerItem*, intptr_t);
|
|
QLayout* miqt_exec_callback_QSpacerItem_layout(QSpacerItem*, intptr_t);
|
|
int miqt_exec_callback_QSpacerItem_controlTypes(const QSpacerItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QWidgetItem_sizeHint(const QWidgetItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QWidgetItem_minimumSize(const QWidgetItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QWidgetItem_maximumSize(const QWidgetItem*, intptr_t);
|
|
int miqt_exec_callback_QWidgetItem_expandingDirections(const QWidgetItem*, intptr_t);
|
|
bool miqt_exec_callback_QWidgetItem_isEmpty(const QWidgetItem*, intptr_t);
|
|
void miqt_exec_callback_QWidgetItem_setGeometry(QWidgetItem*, intptr_t, QRect*);
|
|
QRect* miqt_exec_callback_QWidgetItem_geometry(const QWidgetItem*, intptr_t);
|
|
QWidget* miqt_exec_callback_QWidgetItem_widget(const QWidgetItem*, intptr_t);
|
|
bool miqt_exec_callback_QWidgetItem_hasHeightForWidth(const QWidgetItem*, intptr_t);
|
|
int miqt_exec_callback_QWidgetItem_heightForWidth(const QWidgetItem*, intptr_t, int);
|
|
int miqt_exec_callback_QWidgetItem_minimumHeightForWidth(const QWidgetItem*, intptr_t, int);
|
|
int miqt_exec_callback_QWidgetItem_controlTypes(const QWidgetItem*, intptr_t);
|
|
void miqt_exec_callback_QWidgetItem_invalidate(QWidgetItem*, intptr_t);
|
|
QLayout* miqt_exec_callback_QWidgetItem_layout(QWidgetItem*, intptr_t);
|
|
QSpacerItem* miqt_exec_callback_QWidgetItem_spacerItem(QWidgetItem*, intptr_t);
|
|
QSize* miqt_exec_callback_QWidgetItemV2_sizeHint(const QWidgetItemV2*, intptr_t);
|
|
QSize* miqt_exec_callback_QWidgetItemV2_minimumSize(const QWidgetItemV2*, intptr_t);
|
|
QSize* miqt_exec_callback_QWidgetItemV2_maximumSize(const QWidgetItemV2*, intptr_t);
|
|
int miqt_exec_callback_QWidgetItemV2_heightForWidth(const QWidgetItemV2*, intptr_t, int);
|
|
int miqt_exec_callback_QWidgetItemV2_expandingDirections(const QWidgetItemV2*, intptr_t);
|
|
bool miqt_exec_callback_QWidgetItemV2_isEmpty(const QWidgetItemV2*, intptr_t);
|
|
void miqt_exec_callback_QWidgetItemV2_setGeometry(QWidgetItemV2*, intptr_t, QRect*);
|
|
QRect* miqt_exec_callback_QWidgetItemV2_geometry(const QWidgetItemV2*, intptr_t);
|
|
QWidget* miqt_exec_callback_QWidgetItemV2_widget(const QWidgetItemV2*, intptr_t);
|
|
bool miqt_exec_callback_QWidgetItemV2_hasHeightForWidth(const QWidgetItemV2*, intptr_t);
|
|
int miqt_exec_callback_QWidgetItemV2_minimumHeightForWidth(const QWidgetItemV2*, intptr_t, int);
|
|
int miqt_exec_callback_QWidgetItemV2_controlTypes(const QWidgetItemV2*, intptr_t);
|
|
void miqt_exec_callback_QWidgetItemV2_invalidate(QWidgetItemV2*, intptr_t);
|
|
QLayout* miqt_exec_callback_QWidgetItemV2_layout(QWidgetItemV2*, intptr_t);
|
|
QSpacerItem* miqt_exec_callback_QWidgetItemV2_spacerItem(QWidgetItemV2*, intptr_t);
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
class MiqtVirtualQLayoutItem final : public QLayoutItem {
|
|
public:
|
|
|
|
MiqtVirtualQLayoutItem(): QLayoutItem() {};
|
|
MiqtVirtualQLayoutItem(const QLayoutItem& param1): QLayoutItem(param1) {};
|
|
MiqtVirtualQLayoutItem(Qt::Alignment alignment): QLayoutItem(alignment) {};
|
|
|
|
virtual ~MiqtVirtualQLayoutItem() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__sizeHint = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize sizeHint() const override {
|
|
if (handle__sizeHint == 0) {
|
|
return QSize(); // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QLayoutItem_sizeHint(this, handle__sizeHint);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize minimumSize() const override {
|
|
if (handle__minimumSize == 0) {
|
|
return QSize(); // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QLayoutItem_minimumSize(this, handle__minimumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__maximumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize maximumSize() const override {
|
|
if (handle__maximumSize == 0) {
|
|
return QSize(); // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QLayoutItem_maximumSize(this, handle__maximumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__expandingDirections = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual Qt::Orientations expandingDirections() const override {
|
|
if (handle__expandingDirections == 0) {
|
|
return Qt::Orientations(); // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QLayoutItem_expandingDirections(this, handle__expandingDirections);
|
|
|
|
return static_cast<Qt::Orientations>(callback_return_value);
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setGeometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void setGeometry(const QRect& geometry) override {
|
|
if (handle__setGeometry == 0) {
|
|
return; // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
const QRect& geometry_ret = geometry;
|
|
// Cast returned reference into pointer
|
|
QRect* sigval1 = const_cast<QRect*>(&geometry_ret);
|
|
|
|
miqt_exec_callback_QLayoutItem_setGeometry(this, handle__setGeometry, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__geometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QRect geometry() const override {
|
|
if (handle__geometry == 0) {
|
|
return QRect(); // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
|
|
QRect* callback_return_value = miqt_exec_callback_QLayoutItem_geometry(this, handle__geometry);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__isEmpty = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool isEmpty() const override {
|
|
if (handle__isEmpty == 0) {
|
|
return false; // Pure virtual, there is no base we can call
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QLayoutItem_isEmpty(this, handle__isEmpty);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__hasHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool hasHeightForWidth() const override {
|
|
if (handle__hasHeightForWidth == 0) {
|
|
return QLayoutItem::hasHeightForWidth();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QLayoutItem_hasHeightForWidth(this, handle__hasHeightForWidth);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_hasHeightForWidth() const {
|
|
|
|
return QLayoutItem::hasHeightForWidth();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__heightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int heightForWidth(int param1) const override {
|
|
if (handle__heightForWidth == 0) {
|
|
return QLayoutItem::heightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QLayoutItem_heightForWidth(this, handle__heightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_heightForWidth(int param1) const {
|
|
|
|
return QLayoutItem::heightForWidth(static_cast<int>(param1));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int minimumHeightForWidth(int param1) const override {
|
|
if (handle__minimumHeightForWidth == 0) {
|
|
return QLayoutItem::minimumHeightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QLayoutItem_minimumHeightForWidth(this, handle__minimumHeightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_minimumHeightForWidth(int param1) const {
|
|
|
|
return QLayoutItem::minimumHeightForWidth(static_cast<int>(param1));
|
|
|
|
}
|
|
|
|
// 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) {
|
|
QLayoutItem::invalidate();
|
|
return;
|
|
}
|
|
|
|
|
|
miqt_exec_callback_QLayoutItem_invalidate(this, handle__invalidate);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_invalidate() {
|
|
|
|
QLayoutItem::invalidate();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__widget = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QWidget* widget() const override {
|
|
if (handle__widget == 0) {
|
|
return QLayoutItem::widget();
|
|
}
|
|
|
|
|
|
QWidget* callback_return_value = miqt_exec_callback_QLayoutItem_widget(this, handle__widget);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QWidget* virtualbase_widget() const {
|
|
|
|
return QLayoutItem::widget();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__layout = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QLayout* layout() override {
|
|
if (handle__layout == 0) {
|
|
return QLayoutItem::layout();
|
|
}
|
|
|
|
|
|
QLayout* callback_return_value = miqt_exec_callback_QLayoutItem_layout(this, handle__layout);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QLayout* virtualbase_layout() {
|
|
|
|
return QLayoutItem::layout();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__spacerItem = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSpacerItem* spacerItem() override {
|
|
if (handle__spacerItem == 0) {
|
|
return QLayoutItem::spacerItem();
|
|
}
|
|
|
|
|
|
QSpacerItem* callback_return_value = miqt_exec_callback_QLayoutItem_spacerItem(this, handle__spacerItem);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSpacerItem* virtualbase_spacerItem() {
|
|
|
|
return QLayoutItem::spacerItem();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__controlTypes = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSizePolicy::ControlTypes controlTypes() const override {
|
|
if (handle__controlTypes == 0) {
|
|
return QLayoutItem::controlTypes();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QLayoutItem_controlTypes(this, handle__controlTypes);
|
|
|
|
return static_cast<QSizePolicy::ControlTypes>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_controlTypes() const {
|
|
|
|
QSizePolicy::ControlTypes _ret = QLayoutItem::controlTypes();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QLayoutItem* QLayoutItem_new() {
|
|
return new MiqtVirtualQLayoutItem();
|
|
}
|
|
|
|
QLayoutItem* QLayoutItem_new2(QLayoutItem* param1) {
|
|
return new MiqtVirtualQLayoutItem(*param1);
|
|
}
|
|
|
|
QLayoutItem* QLayoutItem_new3(int alignment) {
|
|
return new MiqtVirtualQLayoutItem(static_cast<Qt::Alignment>(alignment));
|
|
}
|
|
|
|
QSize* QLayoutItem_sizeHint(const QLayoutItem* self) {
|
|
return new QSize(self->sizeHint());
|
|
}
|
|
|
|
QSize* QLayoutItem_minimumSize(const QLayoutItem* self) {
|
|
return new QSize(self->minimumSize());
|
|
}
|
|
|
|
QSize* QLayoutItem_maximumSize(const QLayoutItem* self) {
|
|
return new QSize(self->maximumSize());
|
|
}
|
|
|
|
int QLayoutItem_expandingDirections(const QLayoutItem* self) {
|
|
Qt::Orientations _ret = self->expandingDirections();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QLayoutItem_setGeometry(QLayoutItem* self, QRect* geometry) {
|
|
self->setGeometry(*geometry);
|
|
}
|
|
|
|
QRect* QLayoutItem_geometry(const QLayoutItem* self) {
|
|
return new QRect(self->geometry());
|
|
}
|
|
|
|
bool QLayoutItem_isEmpty(const QLayoutItem* self) {
|
|
return self->isEmpty();
|
|
}
|
|
|
|
bool QLayoutItem_hasHeightForWidth(const QLayoutItem* self) {
|
|
return self->hasHeightForWidth();
|
|
}
|
|
|
|
int QLayoutItem_heightForWidth(const QLayoutItem* self, int param1) {
|
|
return self->heightForWidth(static_cast<int>(param1));
|
|
}
|
|
|
|
int QLayoutItem_minimumHeightForWidth(const QLayoutItem* self, int param1) {
|
|
return self->minimumHeightForWidth(static_cast<int>(param1));
|
|
}
|
|
|
|
void QLayoutItem_invalidate(QLayoutItem* self) {
|
|
self->invalidate();
|
|
}
|
|
|
|
QWidget* QLayoutItem_widget(const QLayoutItem* self) {
|
|
return self->widget();
|
|
}
|
|
|
|
QLayout* QLayoutItem_layout(QLayoutItem* self) {
|
|
return self->layout();
|
|
}
|
|
|
|
QSpacerItem* QLayoutItem_spacerItem(QLayoutItem* self) {
|
|
return self->spacerItem();
|
|
}
|
|
|
|
int QLayoutItem_alignment(const QLayoutItem* self) {
|
|
Qt::Alignment _ret = self->alignment();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QLayoutItem_setAlignment(QLayoutItem* self, int a) {
|
|
self->setAlignment(static_cast<Qt::Alignment>(a));
|
|
}
|
|
|
|
int QLayoutItem_controlTypes(const QLayoutItem* self) {
|
|
QSizePolicy::ControlTypes _ret = self->controlTypes();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_sizeHint(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sizeHint = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_minimumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_maximumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__maximumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_expandingDirections(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__expandingDirections = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_setGeometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setGeometry = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_geometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__geometry = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_isEmpty(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__isEmpty = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_hasHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__hasHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QLayoutItem_virtualbase_hasHeightForWidth(const void* self) {
|
|
return ( (const MiqtVirtualQLayoutItem*)(self) )->virtualbase_hasHeightForWidth();
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_heightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__heightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QLayoutItem_virtualbase_heightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQLayoutItem*)(self) )->virtualbase_heightForWidth(param1);
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_minimumHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QLayoutItem_virtualbase_minimumHeightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQLayoutItem*)(self) )->virtualbase_minimumHeightForWidth(param1);
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_invalidate(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__invalidate = slot;
|
|
return true;
|
|
}
|
|
|
|
void QLayoutItem_virtualbase_invalidate(void* self) {
|
|
( (MiqtVirtualQLayoutItem*)(self) )->virtualbase_invalidate();
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_widget(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__widget = slot;
|
|
return true;
|
|
}
|
|
|
|
QWidget* QLayoutItem_virtualbase_widget(const void* self) {
|
|
return ( (const MiqtVirtualQLayoutItem*)(self) )->virtualbase_widget();
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_layout(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__layout = slot;
|
|
return true;
|
|
}
|
|
|
|
QLayout* QLayoutItem_virtualbase_layout(void* self) {
|
|
return ( (MiqtVirtualQLayoutItem*)(self) )->virtualbase_layout();
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_spacerItem(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__spacerItem = slot;
|
|
return true;
|
|
}
|
|
|
|
QSpacerItem* QLayoutItem_virtualbase_spacerItem(void* self) {
|
|
return ( (MiqtVirtualQLayoutItem*)(self) )->virtualbase_spacerItem();
|
|
}
|
|
|
|
bool QLayoutItem_override_virtual_controlTypes(void* self, intptr_t slot) {
|
|
MiqtVirtualQLayoutItem* self_cast = dynamic_cast<MiqtVirtualQLayoutItem*>( (QLayoutItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__controlTypes = slot;
|
|
return true;
|
|
}
|
|
|
|
int QLayoutItem_virtualbase_controlTypes(const void* self) {
|
|
return ( (const MiqtVirtualQLayoutItem*)(self) )->virtualbase_controlTypes();
|
|
}
|
|
|
|
void QLayoutItem_delete(QLayoutItem* self) {
|
|
delete self;
|
|
}
|
|
|
|
class MiqtVirtualQSpacerItem final : public QSpacerItem {
|
|
public:
|
|
|
|
MiqtVirtualQSpacerItem(int w, int h): QSpacerItem(w, h) {};
|
|
MiqtVirtualQSpacerItem(const QSpacerItem& param1): QSpacerItem(param1) {};
|
|
MiqtVirtualQSpacerItem(int w, int h, QSizePolicy::Policy hData): QSpacerItem(w, h, hData) {};
|
|
MiqtVirtualQSpacerItem(int w, int h, QSizePolicy::Policy hData, QSizePolicy::Policy vData): QSpacerItem(w, h, hData, vData) {};
|
|
|
|
virtual ~MiqtVirtualQSpacerItem() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__sizeHint = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize sizeHint() const override {
|
|
if (handle__sizeHint == 0) {
|
|
return QSpacerItem::sizeHint();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QSpacerItem_sizeHint(this, handle__sizeHint);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_sizeHint() const {
|
|
|
|
return new QSize(QSpacerItem::sizeHint());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize minimumSize() const override {
|
|
if (handle__minimumSize == 0) {
|
|
return QSpacerItem::minimumSize();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QSpacerItem_minimumSize(this, handle__minimumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_minimumSize() const {
|
|
|
|
return new QSize(QSpacerItem::minimumSize());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__maximumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize maximumSize() const override {
|
|
if (handle__maximumSize == 0) {
|
|
return QSpacerItem::maximumSize();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QSpacerItem_maximumSize(this, handle__maximumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_maximumSize() const {
|
|
|
|
return new QSize(QSpacerItem::maximumSize());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__expandingDirections = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual Qt::Orientations expandingDirections() const override {
|
|
if (handle__expandingDirections == 0) {
|
|
return QSpacerItem::expandingDirections();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QSpacerItem_expandingDirections(this, handle__expandingDirections);
|
|
|
|
return static_cast<Qt::Orientations>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_expandingDirections() const {
|
|
|
|
Qt::Orientations _ret = QSpacerItem::expandingDirections();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__isEmpty = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool isEmpty() const override {
|
|
if (handle__isEmpty == 0) {
|
|
return QSpacerItem::isEmpty();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QSpacerItem_isEmpty(this, handle__isEmpty);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_isEmpty() const {
|
|
|
|
return QSpacerItem::isEmpty();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setGeometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void setGeometry(const QRect& geometry) override {
|
|
if (handle__setGeometry == 0) {
|
|
QSpacerItem::setGeometry(geometry);
|
|
return;
|
|
}
|
|
|
|
const QRect& geometry_ret = geometry;
|
|
// Cast returned reference into pointer
|
|
QRect* sigval1 = const_cast<QRect*>(&geometry_ret);
|
|
|
|
miqt_exec_callback_QSpacerItem_setGeometry(this, handle__setGeometry, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_setGeometry(QRect* geometry) {
|
|
|
|
QSpacerItem::setGeometry(*geometry);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__geometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QRect geometry() const override {
|
|
if (handle__geometry == 0) {
|
|
return QSpacerItem::geometry();
|
|
}
|
|
|
|
|
|
QRect* callback_return_value = miqt_exec_callback_QSpacerItem_geometry(this, handle__geometry);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QRect* virtualbase_geometry() const {
|
|
|
|
return new QRect(QSpacerItem::geometry());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__spacerItem = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSpacerItem* spacerItem() override {
|
|
if (handle__spacerItem == 0) {
|
|
return QSpacerItem::spacerItem();
|
|
}
|
|
|
|
|
|
QSpacerItem* callback_return_value = miqt_exec_callback_QSpacerItem_spacerItem(this, handle__spacerItem);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSpacerItem* virtualbase_spacerItem() {
|
|
|
|
return QSpacerItem::spacerItem();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__hasHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool hasHeightForWidth() const override {
|
|
if (handle__hasHeightForWidth == 0) {
|
|
return QSpacerItem::hasHeightForWidth();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QSpacerItem_hasHeightForWidth(this, handle__hasHeightForWidth);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_hasHeightForWidth() const {
|
|
|
|
return QSpacerItem::hasHeightForWidth();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__heightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int heightForWidth(int param1) const override {
|
|
if (handle__heightForWidth == 0) {
|
|
return QSpacerItem::heightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QSpacerItem_heightForWidth(this, handle__heightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_heightForWidth(int param1) const {
|
|
|
|
return QSpacerItem::heightForWidth(static_cast<int>(param1));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int minimumHeightForWidth(int param1) const override {
|
|
if (handle__minimumHeightForWidth == 0) {
|
|
return QSpacerItem::minimumHeightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QSpacerItem_minimumHeightForWidth(this, handle__minimumHeightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_minimumHeightForWidth(int param1) const {
|
|
|
|
return QSpacerItem::minimumHeightForWidth(static_cast<int>(param1));
|
|
|
|
}
|
|
|
|
// 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) {
|
|
QSpacerItem::invalidate();
|
|
return;
|
|
}
|
|
|
|
|
|
miqt_exec_callback_QSpacerItem_invalidate(this, handle__invalidate);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_invalidate() {
|
|
|
|
QSpacerItem::invalidate();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__widget = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QWidget* widget() const override {
|
|
if (handle__widget == 0) {
|
|
return QSpacerItem::widget();
|
|
}
|
|
|
|
|
|
QWidget* callback_return_value = miqt_exec_callback_QSpacerItem_widget(this, handle__widget);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QWidget* virtualbase_widget() const {
|
|
|
|
return QSpacerItem::widget();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__layout = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QLayout* layout() override {
|
|
if (handle__layout == 0) {
|
|
return QSpacerItem::layout();
|
|
}
|
|
|
|
|
|
QLayout* callback_return_value = miqt_exec_callback_QSpacerItem_layout(this, handle__layout);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QLayout* virtualbase_layout() {
|
|
|
|
return QSpacerItem::layout();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__controlTypes = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSizePolicy::ControlTypes controlTypes() const override {
|
|
if (handle__controlTypes == 0) {
|
|
return QSpacerItem::controlTypes();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QSpacerItem_controlTypes(this, handle__controlTypes);
|
|
|
|
return static_cast<QSizePolicy::ControlTypes>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_controlTypes() const {
|
|
|
|
QSizePolicy::ControlTypes _ret = QSpacerItem::controlTypes();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QSpacerItem* QSpacerItem_new(int w, int h) {
|
|
return new MiqtVirtualQSpacerItem(static_cast<int>(w), static_cast<int>(h));
|
|
}
|
|
|
|
QSpacerItem* QSpacerItem_new2(QSpacerItem* param1) {
|
|
return new MiqtVirtualQSpacerItem(*param1);
|
|
}
|
|
|
|
QSpacerItem* QSpacerItem_new3(int w, int h, int hData) {
|
|
return new MiqtVirtualQSpacerItem(static_cast<int>(w), static_cast<int>(h), static_cast<QSizePolicy::Policy>(hData));
|
|
}
|
|
|
|
QSpacerItem* QSpacerItem_new4(int w, int h, int hData, int vData) {
|
|
return new MiqtVirtualQSpacerItem(static_cast<int>(w), static_cast<int>(h), static_cast<QSizePolicy::Policy>(hData), static_cast<QSizePolicy::Policy>(vData));
|
|
}
|
|
|
|
void QSpacerItem_virtbase(QSpacerItem* src, QLayoutItem** outptr_QLayoutItem) {
|
|
*outptr_QLayoutItem = static_cast<QLayoutItem*>(src);
|
|
}
|
|
|
|
void QSpacerItem_changeSize(QSpacerItem* self, int w, int h) {
|
|
self->changeSize(static_cast<int>(w), static_cast<int>(h));
|
|
}
|
|
|
|
QSize* QSpacerItem_sizeHint(const QSpacerItem* self) {
|
|
return new QSize(self->sizeHint());
|
|
}
|
|
|
|
QSize* QSpacerItem_minimumSize(const QSpacerItem* self) {
|
|
return new QSize(self->minimumSize());
|
|
}
|
|
|
|
QSize* QSpacerItem_maximumSize(const QSpacerItem* self) {
|
|
return new QSize(self->maximumSize());
|
|
}
|
|
|
|
int QSpacerItem_expandingDirections(const QSpacerItem* self) {
|
|
Qt::Orientations _ret = self->expandingDirections();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
bool QSpacerItem_isEmpty(const QSpacerItem* self) {
|
|
return self->isEmpty();
|
|
}
|
|
|
|
void QSpacerItem_setGeometry(QSpacerItem* self, QRect* geometry) {
|
|
self->setGeometry(*geometry);
|
|
}
|
|
|
|
QRect* QSpacerItem_geometry(const QSpacerItem* self) {
|
|
return new QRect(self->geometry());
|
|
}
|
|
|
|
QSpacerItem* QSpacerItem_spacerItem(QSpacerItem* self) {
|
|
return self->spacerItem();
|
|
}
|
|
|
|
QSizePolicy* QSpacerItem_sizePolicy(const QSpacerItem* self) {
|
|
return new QSizePolicy(self->sizePolicy());
|
|
}
|
|
|
|
void QSpacerItem_changeSize3(QSpacerItem* self, int w, int h, int hData) {
|
|
self->changeSize(static_cast<int>(w), static_cast<int>(h), static_cast<QSizePolicy::Policy>(hData));
|
|
}
|
|
|
|
void QSpacerItem_changeSize4(QSpacerItem* self, int w, int h, int hData, int vData) {
|
|
self->changeSize(static_cast<int>(w), static_cast<int>(h), static_cast<QSizePolicy::Policy>(hData), static_cast<QSizePolicy::Policy>(vData));
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_sizeHint(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sizeHint = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QSpacerItem_virtualbase_sizeHint(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_sizeHint();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_minimumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QSpacerItem_virtualbase_minimumSize(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_minimumSize();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_maximumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__maximumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QSpacerItem_virtualbase_maximumSize(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_maximumSize();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_expandingDirections(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__expandingDirections = slot;
|
|
return true;
|
|
}
|
|
|
|
int QSpacerItem_virtualbase_expandingDirections(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_expandingDirections();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_isEmpty(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__isEmpty = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QSpacerItem_virtualbase_isEmpty(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_isEmpty();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_setGeometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setGeometry = slot;
|
|
return true;
|
|
}
|
|
|
|
void QSpacerItem_virtualbase_setGeometry(void* self, QRect* geometry) {
|
|
( (MiqtVirtualQSpacerItem*)(self) )->virtualbase_setGeometry(geometry);
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_geometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__geometry = slot;
|
|
return true;
|
|
}
|
|
|
|
QRect* QSpacerItem_virtualbase_geometry(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_geometry();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_spacerItem(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__spacerItem = slot;
|
|
return true;
|
|
}
|
|
|
|
QSpacerItem* QSpacerItem_virtualbase_spacerItem(void* self) {
|
|
return ( (MiqtVirtualQSpacerItem*)(self) )->virtualbase_spacerItem();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_hasHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__hasHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QSpacerItem_virtualbase_hasHeightForWidth(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_hasHeightForWidth();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_heightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__heightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QSpacerItem_virtualbase_heightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_heightForWidth(param1);
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_minimumHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QSpacerItem_virtualbase_minimumHeightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_minimumHeightForWidth(param1);
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_invalidate(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__invalidate = slot;
|
|
return true;
|
|
}
|
|
|
|
void QSpacerItem_virtualbase_invalidate(void* self) {
|
|
( (MiqtVirtualQSpacerItem*)(self) )->virtualbase_invalidate();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_widget(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__widget = slot;
|
|
return true;
|
|
}
|
|
|
|
QWidget* QSpacerItem_virtualbase_widget(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_widget();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_layout(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__layout = slot;
|
|
return true;
|
|
}
|
|
|
|
QLayout* QSpacerItem_virtualbase_layout(void* self) {
|
|
return ( (MiqtVirtualQSpacerItem*)(self) )->virtualbase_layout();
|
|
}
|
|
|
|
bool QSpacerItem_override_virtual_controlTypes(void* self, intptr_t slot) {
|
|
MiqtVirtualQSpacerItem* self_cast = dynamic_cast<MiqtVirtualQSpacerItem*>( (QSpacerItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__controlTypes = slot;
|
|
return true;
|
|
}
|
|
|
|
int QSpacerItem_virtualbase_controlTypes(const void* self) {
|
|
return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_controlTypes();
|
|
}
|
|
|
|
void QSpacerItem_delete(QSpacerItem* self) {
|
|
delete self;
|
|
}
|
|
|
|
class MiqtVirtualQWidgetItem final : public QWidgetItem {
|
|
public:
|
|
|
|
MiqtVirtualQWidgetItem(QWidget* w): QWidgetItem(w) {};
|
|
|
|
virtual ~MiqtVirtualQWidgetItem() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__sizeHint = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize sizeHint() const override {
|
|
if (handle__sizeHint == 0) {
|
|
return QWidgetItem::sizeHint();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QWidgetItem_sizeHint(this, handle__sizeHint);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_sizeHint() const {
|
|
|
|
return new QSize(QWidgetItem::sizeHint());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize minimumSize() const override {
|
|
if (handle__minimumSize == 0) {
|
|
return QWidgetItem::minimumSize();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QWidgetItem_minimumSize(this, handle__minimumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_minimumSize() const {
|
|
|
|
return new QSize(QWidgetItem::minimumSize());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__maximumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize maximumSize() const override {
|
|
if (handle__maximumSize == 0) {
|
|
return QWidgetItem::maximumSize();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QWidgetItem_maximumSize(this, handle__maximumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_maximumSize() const {
|
|
|
|
return new QSize(QWidgetItem::maximumSize());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__expandingDirections = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual Qt::Orientations expandingDirections() const override {
|
|
if (handle__expandingDirections == 0) {
|
|
return QWidgetItem::expandingDirections();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItem_expandingDirections(this, handle__expandingDirections);
|
|
|
|
return static_cast<Qt::Orientations>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_expandingDirections() const {
|
|
|
|
Qt::Orientations _ret = QWidgetItem::expandingDirections();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__isEmpty = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool isEmpty() const override {
|
|
if (handle__isEmpty == 0) {
|
|
return QWidgetItem::isEmpty();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWidgetItem_isEmpty(this, handle__isEmpty);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_isEmpty() const {
|
|
|
|
return QWidgetItem::isEmpty();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setGeometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void setGeometry(const QRect& geometry) override {
|
|
if (handle__setGeometry == 0) {
|
|
QWidgetItem::setGeometry(geometry);
|
|
return;
|
|
}
|
|
|
|
const QRect& geometry_ret = geometry;
|
|
// Cast returned reference into pointer
|
|
QRect* sigval1 = const_cast<QRect*>(&geometry_ret);
|
|
|
|
miqt_exec_callback_QWidgetItem_setGeometry(this, handle__setGeometry, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_setGeometry(QRect* geometry) {
|
|
|
|
QWidgetItem::setGeometry(*geometry);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__geometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QRect geometry() const override {
|
|
if (handle__geometry == 0) {
|
|
return QWidgetItem::geometry();
|
|
}
|
|
|
|
|
|
QRect* callback_return_value = miqt_exec_callback_QWidgetItem_geometry(this, handle__geometry);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QRect* virtualbase_geometry() const {
|
|
|
|
return new QRect(QWidgetItem::geometry());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__widget = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QWidget* widget() const override {
|
|
if (handle__widget == 0) {
|
|
return QWidgetItem::widget();
|
|
}
|
|
|
|
|
|
QWidget* callback_return_value = miqt_exec_callback_QWidgetItem_widget(this, handle__widget);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QWidget* virtualbase_widget() const {
|
|
|
|
return QWidgetItem::widget();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__hasHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool hasHeightForWidth() const override {
|
|
if (handle__hasHeightForWidth == 0) {
|
|
return QWidgetItem::hasHeightForWidth();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWidgetItem_hasHeightForWidth(this, handle__hasHeightForWidth);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_hasHeightForWidth() const {
|
|
|
|
return QWidgetItem::hasHeightForWidth();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__heightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int heightForWidth(int param1) const override {
|
|
if (handle__heightForWidth == 0) {
|
|
return QWidgetItem::heightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItem_heightForWidth(this, handle__heightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_heightForWidth(int param1) const {
|
|
|
|
return QWidgetItem::heightForWidth(static_cast<int>(param1));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int minimumHeightForWidth(int param1) const override {
|
|
if (handle__minimumHeightForWidth == 0) {
|
|
return QWidgetItem::minimumHeightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItem_minimumHeightForWidth(this, handle__minimumHeightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_minimumHeightForWidth(int param1) const {
|
|
|
|
return QWidgetItem::minimumHeightForWidth(static_cast<int>(param1));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__controlTypes = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSizePolicy::ControlTypes controlTypes() const override {
|
|
if (handle__controlTypes == 0) {
|
|
return QWidgetItem::controlTypes();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItem_controlTypes(this, handle__controlTypes);
|
|
|
|
return static_cast<QSizePolicy::ControlTypes>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_controlTypes() const {
|
|
|
|
QSizePolicy::ControlTypes _ret = QWidgetItem::controlTypes();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// 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) {
|
|
QWidgetItem::invalidate();
|
|
return;
|
|
}
|
|
|
|
|
|
miqt_exec_callback_QWidgetItem_invalidate(this, handle__invalidate);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_invalidate() {
|
|
|
|
QWidgetItem::invalidate();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__layout = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QLayout* layout() override {
|
|
if (handle__layout == 0) {
|
|
return QWidgetItem::layout();
|
|
}
|
|
|
|
|
|
QLayout* callback_return_value = miqt_exec_callback_QWidgetItem_layout(this, handle__layout);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QLayout* virtualbase_layout() {
|
|
|
|
return QWidgetItem::layout();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__spacerItem = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSpacerItem* spacerItem() override {
|
|
if (handle__spacerItem == 0) {
|
|
return QWidgetItem::spacerItem();
|
|
}
|
|
|
|
|
|
QSpacerItem* callback_return_value = miqt_exec_callback_QWidgetItem_spacerItem(this, handle__spacerItem);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSpacerItem* virtualbase_spacerItem() {
|
|
|
|
return QWidgetItem::spacerItem();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QWidgetItem* QWidgetItem_new(QWidget* w) {
|
|
return new MiqtVirtualQWidgetItem(w);
|
|
}
|
|
|
|
void QWidgetItem_virtbase(QWidgetItem* src, QLayoutItem** outptr_QLayoutItem) {
|
|
*outptr_QLayoutItem = static_cast<QLayoutItem*>(src);
|
|
}
|
|
|
|
QSize* QWidgetItem_sizeHint(const QWidgetItem* self) {
|
|
return new QSize(self->sizeHint());
|
|
}
|
|
|
|
QSize* QWidgetItem_minimumSize(const QWidgetItem* self) {
|
|
return new QSize(self->minimumSize());
|
|
}
|
|
|
|
QSize* QWidgetItem_maximumSize(const QWidgetItem* self) {
|
|
return new QSize(self->maximumSize());
|
|
}
|
|
|
|
int QWidgetItem_expandingDirections(const QWidgetItem* self) {
|
|
Qt::Orientations _ret = self->expandingDirections();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
bool QWidgetItem_isEmpty(const QWidgetItem* self) {
|
|
return self->isEmpty();
|
|
}
|
|
|
|
void QWidgetItem_setGeometry(QWidgetItem* self, QRect* geometry) {
|
|
self->setGeometry(*geometry);
|
|
}
|
|
|
|
QRect* QWidgetItem_geometry(const QWidgetItem* self) {
|
|
return new QRect(self->geometry());
|
|
}
|
|
|
|
QWidget* QWidgetItem_widget(const QWidgetItem* self) {
|
|
return self->widget();
|
|
}
|
|
|
|
bool QWidgetItem_hasHeightForWidth(const QWidgetItem* self) {
|
|
return self->hasHeightForWidth();
|
|
}
|
|
|
|
int QWidgetItem_heightForWidth(const QWidgetItem* self, int param1) {
|
|
return self->heightForWidth(static_cast<int>(param1));
|
|
}
|
|
|
|
int QWidgetItem_minimumHeightForWidth(const QWidgetItem* self, int param1) {
|
|
return self->minimumHeightForWidth(static_cast<int>(param1));
|
|
}
|
|
|
|
int QWidgetItem_controlTypes(const QWidgetItem* self) {
|
|
QSizePolicy::ControlTypes _ret = self->controlTypes();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_sizeHint(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sizeHint = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QWidgetItem_virtualbase_sizeHint(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_sizeHint();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_minimumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QWidgetItem_virtualbase_minimumSize(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_minimumSize();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_maximumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__maximumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QWidgetItem_virtualbase_maximumSize(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_maximumSize();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_expandingDirections(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__expandingDirections = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItem_virtualbase_expandingDirections(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_expandingDirections();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_isEmpty(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__isEmpty = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QWidgetItem_virtualbase_isEmpty(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_isEmpty();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_setGeometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setGeometry = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWidgetItem_virtualbase_setGeometry(void* self, QRect* geometry) {
|
|
( (MiqtVirtualQWidgetItem*)(self) )->virtualbase_setGeometry(geometry);
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_geometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__geometry = slot;
|
|
return true;
|
|
}
|
|
|
|
QRect* QWidgetItem_virtualbase_geometry(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_geometry();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_widget(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__widget = slot;
|
|
return true;
|
|
}
|
|
|
|
QWidget* QWidgetItem_virtualbase_widget(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_widget();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_hasHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__hasHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QWidgetItem_virtualbase_hasHeightForWidth(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_hasHeightForWidth();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_heightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__heightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItem_virtualbase_heightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_heightForWidth(param1);
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_minimumHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItem_virtualbase_minimumHeightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_minimumHeightForWidth(param1);
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_controlTypes(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__controlTypes = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItem_virtualbase_controlTypes(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItem*)(self) )->virtualbase_controlTypes();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_invalidate(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__invalidate = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWidgetItem_virtualbase_invalidate(void* self) {
|
|
( (MiqtVirtualQWidgetItem*)(self) )->virtualbase_invalidate();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_layout(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__layout = slot;
|
|
return true;
|
|
}
|
|
|
|
QLayout* QWidgetItem_virtualbase_layout(void* self) {
|
|
return ( (MiqtVirtualQWidgetItem*)(self) )->virtualbase_layout();
|
|
}
|
|
|
|
bool QWidgetItem_override_virtual_spacerItem(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItem* self_cast = dynamic_cast<MiqtVirtualQWidgetItem*>( (QWidgetItem*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__spacerItem = slot;
|
|
return true;
|
|
}
|
|
|
|
QSpacerItem* QWidgetItem_virtualbase_spacerItem(void* self) {
|
|
return ( (MiqtVirtualQWidgetItem*)(self) )->virtualbase_spacerItem();
|
|
}
|
|
|
|
void QWidgetItem_delete(QWidgetItem* self) {
|
|
delete self;
|
|
}
|
|
|
|
class MiqtVirtualQWidgetItemV2 final : public QWidgetItemV2 {
|
|
public:
|
|
|
|
MiqtVirtualQWidgetItemV2(QWidget* widget): QWidgetItemV2(widget) {};
|
|
|
|
virtual ~MiqtVirtualQWidgetItemV2() override = default;
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__sizeHint = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize sizeHint() const override {
|
|
if (handle__sizeHint == 0) {
|
|
return QWidgetItemV2::sizeHint();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QWidgetItemV2_sizeHint(this, handle__sizeHint);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_sizeHint() const {
|
|
|
|
return new QSize(QWidgetItemV2::sizeHint());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize minimumSize() const override {
|
|
if (handle__minimumSize == 0) {
|
|
return QWidgetItemV2::minimumSize();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QWidgetItemV2_minimumSize(this, handle__minimumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_minimumSize() const {
|
|
|
|
return new QSize(QWidgetItemV2::minimumSize());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__maximumSize = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize maximumSize() const override {
|
|
if (handle__maximumSize == 0) {
|
|
return QWidgetItemV2::maximumSize();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QWidgetItemV2_maximumSize(this, handle__maximumSize);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_maximumSize() const {
|
|
|
|
return new QSize(QWidgetItemV2::maximumSize());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__heightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int heightForWidth(int width) const override {
|
|
if (handle__heightForWidth == 0) {
|
|
return QWidgetItemV2::heightForWidth(width);
|
|
}
|
|
|
|
int sigval1 = width;
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItemV2_heightForWidth(this, handle__heightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_heightForWidth(int width) const {
|
|
|
|
return QWidgetItemV2::heightForWidth(static_cast<int>(width));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__expandingDirections = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual Qt::Orientations expandingDirections() const override {
|
|
if (handle__expandingDirections == 0) {
|
|
return QWidgetItemV2::expandingDirections();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItemV2_expandingDirections(this, handle__expandingDirections);
|
|
|
|
return static_cast<Qt::Orientations>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_expandingDirections() const {
|
|
|
|
Qt::Orientations _ret = QWidgetItemV2::expandingDirections();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__isEmpty = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool isEmpty() const override {
|
|
if (handle__isEmpty == 0) {
|
|
return QWidgetItemV2::isEmpty();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWidgetItemV2_isEmpty(this, handle__isEmpty);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_isEmpty() const {
|
|
|
|
return QWidgetItemV2::isEmpty();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setGeometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void setGeometry(const QRect& geometry) override {
|
|
if (handle__setGeometry == 0) {
|
|
QWidgetItemV2::setGeometry(geometry);
|
|
return;
|
|
}
|
|
|
|
const QRect& geometry_ret = geometry;
|
|
// Cast returned reference into pointer
|
|
QRect* sigval1 = const_cast<QRect*>(&geometry_ret);
|
|
|
|
miqt_exec_callback_QWidgetItemV2_setGeometry(this, handle__setGeometry, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_setGeometry(QRect* geometry) {
|
|
|
|
QWidgetItemV2::setGeometry(*geometry);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__geometry = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QRect geometry() const override {
|
|
if (handle__geometry == 0) {
|
|
return QWidgetItemV2::geometry();
|
|
}
|
|
|
|
|
|
QRect* callback_return_value = miqt_exec_callback_QWidgetItemV2_geometry(this, handle__geometry);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QRect* virtualbase_geometry() const {
|
|
|
|
return new QRect(QWidgetItemV2::geometry());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__widget = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QWidget* widget() const override {
|
|
if (handle__widget == 0) {
|
|
return QWidgetItemV2::widget();
|
|
}
|
|
|
|
|
|
QWidget* callback_return_value = miqt_exec_callback_QWidgetItemV2_widget(this, handle__widget);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QWidget* virtualbase_widget() const {
|
|
|
|
return QWidgetItemV2::widget();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__hasHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool hasHeightForWidth() const override {
|
|
if (handle__hasHeightForWidth == 0) {
|
|
return QWidgetItemV2::hasHeightForWidth();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWidgetItemV2_hasHeightForWidth(this, handle__hasHeightForWidth);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_hasHeightForWidth() const {
|
|
|
|
return QWidgetItemV2::hasHeightForWidth();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__minimumHeightForWidth = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual int minimumHeightForWidth(int param1) const override {
|
|
if (handle__minimumHeightForWidth == 0) {
|
|
return QWidgetItemV2::minimumHeightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItemV2_minimumHeightForWidth(this, handle__minimumHeightForWidth, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_minimumHeightForWidth(int param1) const {
|
|
|
|
return QWidgetItemV2::minimumHeightForWidth(static_cast<int>(param1));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__controlTypes = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSizePolicy::ControlTypes controlTypes() const override {
|
|
if (handle__controlTypes == 0) {
|
|
return QWidgetItemV2::controlTypes();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QWidgetItemV2_controlTypes(this, handle__controlTypes);
|
|
|
|
return static_cast<QSizePolicy::ControlTypes>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_controlTypes() const {
|
|
|
|
QSizePolicy::ControlTypes _ret = QWidgetItemV2::controlTypes();
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
// 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) {
|
|
QWidgetItemV2::invalidate();
|
|
return;
|
|
}
|
|
|
|
|
|
miqt_exec_callback_QWidgetItemV2_invalidate(this, handle__invalidate);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_invalidate() {
|
|
|
|
QWidgetItemV2::invalidate();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__layout = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QLayout* layout() override {
|
|
if (handle__layout == 0) {
|
|
return QWidgetItemV2::layout();
|
|
}
|
|
|
|
|
|
QLayout* callback_return_value = miqt_exec_callback_QWidgetItemV2_layout(this, handle__layout);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QLayout* virtualbase_layout() {
|
|
|
|
return QWidgetItemV2::layout();
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__spacerItem = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSpacerItem* spacerItem() override {
|
|
if (handle__spacerItem == 0) {
|
|
return QWidgetItemV2::spacerItem();
|
|
}
|
|
|
|
|
|
QSpacerItem* callback_return_value = miqt_exec_callback_QWidgetItemV2_spacerItem(this, handle__spacerItem);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSpacerItem* virtualbase_spacerItem() {
|
|
|
|
return QWidgetItemV2::spacerItem();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QWidgetItemV2* QWidgetItemV2_new(QWidget* widget) {
|
|
return new MiqtVirtualQWidgetItemV2(widget);
|
|
}
|
|
|
|
void QWidgetItemV2_virtbase(QWidgetItemV2* src, QWidgetItem** outptr_QWidgetItem) {
|
|
*outptr_QWidgetItem = static_cast<QWidgetItem*>(src);
|
|
}
|
|
|
|
QSize* QWidgetItemV2_sizeHint(const QWidgetItemV2* self) {
|
|
return new QSize(self->sizeHint());
|
|
}
|
|
|
|
QSize* QWidgetItemV2_minimumSize(const QWidgetItemV2* self) {
|
|
return new QSize(self->minimumSize());
|
|
}
|
|
|
|
QSize* QWidgetItemV2_maximumSize(const QWidgetItemV2* self) {
|
|
return new QSize(self->maximumSize());
|
|
}
|
|
|
|
int QWidgetItemV2_heightForWidth(const QWidgetItemV2* self, int width) {
|
|
return self->heightForWidth(static_cast<int>(width));
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_sizeHint(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sizeHint = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QWidgetItemV2_virtualbase_sizeHint(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_sizeHint();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_minimumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QWidgetItemV2_virtualbase_minimumSize(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_minimumSize();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_maximumSize(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__maximumSize = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QWidgetItemV2_virtualbase_maximumSize(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_maximumSize();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_heightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__heightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItemV2_virtualbase_heightForWidth(const void* self, int width) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_heightForWidth(width);
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_expandingDirections(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__expandingDirections = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItemV2_virtualbase_expandingDirections(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_expandingDirections();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_isEmpty(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__isEmpty = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QWidgetItemV2_virtualbase_isEmpty(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_isEmpty();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_setGeometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setGeometry = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWidgetItemV2_virtualbase_setGeometry(void* self, QRect* geometry) {
|
|
( (MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_setGeometry(geometry);
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_geometry(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__geometry = slot;
|
|
return true;
|
|
}
|
|
|
|
QRect* QWidgetItemV2_virtualbase_geometry(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_geometry();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_widget(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__widget = slot;
|
|
return true;
|
|
}
|
|
|
|
QWidget* QWidgetItemV2_virtualbase_widget(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_widget();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_hasHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__hasHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QWidgetItemV2_virtualbase_hasHeightForWidth(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_hasHeightForWidth();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_minimumHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItemV2_virtualbase_minimumHeightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_minimumHeightForWidth(param1);
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_controlTypes(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__controlTypes = slot;
|
|
return true;
|
|
}
|
|
|
|
int QWidgetItemV2_virtualbase_controlTypes(const void* self) {
|
|
return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_controlTypes();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_invalidate(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__invalidate = slot;
|
|
return true;
|
|
}
|
|
|
|
void QWidgetItemV2_virtualbase_invalidate(void* self) {
|
|
( (MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_invalidate();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_layout(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__layout = slot;
|
|
return true;
|
|
}
|
|
|
|
QLayout* QWidgetItemV2_virtualbase_layout(void* self) {
|
|
return ( (MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_layout();
|
|
}
|
|
|
|
bool QWidgetItemV2_override_virtual_spacerItem(void* self, intptr_t slot) {
|
|
MiqtVirtualQWidgetItemV2* self_cast = dynamic_cast<MiqtVirtualQWidgetItemV2*>( (QWidgetItemV2*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__spacerItem = slot;
|
|
return true;
|
|
}
|
|
|
|
QSpacerItem* QWidgetItemV2_virtualbase_spacerItem(void* self) {
|
|
return ( (MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_spacerItem();
|
|
}
|
|
|
|
void QWidgetItemV2_delete(QWidgetItemV2* self) {
|
|
delete self;
|
|
}
|
|
|