2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QTABBAR_H
|
|
|
|
#define GEN_QTABBAR_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QColor;
|
|
|
|
class QIcon;
|
|
|
|
class QMetaObject;
|
|
|
|
class QPoint;
|
|
|
|
class QRect;
|
|
|
|
class QSize;
|
|
|
|
class QTabBar;
|
|
|
|
class QVariant;
|
|
|
|
class QWidget;
|
|
|
|
#else
|
|
|
|
typedef struct QColor QColor;
|
|
|
|
typedef struct QIcon QIcon;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QRect QRect;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QTabBar QTabBar;
|
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
typedef struct QWidget QWidget;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QTabBar* QTabBar_new();
|
|
|
|
QTabBar* QTabBar_new2(QWidget* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QTabBar_MetaObject(const QTabBar* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTabBar_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QTabBar_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QTabBar_Shape(const QTabBar* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTabBar_SetShape(QTabBar* self, uintptr_t shape);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QTabBar_AddTab(QTabBar* self, const char* text, size_t text_Strlen);
|
|
|
|
int QTabBar_AddTab2(QTabBar* self, QIcon* icon, const char* text, size_t text_Strlen);
|
|
|
|
int QTabBar_InsertTab(QTabBar* self, int index, const char* text, size_t text_Strlen);
|
|
|
|
int QTabBar_InsertTab2(QTabBar* self, int index, QIcon* icon, const char* text, size_t text_Strlen);
|
|
|
|
void QTabBar_RemoveTab(QTabBar* self, int index);
|
|
|
|
void QTabBar_MoveTab(QTabBar* self, int from, int to);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_IsTabEnabled(const QTabBar* self, int index);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabEnabled(QTabBar* self, int index, bool enabled);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_IsTabVisible(const QTabBar* self, int index);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabVisible(QTabBar* self, int index, bool visible);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QTabBar_TabText(const QTabBar* self, int index, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabText(QTabBar* self, int index, const char* text, size_t text_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QTabBar_TabTextColor(const QTabBar* self, int index);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabTextColor(QTabBar* self, int index, QColor* color);
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QTabBar_TabIcon(const QTabBar* self, int index);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabIcon(QTabBar* self, int index, QIcon* icon);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QTabBar_ElideMode(const QTabBar* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTabBar_SetElideMode(QTabBar* self, uintptr_t mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabToolTip(QTabBar* self, int index, const char* tip, size_t tip_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QTabBar_TabToolTip(const QTabBar* self, int index, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabWhatsThis(QTabBar* self, int index, const char* text, size_t text_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QTabBar_TabWhatsThis(const QTabBar* self, int index, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabData(QTabBar* self, int index, QVariant* data);
|
2024-09-11 05:41:09 +00:00
|
|
|
QVariant* QTabBar_TabData(const QTabBar* self, int index);
|
|
|
|
QRect* QTabBar_TabRect(const QTabBar* self, int index);
|
|
|
|
int QTabBar_TabAt(const QTabBar* self, QPoint* pos);
|
|
|
|
int QTabBar_CurrentIndex(const QTabBar* self);
|
|
|
|
int QTabBar_Count(const QTabBar* self);
|
|
|
|
QSize* QTabBar_SizeHint(const QTabBar* self);
|
|
|
|
QSize* QTabBar_MinimumSizeHint(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetDrawBase(QTabBar* self, bool drawTheBase);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_DrawBase(const QTabBar* self);
|
|
|
|
QSize* QTabBar_IconSize(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetIconSize(QTabBar* self, QSize* size);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_UsesScrollButtons(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetUsesScrollButtons(QTabBar* self, bool useButtons);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_TabsClosable(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetTabsClosable(QTabBar* self, bool closable);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTabBar_SetTabButton(QTabBar* self, int index, uintptr_t position, QWidget* widget);
|
2024-09-11 05:41:09 +00:00
|
|
|
QWidget* QTabBar_TabButton(const QTabBar* self, int index, uintptr_t position);
|
|
|
|
uintptr_t QTabBar_SelectionBehaviorOnRemove(const QTabBar* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTabBar_SetSelectionBehaviorOnRemove(QTabBar* self, uintptr_t behavior);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_Expanding(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetExpanding(QTabBar* self, bool enabled);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_IsMovable(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetMovable(QTabBar* self, bool movable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_DocumentMode(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetDocumentMode(QTabBar* self, bool set);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_AutoHide(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetAutoHide(QTabBar* self, bool hide);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTabBar_ChangeCurrentOnDrag(const QTabBar* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetChangeCurrentOnDrag(QTabBar* self, bool change);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QTabBar_AccessibleTabName(const QTabBar* self, int index, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_SetAccessibleTabName(QTabBar* self, int index, const char* name, size_t name_Strlen);
|
|
|
|
void QTabBar_SetCurrentIndex(QTabBar* self, int index);
|
|
|
|
void QTabBar_CurrentChanged(QTabBar* self, int index);
|
|
|
|
void QTabBar_connect_CurrentChanged(QTabBar* self, void* slot);
|
|
|
|
void QTabBar_TabCloseRequested(QTabBar* self, int index);
|
|
|
|
void QTabBar_connect_TabCloseRequested(QTabBar* self, void* slot);
|
|
|
|
void QTabBar_TabMoved(QTabBar* self, int from, int to);
|
|
|
|
void QTabBar_connect_TabMoved(QTabBar* self, void* slot);
|
|
|
|
void QTabBar_TabBarClicked(QTabBar* self, int index);
|
|
|
|
void QTabBar_connect_TabBarClicked(QTabBar* self, void* slot);
|
|
|
|
void QTabBar_TabBarDoubleClicked(QTabBar* self, int index);
|
|
|
|
void QTabBar_connect_TabBarDoubleClicked(QTabBar* self, void* slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTabBar_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QTabBar_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QTabBar_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QTabBar_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTabBar_Delete(QTabBar* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|