mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
2318 lines
63 KiB
C++
2318 lines
63 KiB
C++
#include <QAbstractScrollArea>
|
|
#include <QActionEvent>
|
|
#include <QBrush>
|
|
#include <QByteArray>
|
|
#include <QChildEvent>
|
|
#include <QCloseEvent>
|
|
#include <QContextMenuEvent>
|
|
#include <QDragEnterEvent>
|
|
#include <QDragLeaveEvent>
|
|
#include <QDragMoveEvent>
|
|
#include <QDropEvent>
|
|
#include <QEnterEvent>
|
|
#include <QEvent>
|
|
#include <QFocusEvent>
|
|
#include <QFrame>
|
|
#include <QHideEvent>
|
|
#include <QInputMethodEvent>
|
|
#include <QKeyEvent>
|
|
#include <QList>
|
|
#include <QMdiArea>
|
|
#include <QMdiSubWindow>
|
|
#include <QMetaMethod>
|
|
#include <QMetaObject>
|
|
#include <QMouseEvent>
|
|
#include <QMoveEvent>
|
|
#include <QObject>
|
|
#include <QPaintDevice>
|
|
#include <QPaintEngine>
|
|
#include <QPaintEvent>
|
|
#include <QPainter>
|
|
#include <QPoint>
|
|
#include <QResizeEvent>
|
|
#include <QShowEvent>
|
|
#include <QSize>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <QStyleOptionFrame>
|
|
#include <QTabletEvent>
|
|
#include <QTimerEvent>
|
|
#include <QVariant>
|
|
#include <QWheelEvent>
|
|
#include <QWidget>
|
|
#include <qmdiarea.h>
|
|
#include "gen_qmdiarea.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void miqt_exec_callback_QMdiArea_subWindowActivated(intptr_t, QMdiSubWindow*);
|
|
QSize* miqt_exec_callback_QMdiArea_sizeHint(const QMdiArea*, intptr_t);
|
|
QSize* miqt_exec_callback_QMdiArea_minimumSizeHint(const QMdiArea*, intptr_t);
|
|
void miqt_exec_callback_QMdiArea_setupViewport(QMdiArea*, intptr_t, QWidget*);
|
|
bool miqt_exec_callback_QMdiArea_event(QMdiArea*, intptr_t, QEvent*);
|
|
bool miqt_exec_callback_QMdiArea_eventFilter(QMdiArea*, intptr_t, QObject*, QEvent*);
|
|
void miqt_exec_callback_QMdiArea_paintEvent(QMdiArea*, intptr_t, QPaintEvent*);
|
|
void miqt_exec_callback_QMdiArea_childEvent(QMdiArea*, intptr_t, QChildEvent*);
|
|
void miqt_exec_callback_QMdiArea_resizeEvent(QMdiArea*, intptr_t, QResizeEvent*);
|
|
void miqt_exec_callback_QMdiArea_timerEvent(QMdiArea*, intptr_t, QTimerEvent*);
|
|
void miqt_exec_callback_QMdiArea_showEvent(QMdiArea*, intptr_t, QShowEvent*);
|
|
bool miqt_exec_callback_QMdiArea_viewportEvent(QMdiArea*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QMdiArea_scrollContentsBy(QMdiArea*, intptr_t, int, int);
|
|
void miqt_exec_callback_QMdiArea_mousePressEvent(QMdiArea*, intptr_t, QMouseEvent*);
|
|
void miqt_exec_callback_QMdiArea_mouseReleaseEvent(QMdiArea*, intptr_t, QMouseEvent*);
|
|
void miqt_exec_callback_QMdiArea_mouseDoubleClickEvent(QMdiArea*, intptr_t, QMouseEvent*);
|
|
void miqt_exec_callback_QMdiArea_mouseMoveEvent(QMdiArea*, intptr_t, QMouseEvent*);
|
|
void miqt_exec_callback_QMdiArea_wheelEvent(QMdiArea*, intptr_t, QWheelEvent*);
|
|
void miqt_exec_callback_QMdiArea_contextMenuEvent(QMdiArea*, intptr_t, QContextMenuEvent*);
|
|
void miqt_exec_callback_QMdiArea_dragEnterEvent(QMdiArea*, intptr_t, QDragEnterEvent*);
|
|
void miqt_exec_callback_QMdiArea_dragMoveEvent(QMdiArea*, intptr_t, QDragMoveEvent*);
|
|
void miqt_exec_callback_QMdiArea_dragLeaveEvent(QMdiArea*, intptr_t, QDragLeaveEvent*);
|
|
void miqt_exec_callback_QMdiArea_dropEvent(QMdiArea*, intptr_t, QDropEvent*);
|
|
void miqt_exec_callback_QMdiArea_keyPressEvent(QMdiArea*, intptr_t, QKeyEvent*);
|
|
QSize* miqt_exec_callback_QMdiArea_viewportSizeHint(const QMdiArea*, intptr_t);
|
|
void miqt_exec_callback_QMdiArea_changeEvent(QMdiArea*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QMdiArea_initStyleOption(const QMdiArea*, intptr_t, QStyleOptionFrame*);
|
|
int miqt_exec_callback_QMdiArea_devType(const QMdiArea*, intptr_t);
|
|
void miqt_exec_callback_QMdiArea_setVisible(QMdiArea*, intptr_t, bool);
|
|
int miqt_exec_callback_QMdiArea_heightForWidth(const QMdiArea*, intptr_t, int);
|
|
bool miqt_exec_callback_QMdiArea_hasHeightForWidth(const QMdiArea*, intptr_t);
|
|
QPaintEngine* miqt_exec_callback_QMdiArea_paintEngine(const QMdiArea*, intptr_t);
|
|
void miqt_exec_callback_QMdiArea_keyReleaseEvent(QMdiArea*, intptr_t, QKeyEvent*);
|
|
void miqt_exec_callback_QMdiArea_focusInEvent(QMdiArea*, intptr_t, QFocusEvent*);
|
|
void miqt_exec_callback_QMdiArea_focusOutEvent(QMdiArea*, intptr_t, QFocusEvent*);
|
|
void miqt_exec_callback_QMdiArea_enterEvent(QMdiArea*, intptr_t, QEnterEvent*);
|
|
void miqt_exec_callback_QMdiArea_leaveEvent(QMdiArea*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QMdiArea_moveEvent(QMdiArea*, intptr_t, QMoveEvent*);
|
|
void miqt_exec_callback_QMdiArea_closeEvent(QMdiArea*, intptr_t, QCloseEvent*);
|
|
void miqt_exec_callback_QMdiArea_tabletEvent(QMdiArea*, intptr_t, QTabletEvent*);
|
|
void miqt_exec_callback_QMdiArea_actionEvent(QMdiArea*, intptr_t, QActionEvent*);
|
|
void miqt_exec_callback_QMdiArea_hideEvent(QMdiArea*, intptr_t, QHideEvent*);
|
|
bool miqt_exec_callback_QMdiArea_nativeEvent(QMdiArea*, intptr_t, struct miqt_string, void*, intptr_t*);
|
|
int miqt_exec_callback_QMdiArea_metric(const QMdiArea*, intptr_t, int);
|
|
void miqt_exec_callback_QMdiArea_initPainter(const QMdiArea*, intptr_t, QPainter*);
|
|
QPaintDevice* miqt_exec_callback_QMdiArea_redirected(const QMdiArea*, intptr_t, QPoint*);
|
|
QPainter* miqt_exec_callback_QMdiArea_sharedPainter(const QMdiArea*, intptr_t);
|
|
void miqt_exec_callback_QMdiArea_inputMethodEvent(QMdiArea*, intptr_t, QInputMethodEvent*);
|
|
QVariant* miqt_exec_callback_QMdiArea_inputMethodQuery(const QMdiArea*, intptr_t, int);
|
|
bool miqt_exec_callback_QMdiArea_focusNextPrevChild(QMdiArea*, intptr_t, bool);
|
|
void miqt_exec_callback_QMdiArea_customEvent(QMdiArea*, intptr_t, QEvent*);
|
|
void miqt_exec_callback_QMdiArea_connectNotify(QMdiArea*, intptr_t, QMetaMethod*);
|
|
void miqt_exec_callback_QMdiArea_disconnectNotify(QMdiArea*, intptr_t, QMetaMethod*);
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
class MiqtVirtualQMdiArea final : public QMdiArea {
|
|
public:
|
|
|
|
MiqtVirtualQMdiArea(QWidget* parent): QMdiArea(parent) {};
|
|
MiqtVirtualQMdiArea(): QMdiArea() {};
|
|
|
|
virtual ~MiqtVirtualQMdiArea() 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 QMdiArea::sizeHint();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QMdiArea_sizeHint(this, handle__sizeHint);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_sizeHint() const {
|
|
|
|
return new QSize(QMdiArea::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 QMdiArea::minimumSizeHint();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QMdiArea_minimumSizeHint(this, handle__minimumSizeHint);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_minimumSizeHint() const {
|
|
|
|
return new QSize(QMdiArea::minimumSizeHint());
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__setupViewport = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void setupViewport(QWidget* viewport) override {
|
|
if (handle__setupViewport == 0) {
|
|
QMdiArea::setupViewport(viewport);
|
|
return;
|
|
}
|
|
|
|
QWidget* sigval1 = viewport;
|
|
|
|
miqt_exec_callback_QMdiArea_setupViewport(this, handle__setupViewport, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_setupViewport(QWidget* viewport) {
|
|
|
|
QMdiArea::setupViewport(viewport);
|
|
|
|
}
|
|
|
|
// 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 QMdiArea::event(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QMdiArea_event(this, handle__event, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_event(QEvent* event) {
|
|
|
|
return QMdiArea::event(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__eventFilter = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool eventFilter(QObject* object, QEvent* event) override {
|
|
if (handle__eventFilter == 0) {
|
|
return QMdiArea::eventFilter(object, event);
|
|
}
|
|
|
|
QObject* sigval1 = object;
|
|
QEvent* sigval2 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QMdiArea_eventFilter(this, handle__eventFilter, sigval1, sigval2);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_eventFilter(QObject* object, QEvent* event) {
|
|
|
|
return QMdiArea::eventFilter(object, event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__paintEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void paintEvent(QPaintEvent* paintEvent) override {
|
|
if (handle__paintEvent == 0) {
|
|
QMdiArea::paintEvent(paintEvent);
|
|
return;
|
|
}
|
|
|
|
QPaintEvent* sigval1 = paintEvent;
|
|
|
|
miqt_exec_callback_QMdiArea_paintEvent(this, handle__paintEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_paintEvent(QPaintEvent* paintEvent) {
|
|
|
|
QMdiArea::paintEvent(paintEvent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__childEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void childEvent(QChildEvent* childEvent) override {
|
|
if (handle__childEvent == 0) {
|
|
QMdiArea::childEvent(childEvent);
|
|
return;
|
|
}
|
|
|
|
QChildEvent* sigval1 = childEvent;
|
|
|
|
miqt_exec_callback_QMdiArea_childEvent(this, handle__childEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_childEvent(QChildEvent* childEvent) {
|
|
|
|
QMdiArea::childEvent(childEvent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__resizeEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void resizeEvent(QResizeEvent* resizeEvent) override {
|
|
if (handle__resizeEvent == 0) {
|
|
QMdiArea::resizeEvent(resizeEvent);
|
|
return;
|
|
}
|
|
|
|
QResizeEvent* sigval1 = resizeEvent;
|
|
|
|
miqt_exec_callback_QMdiArea_resizeEvent(this, handle__resizeEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_resizeEvent(QResizeEvent* resizeEvent) {
|
|
|
|
QMdiArea::resizeEvent(resizeEvent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__timerEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void timerEvent(QTimerEvent* timerEvent) override {
|
|
if (handle__timerEvent == 0) {
|
|
QMdiArea::timerEvent(timerEvent);
|
|
return;
|
|
}
|
|
|
|
QTimerEvent* sigval1 = timerEvent;
|
|
|
|
miqt_exec_callback_QMdiArea_timerEvent(this, handle__timerEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_timerEvent(QTimerEvent* timerEvent) {
|
|
|
|
QMdiArea::timerEvent(timerEvent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__showEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void showEvent(QShowEvent* showEvent) override {
|
|
if (handle__showEvent == 0) {
|
|
QMdiArea::showEvent(showEvent);
|
|
return;
|
|
}
|
|
|
|
QShowEvent* sigval1 = showEvent;
|
|
|
|
miqt_exec_callback_QMdiArea_showEvent(this, handle__showEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_showEvent(QShowEvent* showEvent) {
|
|
|
|
QMdiArea::showEvent(showEvent);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__viewportEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual bool viewportEvent(QEvent* event) override {
|
|
if (handle__viewportEvent == 0) {
|
|
return QMdiArea::viewportEvent(event);
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QMdiArea_viewportEvent(this, handle__viewportEvent, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_viewportEvent(QEvent* event) {
|
|
|
|
return QMdiArea::viewportEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__scrollContentsBy = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void scrollContentsBy(int dx, int dy) override {
|
|
if (handle__scrollContentsBy == 0) {
|
|
QMdiArea::scrollContentsBy(dx, dy);
|
|
return;
|
|
}
|
|
|
|
int sigval1 = dx;
|
|
int sigval2 = dy;
|
|
|
|
miqt_exec_callback_QMdiArea_scrollContentsBy(this, handle__scrollContentsBy, sigval1, sigval2);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_scrollContentsBy(int dx, int dy) {
|
|
|
|
QMdiArea::scrollContentsBy(static_cast<int>(dx), static_cast<int>(dy));
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__mousePressEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void mousePressEvent(QMouseEvent* param1) override {
|
|
if (handle__mousePressEvent == 0) {
|
|
QMdiArea::mousePressEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_mousePressEvent(this, handle__mousePressEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_mousePressEvent(QMouseEvent* param1) {
|
|
|
|
QMdiArea::mousePressEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__mouseReleaseEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void mouseReleaseEvent(QMouseEvent* param1) override {
|
|
if (handle__mouseReleaseEvent == 0) {
|
|
QMdiArea::mouseReleaseEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_mouseReleaseEvent(this, handle__mouseReleaseEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_mouseReleaseEvent(QMouseEvent* param1) {
|
|
|
|
QMdiArea::mouseReleaseEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__mouseDoubleClickEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void mouseDoubleClickEvent(QMouseEvent* param1) override {
|
|
if (handle__mouseDoubleClickEvent == 0) {
|
|
QMdiArea::mouseDoubleClickEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_mouseDoubleClickEvent(this, handle__mouseDoubleClickEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_mouseDoubleClickEvent(QMouseEvent* param1) {
|
|
|
|
QMdiArea::mouseDoubleClickEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__mouseMoveEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void mouseMoveEvent(QMouseEvent* param1) override {
|
|
if (handle__mouseMoveEvent == 0) {
|
|
QMdiArea::mouseMoveEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_mouseMoveEvent(this, handle__mouseMoveEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_mouseMoveEvent(QMouseEvent* param1) {
|
|
|
|
QMdiArea::mouseMoveEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__wheelEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void wheelEvent(QWheelEvent* param1) override {
|
|
if (handle__wheelEvent == 0) {
|
|
QMdiArea::wheelEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QWheelEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_wheelEvent(this, handle__wheelEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_wheelEvent(QWheelEvent* param1) {
|
|
|
|
QMdiArea::wheelEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__contextMenuEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void contextMenuEvent(QContextMenuEvent* param1) override {
|
|
if (handle__contextMenuEvent == 0) {
|
|
QMdiArea::contextMenuEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QContextMenuEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_contextMenuEvent(this, handle__contextMenuEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_contextMenuEvent(QContextMenuEvent* param1) {
|
|
|
|
QMdiArea::contextMenuEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__dragEnterEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void dragEnterEvent(QDragEnterEvent* param1) override {
|
|
if (handle__dragEnterEvent == 0) {
|
|
QMdiArea::dragEnterEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QDragEnterEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_dragEnterEvent(this, handle__dragEnterEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_dragEnterEvent(QDragEnterEvent* param1) {
|
|
|
|
QMdiArea::dragEnterEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__dragMoveEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void dragMoveEvent(QDragMoveEvent* param1) override {
|
|
if (handle__dragMoveEvent == 0) {
|
|
QMdiArea::dragMoveEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QDragMoveEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_dragMoveEvent(this, handle__dragMoveEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_dragMoveEvent(QDragMoveEvent* param1) {
|
|
|
|
QMdiArea::dragMoveEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__dragLeaveEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void dragLeaveEvent(QDragLeaveEvent* param1) override {
|
|
if (handle__dragLeaveEvent == 0) {
|
|
QMdiArea::dragLeaveEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QDragLeaveEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_dragLeaveEvent(this, handle__dragLeaveEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_dragLeaveEvent(QDragLeaveEvent* param1) {
|
|
|
|
QMdiArea::dragLeaveEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__dropEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void dropEvent(QDropEvent* param1) override {
|
|
if (handle__dropEvent == 0) {
|
|
QMdiArea::dropEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QDropEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_dropEvent(this, handle__dropEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_dropEvent(QDropEvent* param1) {
|
|
|
|
QMdiArea::dropEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__keyPressEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void keyPressEvent(QKeyEvent* param1) override {
|
|
if (handle__keyPressEvent == 0) {
|
|
QMdiArea::keyPressEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QKeyEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_keyPressEvent(this, handle__keyPressEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_keyPressEvent(QKeyEvent* param1) {
|
|
|
|
QMdiArea::keyPressEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__viewportSizeHint = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual QSize viewportSizeHint() const override {
|
|
if (handle__viewportSizeHint == 0) {
|
|
return QMdiArea::viewportSizeHint();
|
|
}
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QMdiArea_viewportSizeHint(this, handle__viewportSizeHint);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QSize* virtualbase_viewportSizeHint() const {
|
|
|
|
return new QSize(QMdiArea::viewportSizeHint());
|
|
|
|
}
|
|
|
|
// 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) {
|
|
QMdiArea::changeEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_changeEvent(this, handle__changeEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_changeEvent(QEvent* param1) {
|
|
|
|
QMdiArea::changeEvent(param1);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__initStyleOption = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void initStyleOption(QStyleOptionFrame* option) const override {
|
|
if (handle__initStyleOption == 0) {
|
|
QMdiArea::initStyleOption(option);
|
|
return;
|
|
}
|
|
|
|
QStyleOptionFrame* sigval1 = option;
|
|
|
|
miqt_exec_callback_QMdiArea_initStyleOption(this, handle__initStyleOption, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_initStyleOption(QStyleOptionFrame* option) const {
|
|
|
|
QMdiArea::initStyleOption(option);
|
|
|
|
}
|
|
|
|
// 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 QMdiArea::devType();
|
|
}
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QMdiArea_devType(this, handle__devType);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_devType() const {
|
|
|
|
return QMdiArea::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) {
|
|
QMdiArea::setVisible(visible);
|
|
return;
|
|
}
|
|
|
|
bool sigval1 = visible;
|
|
|
|
miqt_exec_callback_QMdiArea_setVisible(this, handle__setVisible, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_setVisible(bool visible) {
|
|
|
|
QMdiArea::setVisible(visible);
|
|
|
|
}
|
|
|
|
// 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 QMdiArea::heightForWidth(param1);
|
|
}
|
|
|
|
int sigval1 = param1;
|
|
|
|
int callback_return_value = miqt_exec_callback_QMdiArea_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 QMdiArea::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 QMdiArea::hasHeightForWidth();
|
|
}
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QMdiArea_hasHeightForWidth(this, handle__hasHeightForWidth);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_hasHeightForWidth() const {
|
|
|
|
return QMdiArea::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 QMdiArea::paintEngine();
|
|
}
|
|
|
|
|
|
QPaintEngine* callback_return_value = miqt_exec_callback_QMdiArea_paintEngine(this, handle__paintEngine);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QPaintEngine* virtualbase_paintEngine() const {
|
|
|
|
return QMdiArea::paintEngine();
|
|
|
|
}
|
|
|
|
// 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) {
|
|
QMdiArea::keyReleaseEvent(event);
|
|
return;
|
|
}
|
|
|
|
QKeyEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_keyReleaseEvent(this, handle__keyReleaseEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_keyReleaseEvent(QKeyEvent* event) {
|
|
|
|
QMdiArea::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) {
|
|
QMdiArea::focusInEvent(event);
|
|
return;
|
|
}
|
|
|
|
QFocusEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_focusInEvent(this, handle__focusInEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_focusInEvent(QFocusEvent* event) {
|
|
|
|
QMdiArea::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) {
|
|
QMdiArea::focusOutEvent(event);
|
|
return;
|
|
}
|
|
|
|
QFocusEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_focusOutEvent(this, handle__focusOutEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_focusOutEvent(QFocusEvent* event) {
|
|
|
|
QMdiArea::focusOutEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__enterEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void enterEvent(QEnterEvent* event) override {
|
|
if (handle__enterEvent == 0) {
|
|
QMdiArea::enterEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEnterEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_enterEvent(this, handle__enterEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_enterEvent(QEnterEvent* event) {
|
|
|
|
QMdiArea::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) {
|
|
QMdiArea::leaveEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_leaveEvent(this, handle__leaveEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_leaveEvent(QEvent* event) {
|
|
|
|
QMdiArea::leaveEvent(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) {
|
|
QMdiArea::moveEvent(event);
|
|
return;
|
|
}
|
|
|
|
QMoveEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_moveEvent(this, handle__moveEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_moveEvent(QMoveEvent* event) {
|
|
|
|
QMdiArea::moveEvent(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) {
|
|
QMdiArea::closeEvent(event);
|
|
return;
|
|
}
|
|
|
|
QCloseEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_closeEvent(this, handle__closeEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_closeEvent(QCloseEvent* event) {
|
|
|
|
QMdiArea::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) {
|
|
QMdiArea::tabletEvent(event);
|
|
return;
|
|
}
|
|
|
|
QTabletEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_tabletEvent(this, handle__tabletEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_tabletEvent(QTabletEvent* event) {
|
|
|
|
QMdiArea::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) {
|
|
QMdiArea::actionEvent(event);
|
|
return;
|
|
}
|
|
|
|
QActionEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_actionEvent(this, handle__actionEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_actionEvent(QActionEvent* event) {
|
|
|
|
QMdiArea::actionEvent(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) {
|
|
QMdiArea::hideEvent(event);
|
|
return;
|
|
}
|
|
|
|
QHideEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_hideEvent(this, handle__hideEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_hideEvent(QHideEvent* event) {
|
|
|
|
QMdiArea::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, qintptr* result) override {
|
|
if (handle__nativeEvent == 0) {
|
|
return QMdiArea::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;
|
|
qintptr* result_ret = result;
|
|
intptr_t* sigval3 = (intptr_t*)(result_ret);
|
|
|
|
bool callback_return_value = miqt_exec_callback_QMdiArea_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, intptr_t* result) {
|
|
QByteArray eventType_QByteArray(eventType.data, eventType.len);
|
|
|
|
return QMdiArea::nativeEvent(eventType_QByteArray, message, (qintptr*)(result));
|
|
|
|
}
|
|
|
|
// 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 QMdiArea::metric(param1);
|
|
}
|
|
|
|
QPaintDevice::PaintDeviceMetric param1_ret = param1;
|
|
int sigval1 = static_cast<int>(param1_ret);
|
|
|
|
int callback_return_value = miqt_exec_callback_QMdiArea_metric(this, handle__metric, sigval1);
|
|
|
|
return static_cast<int>(callback_return_value);
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
int virtualbase_metric(int param1) const {
|
|
|
|
return QMdiArea::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) {
|
|
QMdiArea::initPainter(painter);
|
|
return;
|
|
}
|
|
|
|
QPainter* sigval1 = painter;
|
|
|
|
miqt_exec_callback_QMdiArea_initPainter(this, handle__initPainter, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_initPainter(QPainter* painter) const {
|
|
|
|
QMdiArea::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 QMdiArea::redirected(offset);
|
|
}
|
|
|
|
QPoint* sigval1 = offset;
|
|
|
|
QPaintDevice* callback_return_value = miqt_exec_callback_QMdiArea_redirected(this, handle__redirected, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QPaintDevice* virtualbase_redirected(QPoint* offset) const {
|
|
|
|
return QMdiArea::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 QMdiArea::sharedPainter();
|
|
}
|
|
|
|
|
|
QPainter* callback_return_value = miqt_exec_callback_QMdiArea_sharedPainter(this, handle__sharedPainter);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QPainter* virtualbase_sharedPainter() const {
|
|
|
|
return QMdiArea::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) {
|
|
QMdiArea::inputMethodEvent(param1);
|
|
return;
|
|
}
|
|
|
|
QInputMethodEvent* sigval1 = param1;
|
|
|
|
miqt_exec_callback_QMdiArea_inputMethodEvent(this, handle__inputMethodEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_inputMethodEvent(QInputMethodEvent* param1) {
|
|
|
|
QMdiArea::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 QMdiArea::inputMethodQuery(param1);
|
|
}
|
|
|
|
Qt::InputMethodQuery param1_ret = param1;
|
|
int sigval1 = static_cast<int>(param1_ret);
|
|
|
|
QVariant* callback_return_value = miqt_exec_callback_QMdiArea_inputMethodQuery(this, handle__inputMethodQuery, sigval1);
|
|
|
|
return *callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
QVariant* virtualbase_inputMethodQuery(int param1) const {
|
|
|
|
return new QVariant(QMdiArea::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 QMdiArea::focusNextPrevChild(next);
|
|
}
|
|
|
|
bool sigval1 = next;
|
|
|
|
bool callback_return_value = miqt_exec_callback_QMdiArea_focusNextPrevChild(this, handle__focusNextPrevChild, sigval1);
|
|
|
|
return callback_return_value;
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
bool virtualbase_focusNextPrevChild(bool next) {
|
|
|
|
return QMdiArea::focusNextPrevChild(next);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__customEvent = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void customEvent(QEvent* event) override {
|
|
if (handle__customEvent == 0) {
|
|
QMdiArea::customEvent(event);
|
|
return;
|
|
}
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
miqt_exec_callback_QMdiArea_customEvent(this, handle__customEvent, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_customEvent(QEvent* event) {
|
|
|
|
QMdiArea::customEvent(event);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__connectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
if (handle__connectNotify == 0) {
|
|
QMdiArea::connectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QMdiArea_connectNotify(this, handle__connectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_connectNotify(QMetaMethod* signal) {
|
|
|
|
QMdiArea::connectNotify(*signal);
|
|
|
|
}
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
intptr_t handle__disconnectNotify = 0;
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
if (handle__disconnectNotify == 0) {
|
|
QMdiArea::disconnectNotify(signal);
|
|
return;
|
|
}
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
// Cast returned reference into pointer
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
miqt_exec_callback_QMdiArea_disconnectNotify(this, handle__disconnectNotify, sigval1);
|
|
|
|
|
|
}
|
|
|
|
// Wrapper to allow calling protected method
|
|
void virtualbase_disconnectNotify(QMetaMethod* signal) {
|
|
|
|
QMdiArea::disconnectNotify(*signal);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
QMdiArea* QMdiArea_new(QWidget* parent) {
|
|
return new MiqtVirtualQMdiArea(parent);
|
|
}
|
|
|
|
QMdiArea* QMdiArea_new2() {
|
|
return new MiqtVirtualQMdiArea();
|
|
}
|
|
|
|
void QMdiArea_virtbase(QMdiArea* src, QAbstractScrollArea** outptr_QAbstractScrollArea) {
|
|
*outptr_QAbstractScrollArea = static_cast<QAbstractScrollArea*>(src);
|
|
}
|
|
|
|
QMetaObject* QMdiArea_metaObject(const QMdiArea* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QMdiArea_metacast(QMdiArea* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
struct miqt_string QMdiArea_tr(const char* s) {
|
|
QString _ret = QMdiArea::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;
|
|
}
|
|
|
|
QSize* QMdiArea_sizeHint(const QMdiArea* self) {
|
|
return new QSize(self->sizeHint());
|
|
}
|
|
|
|
QSize* QMdiArea_minimumSizeHint(const QMdiArea* self) {
|
|
return new QSize(self->minimumSizeHint());
|
|
}
|
|
|
|
QMdiSubWindow* QMdiArea_currentSubWindow(const QMdiArea* self) {
|
|
return self->currentSubWindow();
|
|
}
|
|
|
|
QMdiSubWindow* QMdiArea_activeSubWindow(const QMdiArea* self) {
|
|
return self->activeSubWindow();
|
|
}
|
|
|
|
struct miqt_array /* of QMdiSubWindow* */ QMdiArea_subWindowList(const QMdiArea* self) {
|
|
QList<QMdiSubWindow *> _ret = self->subWindowList();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QMdiSubWindow** _arr = static_cast<QMdiSubWindow**>(malloc(sizeof(QMdiSubWindow*) * _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;
|
|
}
|
|
|
|
QMdiSubWindow* QMdiArea_addSubWindow(QMdiArea* self, QWidget* widget) {
|
|
return self->addSubWindow(widget);
|
|
}
|
|
|
|
void QMdiArea_removeSubWindow(QMdiArea* self, QWidget* widget) {
|
|
self->removeSubWindow(widget);
|
|
}
|
|
|
|
QBrush* QMdiArea_background(const QMdiArea* self) {
|
|
return new QBrush(self->background());
|
|
}
|
|
|
|
void QMdiArea_setBackground(QMdiArea* self, QBrush* background) {
|
|
self->setBackground(*background);
|
|
}
|
|
|
|
int QMdiArea_activationOrder(const QMdiArea* self) {
|
|
QMdiArea::WindowOrder _ret = self->activationOrder();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QMdiArea_setActivationOrder(QMdiArea* self, int order) {
|
|
self->setActivationOrder(static_cast<QMdiArea::WindowOrder>(order));
|
|
}
|
|
|
|
void QMdiArea_setOption(QMdiArea* self, int option) {
|
|
self->setOption(static_cast<QMdiArea::AreaOption>(option));
|
|
}
|
|
|
|
bool QMdiArea_testOption(const QMdiArea* self, int opton) {
|
|
return self->testOption(static_cast<QMdiArea::AreaOption>(opton));
|
|
}
|
|
|
|
void QMdiArea_setViewMode(QMdiArea* self, int mode) {
|
|
self->setViewMode(static_cast<QMdiArea::ViewMode>(mode));
|
|
}
|
|
|
|
int QMdiArea_viewMode(const QMdiArea* self) {
|
|
QMdiArea::ViewMode _ret = self->viewMode();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
bool QMdiArea_documentMode(const QMdiArea* self) {
|
|
return self->documentMode();
|
|
}
|
|
|
|
void QMdiArea_setDocumentMode(QMdiArea* self, bool enabled) {
|
|
self->setDocumentMode(enabled);
|
|
}
|
|
|
|
void QMdiArea_setTabsClosable(QMdiArea* self, bool closable) {
|
|
self->setTabsClosable(closable);
|
|
}
|
|
|
|
bool QMdiArea_tabsClosable(const QMdiArea* self) {
|
|
return self->tabsClosable();
|
|
}
|
|
|
|
void QMdiArea_setTabsMovable(QMdiArea* self, bool movable) {
|
|
self->setTabsMovable(movable);
|
|
}
|
|
|
|
bool QMdiArea_tabsMovable(const QMdiArea* self) {
|
|
return self->tabsMovable();
|
|
}
|
|
|
|
void QMdiArea_setTabShape(QMdiArea* self, int shape) {
|
|
self->setTabShape(static_cast<QTabWidget::TabShape>(shape));
|
|
}
|
|
|
|
int QMdiArea_tabShape(const QMdiArea* self) {
|
|
QTabWidget::TabShape _ret = self->tabShape();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QMdiArea_setTabPosition(QMdiArea* self, int position) {
|
|
self->setTabPosition(static_cast<QTabWidget::TabPosition>(position));
|
|
}
|
|
|
|
int QMdiArea_tabPosition(const QMdiArea* self) {
|
|
QTabWidget::TabPosition _ret = self->tabPosition();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QMdiArea_subWindowActivated(QMdiArea* self, QMdiSubWindow* param1) {
|
|
self->subWindowActivated(param1);
|
|
}
|
|
|
|
void QMdiArea_connect_subWindowActivated(QMdiArea* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea::connect(self, static_cast<void (QMdiArea::*)(QMdiSubWindow*)>(&QMdiArea::subWindowActivated), self, [=](QMdiSubWindow* param1) {
|
|
QMdiSubWindow* sigval1 = param1;
|
|
miqt_exec_callback_QMdiArea_subWindowActivated(slot, sigval1);
|
|
});
|
|
}
|
|
|
|
void QMdiArea_setActiveSubWindow(QMdiArea* self, QMdiSubWindow* window) {
|
|
self->setActiveSubWindow(window);
|
|
}
|
|
|
|
void QMdiArea_tileSubWindows(QMdiArea* self) {
|
|
self->tileSubWindows();
|
|
}
|
|
|
|
void QMdiArea_cascadeSubWindows(QMdiArea* self) {
|
|
self->cascadeSubWindows();
|
|
}
|
|
|
|
void QMdiArea_closeActiveSubWindow(QMdiArea* self) {
|
|
self->closeActiveSubWindow();
|
|
}
|
|
|
|
void QMdiArea_closeAllSubWindows(QMdiArea* self) {
|
|
self->closeAllSubWindows();
|
|
}
|
|
|
|
void QMdiArea_activateNextSubWindow(QMdiArea* self) {
|
|
self->activateNextSubWindow();
|
|
}
|
|
|
|
void QMdiArea_activatePreviousSubWindow(QMdiArea* self) {
|
|
self->activatePreviousSubWindow();
|
|
}
|
|
|
|
struct miqt_string QMdiArea_tr2(const char* s, const char* c) {
|
|
QString _ret = QMdiArea::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 QMdiArea_tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QMdiArea::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_array /* of QMdiSubWindow* */ QMdiArea_subWindowList1(const QMdiArea* self, int order) {
|
|
QList<QMdiSubWindow *> _ret = self->subWindowList(static_cast<QMdiArea::WindowOrder>(order));
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
QMdiSubWindow** _arr = static_cast<QMdiSubWindow**>(malloc(sizeof(QMdiSubWindow*) * _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;
|
|
}
|
|
|
|
QMdiSubWindow* QMdiArea_addSubWindow2(QMdiArea* self, QWidget* widget, int flags) {
|
|
return self->addSubWindow(widget, static_cast<Qt::WindowFlags>(flags));
|
|
}
|
|
|
|
void QMdiArea_setOption2(QMdiArea* self, int option, bool on) {
|
|
self->setOption(static_cast<QMdiArea::AreaOption>(option), on);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_sizeHint(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sizeHint = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QMdiArea_virtualbase_sizeHint(const void* self) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_sizeHint();
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_minimumSizeHint(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__minimumSizeHint = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QMdiArea_virtualbase_minimumSizeHint(const void* self) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_minimumSizeHint();
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_setupViewport(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setupViewport = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_setupViewport(void* self, QWidget* viewport) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_setupViewport(viewport);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_event(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__event = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QMdiArea_virtualbase_event(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQMdiArea*)(self) )->virtualbase_event(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_eventFilter(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__eventFilter = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QMdiArea_virtualbase_eventFilter(void* self, QObject* object, QEvent* event) {
|
|
return ( (MiqtVirtualQMdiArea*)(self) )->virtualbase_eventFilter(object, event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_paintEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__paintEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_paintEvent(void* self, QPaintEvent* paintEvent) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_paintEvent(paintEvent);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_childEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__childEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_childEvent(void* self, QChildEvent* childEvent) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_childEvent(childEvent);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_resizeEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__resizeEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_resizeEvent(void* self, QResizeEvent* resizeEvent) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_resizeEvent(resizeEvent);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_timerEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__timerEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_timerEvent(void* self, QTimerEvent* timerEvent) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_timerEvent(timerEvent);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_showEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__showEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_showEvent(void* self, QShowEvent* showEvent) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_showEvent(showEvent);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_viewportEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__viewportEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QMdiArea_virtualbase_viewportEvent(void* self, QEvent* event) {
|
|
return ( (MiqtVirtualQMdiArea*)(self) )->virtualbase_viewportEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_scrollContentsBy(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__scrollContentsBy = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_scrollContentsBy(void* self, int dx, int dy) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_scrollContentsBy(dx, dy);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_mousePressEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__mousePressEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_mousePressEvent(void* self, QMouseEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_mousePressEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_mouseReleaseEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__mouseReleaseEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_mouseReleaseEvent(void* self, QMouseEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_mouseReleaseEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_mouseDoubleClickEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__mouseDoubleClickEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_mouseDoubleClickEvent(void* self, QMouseEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_mouseDoubleClickEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_mouseMoveEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__mouseMoveEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_mouseMoveEvent(void* self, QMouseEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_mouseMoveEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_wheelEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__wheelEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_wheelEvent(void* self, QWheelEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_wheelEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_contextMenuEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__contextMenuEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_contextMenuEvent(void* self, QContextMenuEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_contextMenuEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_dragEnterEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__dragEnterEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_dragEnterEvent(void* self, QDragEnterEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_dragEnterEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_dragMoveEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__dragMoveEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_dragMoveEvent(void* self, QDragMoveEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_dragMoveEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_dragLeaveEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__dragLeaveEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_dragLeaveEvent(void* self, QDragLeaveEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_dragLeaveEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_dropEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__dropEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_dropEvent(void* self, QDropEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_dropEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_keyPressEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__keyPressEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_keyPressEvent(void* self, QKeyEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_keyPressEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_viewportSizeHint(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__viewportSizeHint = slot;
|
|
return true;
|
|
}
|
|
|
|
QSize* QMdiArea_virtualbase_viewportSizeHint(const void* self) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_viewportSizeHint();
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_changeEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__changeEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_changeEvent(void* self, QEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_changeEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_initStyleOption(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__initStyleOption = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_initStyleOption(const void* self, QStyleOptionFrame* option) {
|
|
( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_initStyleOption(option);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_devType(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__devType = slot;
|
|
return true;
|
|
}
|
|
|
|
int QMdiArea_virtualbase_devType(const void* self) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_devType();
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_setVisible(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__setVisible = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_setVisible(void* self, bool visible) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_setVisible(visible);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_heightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__heightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
int QMdiArea_virtualbase_heightForWidth(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_heightForWidth(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_hasHeightForWidth(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__hasHeightForWidth = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QMdiArea_virtualbase_hasHeightForWidth(const void* self) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_hasHeightForWidth();
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_paintEngine(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__paintEngine = slot;
|
|
return true;
|
|
}
|
|
|
|
QPaintEngine* QMdiArea_virtualbase_paintEngine(const void* self) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_paintEngine();
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_keyReleaseEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__keyReleaseEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_keyReleaseEvent(void* self, QKeyEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_keyReleaseEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_focusInEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__focusInEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_focusInEvent(void* self, QFocusEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_focusInEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_focusOutEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__focusOutEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_focusOutEvent(void* self, QFocusEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_focusOutEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_enterEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__enterEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_enterEvent(void* self, QEnterEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_enterEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_leaveEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__leaveEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_leaveEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_leaveEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_moveEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__moveEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_moveEvent(void* self, QMoveEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_moveEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_closeEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__closeEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_closeEvent(void* self, QCloseEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_closeEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_tabletEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__tabletEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_tabletEvent(void* self, QTabletEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_tabletEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_actionEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__actionEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_actionEvent(void* self, QActionEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_actionEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_hideEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__hideEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_hideEvent(void* self, QHideEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_hideEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_nativeEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__nativeEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QMdiArea_virtualbase_nativeEvent(void* self, struct miqt_string eventType, void* message, intptr_t* result) {
|
|
return ( (MiqtVirtualQMdiArea*)(self) )->virtualbase_nativeEvent(eventType, message, result);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_metric(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__metric = slot;
|
|
return true;
|
|
}
|
|
|
|
int QMdiArea_virtualbase_metric(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_metric(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_initPainter(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__initPainter = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_initPainter(const void* self, QPainter* painter) {
|
|
( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_initPainter(painter);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_redirected(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__redirected = slot;
|
|
return true;
|
|
}
|
|
|
|
QPaintDevice* QMdiArea_virtualbase_redirected(const void* self, QPoint* offset) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_redirected(offset);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_sharedPainter(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__sharedPainter = slot;
|
|
return true;
|
|
}
|
|
|
|
QPainter* QMdiArea_virtualbase_sharedPainter(const void* self) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_sharedPainter();
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_inputMethodEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__inputMethodEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_inputMethodEvent(void* self, QInputMethodEvent* param1) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_inputMethodEvent(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_inputMethodQuery(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__inputMethodQuery = slot;
|
|
return true;
|
|
}
|
|
|
|
QVariant* QMdiArea_virtualbase_inputMethodQuery(const void* self, int param1) {
|
|
return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_inputMethodQuery(param1);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_focusNextPrevChild(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__focusNextPrevChild = slot;
|
|
return true;
|
|
}
|
|
|
|
bool QMdiArea_virtualbase_focusNextPrevChild(void* self, bool next) {
|
|
return ( (MiqtVirtualQMdiArea*)(self) )->virtualbase_focusNextPrevChild(next);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_customEvent(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__customEvent = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_customEvent(void* self, QEvent* event) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_customEvent(event);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_connectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__connectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_connectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_connectNotify(signal);
|
|
}
|
|
|
|
bool QMdiArea_override_virtual_disconnectNotify(void* self, intptr_t slot) {
|
|
MiqtVirtualQMdiArea* self_cast = dynamic_cast<MiqtVirtualQMdiArea*>( (QMdiArea*)(self) );
|
|
if (self_cast == nullptr) {
|
|
return false;
|
|
}
|
|
|
|
self_cast->handle__disconnectNotify = slot;
|
|
return true;
|
|
}
|
|
|
|
void QMdiArea_virtualbase_disconnectNotify(void* self, QMetaMethod* signal) {
|
|
( (MiqtVirtualQMdiArea*)(self) )->virtualbase_disconnectNotify(signal);
|
|
}
|
|
|
|
void QMdiArea_delete(QMdiArea* self) {
|
|
delete self;
|
|
}
|
|
|