2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QLISTVIEW_H
|
|
|
|
#define GEN_QLISTVIEW_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 QListView;
|
|
|
|
class QMetaObject;
|
|
|
|
class QModelIndex;
|
|
|
|
class QPoint;
|
|
|
|
class QRect;
|
|
|
|
class QSize;
|
|
|
|
class QWidget;
|
|
|
|
#else
|
|
|
|
typedef struct QListView QListView;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QModelIndex QModelIndex;
|
|
|
|
typedef struct QPoint QPoint;
|
|
|
|
typedef struct QRect QRect;
|
|
|
|
typedef struct QSize QSize;
|
|
|
|
typedef struct QWidget QWidget;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QListView* QListView_new();
|
|
|
|
QListView* QListView_new2(QWidget* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QListView_MetaObject(const QListView* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QListView_Metacast(QListView* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QListView_Tr(const char* s);
|
|
|
|
struct miqt_string QListView_TrUtf8(const char* s);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QListView_SetMovement(QListView* self, int movement);
|
|
|
|
int QListView_Movement(const QListView* self);
|
|
|
|
void QListView_SetFlow(QListView* self, int flow);
|
|
|
|
int QListView_Flow(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetWrapping(QListView* self, bool enable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QListView_IsWrapping(const QListView* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QListView_SetResizeMode(QListView* self, int mode);
|
|
|
|
int QListView_ResizeMode(const QListView* self);
|
|
|
|
void QListView_SetLayoutMode(QListView* self, int mode);
|
|
|
|
int QListView_LayoutMode(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetSpacing(QListView* self, int space);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QListView_Spacing(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetBatchSize(QListView* self, int batchSize);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QListView_BatchSize(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetGridSize(QListView* self, QSize* size);
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QListView_GridSize(const QListView* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QListView_SetViewMode(QListView* self, int mode);
|
|
|
|
int QListView_ViewMode(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_ClearPropertyFlags(QListView* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QListView_IsRowHidden(const QListView* self, int row);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetRowHidden(QListView* self, int row, bool hide);
|
|
|
|
void QListView_SetModelColumn(QListView* self, int column);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QListView_ModelColumn(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetUniformItemSizes(QListView* self, bool enable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QListView_UniformItemSizes(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetWordWrap(QListView* self, bool on);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QListView_WordWrap(const QListView* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_SetSelectionRectVisible(QListView* self, bool show);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QListView_IsSelectionRectVisible(const QListView* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QListView_SetItemAlignment(QListView* self, int alignment);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QListView_ItemAlignment(const QListView* self);
|
|
|
|
QRect* QListView_VisualRect(const QListView* self, QModelIndex* index);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QListView_ScrollTo(QListView* self, QModelIndex* index);
|
2024-09-11 05:41:09 +00:00
|
|
|
QModelIndex* QListView_IndexAt(const QListView* self, QPoint* p);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_DoItemsLayout(QListView* self);
|
|
|
|
void QListView_Reset(QListView* self);
|
|
|
|
void QListView_SetRootIndex(QListView* self, QModelIndex* index);
|
2024-09-16 07:33:40 +00:00
|
|
|
void QListView_IndexesMoved(QListView* self, struct miqt_array* /* of QModelIndex* */ indexes);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QListView_connect_IndexesMoved(QListView* self, intptr_t slot);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QListView_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QListView_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QListView_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QListView_TrUtf83(const char* s, const char* c, int n);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QListView_ScrollTo2(QListView* self, QModelIndex* index, int hint);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QListView_Delete(QListView* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|