2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QMENU_H
|
|
|
|
#define GEN_QMENU_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 QAction;
|
|
|
|
class QIcon;
|
|
|
|
class QMenu;
|
|
|
|
class QMetaObject;
|
|
|
|
class QPoint;
|
|
|
|
class QRect;
|
|
|
|
class QSize;
|
|
|
|
class QWidget;
|
|
|
|
#else
|
|
|
|
typedef struct QAction QAction;
|
|
|
|
typedef struct QIcon QIcon;
|
|
|
|
typedef struct QMenu QMenu;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QRect QRect;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QWidget QWidget;
|
|
|
|
#endif
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
QMenu* QMenu_new(QWidget* parent);
|
|
|
|
QMenu* QMenu_new2();
|
|
|
|
QMenu* QMenu_new3(struct miqt_string title);
|
2024-10-18 23:53:33 +00:00
|
|
|
QMenu* QMenu_new4(struct miqt_string title, QWidget* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QMenu_MetaObject(const QMenu* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QMenu_Metacast(QMenu* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QMenu_Tr(const char* s);
|
|
|
|
struct miqt_string QMenu_TrUtf8(const char* s);
|
|
|
|
QAction* QMenu_AddAction(QMenu* self, struct miqt_string text);
|
|
|
|
QAction* QMenu_AddAction2(QMenu* self, QIcon* icon, struct miqt_string text);
|
2024-08-25 04:08:24 +00:00
|
|
|
QAction* QMenu_AddMenu(QMenu* self, QMenu* menu);
|
2024-10-18 23:53:33 +00:00
|
|
|
QMenu* QMenu_AddMenuWithTitle(QMenu* self, struct miqt_string title);
|
|
|
|
QMenu* QMenu_AddMenu2(QMenu* self, QIcon* icon, struct miqt_string title);
|
2024-08-25 04:08:24 +00:00
|
|
|
QAction* QMenu_AddSeparator(QMenu* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
QAction* QMenu_AddSection(QMenu* self, struct miqt_string text);
|
|
|
|
QAction* QMenu_AddSection2(QMenu* self, QIcon* icon, struct miqt_string text);
|
2024-08-25 04:08:24 +00:00
|
|
|
QAction* QMenu_InsertMenu(QMenu* self, QAction* before, QMenu* menu);
|
|
|
|
QAction* QMenu_InsertSeparator(QMenu* self, QAction* before);
|
2024-10-18 23:53:33 +00:00
|
|
|
QAction* QMenu_InsertSection(QMenu* self, QAction* before, struct miqt_string text);
|
|
|
|
QAction* QMenu_InsertSection2(QMenu* self, QAction* before, QIcon* icon, struct miqt_string text);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMenu_IsEmpty(const QMenu* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_Clear(QMenu* self);
|
|
|
|
void QMenu_SetTearOffEnabled(QMenu* self, bool tearOffEnabled);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMenu_IsTearOffEnabled(const QMenu* self);
|
|
|
|
bool QMenu_IsTearOffMenuVisible(const QMenu* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_ShowTearOffMenu(QMenu* self);
|
|
|
|
void QMenu_ShowTearOffMenuWithPos(QMenu* self, QPoint* pos);
|
|
|
|
void QMenu_HideTearOffMenu(QMenu* self);
|
|
|
|
void QMenu_SetDefaultAction(QMenu* self, QAction* defaultAction);
|
2024-09-11 05:41:09 +00:00
|
|
|
QAction* QMenu_DefaultAction(const QMenu* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_SetActiveAction(QMenu* self, QAction* act);
|
2024-09-11 05:41:09 +00:00
|
|
|
QAction* QMenu_ActiveAction(const QMenu* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_Popup(QMenu* self, QPoint* pos);
|
|
|
|
QAction* QMenu_Exec(QMenu* self);
|
|
|
|
QAction* QMenu_ExecWithPos(QMenu* self, QPoint* pos);
|
2024-11-04 07:18:27 +00:00
|
|
|
QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QMenu_SizeHint(const QMenu* self);
|
|
|
|
QRect* QMenu_ActionGeometry(const QMenu* self, QAction* param1);
|
|
|
|
QAction* QMenu_ActionAt(const QMenu* self, QPoint* param1);
|
|
|
|
QAction* QMenu_MenuAction(const QMenu* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QMenu_Title(const QMenu* self);
|
|
|
|
void QMenu_SetTitle(QMenu* self, struct miqt_string title);
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QMenu_Icon(const QMenu* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_SetIcon(QMenu* self, QIcon* icon);
|
|
|
|
void QMenu_SetNoReplayFor(QMenu* self, QWidget* widget);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMenu_SeparatorsCollapsible(const QMenu* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_SetSeparatorsCollapsible(QMenu* self, bool collapse);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMenu_ToolTipsVisible(const QMenu* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_SetToolTipsVisible(QMenu* self, bool visible);
|
|
|
|
void QMenu_AboutToShow(QMenu* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QMenu_connect_AboutToShow(QMenu* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_AboutToHide(QMenu* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QMenu_connect_AboutToHide(QMenu* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_Triggered(QMenu* self, QAction* action);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QMenu_connect_Triggered(QMenu* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_Hovered(QMenu* self, QAction* action);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QMenu_connect_Hovered(QMenu* self, intptr_t slot);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QMenu_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QMenu_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QMenu_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QMenu_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_Popup2(QMenu* self, QPoint* pos, QAction* at);
|
|
|
|
QAction* QMenu_Exec22(QMenu* self, QPoint* pos, QAction* at);
|
2024-11-04 07:18:27 +00:00
|
|
|
QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at);
|
|
|
|
QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMenu_Delete(QMenu* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|