2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QGUIAPPLICATION_H
|
|
|
|
#define GEN_QGUIAPPLICATION_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QClipboard;
|
|
|
|
class QCursor;
|
|
|
|
class QEvent;
|
|
|
|
class QFont;
|
|
|
|
class QGuiApplication;
|
|
|
|
class QIcon;
|
|
|
|
class QInputMethod;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QPalette;
|
|
|
|
class QPoint;
|
|
|
|
class QScreen;
|
|
|
|
class QSessionManager;
|
|
|
|
class QStyleHints;
|
|
|
|
class QWindow;
|
|
|
|
#else
|
|
|
|
typedef struct QClipboard QClipboard;
|
|
|
|
typedef struct QCursor QCursor;
|
|
|
|
typedef struct QEvent QEvent;
|
|
|
|
typedef struct QFont QFont;
|
|
|
|
typedef struct QGuiApplication QGuiApplication;
|
|
|
|
typedef struct QIcon QIcon;
|
|
|
|
typedef struct QInputMethod QInputMethod;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QPalette QPalette;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QScreen QScreen;
|
|
|
|
typedef struct QSessionManager QSessionManager;
|
|
|
|
typedef struct QStyleHints QStyleHints;
|
|
|
|
typedef struct QWindow QWindow;
|
|
|
|
#endif
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QGuiApplication* QGuiApplication_new(int* argc, char** argv);
|
|
|
|
QGuiApplication* QGuiApplication_new2(int* argc, char** argv, int param3);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGuiApplication_MetaObject(const QGuiApplication* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QGuiApplication_Metacast(QGuiApplication* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QGuiApplication_Tr(const char* s);
|
|
|
|
struct miqt_string QGuiApplication_TrUtf8(const char* s);
|
|
|
|
void QGuiApplication_SetApplicationDisplayName(struct miqt_string name);
|
|
|
|
struct miqt_string QGuiApplication_ApplicationDisplayName();
|
|
|
|
void QGuiApplication_SetDesktopFileName(struct miqt_string name);
|
|
|
|
struct miqt_string QGuiApplication_DesktopFileName();
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QGuiApplication_AllWindows();
|
|
|
|
struct miqt_array* QGuiApplication_TopLevelWindows();
|
2024-08-25 04:08:24 +00:00
|
|
|
QWindow* QGuiApplication_TopLevelAt(QPoint* pos);
|
|
|
|
void QGuiApplication_SetWindowIcon(QIcon* icon);
|
|
|
|
QIcon* QGuiApplication_WindowIcon();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QGuiApplication_PlatformName();
|
2024-08-25 04:08:24 +00:00
|
|
|
QWindow* QGuiApplication_ModalWindow();
|
|
|
|
QWindow* QGuiApplication_FocusWindow();
|
|
|
|
QObject* QGuiApplication_FocusObject();
|
|
|
|
QScreen* QGuiApplication_PrimaryScreen();
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QGuiApplication_Screens();
|
2024-08-25 04:08:24 +00:00
|
|
|
QScreen* QGuiApplication_ScreenAt(QPoint* point);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGuiApplication_DevicePixelRatio(const QGuiApplication* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
QCursor* QGuiApplication_OverrideCursor();
|
|
|
|
void QGuiApplication_SetOverrideCursor(QCursor* overrideCursor);
|
|
|
|
void QGuiApplication_ChangeOverrideCursor(QCursor* param1);
|
|
|
|
void QGuiApplication_RestoreOverrideCursor();
|
|
|
|
QFont* QGuiApplication_Font();
|
|
|
|
void QGuiApplication_SetFont(QFont* font);
|
|
|
|
QClipboard* QGuiApplication_Clipboard();
|
|
|
|
QPalette* QGuiApplication_Palette();
|
|
|
|
void QGuiApplication_SetPalette(QPalette* pal);
|
2024-08-29 07:01:51 +00:00
|
|
|
int QGuiApplication_KeyboardModifiers();
|
|
|
|
int QGuiApplication_QueryKeyboardModifiers();
|
|
|
|
int QGuiApplication_MouseButtons();
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGuiApplication_SetLayoutDirection(int direction);
|
|
|
|
int QGuiApplication_LayoutDirection();
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QGuiApplication_IsRightToLeft();
|
|
|
|
bool QGuiApplication_IsLeftToRight();
|
|
|
|
QStyleHints* QGuiApplication_StyleHints();
|
|
|
|
void QGuiApplication_SetDesktopSettingsAware(bool on);
|
|
|
|
bool QGuiApplication_DesktopSettingsAware();
|
|
|
|
QInputMethod* QGuiApplication_InputMethod();
|
|
|
|
void QGuiApplication_SetQuitOnLastWindowClosed(bool quit);
|
|
|
|
bool QGuiApplication_QuitOnLastWindowClosed();
|
2024-09-18 00:12:02 +00:00
|
|
|
int QGuiApplication_ApplicationState();
|
|
|
|
void QGuiApplication_SetHighDpiScaleFactorRoundingPolicy(int policy);
|
|
|
|
int QGuiApplication_HighDpiScaleFactorRoundingPolicy();
|
2024-08-25 04:08:24 +00:00
|
|
|
int QGuiApplication_Exec();
|
|
|
|
bool QGuiApplication_Notify(QGuiApplication* self, QObject* param1, QEvent* param2);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGuiApplication_IsSessionRestored(const QGuiApplication* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QGuiApplication_SessionId(const QGuiApplication* self);
|
|
|
|
struct miqt_string QGuiApplication_SessionKey(const QGuiApplication* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGuiApplication_IsSavingSession(const QGuiApplication* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QGuiApplication_IsFallbackSessionManagementEnabled();
|
|
|
|
void QGuiApplication_SetFallbackSessionManagementEnabled(bool fallbackSessionManagementEnabled);
|
|
|
|
void QGuiApplication_Sync();
|
|
|
|
void QGuiApplication_FontDatabaseChanged(QGuiApplication* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_FontDatabaseChanged(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_ScreenAdded(QGuiApplication* self, QScreen* screen);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_ScreenAdded(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_ScreenRemoved(QGuiApplication* self, QScreen* screen);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_ScreenRemoved(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_PrimaryScreenChanged(QGuiApplication* self, QScreen* screen);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_PrimaryScreenChanged(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_LastWindowClosed(QGuiApplication* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_LastWindowClosed(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_FocusObjectChanged(QGuiApplication* self, QObject* focusObject);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_FocusObjectChanged(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_FocusWindowChanged(QGuiApplication* self, QWindow* focusWindow);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_FocusWindowChanged(QGuiApplication* self, intptr_t slot);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGuiApplication_ApplicationStateChanged(QGuiApplication* self, int state);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_ApplicationStateChanged(QGuiApplication* self, intptr_t slot);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGuiApplication_LayoutDirectionChanged(QGuiApplication* self, int direction);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_LayoutDirectionChanged(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_CommitDataRequest(QGuiApplication* self, QSessionManager* sessionManager);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_CommitDataRequest(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_SaveStateRequest(QGuiApplication* self, QSessionManager* sessionManager);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_SaveStateRequest(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_PaletteChanged(QGuiApplication* self, QPalette* pal);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_PaletteChanged(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_ApplicationDisplayNameChanged(QGuiApplication* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_ApplicationDisplayNameChanged(QGuiApplication* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_FontChanged(QGuiApplication* self, QFont* font);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QGuiApplication_connect_FontChanged(QGuiApplication* self, intptr_t slot);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QGuiApplication_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QGuiApplication_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QGuiApplication_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QGuiApplication_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGuiApplication_Delete(QGuiApplication* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|