2024-08-25 04:08:24 +00:00
|
|
|
#include <QAccessibleInterface>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <QChildEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QCursor>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QEvent>
|
|
|
|
#include <QExposeEvent>
|
|
|
|
#include <QFocusEvent>
|
|
|
|
#include <QHideEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QIcon>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QKeyEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QMargins>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QMetaMethod>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QMetaObject>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QMouseEvent>
|
|
|
|
#include <QMoveEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QObject>
|
|
|
|
#include <QPoint>
|
|
|
|
#include <QRect>
|
|
|
|
#include <QRegion>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QResizeEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QScreen>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QShowEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QSize>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QSurface>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QSurfaceFormat>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QTabletEvent>
|
|
|
|
#include <QTimerEvent>
|
|
|
|
#include <QTouchEvent>
|
|
|
|
#include <QWheelEvent>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QWindow>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qwindow.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qwindow.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
class MiqtVirtualQWindow : public virtual QWindow {
|
|
|
|
public:
|
|
|
|
|
|
|
|
MiqtVirtualQWindow(): QWindow() {};
|
|
|
|
MiqtVirtualQWindow(QWindow* parent): QWindow(parent) {};
|
|
|
|
MiqtVirtualQWindow(QScreen* screen): QWindow(screen) {};
|
|
|
|
|
|
|
|
virtual ~MiqtVirtualQWindow() = default;
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__SurfaceType = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual QSurface::SurfaceType surfaceType() const override {
|
|
|
|
if (handle__SurfaceType == 0) {
|
|
|
|
return QWindow::surfaceType();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int callback_return_value = miqt_exec_callback_QWindow_SurfaceType(const_cast<MiqtVirtualQWindow*>(this), handle__SurfaceType);
|
|
|
|
|
|
|
|
return static_cast<QSurface::SurfaceType>(callback_return_value);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
int virtualbase_SurfaceType() const {
|
|
|
|
|
|
|
|
QSurface::SurfaceType _ret = QWindow::surfaceType();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__Format = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual QSurfaceFormat format() const override {
|
|
|
|
if (handle__Format == 0) {
|
|
|
|
return QWindow::format();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QSurfaceFormat* callback_return_value = miqt_exec_callback_QWindow_Format(const_cast<MiqtVirtualQWindow*>(this), handle__Format);
|
|
|
|
|
|
|
|
return *callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
QSurfaceFormat* virtualbase_Format() const {
|
|
|
|
|
|
|
|
return new QSurfaceFormat(QWindow::format());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__Size = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual QSize size() const override {
|
|
|
|
if (handle__Size == 0) {
|
|
|
|
return QWindow::size();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QSize* callback_return_value = miqt_exec_callback_QWindow_Size(const_cast<MiqtVirtualQWindow*>(this), handle__Size);
|
|
|
|
|
|
|
|
return *callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
QSize* virtualbase_Size() const {
|
|
|
|
|
|
|
|
return new QSize(QWindow::size());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__AccessibleRoot = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual QAccessibleInterface* accessibleRoot() const override {
|
|
|
|
if (handle__AccessibleRoot == 0) {
|
|
|
|
return QWindow::accessibleRoot();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QAccessibleInterface* callback_return_value = miqt_exec_callback_QWindow_AccessibleRoot(const_cast<MiqtVirtualQWindow*>(this), handle__AccessibleRoot);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
QAccessibleInterface* virtualbase_AccessibleRoot() const {
|
|
|
|
|
|
|
|
return QWindow::accessibleRoot();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__FocusObject = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual QObject* focusObject() const override {
|
|
|
|
if (handle__FocusObject == 0) {
|
|
|
|
return QWindow::focusObject();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QObject* callback_return_value = miqt_exec_callback_QWindow_FocusObject(const_cast<MiqtVirtualQWindow*>(this), handle__FocusObject);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
QObject* virtualbase_FocusObject() const {
|
|
|
|
|
|
|
|
return QWindow::focusObject();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ExposeEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void exposeEvent(QExposeEvent* param1) override {
|
|
|
|
if (handle__ExposeEvent == 0) {
|
|
|
|
QWindow::exposeEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QExposeEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_ExposeEvent(this, handle__ExposeEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ExposeEvent(QExposeEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::exposeEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ResizeEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void resizeEvent(QResizeEvent* param1) override {
|
|
|
|
if (handle__ResizeEvent == 0) {
|
|
|
|
QWindow::resizeEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QResizeEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_ResizeEvent(this, handle__ResizeEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ResizeEvent(QResizeEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::resizeEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__MoveEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void moveEvent(QMoveEvent* param1) override {
|
|
|
|
if (handle__MoveEvent == 0) {
|
|
|
|
QWindow::moveEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMoveEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_MoveEvent(this, handle__MoveEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_MoveEvent(QMoveEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::moveEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__FocusInEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void focusInEvent(QFocusEvent* param1) override {
|
|
|
|
if (handle__FocusInEvent == 0) {
|
|
|
|
QWindow::focusInEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QFocusEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_FocusInEvent(this, handle__FocusInEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_FocusInEvent(QFocusEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::focusInEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__FocusOutEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void focusOutEvent(QFocusEvent* param1) override {
|
|
|
|
if (handle__FocusOutEvent == 0) {
|
|
|
|
QWindow::focusOutEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QFocusEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_FocusOutEvent(this, handle__FocusOutEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_FocusOutEvent(QFocusEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::focusOutEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ShowEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void showEvent(QShowEvent* param1) override {
|
|
|
|
if (handle__ShowEvent == 0) {
|
|
|
|
QWindow::showEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QShowEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_ShowEvent(this, handle__ShowEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ShowEvent(QShowEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::showEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__HideEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void hideEvent(QHideEvent* param1) override {
|
|
|
|
if (handle__HideEvent == 0) {
|
|
|
|
QWindow::hideEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QHideEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_HideEvent(this, handle__HideEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_HideEvent(QHideEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::hideEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__Event = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool event(QEvent* param1) override {
|
|
|
|
if (handle__Event == 0) {
|
|
|
|
return QWindow::event(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWindow_Event(this, handle__Event, sigval1);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
bool virtualbase_Event(QEvent* param1) {
|
|
|
|
|
|
|
|
return QWindow::event(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) {
|
|
|
|
QWindow::keyPressEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QKeyEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_KeyPressEvent(this, handle__KeyPressEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_KeyPressEvent(QKeyEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::keyPressEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__KeyReleaseEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void keyReleaseEvent(QKeyEvent* param1) override {
|
|
|
|
if (handle__KeyReleaseEvent == 0) {
|
|
|
|
QWindow::keyReleaseEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QKeyEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_KeyReleaseEvent(this, handle__KeyReleaseEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_KeyReleaseEvent(QKeyEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::keyReleaseEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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) {
|
|
|
|
QWindow::mousePressEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_MousePressEvent(this, handle__MousePressEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_MousePressEvent(QMouseEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::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) {
|
|
|
|
QWindow::mouseReleaseEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_MouseReleaseEvent(this, handle__MouseReleaseEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_MouseReleaseEvent(QMouseEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::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) {
|
|
|
|
QWindow::mouseDoubleClickEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_MouseDoubleClickEvent(this, handle__MouseDoubleClickEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_MouseDoubleClickEvent(QMouseEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::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) {
|
|
|
|
QWindow::mouseMoveEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMouseEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_MouseMoveEvent(this, handle__MouseMoveEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_MouseMoveEvent(QMouseEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::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) {
|
|
|
|
QWindow::wheelEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWheelEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_WheelEvent(this, handle__WheelEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_WheelEvent(QWheelEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::wheelEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__TouchEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void touchEvent(QTouchEvent* param1) override {
|
|
|
|
if (handle__TouchEvent == 0) {
|
|
|
|
QWindow::touchEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTouchEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_TouchEvent(this, handle__TouchEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_TouchEvent(QTouchEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::touchEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__TabletEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void tabletEvent(QTabletEvent* param1) override {
|
|
|
|
if (handle__TabletEvent == 0) {
|
|
|
|
QWindow::tabletEvent(param1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTabletEvent* sigval1 = param1;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_TabletEvent(this, handle__TabletEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_TabletEvent(QTabletEvent* param1) {
|
|
|
|
|
|
|
|
QWindow::tabletEvent(param1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 QWindow::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_QWindow_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 QWindow::nativeEvent(eventType_QByteArray, message, static_cast<long*>(result));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__EventFilter = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
|
|
if (handle__EventFilter == 0) {
|
|
|
|
return QWindow::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* sigval1 = watched;
|
|
|
|
QEvent* sigval2 = event;
|
|
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QWindow_EventFilter(this, handle__EventFilter, sigval1, sigval2);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
bool virtualbase_EventFilter(QObject* watched, QEvent* event) {
|
|
|
|
|
|
|
|
return QWindow::eventFilter(watched, event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__TimerEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
|
|
if (handle__TimerEvent == 0) {
|
|
|
|
QWindow::timerEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_TimerEvent(this, handle__TimerEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_TimerEvent(QTimerEvent* event) {
|
|
|
|
|
|
|
|
QWindow::timerEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ChildEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
|
|
if (handle__ChildEvent == 0) {
|
|
|
|
QWindow::childEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_ChildEvent(this, handle__ChildEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ChildEvent(QChildEvent* event) {
|
|
|
|
|
|
|
|
QWindow::childEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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) {
|
|
|
|
QWindow::customEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_CustomEvent(this, handle__CustomEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_CustomEvent(QEvent* event) {
|
|
|
|
|
|
|
|
QWindow::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) {
|
|
|
|
QWindow::connectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_ConnectNotify(this, handle__ConnectNotify, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ConnectNotify(QMetaMethod* signal) {
|
|
|
|
|
|
|
|
QWindow::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) {
|
|
|
|
QWindow::disconnectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QWindow_DisconnectNotify(this, handle__DisconnectNotify, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_DisconnectNotify(QMetaMethod* signal) {
|
|
|
|
|
|
|
|
QWindow::disconnectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
void QWindow_new(QWindow** outptr_QWindow, QObject** outptr_QObject, QSurface** outptr_QSurface) {
|
|
|
|
MiqtVirtualQWindow* ret = new MiqtVirtualQWindow();
|
|
|
|
*outptr_QWindow = ret;
|
|
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
|
|
*outptr_QSurface = static_cast<QSurface*>(ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QWindow_new2(QWindow* parent, QWindow** outptr_QWindow, QObject** outptr_QObject, QSurface** outptr_QSurface) {
|
|
|
|
MiqtVirtualQWindow* ret = new MiqtVirtualQWindow(parent);
|
|
|
|
*outptr_QWindow = ret;
|
|
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
|
|
*outptr_QSurface = static_cast<QSurface*>(ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QWindow_new3(QScreen* screen, QWindow** outptr_QWindow, QObject** outptr_QObject, QSurface** outptr_QSurface) {
|
|
|
|
MiqtVirtualQWindow* ret = new MiqtVirtualQWindow(screen);
|
|
|
|
*outptr_QWindow = ret;
|
|
|
|
*outptr_QObject = static_cast<QObject*>(ret);
|
|
|
|
*outptr_QSurface = static_cast<QSurface*>(ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QWindow_MetaObject(const QWindow* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QWindow_Metacast(QWindow* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_Tr(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QWindow::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_TrUtf8(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QWindow::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_SetSurfaceType(QWindow* self, int surfaceType) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setSurfaceType(static_cast<QSurface::SurfaceType>(surfaceType));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWindow_SurfaceType(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSurface::SurfaceType _ret = self->surfaceType();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsVisible(const QWindow* self) {
|
|
|
|
return self->isVisible();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWindow_Visibility(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QWindow::Visibility _ret = self->visibility();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_SetVisibility(QWindow* self, int v) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setVisibility(static_cast<QWindow::Visibility>(v));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Create(QWindow* self) {
|
|
|
|
self->create();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QWindow_WinId(const QWindow* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
WId _ret = self->winId();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QWindow* QWindow_Parent(const QWindow* self, int mode) {
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->parent(static_cast<QWindow::AncestorMode>(mode));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWindow* QWindow_Parent2(const QWindow* self) {
|
|
|
|
return self->parent();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetParent(QWindow* self, QWindow* parent) {
|
|
|
|
self->setParent(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsTopLevel(const QWindow* self) {
|
|
|
|
return self->isTopLevel();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsModal(const QWindow* self) {
|
|
|
|
return self->isModal();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWindow_Modality(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::WindowModality _ret = self->modality();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_SetModality(QWindow* self, int modality) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setModality(static_cast<Qt::WindowModality>(modality));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetFormat(QWindow* self, QSurfaceFormat* format) {
|
|
|
|
self->setFormat(*format);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSurfaceFormat* QWindow_Format(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSurfaceFormat(self->format());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSurfaceFormat* QWindow_RequestedFormat(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSurfaceFormat(self->requestedFormat());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetFlags(QWindow* self, int flags) {
|
|
|
|
self->setFlags(static_cast<Qt::WindowFlags>(flags));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_Flags(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::WindowFlags _ret = self->flags();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_SetFlag(QWindow* self, int param1) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setFlag(static_cast<Qt::WindowType>(param1));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWindow_Type(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::WindowType _ret = self->type();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_Title(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->title();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetOpacity(QWindow* self, double level) {
|
|
|
|
self->setOpacity(static_cast<qreal>(level));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QWindow_Opacity(const QWindow* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->opacity();
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetMask(QWindow* self, QRegion* region) {
|
|
|
|
self->setMask(*region);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRegion* QWindow_Mask(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRegion(self->mask());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsActive(const QWindow* self) {
|
|
|
|
return self->isActive();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_ReportContentOrientationChange(QWindow* self, int orientation) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->reportContentOrientationChange(static_cast<Qt::ScreenOrientation>(orientation));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWindow_ContentOrientation(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::ScreenOrientation _ret = self->contentOrientation();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QWindow_DevicePixelRatio(const QWindow* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->devicePixelRatio();
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWindow_WindowState(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::WindowState _ret = self->windowState();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_WindowStates(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::WindowStates _ret = self->windowStates();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_SetWindowState(QWindow* self, int state) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setWindowState(static_cast<Qt::WindowState>(state));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetWindowStates(QWindow* self, int states) {
|
|
|
|
self->setWindowStates(static_cast<Qt::WindowStates>(states));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetTransientParent(QWindow* self, QWindow* parent) {
|
|
|
|
self->setTransientParent(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWindow* QWindow_TransientParent(const QWindow* self) {
|
|
|
|
return self->transientParent();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsAncestorOf(const QWindow* self, QWindow* child) {
|
|
|
|
return self->isAncestorOf(child);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsExposed(const QWindow* self) {
|
|
|
|
return self->isExposed();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_MinimumWidth(const QWindow* self) {
|
|
|
|
return self->minimumWidth();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_MinimumHeight(const QWindow* self) {
|
|
|
|
return self->minimumHeight();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_MaximumWidth(const QWindow* self) {
|
|
|
|
return self->maximumWidth();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_MaximumHeight(const QWindow* self) {
|
|
|
|
return self->maximumHeight();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QWindow_MinimumSize(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->minimumSize());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QWindow_MaximumSize(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->maximumSize());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QWindow_BaseSize(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->baseSize());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QWindow_SizeIncrement(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->sizeIncrement());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetMinimumSize(QWindow* self, QSize* size) {
|
|
|
|
self->setMinimumSize(*size);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetMaximumSize(QWindow* self, QSize* size) {
|
|
|
|
self->setMaximumSize(*size);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetBaseSize(QWindow* self, QSize* size) {
|
|
|
|
self->setBaseSize(*size);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetSizeIncrement(QWindow* self, QSize* size) {
|
|
|
|
self->setSizeIncrement(*size);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRect* QWindow_Geometry(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRect(self->geometry());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMargins* QWindow_FrameMargins(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QMargins(self->frameMargins());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRect* QWindow_FrameGeometry(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRect(self->frameGeometry());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPoint* QWindow_FramePosition(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(self->framePosition());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetFramePosition(QWindow* self, QPoint* point) {
|
|
|
|
self->setFramePosition(*point);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_Width(const QWindow* self) {
|
|
|
|
return self->width();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_Height(const QWindow* self) {
|
|
|
|
return self->height();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_X(const QWindow* self) {
|
|
|
|
return self->x();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_Y(const QWindow* self) {
|
|
|
|
return self->y();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QWindow_Size(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->size());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPoint* QWindow_Position(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(self->position());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetPosition(QWindow* self, QPoint* pt) {
|
|
|
|
self->setPosition(*pt);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetPosition2(QWindow* self, int posx, int posy) {
|
|
|
|
self->setPosition(static_cast<int>(posx), static_cast<int>(posy));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Resize(QWindow* self, QSize* newSize) {
|
|
|
|
self->resize(*newSize);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Resize2(QWindow* self, int w, int h) {
|
|
|
|
self->resize(static_cast<int>(w), static_cast<int>(h));
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
void QWindow_SetFilePath(QWindow* self, struct miqt_string filePath) {
|
|
|
|
QString filePath_QString = QString::fromUtf8(filePath.data, filePath.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setFilePath(filePath_QString);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_FilePath(const QWindow* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->filePath();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetIcon(QWindow* self, QIcon* icon) {
|
|
|
|
self->setIcon(*icon);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QWindow_Icon(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QIcon(self->icon());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Destroy(QWindow* self) {
|
|
|
|
self->destroy();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWindow_SetKeyboardGrabEnabled(QWindow* self, bool grab) {
|
|
|
|
return self->setKeyboardGrabEnabled(grab);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWindow_SetMouseGrabEnabled(QWindow* self, bool grab) {
|
|
|
|
return self->setMouseGrabEnabled(grab);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QScreen* QWindow_Screen(const QWindow* self) {
|
|
|
|
return self->screen();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetScreen(QWindow* self, QScreen* screen) {
|
|
|
|
self->setScreen(screen);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QAccessibleInterface* QWindow_AccessibleRoot(const QWindow* self) {
|
|
|
|
return self->accessibleRoot();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QObject* QWindow_FocusObject(const QWindow* self) {
|
|
|
|
return self->focusObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPoint* QWindow_MapToGlobal(const QWindow* self, QPoint* pos) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(self->mapToGlobal(*pos));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPoint* QWindow_MapFromGlobal(const QWindow* self, QPoint* pos) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPoint(self->mapFromGlobal(*pos));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QCursor* QWindow_Cursor(const QWindow* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QCursor(self->cursor());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetCursor(QWindow* self, QCursor* cursor) {
|
|
|
|
self->setCursor(*cursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_UnsetCursor(QWindow* self) {
|
|
|
|
self->unsetCursor();
|
|
|
|
}
|
|
|
|
|
|
|
|
QWindow* QWindow_FromWinId(uintptr_t id) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return QWindow::fromWinId(static_cast<WId>(id));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_RequestActivate(QWindow* self) {
|
|
|
|
self->requestActivate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetVisible(QWindow* self, bool visible) {
|
|
|
|
self->setVisible(visible);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Show(QWindow* self) {
|
|
|
|
self->show();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Hide(QWindow* self) {
|
|
|
|
self->hide();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_ShowMinimized(QWindow* self) {
|
|
|
|
self->showMinimized();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_ShowMaximized(QWindow* self) {
|
|
|
|
self->showMaximized();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_ShowFullScreen(QWindow* self) {
|
|
|
|
self->showFullScreen();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_ShowNormal(QWindow* self) {
|
|
|
|
self->showNormal();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWindow_Close(QWindow* self) {
|
|
|
|
return self->close();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Raise(QWindow* self) {
|
|
|
|
self->raise();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Lower(QWindow* self) {
|
|
|
|
self->lower();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QWindow_StartSystemResize(QWindow* self, int edges) {
|
|
|
|
return self->startSystemResize(static_cast<Qt::Edges>(edges));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QWindow_StartSystemMove(QWindow* self) {
|
|
|
|
return self->startSystemMove();
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
void QWindow_SetTitle(QWindow* self, struct miqt_string title) {
|
|
|
|
QString title_QString = QString::fromUtf8(title.data, title.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setTitle(title_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetX(QWindow* self, int arg) {
|
|
|
|
self->setX(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetY(QWindow* self, int arg) {
|
|
|
|
self->setY(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetWidth(QWindow* self, int arg) {
|
|
|
|
self->setWidth(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetHeight(QWindow* self, int arg) {
|
|
|
|
self->setHeight(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetGeometry(QWindow* self, int posx, int posy, int w, int h) {
|
|
|
|
self->setGeometry(static_cast<int>(posx), static_cast<int>(posy), static_cast<int>(w), static_cast<int>(h));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetGeometryWithRect(QWindow* self, QRect* rect) {
|
|
|
|
self->setGeometry(*rect);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetMinimumWidth(QWindow* self, int w) {
|
|
|
|
self->setMinimumWidth(static_cast<int>(w));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetMinimumHeight(QWindow* self, int h) {
|
|
|
|
self->setMinimumHeight(static_cast<int>(h));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetMaximumWidth(QWindow* self, int w) {
|
|
|
|
self->setMaximumWidth(static_cast<int>(w));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_SetMaximumHeight(QWindow* self, int h) {
|
|
|
|
self->setMaximumHeight(static_cast<int>(h));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Alert(QWindow* self, int msec) {
|
|
|
|
self->alert(static_cast<int>(msec));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_RequestUpdate(QWindow* self) {
|
|
|
|
self->requestUpdate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_ScreenChanged(QWindow* self, QScreen* screen) {
|
|
|
|
self->screenChanged(screen);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_ScreenChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(QScreen*)>(&QWindow::screenChanged), self, [=](QScreen* screen) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QScreen* sigval1 = screen;
|
|
|
|
miqt_exec_callback_QWindow_ScreenChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_ModalityChanged(QWindow* self, int modality) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->modalityChanged(static_cast<Qt::WindowModality>(modality));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_ModalityChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(Qt::WindowModality)>(&QWindow::modalityChanged), self, [=](Qt::WindowModality modality) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::WindowModality modality_ret = modality;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(modality_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWindow_ModalityChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_WindowStateChanged(QWindow* self, int windowState) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->windowStateChanged(static_cast<Qt::WindowState>(windowState));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_WindowStateChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(Qt::WindowState)>(&QWindow::windowStateChanged), self, [=](Qt::WindowState windowState) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::WindowState windowState_ret = windowState;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(windowState_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWindow_WindowStateChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
void QWindow_WindowTitleChanged(QWindow* self, struct miqt_string title) {
|
|
|
|
QString title_QString = QString::fromUtf8(title.data, title.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->windowTitleChanged(title_QString);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_WindowTitleChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(const QString&)>(&QWindow::windowTitleChanged), self, [=](const QString& title) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QString title_ret = title;
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray title_b = title_ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string title_ms;
|
|
|
|
title_ms.len = title_b.length();
|
|
|
|
title_ms.data = static_cast<char*>(malloc(title_ms.len));
|
|
|
|
memcpy(title_ms.data, title_b.data(), title_ms.len);
|
|
|
|
struct miqt_string sigval1 = title_ms;
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWindow_WindowTitleChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_XChanged(QWindow* self, int arg) {
|
|
|
|
self->xChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_XChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::xChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_XChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_YChanged(QWindow* self, int arg) {
|
|
|
|
self->yChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_YChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::yChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_YChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_WidthChanged(QWindow* self, int arg) {
|
|
|
|
self->widthChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_WidthChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::widthChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_WidthChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_HeightChanged(QWindow* self, int arg) {
|
|
|
|
self->heightChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_HeightChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::heightChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_HeightChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_MinimumWidthChanged(QWindow* self, int arg) {
|
|
|
|
self->minimumWidthChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_MinimumWidthChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::minimumWidthChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_MinimumWidthChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_MinimumHeightChanged(QWindow* self, int arg) {
|
|
|
|
self->minimumHeightChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_MinimumHeightChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::minimumHeightChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_MinimumHeightChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_MaximumWidthChanged(QWindow* self, int arg) {
|
|
|
|
self->maximumWidthChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_MaximumWidthChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::maximumWidthChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_MaximumWidthChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_MaximumHeightChanged(QWindow* self, int arg) {
|
|
|
|
self->maximumHeightChanged(static_cast<int>(arg));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_MaximumHeightChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(int)>(&QWindow::maximumHeightChanged), self, [=](int arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_MaximumHeightChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_VisibleChanged(QWindow* self, bool arg) {
|
|
|
|
self->visibleChanged(arg);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_VisibleChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(bool)>(&QWindow::visibleChanged), self, [=](bool arg) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = arg;
|
|
|
|
miqt_exec_callback_QWindow_VisibleChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_VisibilityChanged(QWindow* self, int visibility) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->visibilityChanged(static_cast<QWindow::Visibility>(visibility));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_VisibilityChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(QWindow::Visibility)>(&QWindow::visibilityChanged), self, [=](QWindow::Visibility visibility) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QWindow::Visibility visibility_ret = visibility;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(visibility_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWindow_VisibilityChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_ActiveChanged(QWindow* self) {
|
|
|
|
self->activeChanged();
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_ActiveChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)()>(&QWindow::activeChanged), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWindow_ActiveChanged(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_ContentOrientationChanged(QWindow* self, int orientation) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->contentOrientationChanged(static_cast<Qt::ScreenOrientation>(orientation));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_ContentOrientationChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(Qt::ScreenOrientation)>(&QWindow::contentOrientationChanged), self, [=](Qt::ScreenOrientation orientation) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::ScreenOrientation orientation_ret = orientation;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(orientation_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWindow_ContentOrientationChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_FocusObjectChanged(QWindow* self, QObject* object) {
|
|
|
|
self->focusObjectChanged(object);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_FocusObjectChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(QObject*)>(&QWindow::focusObjectChanged), self, [=](QObject* object) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QObject* sigval1 = object;
|
|
|
|
miqt_exec_callback_QWindow_FocusObjectChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_OpacityChanged(QWindow* self, double opacity) {
|
|
|
|
self->opacityChanged(static_cast<qreal>(opacity));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_OpacityChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(qreal)>(&QWindow::opacityChanged), self, [=](qreal opacity) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal opacity_ret = opacity;
|
|
|
|
double sigval1 = static_cast<double>(opacity_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWindow_OpacityChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_TransientParentChanged(QWindow* self, QWindow* transientParent) {
|
|
|
|
self->transientParentChanged(transientParent);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWindow_connect_TransientParentChanged(QWindow* self, intptr_t slot) {
|
2024-11-19 06:29:06 +00:00
|
|
|
MiqtVirtualQWindow::connect(self, static_cast<void (QWindow::*)(QWindow*)>(&QWindow::transientParentChanged), self, [=](QWindow* transientParent) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QWindow* sigval1 = transientParent;
|
|
|
|
miqt_exec_callback_QWindow_TransientParentChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_Tr2(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QWindow::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_Tr3(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QWindow::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_TrUtf82(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QWindow::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QWindow_TrUtf83(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QWindow::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWindow_SetFlag2(QWindow* self, int param1, bool on) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setFlag(static_cast<Qt::WindowType>(param1), on);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
bool QWindow_IsAncestorOf2(const QWindow* self, QWindow* child, int mode) {
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isAncestorOf(child, static_cast<QWindow::AncestorMode>(mode));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QWindow_override_virtual_SurfaceType(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__SurfaceType = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
int QWindow_virtualbase_SurfaceType(const void* self) {
|
|
|
|
return ( (const MiqtVirtualQWindow*)(self) )->virtualbase_SurfaceType();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_Format(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__Format = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSurfaceFormat* QWindow_virtualbase_Format(const void* self) {
|
|
|
|
return ( (const MiqtVirtualQWindow*)(self) )->virtualbase_Format();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_Size(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__Size = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSize* QWindow_virtualbase_Size(const void* self) {
|
|
|
|
return ( (const MiqtVirtualQWindow*)(self) )->virtualbase_Size();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_AccessibleRoot(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__AccessibleRoot = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
QAccessibleInterface* QWindow_virtualbase_AccessibleRoot(const void* self) {
|
|
|
|
return ( (const MiqtVirtualQWindow*)(self) )->virtualbase_AccessibleRoot();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_FocusObject(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__FocusObject = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* QWindow_virtualbase_FocusObject(const void* self) {
|
|
|
|
return ( (const MiqtVirtualQWindow*)(self) )->virtualbase_FocusObject();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_ExposeEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__ExposeEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_ExposeEvent(void* self, QExposeEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_ExposeEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_ResizeEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__ResizeEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_ResizeEvent(void* self, QResizeEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_ResizeEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_MoveEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__MoveEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_MoveEvent(void* self, QMoveEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_MoveEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_FocusInEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__FocusInEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_FocusInEvent(void* self, QFocusEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_FocusInEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_FocusOutEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__FocusOutEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_FocusOutEvent(void* self, QFocusEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_FocusOutEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_ShowEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__ShowEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_ShowEvent(void* self, QShowEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_ShowEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_HideEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__HideEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_HideEvent(void* self, QHideEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_HideEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_Event(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__Event = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWindow_virtualbase_Event(void* self, QEvent* param1) {
|
|
|
|
return ( (MiqtVirtualQWindow*)(self) )->virtualbase_Event(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_KeyPressEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__KeyPressEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_KeyPressEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_KeyReleaseEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__KeyReleaseEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_KeyReleaseEvent(void* self, QKeyEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_KeyReleaseEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_MousePressEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__MousePressEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_MousePressEvent(void* self, QMouseEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_MousePressEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_MouseReleaseEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__MouseReleaseEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_MouseReleaseEvent(void* self, QMouseEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_MouseReleaseEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_MouseDoubleClickEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__MouseDoubleClickEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_MouseDoubleClickEvent(void* self, QMouseEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_MouseDoubleClickEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_MouseMoveEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__MouseMoveEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_MouseMoveEvent(void* self, QMouseEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_MouseMoveEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_WheelEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__WheelEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_WheelEvent(void* self, QWheelEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_WheelEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_TouchEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__TouchEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_TouchEvent(void* self, QTouchEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_TouchEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_TabletEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__TabletEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_TabletEvent(void* self, QTabletEvent* param1) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_TabletEvent(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_NativeEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__NativeEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWindow_virtualbase_NativeEvent(void* self, struct miqt_string eventType, void* message, long* result) {
|
|
|
|
return ( (MiqtVirtualQWindow*)(self) )->virtualbase_NativeEvent(eventType, message, result);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_EventFilter(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__EventFilter = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWindow_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQWindow*)(self) )->virtualbase_EventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_TimerEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__TimerEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_TimerEvent(void* self, QTimerEvent* event) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_TimerEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_ChildEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__ChildEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_ChildEvent(void* self, QChildEvent* event) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_ChildEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_CustomEvent(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__CustomEvent = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_CustomEvent(void* self, QEvent* event) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_CustomEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_ConnectNotify(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__ConnectNotify = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_ConnectNotify(signal);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_override_virtual_DisconnectNotify(void* self, intptr_t slot) {
|
|
|
|
dynamic_cast<MiqtVirtualQWindow*>( (QWindow*)(self) )->handle__DisconnectNotify = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQWindow*)(self) )->virtualbase_DisconnectNotify(signal);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWindow_Delete(QWindow* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<MiqtVirtualQWindow*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|