miqt/qt/gen_qmainwindow.cpp

1791 lines
53 KiB
C++
Raw Permalink Normal View History

2024-11-19 06:29:06 +00:00
#include <QActionEvent>
#include <QByteArray>
2024-11-19 06:29:06 +00:00
#include <QCloseEvent>
#include <QContextMenuEvent>
#include <QDockWidget>
2024-11-19 06:29:06 +00:00
#include <QDragEnterEvent>
#include <QDragLeaveEvent>
#include <QDragMoveEvent>
#include <QDropEvent>
#include <QEvent>
#include <QFocusEvent>
#include <QHideEvent>
#include <QInputMethodEvent>
#include <QKeyEvent>
#include <QList>
#include <QMainWindow>
#include <QMenu>
#include <QMenuBar>
#include <QMetaObject>
2024-11-19 06:29:06 +00:00
#include <QMouseEvent>
#include <QMoveEvent>
#include <QObject>
#include <QPaintDevice>
#include <QPaintEngine>
#include <QPaintEvent>
#include <QPainter>
#include <QPoint>
2024-11-19 06:29:06 +00:00
#include <QResizeEvent>
#include <QShowEvent>
#include <QSize>
#include <QStatusBar>
#include <QString>
2024-08-29 07:01:51 +00:00
#include <QByteArray>
#include <cstring>
2024-11-19 06:29:06 +00:00
#include <QTabletEvent>
#include <QToolBar>
2024-11-19 06:29:06 +00:00
#include <QVariant>
#include <QWheelEvent>
#include <QWidget>
#include <qmainwindow.h>
2024-08-29 07:01:51 +00:00
#include "gen_qmainwindow.h"
#include "_cgo_export.h"
2024-11-19 06:29:06 +00:00
class MiqtVirtualQMainWindow : public virtual QMainWindow {
public:
MiqtVirtualQMainWindow(QWidget* parent): QMainWindow(parent) {};
MiqtVirtualQMainWindow(): QMainWindow() {};
MiqtVirtualQMainWindow(QWidget* parent, Qt::WindowFlags flags): QMainWindow(parent, flags) {};
virtual ~MiqtVirtualQMainWindow() = default;
// cgo.Handle value for overwritten implementation
intptr_t handle__CreatePopupMenu = 0;
// Subclass to allow providing a Go implementation
virtual QMenu* createPopupMenu() override {
if (handle__CreatePopupMenu == 0) {
return QMainWindow::createPopupMenu();
}
QMenu* callback_return_value = miqt_exec_callback_QMainWindow_CreatePopupMenu(this, handle__CreatePopupMenu);
return callback_return_value;
}
// Wrapper to allow calling protected method
QMenu* virtualbase_CreatePopupMenu() {
return QMainWindow::createPopupMenu();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ContextMenuEvent = 0;
// Subclass to allow providing a Go implementation
virtual void contextMenuEvent(QContextMenuEvent* event) override {
if (handle__ContextMenuEvent == 0) {
QMainWindow::contextMenuEvent(event);
return;
}
QContextMenuEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ContextMenuEvent(QContextMenuEvent* event) {
QMainWindow::contextMenuEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Event = 0;
// Subclass to allow providing a Go implementation
virtual bool event(QEvent* event) override {
if (handle__Event == 0) {
return QMainWindow::event(event);
}
QEvent* sigval1 = event;
bool callback_return_value = miqt_exec_callback_QMainWindow_Event(this, handle__Event, sigval1);
return callback_return_value;
}
// Wrapper to allow calling protected method
bool virtualbase_Event(QEvent* event) {
return QMainWindow::event(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__DevType = 0;
// Subclass to allow providing a Go implementation
virtual int devType() const override {
if (handle__DevType == 0) {
return QMainWindow::devType();
}
int callback_return_value = miqt_exec_callback_QMainWindow_DevType(const_cast<MiqtVirtualQMainWindow*>(this), handle__DevType);
return static_cast<int>(callback_return_value);
}
// Wrapper to allow calling protected method
int virtualbase_DevType() const {
return QMainWindow::devType();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__SetVisible = 0;
// Subclass to allow providing a Go implementation
virtual void setVisible(bool visible) override {
if (handle__SetVisible == 0) {
QMainWindow::setVisible(visible);
return;
}
bool sigval1 = visible;
miqt_exec_callback_QMainWindow_SetVisible(this, handle__SetVisible, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_SetVisible(bool visible) {
QMainWindow::setVisible(visible);
}
// 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 QMainWindow::sizeHint();
}
QSize* callback_return_value = miqt_exec_callback_QMainWindow_SizeHint(const_cast<MiqtVirtualQMainWindow*>(this), handle__SizeHint);
return *callback_return_value;
}
// Wrapper to allow calling protected method
QSize* virtualbase_SizeHint() const {
return new QSize(QMainWindow::sizeHint());
}
// cgo.Handle value for overwritten implementation
intptr_t handle__MinimumSizeHint = 0;
// Subclass to allow providing a Go implementation
virtual QSize minimumSizeHint() const override {
if (handle__MinimumSizeHint == 0) {
return QMainWindow::minimumSizeHint();
}
QSize* callback_return_value = miqt_exec_callback_QMainWindow_MinimumSizeHint(const_cast<MiqtVirtualQMainWindow*>(this), handle__MinimumSizeHint);
return *callback_return_value;
}
// Wrapper to allow calling protected method
QSize* virtualbase_MinimumSizeHint() const {
return new QSize(QMainWindow::minimumSizeHint());
}
// 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 QMainWindow::heightForWidth(param1);
}
int sigval1 = param1;
int callback_return_value = miqt_exec_callback_QMainWindow_HeightForWidth(const_cast<MiqtVirtualQMainWindow*>(this), handle__HeightForWidth, sigval1);
return static_cast<int>(callback_return_value);
}
// Wrapper to allow calling protected method
int virtualbase_HeightForWidth(int param1) const {
return QMainWindow::heightForWidth(static_cast<int>(param1));
}
// 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 QMainWindow::hasHeightForWidth();
}
bool callback_return_value = miqt_exec_callback_QMainWindow_HasHeightForWidth(const_cast<MiqtVirtualQMainWindow*>(this), handle__HasHeightForWidth);
return callback_return_value;
}
// Wrapper to allow calling protected method
bool virtualbase_HasHeightForWidth() const {
return QMainWindow::hasHeightForWidth();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__PaintEngine = 0;
// Subclass to allow providing a Go implementation
virtual QPaintEngine* paintEngine() const override {
if (handle__PaintEngine == 0) {
return QMainWindow::paintEngine();
}
QPaintEngine* callback_return_value = miqt_exec_callback_QMainWindow_PaintEngine(const_cast<MiqtVirtualQMainWindow*>(this), handle__PaintEngine);
return callback_return_value;
}
// Wrapper to allow calling protected method
QPaintEngine* virtualbase_PaintEngine() const {
return QMainWindow::paintEngine();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__MousePressEvent = 0;
// Subclass to allow providing a Go implementation
virtual void mousePressEvent(QMouseEvent* event) override {
if (handle__MousePressEvent == 0) {
QMainWindow::mousePressEvent(event);
return;
}
QMouseEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_MousePressEvent(this, handle__MousePressEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_MousePressEvent(QMouseEvent* event) {
QMainWindow::mousePressEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__MouseReleaseEvent = 0;
// Subclass to allow providing a Go implementation
virtual void mouseReleaseEvent(QMouseEvent* event) override {
if (handle__MouseReleaseEvent == 0) {
QMainWindow::mouseReleaseEvent(event);
return;
}
QMouseEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_MouseReleaseEvent(QMouseEvent* event) {
QMainWindow::mouseReleaseEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__MouseDoubleClickEvent = 0;
// Subclass to allow providing a Go implementation
virtual void mouseDoubleClickEvent(QMouseEvent* event) override {
if (handle__MouseDoubleClickEvent == 0) {
QMainWindow::mouseDoubleClickEvent(event);
return;
}
QMouseEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_MouseDoubleClickEvent(QMouseEvent* event) {
QMainWindow::mouseDoubleClickEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__MouseMoveEvent = 0;
// Subclass to allow providing a Go implementation
virtual void mouseMoveEvent(QMouseEvent* event) override {
if (handle__MouseMoveEvent == 0) {
QMainWindow::mouseMoveEvent(event);
return;
}
QMouseEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_MouseMoveEvent(QMouseEvent* event) {
QMainWindow::mouseMoveEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__WheelEvent = 0;
// Subclass to allow providing a Go implementation
virtual void wheelEvent(QWheelEvent* event) override {
if (handle__WheelEvent == 0) {
QMainWindow::wheelEvent(event);
return;
}
QWheelEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_WheelEvent(this, handle__WheelEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_WheelEvent(QWheelEvent* event) {
QMainWindow::wheelEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__KeyPressEvent = 0;
// Subclass to allow providing a Go implementation
virtual void keyPressEvent(QKeyEvent* event) override {
if (handle__KeyPressEvent == 0) {
QMainWindow::keyPressEvent(event);
return;
}
QKeyEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_KeyPressEvent(this, handle__KeyPressEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_KeyPressEvent(QKeyEvent* event) {
QMainWindow::keyPressEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__KeyReleaseEvent = 0;
// Subclass to allow providing a Go implementation
virtual void keyReleaseEvent(QKeyEvent* event) override {
if (handle__KeyReleaseEvent == 0) {
QMainWindow::keyReleaseEvent(event);
return;
}
QKeyEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_KeyReleaseEvent(QKeyEvent* event) {
QMainWindow::keyReleaseEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__FocusInEvent = 0;
// Subclass to allow providing a Go implementation
virtual void focusInEvent(QFocusEvent* event) override {
if (handle__FocusInEvent == 0) {
QMainWindow::focusInEvent(event);
return;
}
QFocusEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_FocusInEvent(this, handle__FocusInEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_FocusInEvent(QFocusEvent* event) {
QMainWindow::focusInEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__FocusOutEvent = 0;
// Subclass to allow providing a Go implementation
virtual void focusOutEvent(QFocusEvent* event) override {
if (handle__FocusOutEvent == 0) {
QMainWindow::focusOutEvent(event);
return;
}
QFocusEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_FocusOutEvent(this, handle__FocusOutEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_FocusOutEvent(QFocusEvent* event) {
QMainWindow::focusOutEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__EnterEvent = 0;
// Subclass to allow providing a Go implementation
virtual void enterEvent(QEvent* event) override {
if (handle__EnterEvent == 0) {
QMainWindow::enterEvent(event);
return;
}
QEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_EnterEvent(this, handle__EnterEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_EnterEvent(QEvent* event) {
QMainWindow::enterEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__LeaveEvent = 0;
// Subclass to allow providing a Go implementation
virtual void leaveEvent(QEvent* event) override {
if (handle__LeaveEvent == 0) {
QMainWindow::leaveEvent(event);
return;
}
QEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_LeaveEvent(this, handle__LeaveEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_LeaveEvent(QEvent* event) {
QMainWindow::leaveEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__PaintEvent = 0;
// Subclass to allow providing a Go implementation
virtual void paintEvent(QPaintEvent* event) override {
if (handle__PaintEvent == 0) {
QMainWindow::paintEvent(event);
return;
}
QPaintEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_PaintEvent(this, handle__PaintEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_PaintEvent(QPaintEvent* event) {
QMainWindow::paintEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__MoveEvent = 0;
// Subclass to allow providing a Go implementation
virtual void moveEvent(QMoveEvent* event) override {
if (handle__MoveEvent == 0) {
QMainWindow::moveEvent(event);
return;
}
QMoveEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_MoveEvent(this, handle__MoveEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_MoveEvent(QMoveEvent* event) {
QMainWindow::moveEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ResizeEvent = 0;
// Subclass to allow providing a Go implementation
virtual void resizeEvent(QResizeEvent* event) override {
if (handle__ResizeEvent == 0) {
QMainWindow::resizeEvent(event);
return;
}
QResizeEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_ResizeEvent(this, handle__ResizeEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ResizeEvent(QResizeEvent* event) {
QMainWindow::resizeEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__CloseEvent = 0;
// Subclass to allow providing a Go implementation
virtual void closeEvent(QCloseEvent* event) override {
if (handle__CloseEvent == 0) {
QMainWindow::closeEvent(event);
return;
}
QCloseEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_CloseEvent(this, handle__CloseEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_CloseEvent(QCloseEvent* event) {
QMainWindow::closeEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__TabletEvent = 0;
// Subclass to allow providing a Go implementation
virtual void tabletEvent(QTabletEvent* event) override {
if (handle__TabletEvent == 0) {
QMainWindow::tabletEvent(event);
return;
}
QTabletEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_TabletEvent(this, handle__TabletEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_TabletEvent(QTabletEvent* event) {
QMainWindow::tabletEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ActionEvent = 0;
// Subclass to allow providing a Go implementation
virtual void actionEvent(QActionEvent* event) override {
if (handle__ActionEvent == 0) {
QMainWindow::actionEvent(event);
return;
}
QActionEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_ActionEvent(this, handle__ActionEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ActionEvent(QActionEvent* event) {
QMainWindow::actionEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__DragEnterEvent = 0;
// Subclass to allow providing a Go implementation
virtual void dragEnterEvent(QDragEnterEvent* event) override {
if (handle__DragEnterEvent == 0) {
QMainWindow::dragEnterEvent(event);
return;
}
QDragEnterEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_DragEnterEvent(this, handle__DragEnterEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_DragEnterEvent(QDragEnterEvent* event) {
QMainWindow::dragEnterEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__DragMoveEvent = 0;
// Subclass to allow providing a Go implementation
virtual void dragMoveEvent(QDragMoveEvent* event) override {
if (handle__DragMoveEvent == 0) {
QMainWindow::dragMoveEvent(event);
return;
}
QDragMoveEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_DragMoveEvent(this, handle__DragMoveEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_DragMoveEvent(QDragMoveEvent* event) {
QMainWindow::dragMoveEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__DragLeaveEvent = 0;
// Subclass to allow providing a Go implementation
virtual void dragLeaveEvent(QDragLeaveEvent* event) override {
if (handle__DragLeaveEvent == 0) {
QMainWindow::dragLeaveEvent(event);
return;
}
QDragLeaveEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_DragLeaveEvent(this, handle__DragLeaveEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_DragLeaveEvent(QDragLeaveEvent* event) {
QMainWindow::dragLeaveEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__DropEvent = 0;
// Subclass to allow providing a Go implementation
virtual void dropEvent(QDropEvent* event) override {
if (handle__DropEvent == 0) {
QMainWindow::dropEvent(event);
return;
}
QDropEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_DropEvent(this, handle__DropEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_DropEvent(QDropEvent* event) {
QMainWindow::dropEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ShowEvent = 0;
// Subclass to allow providing a Go implementation
virtual void showEvent(QShowEvent* event) override {
if (handle__ShowEvent == 0) {
QMainWindow::showEvent(event);
return;
}
QShowEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_ShowEvent(this, handle__ShowEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ShowEvent(QShowEvent* event) {
QMainWindow::showEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__HideEvent = 0;
// Subclass to allow providing a Go implementation
virtual void hideEvent(QHideEvent* event) override {
if (handle__HideEvent == 0) {
QMainWindow::hideEvent(event);
return;
}
QHideEvent* sigval1 = event;
miqt_exec_callback_QMainWindow_HideEvent(this, handle__HideEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_HideEvent(QHideEvent* event) {
QMainWindow::hideEvent(event);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__NativeEvent = 0;
// Subclass to allow providing a Go implementation
virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result) override {
if (handle__NativeEvent == 0) {
return QMainWindow::nativeEvent(eventType, message, result);
}
const QByteArray eventType_qb = eventType;
struct miqt_string eventType_ms;
eventType_ms.len = eventType_qb.length();
eventType_ms.data = static_cast<char*>(malloc(eventType_ms.len));
memcpy(eventType_ms.data, eventType_qb.data(), eventType_ms.len);
struct miqt_string sigval1 = eventType_ms;
void* sigval2 = message;
long* sigval3 = result;
bool callback_return_value = miqt_exec_callback_QMainWindow_NativeEvent(this, handle__NativeEvent, sigval1, sigval2, sigval3);
return callback_return_value;
}
// Wrapper to allow calling protected method
bool virtualbase_NativeEvent(struct miqt_string eventType, void* message, long* result) {
QByteArray eventType_QByteArray(eventType.data, eventType.len);
return QMainWindow::nativeEvent(eventType_QByteArray, message, static_cast<long*>(result));
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ChangeEvent = 0;
// Subclass to allow providing a Go implementation
virtual void changeEvent(QEvent* param1) override {
if (handle__ChangeEvent == 0) {
QMainWindow::changeEvent(param1);
return;
}
QEvent* sigval1 = param1;
miqt_exec_callback_QMainWindow_ChangeEvent(this, handle__ChangeEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ChangeEvent(QEvent* param1) {
QMainWindow::changeEvent(param1);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Metric = 0;
// Subclass to allow providing a Go implementation
virtual int metric(QPaintDevice::PaintDeviceMetric param1) const override {
if (handle__Metric == 0) {
return QMainWindow::metric(param1);
}
QPaintDevice::PaintDeviceMetric param1_ret = param1;
int sigval1 = static_cast<int>(param1_ret);
int callback_return_value = miqt_exec_callback_QMainWindow_Metric(const_cast<MiqtVirtualQMainWindow*>(this), handle__Metric, sigval1);
return static_cast<int>(callback_return_value);
}
// Wrapper to allow calling protected method
int virtualbase_Metric(int param1) const {
return QMainWindow::metric(static_cast<QPaintDevice::PaintDeviceMetric>(param1));
}
// cgo.Handle value for overwritten implementation
intptr_t handle__InitPainter = 0;
// Subclass to allow providing a Go implementation
virtual void initPainter(QPainter* painter) const override {
if (handle__InitPainter == 0) {
QMainWindow::initPainter(painter);
return;
}
QPainter* sigval1 = painter;
miqt_exec_callback_QMainWindow_InitPainter(const_cast<MiqtVirtualQMainWindow*>(this), handle__InitPainter, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_InitPainter(QPainter* painter) const {
QMainWindow::initPainter(painter);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Redirected = 0;
// Subclass to allow providing a Go implementation
virtual QPaintDevice* redirected(QPoint* offset) const override {
if (handle__Redirected == 0) {
return QMainWindow::redirected(offset);
}
QPoint* sigval1 = offset;
QPaintDevice* callback_return_value = miqt_exec_callback_QMainWindow_Redirected(const_cast<MiqtVirtualQMainWindow*>(this), handle__Redirected, sigval1);
return callback_return_value;
}
// Wrapper to allow calling protected method
QPaintDevice* virtualbase_Redirected(QPoint* offset) const {
return QMainWindow::redirected(offset);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__SharedPainter = 0;
// Subclass to allow providing a Go implementation
virtual QPainter* sharedPainter() const override {
if (handle__SharedPainter == 0) {
return QMainWindow::sharedPainter();
}
QPainter* callback_return_value = miqt_exec_callback_QMainWindow_SharedPainter(const_cast<MiqtVirtualQMainWindow*>(this), handle__SharedPainter);
return callback_return_value;
}
// Wrapper to allow calling protected method
QPainter* virtualbase_SharedPainter() const {
return QMainWindow::sharedPainter();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__InputMethodEvent = 0;
// Subclass to allow providing a Go implementation
virtual void inputMethodEvent(QInputMethodEvent* param1) override {
if (handle__InputMethodEvent == 0) {
QMainWindow::inputMethodEvent(param1);
return;
}
QInputMethodEvent* sigval1 = param1;
miqt_exec_callback_QMainWindow_InputMethodEvent(this, handle__InputMethodEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_InputMethodEvent(QInputMethodEvent* param1) {
QMainWindow::inputMethodEvent(param1);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__InputMethodQuery = 0;
// Subclass to allow providing a Go implementation
virtual QVariant inputMethodQuery(Qt::InputMethodQuery param1) const override {
if (handle__InputMethodQuery == 0) {
return QMainWindow::inputMethodQuery(param1);
}
Qt::InputMethodQuery param1_ret = param1;
int sigval1 = static_cast<int>(param1_ret);
QVariant* callback_return_value = miqt_exec_callback_QMainWindow_InputMethodQuery(const_cast<MiqtVirtualQMainWindow*>(this), handle__InputMethodQuery, sigval1);
return *callback_return_value;
}
// Wrapper to allow calling protected method
QVariant* virtualbase_InputMethodQuery(int param1) const {
return new QVariant(QMainWindow::inputMethodQuery(static_cast<Qt::InputMethodQuery>(param1)));
}
// cgo.Handle value for overwritten implementation
intptr_t handle__FocusNextPrevChild = 0;
// Subclass to allow providing a Go implementation
virtual bool focusNextPrevChild(bool next) override {
if (handle__FocusNextPrevChild == 0) {
return QMainWindow::focusNextPrevChild(next);
}
bool sigval1 = next;
bool callback_return_value = miqt_exec_callback_QMainWindow_FocusNextPrevChild(this, handle__FocusNextPrevChild, sigval1);
return callback_return_value;
}
// Wrapper to allow calling protected method
bool virtualbase_FocusNextPrevChild(bool next) {
return QMainWindow::focusNextPrevChild(next);
}
};
void QMainWindow_new(QWidget* parent, QMainWindow** outptr_QMainWindow, QWidget** outptr_QWidget, QObject** outptr_QObject, QPaintDevice** outptr_QPaintDevice) {
MiqtVirtualQMainWindow* ret = new MiqtVirtualQMainWindow(parent);
*outptr_QMainWindow = ret;
*outptr_QWidget = static_cast<QWidget*>(ret);
*outptr_QObject = static_cast<QObject*>(ret);
*outptr_QPaintDevice = static_cast<QPaintDevice*>(ret);
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QMainWindow_new2(QMainWindow** outptr_QMainWindow, QWidget** outptr_QWidget, QObject** outptr_QObject, QPaintDevice** outptr_QPaintDevice) {
MiqtVirtualQMainWindow* ret = new MiqtVirtualQMainWindow();
*outptr_QMainWindow = ret;
*outptr_QWidget = static_cast<QWidget*>(ret);
*outptr_QObject = static_cast<QObject*>(ret);
*outptr_QPaintDevice = static_cast<QPaintDevice*>(ret);
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QMainWindow_new3(QWidget* parent, int flags, QMainWindow** outptr_QMainWindow, QWidget** outptr_QWidget, QObject** outptr_QObject, QPaintDevice** outptr_QPaintDevice) {
MiqtVirtualQMainWindow* ret = new MiqtVirtualQMainWindow(parent, static_cast<Qt::WindowFlags>(flags));
*outptr_QMainWindow = ret;
*outptr_QWidget = static_cast<QWidget*>(ret);
*outptr_QObject = static_cast<QObject*>(ret);
*outptr_QPaintDevice = static_cast<QPaintDevice*>(ret);
2024-08-29 07:01:51 +00:00
}
QMetaObject* QMainWindow_MetaObject(const QMainWindow* self) {
return (QMetaObject*) self->metaObject();
}
void* QMainWindow_Metacast(QMainWindow* self, const char* param1) {
return self->qt_metacast(param1);
}
struct miqt_string QMainWindow_Tr(const char* s) {
QString _ret = QMainWindow::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QMainWindow_TrUtf8(const char* s) {
QString _ret = QMainWindow::trUtf8(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
QSize* QMainWindow_IconSize(const QMainWindow* self) {
return new QSize(self->iconSize());
}
void QMainWindow_SetIconSize(QMainWindow* self, QSize* iconSize) {
self->setIconSize(*iconSize);
}
int QMainWindow_ToolButtonStyle(const QMainWindow* self) {
Qt::ToolButtonStyle _ret = self->toolButtonStyle();
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
void QMainWindow_SetToolButtonStyle(QMainWindow* self, int toolButtonStyle) {
2024-08-29 07:01:51 +00:00
self->setToolButtonStyle(static_cast<Qt::ToolButtonStyle>(toolButtonStyle));
}
bool QMainWindow_IsAnimated(const QMainWindow* self) {
return self->isAnimated();
}
bool QMainWindow_IsDockNestingEnabled(const QMainWindow* self) {
return self->isDockNestingEnabled();
}
bool QMainWindow_DocumentMode(const QMainWindow* self) {
return self->documentMode();
}
void QMainWindow_SetDocumentMode(QMainWindow* self, bool enabled) {
self->setDocumentMode(enabled);
}
int QMainWindow_TabShape(const QMainWindow* self) {
QTabWidget::TabShape _ret = self->tabShape();
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
void QMainWindow_SetTabShape(QMainWindow* self, int tabShape) {
2024-08-29 07:01:51 +00:00
self->setTabShape(static_cast<QTabWidget::TabShape>(tabShape));
}
int QMainWindow_TabPosition(const QMainWindow* self, int area) {
QTabWidget::TabPosition _ret = self->tabPosition(static_cast<Qt::DockWidgetArea>(area));
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
void QMainWindow_SetTabPosition(QMainWindow* self, int areas, int tabPosition) {
2024-08-29 07:01:51 +00:00
self->setTabPosition(static_cast<Qt::DockWidgetAreas>(areas), static_cast<QTabWidget::TabPosition>(tabPosition));
}
void QMainWindow_SetDockOptions(QMainWindow* self, int options) {
self->setDockOptions(static_cast<QMainWindow::DockOptions>(options));
}
int QMainWindow_DockOptions(const QMainWindow* self) {
QMainWindow::DockOptions _ret = self->dockOptions();
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
bool QMainWindow_IsSeparator(const QMainWindow* self, QPoint* pos) {
return self->isSeparator(*pos);
}
QMenuBar* QMainWindow_MenuBar(const QMainWindow* self) {
return self->menuBar();
}
void QMainWindow_SetMenuBar(QMainWindow* self, QMenuBar* menubar) {
self->setMenuBar(menubar);
}
QWidget* QMainWindow_MenuWidget(const QMainWindow* self) {
return self->menuWidget();
}
void QMainWindow_SetMenuWidget(QMainWindow* self, QWidget* menubar) {
self->setMenuWidget(menubar);
}
QStatusBar* QMainWindow_StatusBar(const QMainWindow* self) {
return self->statusBar();
}
void QMainWindow_SetStatusBar(QMainWindow* self, QStatusBar* statusbar) {
self->setStatusBar(statusbar);
}
QWidget* QMainWindow_CentralWidget(const QMainWindow* self) {
return self->centralWidget();
}
void QMainWindow_SetCentralWidget(QMainWindow* self, QWidget* widget) {
self->setCentralWidget(widget);
}
QWidget* QMainWindow_TakeCentralWidget(QMainWindow* self) {
return self->takeCentralWidget();
}
void QMainWindow_SetCorner(QMainWindow* self, int corner, int area) {
2024-08-29 07:01:51 +00:00
self->setCorner(static_cast<Qt::Corner>(corner), static_cast<Qt::DockWidgetArea>(area));
}
int QMainWindow_Corner(const QMainWindow* self, int corner) {
Qt::DockWidgetArea _ret = self->corner(static_cast<Qt::Corner>(corner));
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
void QMainWindow_AddToolBarBreak(QMainWindow* self) {
self->addToolBarBreak();
}
void QMainWindow_InsertToolBarBreak(QMainWindow* self, QToolBar* before) {
self->insertToolBarBreak(before);
}
void QMainWindow_AddToolBar(QMainWindow* self, int area, QToolBar* toolbar) {
2024-08-29 07:01:51 +00:00
self->addToolBar(static_cast<Qt::ToolBarArea>(area), toolbar);
}
void QMainWindow_AddToolBarWithToolbar(QMainWindow* self, QToolBar* toolbar) {
self->addToolBar(toolbar);
}
QToolBar* QMainWindow_AddToolBarWithTitle(QMainWindow* self, struct miqt_string title) {
QString title_QString = QString::fromUtf8(title.data, title.len);
return self->addToolBar(title_QString);
}
void QMainWindow_InsertToolBar(QMainWindow* self, QToolBar* before, QToolBar* toolbar) {
self->insertToolBar(before, toolbar);
}
void QMainWindow_RemoveToolBar(QMainWindow* self, QToolBar* toolbar) {
self->removeToolBar(toolbar);
}
void QMainWindow_RemoveToolBarBreak(QMainWindow* self, QToolBar* before) {
self->removeToolBarBreak(before);
}
bool QMainWindow_UnifiedTitleAndToolBarOnMac(const QMainWindow* self) {
return self->unifiedTitleAndToolBarOnMac();
2024-08-29 07:01:51 +00:00
}
int QMainWindow_ToolBarArea(const QMainWindow* self, QToolBar* toolbar) {
Qt::ToolBarArea _ret = self->toolBarArea(toolbar);
return static_cast<int>(_ret);
}
bool QMainWindow_ToolBarBreak(const QMainWindow* self, QToolBar* toolbar) {
return self->toolBarBreak(toolbar);
2024-08-29 07:01:51 +00:00
}
void QMainWindow_AddDockWidget(QMainWindow* self, int area, QDockWidget* dockwidget) {
2024-08-29 07:01:51 +00:00
self->addDockWidget(static_cast<Qt::DockWidgetArea>(area), dockwidget);
}
void QMainWindow_AddDockWidget2(QMainWindow* self, int area, QDockWidget* dockwidget, int orientation) {
2024-08-29 07:01:51 +00:00
self->addDockWidget(static_cast<Qt::DockWidgetArea>(area), dockwidget, static_cast<Qt::Orientation>(orientation));
}
void QMainWindow_SplitDockWidget(QMainWindow* self, QDockWidget* after, QDockWidget* dockwidget, int orientation) {
2024-08-29 07:01:51 +00:00
self->splitDockWidget(after, dockwidget, static_cast<Qt::Orientation>(orientation));
}
void QMainWindow_TabifyDockWidget(QMainWindow* self, QDockWidget* first, QDockWidget* second) {
self->tabifyDockWidget(first, second);
}
struct miqt_array /* of QDockWidget* */ QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget) {
QList<QDockWidget *> _ret = self->tabifiedDockWidgets(dockwidget);
// Convert QList<> from C++ memory to manually-managed C memory
QDockWidget** _arr = static_cast<QDockWidget**>(malloc(sizeof(QDockWidget*) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}
void QMainWindow_RemoveDockWidget(QMainWindow* self, QDockWidget* dockwidget) {
self->removeDockWidget(dockwidget);
}
bool QMainWindow_RestoreDockWidget(QMainWindow* self, QDockWidget* dockwidget) {
return self->restoreDockWidget(dockwidget);
}
int QMainWindow_DockWidgetArea(const QMainWindow* self, QDockWidget* dockwidget) {
Qt::DockWidgetArea _ret = self->dockWidgetArea(dockwidget);
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation) {
QList<QDockWidget *> docks_QList;
docks_QList.reserve(docks.len);
QDockWidget** docks_arr = static_cast<QDockWidget**>(docks.data);
for(size_t i = 0; i < docks.len; ++i) {
docks_QList.push_back(docks_arr[i]);
2024-08-29 07:01:51 +00:00
}
QList<int> sizes_QList;
sizes_QList.reserve(sizes.len);
int* sizes_arr = static_cast<int*>(sizes.data);
for(size_t i = 0; i < sizes.len; ++i) {
sizes_QList.push_back(static_cast<int>(sizes_arr[i]));
2024-08-29 07:01:51 +00:00
}
self->resizeDocks(docks_QList, sizes_QList, static_cast<Qt::Orientation>(orientation));
}
struct miqt_string QMainWindow_SaveState(const QMainWindow* self) {
QByteArray _qb = self->saveState();
struct miqt_string _ms;
_ms.len = _qb.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _qb.data(), _ms.len);
return _ms;
}
bool QMainWindow_RestoreState(QMainWindow* self, struct miqt_string state) {
QByteArray state_QByteArray(state.data, state.len);
return self->restoreState(state_QByteArray);
}
QMenu* QMainWindow_CreatePopupMenu(QMainWindow* self) {
return self->createPopupMenu();
}
void QMainWindow_SetAnimated(QMainWindow* self, bool enabled) {
self->setAnimated(enabled);
}
void QMainWindow_SetDockNestingEnabled(QMainWindow* self, bool enabled) {
self->setDockNestingEnabled(enabled);
}
void QMainWindow_SetUnifiedTitleAndToolBarOnMac(QMainWindow* self, bool set) {
self->setUnifiedTitleAndToolBarOnMac(set);
}
void QMainWindow_IconSizeChanged(QMainWindow* self, QSize* iconSize) {
self->iconSizeChanged(*iconSize);
}
void QMainWindow_connect_IconSizeChanged(QMainWindow* self, intptr_t slot) {
2024-11-19 06:29:06 +00:00
MiqtVirtualQMainWindow::connect(self, static_cast<void (QMainWindow::*)(const QSize&)>(&QMainWindow::iconSizeChanged), self, [=](const QSize& iconSize) {
const QSize& iconSize_ret = iconSize;
// Cast returned reference into pointer
QSize* sigval1 = const_cast<QSize*>(&iconSize_ret);
miqt_exec_callback_QMainWindow_IconSizeChanged(slot, sigval1);
});
}
void QMainWindow_ToolButtonStyleChanged(QMainWindow* self, int toolButtonStyle) {
2024-08-29 07:01:51 +00:00
self->toolButtonStyleChanged(static_cast<Qt::ToolButtonStyle>(toolButtonStyle));
}
void QMainWindow_connect_ToolButtonStyleChanged(QMainWindow* self, intptr_t slot) {
2024-11-19 06:29:06 +00:00
MiqtVirtualQMainWindow::connect(self, static_cast<void (QMainWindow::*)(Qt::ToolButtonStyle)>(&QMainWindow::toolButtonStyleChanged), self, [=](Qt::ToolButtonStyle toolButtonStyle) {
Qt::ToolButtonStyle toolButtonStyle_ret = toolButtonStyle;
int sigval1 = static_cast<int>(toolButtonStyle_ret);
miqt_exec_callback_QMainWindow_ToolButtonStyleChanged(slot, sigval1);
2024-08-29 07:01:51 +00:00
});
}
void QMainWindow_TabifiedDockWidgetActivated(QMainWindow* self, QDockWidget* dockWidget) {
self->tabifiedDockWidgetActivated(dockWidget);
}
void QMainWindow_connect_TabifiedDockWidgetActivated(QMainWindow* self, intptr_t slot) {
2024-11-19 06:29:06 +00:00
MiqtVirtualQMainWindow::connect(self, static_cast<void (QMainWindow::*)(QDockWidget*)>(&QMainWindow::tabifiedDockWidgetActivated), self, [=](QDockWidget* dockWidget) {
QDockWidget* sigval1 = dockWidget;
miqt_exec_callback_QMainWindow_TabifiedDockWidgetActivated(slot, sigval1);
});
}
struct miqt_string QMainWindow_Tr2(const char* s, const char* c) {
QString _ret = QMainWindow::tr(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QMainWindow_Tr3(const char* s, const char* c, int n) {
QString _ret = QMainWindow::tr(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QMainWindow_TrUtf82(const char* s, const char* c) {
QString _ret = QMainWindow::trUtf8(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QMainWindow_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QMainWindow::trUtf8(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
void QMainWindow_AddToolBarBreak1(QMainWindow* self, int area) {
2024-08-29 07:01:51 +00:00
self->addToolBarBreak(static_cast<Qt::ToolBarArea>(area));
}
struct miqt_string QMainWindow_SaveState1(const QMainWindow* self, int version) {
QByteArray _qb = self->saveState(static_cast<int>(version));
struct miqt_string _ms;
_ms.len = _qb.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _qb.data(), _ms.len);
return _ms;
}
bool QMainWindow_RestoreState2(QMainWindow* self, struct miqt_string state, int version) {
QByteArray state_QByteArray(state.data, state.len);
return self->restoreState(state_QByteArray, static_cast<int>(version));
}
2024-11-19 06:29:06 +00:00
void QMainWindow_override_virtual_CreatePopupMenu(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__CreatePopupMenu = slot;
}
QMenu* QMainWindow_virtualbase_CreatePopupMenu(void* self) {
return ( (MiqtVirtualQMainWindow*)(self) )->virtualbase_CreatePopupMenu();
}
void QMainWindow_override_virtual_ContextMenuEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__ContextMenuEvent = slot;
}
void QMainWindow_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_ContextMenuEvent(event);
}
void QMainWindow_override_virtual_Event(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__Event = slot;
}
bool QMainWindow_virtualbase_Event(void* self, QEvent* event) {
return ( (MiqtVirtualQMainWindow*)(self) )->virtualbase_Event(event);
}
void QMainWindow_override_virtual_DevType(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__DevType = slot;
}
int QMainWindow_virtualbase_DevType(const void* self) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_DevType();
}
void QMainWindow_override_virtual_SetVisible(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__SetVisible = slot;
}
void QMainWindow_virtualbase_SetVisible(void* self, bool visible) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_SetVisible(visible);
}
void QMainWindow_override_virtual_SizeHint(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__SizeHint = slot;
}
QSize* QMainWindow_virtualbase_SizeHint(const void* self) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_SizeHint();
}
void QMainWindow_override_virtual_MinimumSizeHint(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__MinimumSizeHint = slot;
}
QSize* QMainWindow_virtualbase_MinimumSizeHint(const void* self) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_MinimumSizeHint();
}
void QMainWindow_override_virtual_HeightForWidth(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__HeightForWidth = slot;
}
int QMainWindow_virtualbase_HeightForWidth(const void* self, int param1) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_HeightForWidth(param1);
}
void QMainWindow_override_virtual_HasHeightForWidth(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__HasHeightForWidth = slot;
}
bool QMainWindow_virtualbase_HasHeightForWidth(const void* self) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_HasHeightForWidth();
}
void QMainWindow_override_virtual_PaintEngine(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__PaintEngine = slot;
}
QPaintEngine* QMainWindow_virtualbase_PaintEngine(const void* self) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_PaintEngine();
}
void QMainWindow_override_virtual_MousePressEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__MousePressEvent = slot;
}
void QMainWindow_virtualbase_MousePressEvent(void* self, QMouseEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_MousePressEvent(event);
}
void QMainWindow_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__MouseReleaseEvent = slot;
}
void QMainWindow_virtualbase_MouseReleaseEvent(void* self, QMouseEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_MouseReleaseEvent(event);
}
void QMainWindow_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__MouseDoubleClickEvent = slot;
}
void QMainWindow_virtualbase_MouseDoubleClickEvent(void* self, QMouseEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_MouseDoubleClickEvent(event);
}
void QMainWindow_override_virtual_MouseMoveEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__MouseMoveEvent = slot;
}
void QMainWindow_virtualbase_MouseMoveEvent(void* self, QMouseEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_MouseMoveEvent(event);
}
void QMainWindow_override_virtual_WheelEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__WheelEvent = slot;
}
void QMainWindow_virtualbase_WheelEvent(void* self, QWheelEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_WheelEvent(event);
}
void QMainWindow_override_virtual_KeyPressEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__KeyPressEvent = slot;
}
void QMainWindow_virtualbase_KeyPressEvent(void* self, QKeyEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_KeyPressEvent(event);
}
void QMainWindow_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__KeyReleaseEvent = slot;
}
void QMainWindow_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_KeyReleaseEvent(event);
}
void QMainWindow_override_virtual_FocusInEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__FocusInEvent = slot;
}
void QMainWindow_virtualbase_FocusInEvent(void* self, QFocusEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_FocusInEvent(event);
}
void QMainWindow_override_virtual_FocusOutEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__FocusOutEvent = slot;
}
void QMainWindow_virtualbase_FocusOutEvent(void* self, QFocusEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_FocusOutEvent(event);
}
void QMainWindow_override_virtual_EnterEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__EnterEvent = slot;
}
void QMainWindow_virtualbase_EnterEvent(void* self, QEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_EnterEvent(event);
}
void QMainWindow_override_virtual_LeaveEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__LeaveEvent = slot;
}
void QMainWindow_virtualbase_LeaveEvent(void* self, QEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_LeaveEvent(event);
}
void QMainWindow_override_virtual_PaintEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__PaintEvent = slot;
}
void QMainWindow_virtualbase_PaintEvent(void* self, QPaintEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_PaintEvent(event);
}
void QMainWindow_override_virtual_MoveEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__MoveEvent = slot;
}
void QMainWindow_virtualbase_MoveEvent(void* self, QMoveEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_MoveEvent(event);
}
void QMainWindow_override_virtual_ResizeEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__ResizeEvent = slot;
}
void QMainWindow_virtualbase_ResizeEvent(void* self, QResizeEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_ResizeEvent(event);
}
void QMainWindow_override_virtual_CloseEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__CloseEvent = slot;
}
void QMainWindow_virtualbase_CloseEvent(void* self, QCloseEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_CloseEvent(event);
}
void QMainWindow_override_virtual_TabletEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__TabletEvent = slot;
}
void QMainWindow_virtualbase_TabletEvent(void* self, QTabletEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_TabletEvent(event);
}
void QMainWindow_override_virtual_ActionEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__ActionEvent = slot;
}
void QMainWindow_virtualbase_ActionEvent(void* self, QActionEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_ActionEvent(event);
}
void QMainWindow_override_virtual_DragEnterEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__DragEnterEvent = slot;
}
void QMainWindow_virtualbase_DragEnterEvent(void* self, QDragEnterEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_DragEnterEvent(event);
}
void QMainWindow_override_virtual_DragMoveEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__DragMoveEvent = slot;
}
void QMainWindow_virtualbase_DragMoveEvent(void* self, QDragMoveEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_DragMoveEvent(event);
}
void QMainWindow_override_virtual_DragLeaveEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__DragLeaveEvent = slot;
}
void QMainWindow_virtualbase_DragLeaveEvent(void* self, QDragLeaveEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_DragLeaveEvent(event);
}
void QMainWindow_override_virtual_DropEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__DropEvent = slot;
}
void QMainWindow_virtualbase_DropEvent(void* self, QDropEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_DropEvent(event);
}
void QMainWindow_override_virtual_ShowEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__ShowEvent = slot;
}
void QMainWindow_virtualbase_ShowEvent(void* self, QShowEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_ShowEvent(event);
}
void QMainWindow_override_virtual_HideEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__HideEvent = slot;
}
void QMainWindow_virtualbase_HideEvent(void* self, QHideEvent* event) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_HideEvent(event);
}
void QMainWindow_override_virtual_NativeEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__NativeEvent = slot;
}
bool QMainWindow_virtualbase_NativeEvent(void* self, struct miqt_string eventType, void* message, long* result) {
return ( (MiqtVirtualQMainWindow*)(self) )->virtualbase_NativeEvent(eventType, message, result);
}
void QMainWindow_override_virtual_ChangeEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__ChangeEvent = slot;
}
void QMainWindow_virtualbase_ChangeEvent(void* self, QEvent* param1) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_ChangeEvent(param1);
}
void QMainWindow_override_virtual_Metric(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__Metric = slot;
}
int QMainWindow_virtualbase_Metric(const void* self, int param1) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_Metric(param1);
}
void QMainWindow_override_virtual_InitPainter(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__InitPainter = slot;
}
void QMainWindow_virtualbase_InitPainter(const void* self, QPainter* painter) {
( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_InitPainter(painter);
}
void QMainWindow_override_virtual_Redirected(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__Redirected = slot;
}
QPaintDevice* QMainWindow_virtualbase_Redirected(const void* self, QPoint* offset) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_Redirected(offset);
}
void QMainWindow_override_virtual_SharedPainter(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__SharedPainter = slot;
}
QPainter* QMainWindow_virtualbase_SharedPainter(const void* self) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_SharedPainter();
}
void QMainWindow_override_virtual_InputMethodEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__InputMethodEvent = slot;
}
void QMainWindow_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* param1) {
( (MiqtVirtualQMainWindow*)(self) )->virtualbase_InputMethodEvent(param1);
}
void QMainWindow_override_virtual_InputMethodQuery(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__InputMethodQuery = slot;
}
QVariant* QMainWindow_virtualbase_InputMethodQuery(const void* self, int param1) {
return ( (const MiqtVirtualQMainWindow*)(self) )->virtualbase_InputMethodQuery(param1);
}
void QMainWindow_override_virtual_FocusNextPrevChild(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQMainWindow*>( (QMainWindow*)(self) )->handle__FocusNextPrevChild = slot;
}
bool QMainWindow_virtualbase_FocusNextPrevChild(void* self, bool next) {
return ( (MiqtVirtualQMainWindow*)(self) )->virtualbase_FocusNextPrevChild(next);
}
void QMainWindow_Delete(QMainWindow* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<MiqtVirtualQMainWindow*>( self );
} else {
delete self;
}
}