2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QMIMEDATA_H
|
|
|
|
#define GEN_QMIMEDATA_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 QByteArray;
|
|
|
|
class QMetaObject;
|
|
|
|
class QMimeData;
|
|
|
|
class QUrl;
|
|
|
|
class QVariant;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QMimeData QMimeData;
|
|
|
|
typedef struct QUrl QUrl;
|
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QMimeData* QMimeData_new();
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QMimeData_MetaObject(const QMimeData* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMimeData_Tr(const char* s);
|
|
|
|
struct miqt_string* QMimeData_TrUtf8(const char* s);
|
|
|
|
struct miqt_array* QMimeData_Urls(const QMimeData* self);
|
2024-09-16 07:33:40 +00:00
|
|
|
void QMimeData_SetUrls(QMimeData* self, struct miqt_array* /* of QUrl* */ urls);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMimeData_HasUrls(const QMimeData* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMimeData_Text(const QMimeData* self);
|
|
|
|
void QMimeData_SetText(QMimeData* self, struct miqt_string* text);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMimeData_HasText(const QMimeData* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMimeData_Html(const QMimeData* self);
|
|
|
|
void QMimeData_SetHtml(QMimeData* self, struct miqt_string* html);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMimeData_HasHtml(const QMimeData* self);
|
|
|
|
QVariant* QMimeData_ImageData(const QMimeData* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMimeData_SetImageData(QMimeData* self, QVariant* image);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMimeData_HasImage(const QMimeData* self);
|
|
|
|
QVariant* QMimeData_ColorData(const QMimeData* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMimeData_SetColorData(QMimeData* self, QVariant* color);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QMimeData_HasColor(const QMimeData* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray* QMimeData_Data(const QMimeData* self, struct miqt_string* mimetype);
|
|
|
|
void QMimeData_SetData(QMimeData* self, struct miqt_string* mimetype, QByteArray* data);
|
|
|
|
void QMimeData_RemoveFormat(QMimeData* self, struct miqt_string* mimetype);
|
|
|
|
bool QMimeData_HasFormat(const QMimeData* self, struct miqt_string* mimetype);
|
|
|
|
struct miqt_array* QMimeData_Formats(const QMimeData* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMimeData_Clear(QMimeData* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMimeData_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QMimeData_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QMimeData_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QMimeData_TrUtf83(const char* s, const char* c, int n);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMimeData_Delete(QMimeData* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|