miqt/qt/gen_qtoolbox.h

65 lines
2.7 KiB
C++

#ifndef GEN_QTOOLBOX_H
#define GEN_QTOOLBOX_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QIcon;
class QMetaObject;
class QToolBox;
class QWidget;
#else
typedef struct QIcon QIcon;
typedef struct QMetaObject QMetaObject;
typedef struct QToolBox QToolBox;
typedef struct QWidget QWidget;
#endif
QToolBox* QToolBox_new();
QToolBox* QToolBox_new2(QWidget* parent);
QToolBox* QToolBox_new3(QWidget* parent, int f);
QMetaObject* QToolBox_MetaObject(const QToolBox* self);
void QToolBox_Tr(const char* s, char** _out, int* _out_Strlen);
void QToolBox_TrUtf8(const char* s, char** _out, int* _out_Strlen);
int QToolBox_AddItem(QToolBox* self, QWidget* widget, const char* text, size_t text_Strlen);
int QToolBox_AddItem2(QToolBox* self, QWidget* widget, QIcon* icon, const char* text, size_t text_Strlen);
int QToolBox_InsertItem(QToolBox* self, int index, QWidget* widget, const char* text, size_t text_Strlen);
int QToolBox_InsertItem2(QToolBox* self, int index, QWidget* widget, QIcon* icon, const char* text, size_t text_Strlen);
void QToolBox_RemoveItem(QToolBox* self, int index);
void QToolBox_SetItemEnabled(QToolBox* self, int index, bool enabled);
bool QToolBox_IsItemEnabled(const QToolBox* self, int index);
void QToolBox_SetItemText(QToolBox* self, int index, const char* text, size_t text_Strlen);
void QToolBox_ItemText(const QToolBox* self, int index, char** _out, int* _out_Strlen);
void QToolBox_SetItemIcon(QToolBox* self, int index, QIcon* icon);
QIcon* QToolBox_ItemIcon(const QToolBox* self, int index);
void QToolBox_SetItemToolTip(QToolBox* self, int index, const char* toolTip, size_t toolTip_Strlen);
void QToolBox_ItemToolTip(const QToolBox* self, int index, char** _out, int* _out_Strlen);
int QToolBox_CurrentIndex(const QToolBox* self);
QWidget* QToolBox_CurrentWidget(const QToolBox* self);
QWidget* QToolBox_Widget(const QToolBox* self, int index);
int QToolBox_IndexOf(const QToolBox* self, QWidget* widget);
int QToolBox_Count(const QToolBox* self);
void QToolBox_SetCurrentIndex(QToolBox* self, int index);
void QToolBox_SetCurrentWidget(QToolBox* self, QWidget* widget);
void QToolBox_CurrentChanged(QToolBox* self, int index);
void QToolBox_connect_CurrentChanged(QToolBox* self, void* slot);
void QToolBox_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
void QToolBox_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
void QToolBox_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
void QToolBox_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
void QToolBox_Delete(QToolBox* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif