2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QWINDOW_H
|
|
|
|
#define GEN_QWINDOW_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QAccessibleInterface;
|
|
|
|
class QCursor;
|
|
|
|
class QIcon;
|
|
|
|
class QMargins;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QPoint;
|
|
|
|
class QRect;
|
|
|
|
class QRegion;
|
|
|
|
class QScreen;
|
|
|
|
class QSize;
|
|
|
|
class QSurfaceFormat;
|
|
|
|
class QWindow;
|
|
|
|
#else
|
|
|
|
typedef struct QAccessibleInterface QAccessibleInterface;
|
|
|
|
typedef struct QCursor QCursor;
|
|
|
|
typedef struct QIcon QIcon;
|
|
|
|
typedef struct QMargins QMargins;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QRect QRect;
|
|
|
|
typedef struct QRegion QRegion;
|
|
|
|
typedef struct QScreen QScreen;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QSurfaceFormat QSurfaceFormat;
|
|
|
|
typedef struct QWindow QWindow;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QWindow* QWindow_new();
|
|
|
|
QWindow* QWindow_new2(QWindow* parent);
|
|
|
|
QWindow* QWindow_new3(QScreen* screen);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QWindow_MetaObject(const QWindow* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWindow_Tr(const char* s);
|
|
|
|
struct miqt_string* QWindow_TrUtf8(const char* s);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetSurfaceType(QWindow* self, uintptr_t surfaceType);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QWindow_SurfaceType(const QWindow* self);
|
|
|
|
bool QWindow_IsVisible(const QWindow* self);
|
|
|
|
uintptr_t QWindow_Visibility(const QWindow* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetVisibility(QWindow* self, uintptr_t v);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_Create(QWindow* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QWindow_WinId(const QWindow* self);
|
|
|
|
QWindow* QWindow_Parent(const QWindow* self, uintptr_t mode);
|
|
|
|
QWindow* QWindow_Parent2(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetParent(QWindow* self, QWindow* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsTopLevel(const QWindow* self);
|
|
|
|
bool QWindow_IsModal(const QWindow* self);
|
|
|
|
uintptr_t QWindow_Modality(const QWindow* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetModality(QWindow* self, uintptr_t modality);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetFormat(QWindow* self, QSurfaceFormat* format);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSurfaceFormat* QWindow_Format(const QWindow* self);
|
|
|
|
QSurfaceFormat* QWindow_RequestedFormat(const QWindow* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetFlags(QWindow* self, int flags);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_Flags(const QWindow* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetFlag(QWindow* self, uintptr_t param1);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QWindow_Type(const QWindow* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWindow_Title(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetOpacity(QWindow* self, double level);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QWindow_Opacity(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetMask(QWindow* self, QRegion* region);
|
2024-09-11 05:41:09 +00:00
|
|
|
QRegion* QWindow_Mask(const QWindow* self);
|
|
|
|
bool QWindow_IsActive(const QWindow* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_ReportContentOrientationChange(QWindow* self, uintptr_t orientation);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QWindow_ContentOrientation(const QWindow* self);
|
|
|
|
double QWindow_DevicePixelRatio(const QWindow* self);
|
|
|
|
uintptr_t QWindow_WindowState(const QWindow* self);
|
|
|
|
int QWindow_WindowStates(const QWindow* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetWindowState(QWindow* self, uintptr_t state);
|
|
|
|
void QWindow_SetWindowStates(QWindow* self, int states);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetTransientParent(QWindow* self, QWindow* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QWindow* QWindow_TransientParent(const QWindow* self);
|
|
|
|
bool QWindow_IsAncestorOf(const QWindow* self, QWindow* child);
|
|
|
|
bool QWindow_IsExposed(const QWindow* self);
|
|
|
|
int QWindow_MinimumWidth(const QWindow* self);
|
|
|
|
int QWindow_MinimumHeight(const QWindow* self);
|
|
|
|
int QWindow_MaximumWidth(const QWindow* self);
|
|
|
|
int QWindow_MaximumHeight(const QWindow* self);
|
|
|
|
QSize* QWindow_MinimumSize(const QWindow* self);
|
|
|
|
QSize* QWindow_MaximumSize(const QWindow* self);
|
|
|
|
QSize* QWindow_BaseSize(const QWindow* self);
|
|
|
|
QSize* QWindow_SizeIncrement(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetMinimumSize(QWindow* self, QSize* size);
|
|
|
|
void QWindow_SetMaximumSize(QWindow* self, QSize* size);
|
|
|
|
void QWindow_SetBaseSize(QWindow* self, QSize* size);
|
|
|
|
void QWindow_SetSizeIncrement(QWindow* self, QSize* size);
|
2024-09-11 05:41:09 +00:00
|
|
|
QRect* QWindow_Geometry(const QWindow* self);
|
|
|
|
QMargins* QWindow_FrameMargins(const QWindow* self);
|
|
|
|
QRect* QWindow_FrameGeometry(const QWindow* self);
|
|
|
|
QPoint* QWindow_FramePosition(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetFramePosition(QWindow* self, QPoint* point);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWindow_Width(const QWindow* self);
|
|
|
|
int QWindow_Height(const QWindow* self);
|
|
|
|
int QWindow_X(const QWindow* self);
|
|
|
|
int QWindow_Y(const QWindow* self);
|
|
|
|
QSize* QWindow_Size(const QWindow* self);
|
|
|
|
QPoint* QWindow_Position(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetPosition(QWindow* self, QPoint* pt);
|
|
|
|
void QWindow_SetPosition2(QWindow* self, int posx, int posy);
|
|
|
|
void QWindow_Resize(QWindow* self, QSize* newSize);
|
|
|
|
void QWindow_Resize2(QWindow* self, int w, int h);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWindow_SetFilePath(QWindow* self, struct miqt_string* filePath);
|
|
|
|
struct miqt_string* QWindow_FilePath(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetIcon(QWindow* self, QIcon* icon);
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QWindow_Icon(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_Destroy(QWindow* self);
|
|
|
|
bool QWindow_SetKeyboardGrabEnabled(QWindow* self, bool grab);
|
|
|
|
bool QWindow_SetMouseGrabEnabled(QWindow* self, bool grab);
|
2024-09-11 05:41:09 +00:00
|
|
|
QScreen* QWindow_Screen(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetScreen(QWindow* self, QScreen* screen);
|
2024-09-11 05:41:09 +00:00
|
|
|
QAccessibleInterface* QWindow_AccessibleRoot(const QWindow* self);
|
|
|
|
QObject* QWindow_FocusObject(const QWindow* self);
|
|
|
|
QPoint* QWindow_MapToGlobal(const QWindow* self, QPoint* pos);
|
|
|
|
QPoint* QWindow_MapFromGlobal(const QWindow* self, QPoint* pos);
|
|
|
|
QCursor* QWindow_Cursor(const QWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetCursor(QWindow* self, QCursor* cursor);
|
|
|
|
void QWindow_UnsetCursor(QWindow* self);
|
|
|
|
QWindow* QWindow_FromWinId(uintptr_t id);
|
|
|
|
void QWindow_RequestActivate(QWindow* self);
|
|
|
|
void QWindow_SetVisible(QWindow* self, bool visible);
|
|
|
|
void QWindow_Show(QWindow* self);
|
|
|
|
void QWindow_Hide(QWindow* self);
|
|
|
|
void QWindow_ShowMinimized(QWindow* self);
|
|
|
|
void QWindow_ShowMaximized(QWindow* self);
|
|
|
|
void QWindow_ShowFullScreen(QWindow* self);
|
|
|
|
void QWindow_ShowNormal(QWindow* self);
|
|
|
|
bool QWindow_Close(QWindow* self);
|
|
|
|
void QWindow_Raise(QWindow* self);
|
|
|
|
void QWindow_Lower(QWindow* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QWindow_StartSystemResize(QWindow* self, int edges);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QWindow_StartSystemMove(QWindow* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWindow_SetTitle(QWindow* self, struct miqt_string* title);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_SetX(QWindow* self, int arg);
|
|
|
|
void QWindow_SetY(QWindow* self, int arg);
|
|
|
|
void QWindow_SetWidth(QWindow* self, int arg);
|
|
|
|
void QWindow_SetHeight(QWindow* self, int arg);
|
|
|
|
void QWindow_SetGeometry(QWindow* self, int posx, int posy, int w, int h);
|
|
|
|
void QWindow_SetGeometryWithRect(QWindow* self, QRect* rect);
|
|
|
|
void QWindow_SetMinimumWidth(QWindow* self, int w);
|
|
|
|
void QWindow_SetMinimumHeight(QWindow* self, int h);
|
|
|
|
void QWindow_SetMaximumWidth(QWindow* self, int w);
|
|
|
|
void QWindow_SetMaximumHeight(QWindow* self, int h);
|
|
|
|
void QWindow_Alert(QWindow* self, int msec);
|
|
|
|
void QWindow_RequestUpdate(QWindow* self);
|
|
|
|
void QWindow_ScreenChanged(QWindow* self, QScreen* screen);
|
|
|
|
void QWindow_connect_ScreenChanged(QWindow* self, void* slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_ModalityChanged(QWindow* self, uintptr_t modality);
|
|
|
|
void QWindow_connect_ModalityChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_WindowStateChanged(QWindow* self, uintptr_t windowState);
|
|
|
|
void QWindow_connect_WindowStateChanged(QWindow* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWindow_WindowTitleChanged(QWindow* self, struct miqt_string* title);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_connect_WindowTitleChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_XChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_XChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_YChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_YChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_WidthChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_WidthChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_HeightChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_HeightChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_MinimumWidthChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_MinimumWidthChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_MinimumHeightChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_MinimumHeightChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_MaximumWidthChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_MaximumWidthChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_MaximumHeightChanged(QWindow* self, int arg);
|
|
|
|
void QWindow_connect_MaximumHeightChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_VisibleChanged(QWindow* self, bool arg);
|
|
|
|
void QWindow_connect_VisibleChanged(QWindow* self, void* slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_VisibilityChanged(QWindow* self, uintptr_t visibility);
|
|
|
|
void QWindow_connect_VisibilityChanged(QWindow* self, void* slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_ActiveChanged(QWindow* self);
|
|
|
|
void QWindow_connect_ActiveChanged(QWindow* self, void* slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_ContentOrientationChanged(QWindow* self, uintptr_t orientation);
|
|
|
|
void QWindow_connect_ContentOrientationChanged(QWindow* self, void* slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_FocusObjectChanged(QWindow* self, QObject* object);
|
|
|
|
void QWindow_connect_FocusObjectChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_OpacityChanged(QWindow* self, double opacity);
|
|
|
|
void QWindow_connect_OpacityChanged(QWindow* self, void* slot);
|
|
|
|
void QWindow_TransientParentChanged(QWindow* self, QWindow* transientParent);
|
|
|
|
void QWindow_connect_TransientParentChanged(QWindow* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWindow_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QWindow_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QWindow_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QWindow_TrUtf83(const char* s, const char* c, int n);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWindow_SetFlag2(QWindow* self, uintptr_t param1, bool on);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWindow_IsAncestorOf2(const QWindow* self, QWindow* child, uintptr_t mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWindow_Delete(QWindow* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|