2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QMAINWINDOW_H
|
|
|
|
#define GEN_QMAINWINDOW_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 QByteArray;
|
|
|
|
class QDockWidget;
|
|
|
|
class QMainWindow;
|
|
|
|
class QMenu;
|
|
|
|
class QMenuBar;
|
|
|
|
class QMetaObject;
|
|
|
|
class QPoint;
|
|
|
|
class QSize;
|
|
|
|
class QStatusBar;
|
|
|
|
class QToolBar;
|
|
|
|
class QWidget;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QDockWidget QDockWidget;
|
|
|
|
typedef struct QMainWindow QMainWindow;
|
|
|
|
typedef struct QMenu QMenu;
|
|
|
|
typedef struct QMenuBar QMenuBar;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QStatusBar QStatusBar;
|
|
|
|
typedef struct QToolBar QToolBar;
|
|
|
|
typedef struct QWidget QWidget;
|
|
|
|
#endif
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QMainWindow* QMainWindow_new();
|
|
|
|
QMainWindow* QMainWindow_new2(QWidget* parent);
|
|
|
|
QMainWindow* QMainWindow_new3(QWidget* parent, int flags);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QMainWindow_MetaObject(const QMainWindow* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QMainWindow_Metacast(QMainWindow* self, const char* param1);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMainWindow_Tr(const char* s);
|
|
|
|
struct miqt_string* QMainWindow_TrUtf8(const char* s);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QMainWindow_IconSize(const QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_SetIconSize(QMainWindow* self, QSize* iconSize);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QMainWindow_ToolButtonStyle(const QMainWindow* self);
|
|
|
|
void QMainWindow_SetToolButtonStyle(QMainWindow* self, int toolButtonStyle);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMainWindow_IsAnimated(const QMainWindow* self);
|
|
|
|
bool QMainWindow_IsDockNestingEnabled(const QMainWindow* self);
|
|
|
|
bool QMainWindow_DocumentMode(const QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_SetDocumentMode(QMainWindow* self, bool enabled);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QMainWindow_TabShape(const QMainWindow* self);
|
|
|
|
void QMainWindow_SetTabShape(QMainWindow* self, int tabShape);
|
|
|
|
int QMainWindow_TabPosition(const QMainWindow* self, int area);
|
|
|
|
void QMainWindow_SetTabPosition(QMainWindow* self, int areas, int tabPosition);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMainWindow_SetDockOptions(QMainWindow* self, int options);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QMainWindow_DockOptions(const QMainWindow* self);
|
|
|
|
bool QMainWindow_IsSeparator(const QMainWindow* self, QPoint* pos);
|
|
|
|
QMenuBar* QMainWindow_MenuBar(const QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_SetMenuBar(QMainWindow* self, QMenuBar* menubar);
|
2024-09-11 05:41:09 +00:00
|
|
|
QWidget* QMainWindow_MenuWidget(const QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_SetMenuWidget(QMainWindow* self, QWidget* menubar);
|
2024-09-11 05:41:09 +00:00
|
|
|
QStatusBar* QMainWindow_StatusBar(const QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_SetStatusBar(QMainWindow* self, QStatusBar* statusbar);
|
2024-09-11 05:41:09 +00:00
|
|
|
QWidget* QMainWindow_CentralWidget(const QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_SetCentralWidget(QMainWindow* self, QWidget* widget);
|
|
|
|
QWidget* QMainWindow_TakeCentralWidget(QMainWindow* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QMainWindow_SetCorner(QMainWindow* self, int corner, int area);
|
|
|
|
int QMainWindow_Corner(const QMainWindow* self, int corner);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMainWindow_AddToolBarBreak(QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_InsertToolBarBreak(QMainWindow* self, QToolBar* before);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QMainWindow_AddToolBar(QMainWindow* self, int area, QToolBar* toolbar);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMainWindow_AddToolBarWithToolbar(QMainWindow* self, QToolBar* toolbar);
|
2024-09-14 22:29:05 +00:00
|
|
|
QToolBar* QMainWindow_AddToolBarWithTitle(QMainWindow* self, struct miqt_string* title);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_InsertToolBar(QMainWindow* self, QToolBar* before, QToolBar* toolbar);
|
|
|
|
void QMainWindow_RemoveToolBar(QMainWindow* self, QToolBar* toolbar);
|
|
|
|
void QMainWindow_RemoveToolBarBreak(QMainWindow* self, QToolBar* before);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMainWindow_UnifiedTitleAndToolBarOnMac(const QMainWindow* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QMainWindow_ToolBarArea(const QMainWindow* self, QToolBar* toolbar);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMainWindow_ToolBarBreak(const QMainWindow* self, QToolBar* toolbar);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QMainWindow_AddDockWidget(QMainWindow* self, int area, QDockWidget* dockwidget);
|
|
|
|
void QMainWindow_AddDockWidget2(QMainWindow* self, int area, QDockWidget* dockwidget, int orientation);
|
|
|
|
void QMainWindow_SplitDockWidget(QMainWindow* self, QDockWidget* after, QDockWidget* dockwidget, int orientation);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_TabifyDockWidget(QMainWindow* self, QDockWidget* first, QDockWidget* second);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_RemoveDockWidget(QMainWindow* self, QDockWidget* dockwidget);
|
|
|
|
bool QMainWindow_RestoreDockWidget(QMainWindow* self, QDockWidget* dockwidget);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QMainWindow_DockWidgetArea(const QMainWindow* self, QDockWidget* dockwidget);
|
|
|
|
void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array* /* of QDockWidget* */ docks, struct miqt_array* /* of int */ sizes, int orientation);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QMainWindow_SaveState(const QMainWindow* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QMainWindow_RestoreState(QMainWindow* self, QByteArray* state);
|
|
|
|
QMenu* QMainWindow_CreatePopupMenu(QMainWindow* self);
|
|
|
|
void QMainWindow_SetAnimated(QMainWindow* self, bool enabled);
|
|
|
|
void QMainWindow_SetDockNestingEnabled(QMainWindow* self, bool enabled);
|
|
|
|
void QMainWindow_SetUnifiedTitleAndToolBarOnMac(QMainWindow* self, bool set);
|
|
|
|
void QMainWindow_IconSizeChanged(QMainWindow* self, QSize* iconSize);
|
|
|
|
void QMainWindow_connect_IconSizeChanged(QMainWindow* self, void* slot);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QMainWindow_ToolButtonStyleChanged(QMainWindow* self, int toolButtonStyle);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMainWindow_connect_ToolButtonStyleChanged(QMainWindow* self, void* slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMainWindow_TabifiedDockWidgetActivated(QMainWindow* self, QDockWidget* dockWidget);
|
|
|
|
void QMainWindow_connect_TabifiedDockWidgetActivated(QMainWindow* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMainWindow_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QMainWindow_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QMainWindow_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QMainWindow_TrUtf83(const char* s, const char* c, int n);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QMainWindow_AddToolBarBreak1(QMainWindow* self, int area);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QMainWindow_SaveState1(const QMainWindow* self, int version);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QMainWindow_RestoreState2(QMainWindow* self, QByteArray* state, int version);
|
|
|
|
void QMainWindow_Delete(QMainWindow* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|