2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QTOOLBUTTON_H
|
|
|
|
#define GEN_QTOOLBUTTON_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 QMenu;
|
|
|
|
class QMetaObject;
|
|
|
|
class QSize;
|
|
|
|
class QToolButton;
|
|
|
|
class QWidget;
|
|
|
|
#else
|
|
|
|
typedef struct QAction QAction;
|
|
|
|
typedef struct QMenu QMenu;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QToolButton QToolButton;
|
|
|
|
typedef struct QWidget QWidget;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QToolButton* QToolButton_new();
|
|
|
|
QToolButton* QToolButton_new2(QWidget* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QToolButton_MetaObject(const QToolButton* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QToolButton_Tr(const char* s);
|
|
|
|
struct miqt_string* QToolButton_TrUtf8(const char* s);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QToolButton_SizeHint(const QToolButton* self);
|
|
|
|
QSize* QToolButton_MinimumSizeHint(const QToolButton* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QToolButton_ToolButtonStyle(const QToolButton* self);
|
|
|
|
int QToolButton_ArrowType(const QToolButton* self);
|
|
|
|
void QToolButton_SetArrowType(QToolButton* self, int typeVal);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QToolButton_SetMenu(QToolButton* self, QMenu* menu);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMenu* QToolButton_Menu(const QToolButton* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QToolButton_SetPopupMode(QToolButton* self, int mode);
|
|
|
|
int QToolButton_PopupMode(const QToolButton* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QAction* QToolButton_DefaultAction(const QToolButton* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QToolButton_SetAutoRaise(QToolButton* self, bool enable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QToolButton_AutoRaise(const QToolButton* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QToolButton_ShowMenu(QToolButton* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QToolButton_SetToolButtonStyle(QToolButton* self, int style);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QToolButton_SetDefaultAction(QToolButton* self, QAction* defaultAction);
|
|
|
|
void QToolButton_Triggered(QToolButton* self, QAction* param1);
|
|
|
|
void QToolButton_connect_Triggered(QToolButton* self, void* slot);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QToolButton_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QToolButton_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QToolButton_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QToolButton_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QToolButton_Delete(QToolButton* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|