2024-08-25 04:08:24 +00:00
|
|
|
#include <QClipboard>
|
|
|
|
#include <QCursor>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QFont>
|
|
|
|
#include <QGuiApplication>
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QInputMethod>
|
|
|
|
#include <QList>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPalette>
|
|
|
|
#include <QPoint>
|
|
|
|
#include <QScreen>
|
|
|
|
#include <QSessionManager>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QStyleHints>
|
|
|
|
#include <QWindow>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qguiapplication.h"
|
|
|
|
#include "gen_qguiapplication.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QGuiApplication* QGuiApplication_new(int* argc, char** argv) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QGuiApplication(static_cast<int&>(*argc), argv);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QGuiApplication* QGuiApplication_new2(int* argc, char** argv, int param3) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QGuiApplication(static_cast<int&>(*argc), argv, static_cast<int>(param3));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGuiApplication_MetaObject(const QGuiApplication* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QGuiApplication_Metacast(QGuiApplication* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_Tr(const char* s) {
|
|
|
|
QString _ret = QGuiApplication::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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QGuiApplication::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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QGuiApplication_SetApplicationDisplayName(struct miqt_string* name) {
|
|
|
|
QString name_QString = QString::fromUtf8(&name->data, name->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
QGuiApplication::setApplicationDisplayName(name_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_ApplicationDisplayName() {
|
|
|
|
QString _ret = QGuiApplication::applicationDisplayName();
|
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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QGuiApplication_SetDesktopFileName(struct miqt_string* name) {
|
|
|
|
QString name_QString = QString::fromUtf8(&name->data, name->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
QGuiApplication::setDesktopFileName(name_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_DesktopFileName() {
|
|
|
|
QString _ret = QGuiApplication::desktopFileName();
|
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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QGuiApplication_AllWindows() {
|
|
|
|
QWindowList _ret = QGuiApplication::allWindows();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QWindow** _arr = static_cast<QWindow**>(malloc(sizeof(QWindow*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QGuiApplication_TopLevelWindows() {
|
|
|
|
QWindowList _ret = QGuiApplication::topLevelWindows();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QWindow** _arr = static_cast<QWindow**>(malloc(sizeof(QWindow*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QWindow* QGuiApplication_TopLevelAt(QPoint* pos) {
|
|
|
|
return QGuiApplication::topLevelAt(*pos);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SetWindowIcon(QIcon* icon) {
|
|
|
|
QGuiApplication::setWindowIcon(*icon);
|
|
|
|
}
|
|
|
|
|
|
|
|
QIcon* QGuiApplication_WindowIcon() {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QIcon(QGuiApplication::windowIcon());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_PlatformName() {
|
|
|
|
QString _ret = QGuiApplication::platformName();
|
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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QWindow* QGuiApplication_ModalWindow() {
|
|
|
|
return QGuiApplication::modalWindow();
|
|
|
|
}
|
|
|
|
|
|
|
|
QWindow* QGuiApplication_FocusWindow() {
|
|
|
|
return QGuiApplication::focusWindow();
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* QGuiApplication_FocusObject() {
|
|
|
|
return QGuiApplication::focusObject();
|
|
|
|
}
|
|
|
|
|
|
|
|
QScreen* QGuiApplication_PrimaryScreen() {
|
|
|
|
return QGuiApplication::primaryScreen();
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QGuiApplication_Screens() {
|
2024-09-18 00:12:02 +00:00
|
|
|
QList<QScreen *> _ret = QGuiApplication::screens();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QScreen** _arr = static_cast<QScreen**>(malloc(sizeof(QScreen*) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QScreen* QGuiApplication_ScreenAt(QPoint* point) {
|
|
|
|
return QGuiApplication::screenAt(*point);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGuiApplication_DevicePixelRatio(const QGuiApplication* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->devicePixelRatio();
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QCursor* QGuiApplication_OverrideCursor() {
|
|
|
|
return QGuiApplication::overrideCursor();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SetOverrideCursor(QCursor* overrideCursor) {
|
|
|
|
QGuiApplication::setOverrideCursor(*overrideCursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_ChangeOverrideCursor(QCursor* param1) {
|
|
|
|
QGuiApplication::changeOverrideCursor(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_RestoreOverrideCursor() {
|
|
|
|
QGuiApplication::restoreOverrideCursor();
|
|
|
|
}
|
|
|
|
|
|
|
|
QFont* QGuiApplication_Font() {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QFont(QGuiApplication::font());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SetFont(QFont* font) {
|
|
|
|
QGuiApplication::setFont(*font);
|
|
|
|
}
|
|
|
|
|
|
|
|
QClipboard* QGuiApplication_Clipboard() {
|
|
|
|
return QGuiApplication::clipboard();
|
|
|
|
}
|
|
|
|
|
|
|
|
QPalette* QGuiApplication_Palette() {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPalette(QGuiApplication::palette());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SetPalette(QPalette* pal) {
|
|
|
|
QGuiApplication::setPalette(*pal);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
int QGuiApplication_KeyboardModifiers() {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::KeyboardModifiers _ret = QGuiApplication::keyboardModifiers();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QGuiApplication_QueryKeyboardModifiers() {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::KeyboardModifiers _ret = QGuiApplication::queryKeyboardModifiers();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QGuiApplication_MouseButtons() {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::MouseButtons _ret = QGuiApplication::mouseButtons();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGuiApplication_SetLayoutDirection(int direction) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QGuiApplication::setLayoutDirection(static_cast<Qt::LayoutDirection>(direction));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QGuiApplication_LayoutDirection() {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::LayoutDirection _ret = QGuiApplication::layoutDirection();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QGuiApplication_IsRightToLeft() {
|
|
|
|
return QGuiApplication::isRightToLeft();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QGuiApplication_IsLeftToRight() {
|
|
|
|
return QGuiApplication::isLeftToRight();
|
|
|
|
}
|
|
|
|
|
|
|
|
QStyleHints* QGuiApplication_StyleHints() {
|
|
|
|
return QGuiApplication::styleHints();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SetDesktopSettingsAware(bool on) {
|
|
|
|
QGuiApplication::setDesktopSettingsAware(on);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QGuiApplication_DesktopSettingsAware() {
|
|
|
|
return QGuiApplication::desktopSettingsAware();
|
|
|
|
}
|
|
|
|
|
|
|
|
QInputMethod* QGuiApplication_InputMethod() {
|
|
|
|
return QGuiApplication::inputMethod();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SetQuitOnLastWindowClosed(bool quit) {
|
|
|
|
QGuiApplication::setQuitOnLastWindowClosed(quit);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QGuiApplication_QuitOnLastWindowClosed() {
|
|
|
|
return QGuiApplication::quitOnLastWindowClosed();
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QGuiApplication_ApplicationState() {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::ApplicationState _ret = QGuiApplication::applicationState();
|
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 QGuiApplication_SetHighDpiScaleFactorRoundingPolicy(int policy) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(static_cast<Qt::HighDpiScaleFactorRoundingPolicy>(policy));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QGuiApplication_HighDpiScaleFactorRoundingPolicy() {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::HighDpiScaleFactorRoundingPolicy _ret = QGuiApplication::highDpiScaleFactorRoundingPolicy();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
int QGuiApplication_Exec() {
|
|
|
|
return QGuiApplication::exec();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QGuiApplication_Notify(QGuiApplication* self, QObject* param1, QEvent* param2) {
|
|
|
|
return self->notify(param1, param2);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGuiApplication_IsSessionRestored(const QGuiApplication* self) {
|
|
|
|
return self->isSessionRestored();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_SessionId(const QGuiApplication* self) {
|
|
|
|
QString _ret = self->sessionId();
|
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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_SessionKey(const QGuiApplication* self) {
|
|
|
|
QString _ret = self->sessionKey();
|
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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGuiApplication_IsSavingSession(const QGuiApplication* self) {
|
|
|
|
return self->isSavingSession();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QGuiApplication_IsFallbackSessionManagementEnabled() {
|
|
|
|
return QGuiApplication::isFallbackSessionManagementEnabled();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SetFallbackSessionManagementEnabled(bool fallbackSessionManagementEnabled) {
|
|
|
|
QGuiApplication::setFallbackSessionManagementEnabled(fallbackSessionManagementEnabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_Sync() {
|
|
|
|
QGuiApplication::sync();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_FontDatabaseChanged(QGuiApplication* self) {
|
|
|
|
self->fontDatabaseChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_FontDatabaseChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)()>(&QGuiApplication::fontDatabaseChanged), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QGuiApplication_FontDatabaseChanged(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_ScreenAdded(QGuiApplication* self, QScreen* screen) {
|
|
|
|
self->screenAdded(screen);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_ScreenAdded(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(QScreen*)>(&QGuiApplication::screenAdded), self, [=](QScreen* screen) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QScreen* sigval1 = screen;
|
|
|
|
miqt_exec_callback_QGuiApplication_ScreenAdded(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_ScreenRemoved(QGuiApplication* self, QScreen* screen) {
|
|
|
|
self->screenRemoved(screen);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_ScreenRemoved(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(QScreen*)>(&QGuiApplication::screenRemoved), self, [=](QScreen* screen) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QScreen* sigval1 = screen;
|
|
|
|
miqt_exec_callback_QGuiApplication_ScreenRemoved(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_PrimaryScreenChanged(QGuiApplication* self, QScreen* screen) {
|
|
|
|
self->primaryScreenChanged(screen);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_PrimaryScreenChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(QScreen*)>(&QGuiApplication::primaryScreenChanged), self, [=](QScreen* screen) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QScreen* sigval1 = screen;
|
|
|
|
miqt_exec_callback_QGuiApplication_PrimaryScreenChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_LastWindowClosed(QGuiApplication* self) {
|
|
|
|
self->lastWindowClosed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_LastWindowClosed(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)()>(&QGuiApplication::lastWindowClosed), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QGuiApplication_LastWindowClosed(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_FocusObjectChanged(QGuiApplication* self, QObject* focusObject) {
|
|
|
|
self->focusObjectChanged(focusObject);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_FocusObjectChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(QObject*)>(&QGuiApplication::focusObjectChanged), self, [=](QObject* focusObject) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QObject* sigval1 = focusObject;
|
|
|
|
miqt_exec_callback_QGuiApplication_FocusObjectChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_FocusWindowChanged(QGuiApplication* self, QWindow* focusWindow) {
|
|
|
|
self->focusWindowChanged(focusWindow);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_FocusWindowChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(QWindow*)>(&QGuiApplication::focusWindowChanged), self, [=](QWindow* focusWindow) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QWindow* sigval1 = focusWindow;
|
|
|
|
miqt_exec_callback_QGuiApplication_FocusWindowChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGuiApplication_ApplicationStateChanged(QGuiApplication* self, int state) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->applicationStateChanged(static_cast<Qt::ApplicationState>(state));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_ApplicationStateChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(Qt::ApplicationState)>(&QGuiApplication::applicationStateChanged), self, [=](Qt::ApplicationState state) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::ApplicationState state_ret = state;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(state_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QGuiApplication_ApplicationStateChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGuiApplication_LayoutDirectionChanged(QGuiApplication* self, int direction) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->layoutDirectionChanged(static_cast<Qt::LayoutDirection>(direction));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_LayoutDirectionChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(Qt::LayoutDirection)>(&QGuiApplication::layoutDirectionChanged), self, [=](Qt::LayoutDirection direction) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::LayoutDirection direction_ret = direction;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(direction_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QGuiApplication_LayoutDirectionChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_CommitDataRequest(QGuiApplication* self, QSessionManager* sessionManager) {
|
|
|
|
self->commitDataRequest(*sessionManager);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_CommitDataRequest(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(QSessionManager&)>(&QGuiApplication::commitDataRequest), self, [=](QSessionManager& sessionManager) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSessionManager& sessionManager_ret = sessionManager;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QSessionManager* sigval1 = &sessionManager_ret;
|
|
|
|
miqt_exec_callback_QGuiApplication_CommitDataRequest(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_SaveStateRequest(QGuiApplication* self, QSessionManager* sessionManager) {
|
|
|
|
self->saveStateRequest(*sessionManager);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_SaveStateRequest(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(QSessionManager&)>(&QGuiApplication::saveStateRequest), self, [=](QSessionManager& sessionManager) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSessionManager& sessionManager_ret = sessionManager;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QSessionManager* sigval1 = &sessionManager_ret;
|
|
|
|
miqt_exec_callback_QGuiApplication_SaveStateRequest(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_PaletteChanged(QGuiApplication* self, QPalette* pal) {
|
|
|
|
self->paletteChanged(*pal);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_PaletteChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(const QPalette&)>(&QGuiApplication::paletteChanged), self, [=](const QPalette& pal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QPalette& pal_ret = pal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QPalette* sigval1 = const_cast<QPalette*>(&pal_ret);
|
|
|
|
miqt_exec_callback_QGuiApplication_PaletteChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_ApplicationDisplayNameChanged(QGuiApplication* self) {
|
|
|
|
self->applicationDisplayNameChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_ApplicationDisplayNameChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)()>(&QGuiApplication::applicationDisplayNameChanged), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QGuiApplication_ApplicationDisplayNameChanged(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_FontChanged(QGuiApplication* self, QFont* font) {
|
|
|
|
self->fontChanged(*font);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_connect_FontChanged(QGuiApplication* self, void* slot) {
|
|
|
|
QGuiApplication::connect(self, static_cast<void (QGuiApplication::*)(const QFont&)>(&QGuiApplication::fontChanged), self, [=](const QFont& font) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QFont& font_ret = font;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QFont* sigval1 = const_cast<QFont*>(&font_ret);
|
|
|
|
miqt_exec_callback_QGuiApplication_FontChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QGuiApplication::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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGuiApplication::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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QGuiApplication::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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGuiApplication_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGuiApplication::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();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGuiApplication_Delete(QGuiApplication* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|