2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QACTION_H
|
|
|
|
#define GEN_QACTION_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 QAction;
|
|
|
|
class QActionGroup;
|
|
|
|
class QFont;
|
|
|
|
class QGraphicsWidget;
|
|
|
|
class QIcon;
|
|
|
|
class QKeySequence;
|
|
|
|
class QMenu;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QVariant;
|
|
|
|
class QWidget;
|
|
|
|
#else
|
|
|
|
typedef struct QAction QAction;
|
|
|
|
typedef struct QActionGroup QActionGroup;
|
|
|
|
typedef struct QFont QFont;
|
|
|
|
typedef struct QGraphicsWidget QGraphicsWidget;
|
|
|
|
typedef struct QIcon QIcon;
|
|
|
|
typedef struct QKeySequence QKeySequence;
|
|
|
|
typedef struct QMenu QMenu;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
typedef struct QWidget QWidget;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QAction* QAction_new();
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction* QAction_new2(struct miqt_string* text);
|
|
|
|
QAction* QAction_new3(QIcon* icon, struct miqt_string* text);
|
2024-08-25 04:08:24 +00:00
|
|
|
QAction* QAction_new4(QObject* parent);
|
2024-09-14 22:29:05 +00:00
|
|
|
QAction* QAction_new5(struct miqt_string* text, QObject* parent);
|
|
|
|
QAction* QAction_new6(QIcon* icon, struct miqt_string* text, QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QAction_MetaObject(const QAction* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_Tr(const char* s);
|
|
|
|
struct miqt_string* QAction_TrUtf8(const char* s);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetActionGroup(QAction* self, QActionGroup* group);
|
2024-09-11 05:41:09 +00:00
|
|
|
QActionGroup* QAction_ActionGroup(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetIcon(QAction* self, QIcon* icon);
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QAction_Icon(const QAction* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QAction_SetText(QAction* self, struct miqt_string* text);
|
|
|
|
struct miqt_string* QAction_Text(const QAction* self);
|
|
|
|
void QAction_SetIconText(QAction* self, struct miqt_string* text);
|
|
|
|
struct miqt_string* QAction_IconText(const QAction* self);
|
|
|
|
void QAction_SetToolTip(QAction* self, struct miqt_string* tip);
|
|
|
|
struct miqt_string* QAction_ToolTip(const QAction* self);
|
|
|
|
void QAction_SetStatusTip(QAction* self, struct miqt_string* statusTip);
|
|
|
|
struct miqt_string* QAction_StatusTip(const QAction* self);
|
|
|
|
void QAction_SetWhatsThis(QAction* self, struct miqt_string* what);
|
|
|
|
struct miqt_string* QAction_WhatsThis(const QAction* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QAction_SetPriority(QAction* self, uintptr_t priority);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QAction_Priority(const QAction* self);
|
|
|
|
QMenu* QAction_Menu(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetMenu(QAction* self, QMenu* menu);
|
|
|
|
void QAction_SetSeparator(QAction* self, bool b);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsSeparator(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetShortcut(QAction* self, QKeySequence* shortcut);
|
2024-09-11 05:41:09 +00:00
|
|
|
QKeySequence* QAction_Shortcut(const QAction* self);
|
2024-09-16 07:33:40 +00:00
|
|
|
void QAction_SetShortcuts(QAction* self, struct miqt_array* /* of QKeySequence* */ shortcuts);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QAction_SetShortcutsWithShortcuts(QAction* self, uintptr_t shortcuts);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QAction_Shortcuts(const QAction* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QAction_SetShortcutContext(QAction* self, uintptr_t context);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QAction_ShortcutContext(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetAutoRepeat(QAction* self, bool autoRepeat);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_AutoRepeat(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetFont(QAction* self, QFont* font);
|
2024-09-11 05:41:09 +00:00
|
|
|
QFont* QAction_Font(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetCheckable(QAction* self, bool checkable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsCheckable(const QAction* self);
|
|
|
|
QVariant* QAction_Data(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetData(QAction* self, QVariant* varVal);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsChecked(const QAction* self);
|
|
|
|
bool QAction_IsEnabled(const QAction* self);
|
|
|
|
bool QAction_IsVisible(const QAction* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QAction_Activate(QAction* self, uintptr_t event);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QAction_ShowStatusText(QAction* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QAction_SetMenuRole(QAction* self, uintptr_t menuRole);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QAction_MenuRole(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetIconVisibleInMenu(QAction* self, bool visible);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsIconVisibleInMenu(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_SetShortcutVisibleInContextMenu(QAction* self, bool show);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QAction_IsShortcutVisibleInContextMenu(const QAction* self);
|
|
|
|
QWidget* QAction_ParentWidget(const QAction* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QAction_AssociatedWidgets(const QAction* self);
|
|
|
|
struct miqt_array* QAction_AssociatedGraphicsWidgets(const QAction* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_Trigger(QAction* self);
|
|
|
|
void QAction_Hover(QAction* self);
|
|
|
|
void QAction_SetChecked(QAction* self, bool checked);
|
|
|
|
void QAction_Toggle(QAction* self);
|
|
|
|
void QAction_SetEnabled(QAction* self, bool enabled);
|
|
|
|
void QAction_SetDisabled(QAction* self, bool b);
|
|
|
|
void QAction_SetVisible(QAction* self, bool visible);
|
|
|
|
void QAction_Changed(QAction* self);
|
|
|
|
void QAction_connect_Changed(QAction* self, void* slot);
|
|
|
|
void QAction_Triggered(QAction* self);
|
2024-09-07 03:31:00 +00:00
|
|
|
void QAction_connect_Triggered(QAction* self, void* slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QAction_Hovered(QAction* self);
|
|
|
|
void QAction_connect_Hovered(QAction* self, void* slot);
|
|
|
|
void QAction_Toggled(QAction* self, bool param1);
|
|
|
|
void QAction_connect_Toggled(QAction* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QAction_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QAction_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QAction_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QAction_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QAction_ShowStatusText1(QAction* self, QWidget* widget);
|
|
|
|
void QAction_Triggered1(QAction* self, bool checked);
|
|
|
|
void QAction_connect_Triggered1(QAction* self, void* slot);
|
|
|
|
void QAction_Delete(QAction* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|