2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QIMAGEWRITER_H
|
|
|
|
#define GEN_QIMAGEWRITER_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
class QIODevice;
|
|
|
|
class QImage;
|
|
|
|
class QImageWriter;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QImage QImage;
|
|
|
|
typedef struct QImageWriter QImageWriter;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QImageWriter* QImageWriter_new();
|
|
|
|
QImageWriter* QImageWriter_new2(QIODevice* device, QByteArray* format);
|
|
|
|
QImageWriter* QImageWriter_new3(const char* fileName, size_t fileName_Strlen);
|
|
|
|
QImageWriter* QImageWriter_new4(const char* fileName, size_t fileName_Strlen, QByteArray* format);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QImageWriter_Tr(const char* sourceText, char** _out, int* _out_Strlen);
|
|
|
|
void QImageWriter_TrUtf8(const char* sourceText, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetFormat(QImageWriter* self, QByteArray* format);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QImageWriter_Format(const QImageWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetDevice(QImageWriter* self, QIODevice* device);
|
2024-09-11 05:41:09 +00:00
|
|
|
QIODevice* QImageWriter_Device(const QImageWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetFileName(QImageWriter* self, const char* fileName, size_t fileName_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QImageWriter_FileName(const QImageWriter* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetQuality(QImageWriter* self, int quality);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QImageWriter_Quality(const QImageWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetCompression(QImageWriter* self, int compression);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QImageWriter_Compression(const QImageWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetGamma(QImageWriter* self, float gamma);
|
2024-09-11 05:41:09 +00:00
|
|
|
float QImageWriter_Gamma(const QImageWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetSubType(QImageWriter* self, QByteArray* typeVal);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QImageWriter_SubType(const QImageWriter* self);
|
|
|
|
void QImageWriter_SupportedSubTypes(const QImageWriter* self, QByteArray*** _out, size_t* _out_len);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetOptimizedWrite(QImageWriter* self, bool optimize);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QImageWriter_OptimizedWrite(const QImageWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetProgressiveScanWrite(QImageWriter* self, bool progressive);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QImageWriter_ProgressiveScanWrite(const QImageWriter* self);
|
|
|
|
int QImageWriter_Transformation(const QImageWriter* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QImageWriter_SetTransformation(QImageWriter* self, int orientation);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetDescription(QImageWriter* self, const char* description, size_t description_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QImageWriter_Description(const QImageWriter* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SetText(QImageWriter* self, const char* key, size_t key_Strlen, const char* text, size_t text_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QImageWriter_CanWrite(const QImageWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QImageWriter_Write(QImageWriter* self, QImage* image);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QImageWriter_Error(const QImageWriter* self);
|
|
|
|
void QImageWriter_ErrorString(const QImageWriter* self, char** _out, int* _out_Strlen);
|
|
|
|
bool QImageWriter_SupportsOption(const QImageWriter* self, uintptr_t option);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_SupportedImageFormats(QByteArray*** _out, size_t* _out_len);
|
|
|
|
void QImageWriter_SupportedMimeTypes(QByteArray*** _out, size_t* _out_len);
|
|
|
|
void QImageWriter_ImageFormatsForMimeType(QByteArray* mimeType, QByteArray*** _out, size_t* _out_len);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QImageWriter_Tr2(const char* sourceText, const char* disambiguation, char** _out, int* _out_Strlen);
|
|
|
|
void QImageWriter_Tr3(const char* sourceText, const char* disambiguation, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QImageWriter_TrUtf82(const char* sourceText, const char* disambiguation, char** _out, int* _out_Strlen);
|
|
|
|
void QImageWriter_TrUtf83(const char* sourceText, const char* disambiguation, int n, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QImageWriter_Delete(QImageWriter* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|