2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QITEMDELEGATE_H
|
|
|
|
#define GEN_QITEMDELEGATE_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 QAbstractItemModel;
|
|
|
|
class QItemDelegate;
|
|
|
|
class QItemEditorFactory;
|
|
|
|
class QMetaObject;
|
|
|
|
class QModelIndex;
|
|
|
|
class QObject;
|
|
|
|
class QPainter;
|
|
|
|
class QSize;
|
|
|
|
class QStyleOptionViewItem;
|
|
|
|
class QWidget;
|
|
|
|
#else
|
|
|
|
typedef struct QAbstractItemModel QAbstractItemModel;
|
|
|
|
typedef struct QItemDelegate QItemDelegate;
|
|
|
|
typedef struct QItemEditorFactory QItemEditorFactory;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QModelIndex QModelIndex;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QPainter QPainter;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QStyleOptionViewItem QStyleOptionViewItem;
|
|
|
|
typedef struct QWidget QWidget;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QItemDelegate* QItemDelegate_new();
|
|
|
|
QItemDelegate* QItemDelegate_new2(QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QItemDelegate_MetaObject(const QItemDelegate* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QItemDelegate_Metacast(QItemDelegate* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QItemDelegate_Tr(const char* s);
|
|
|
|
struct miqt_string QItemDelegate_TrUtf8(const char* s);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QItemDelegate_HasClipping(const QItemDelegate* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QItemDelegate_SetClipping(QItemDelegate* self, bool clip);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QItemDelegate_Paint(const QItemDelegate* self, QPainter* painter, QStyleOptionViewItem* option, QModelIndex* index);
|
|
|
|
QSize* QItemDelegate_SizeHint(const QItemDelegate* self, QStyleOptionViewItem* option, QModelIndex* index);
|
|
|
|
QWidget* QItemDelegate_CreateEditor(const QItemDelegate* self, QWidget* parent, QStyleOptionViewItem* option, QModelIndex* index);
|
|
|
|
void QItemDelegate_SetEditorData(const QItemDelegate* self, QWidget* editor, QModelIndex* index);
|
|
|
|
void QItemDelegate_SetModelData(const QItemDelegate* self, QWidget* editor, QAbstractItemModel* model, QModelIndex* index);
|
|
|
|
void QItemDelegate_UpdateEditorGeometry(const QItemDelegate* self, QWidget* editor, QStyleOptionViewItem* option, QModelIndex* index);
|
|
|
|
QItemEditorFactory* QItemDelegate_ItemEditorFactory(const QItemDelegate* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QItemDelegate_SetItemEditorFactory(QItemDelegate* self, QItemEditorFactory* factory);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QItemDelegate_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QItemDelegate_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QItemDelegate_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QItemDelegate_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QItemDelegate_Delete(QItemDelegate* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|