2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QCOLORSPACE_H
|
|
|
|
#define GEN_QCOLORSPACE_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 QColorSpace;
|
|
|
|
class QColorTransform;
|
|
|
|
class QPointF;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QColorSpace QColorSpace;
|
|
|
|
typedef struct QColorTransform QColorTransform;
|
|
|
|
typedef struct QPointF QPointF;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QColorSpace* QColorSpace_new();
|
2024-09-18 00:12:02 +00:00
|
|
|
QColorSpace* QColorSpace_new2(int namedColorSpace);
|
|
|
|
QColorSpace* QColorSpace_new3(int primaries, int transferFunction);
|
|
|
|
QColorSpace* QColorSpace_new4(int primaries, float gamma);
|
|
|
|
QColorSpace* QColorSpace_new5(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, int transferFunction);
|
2024-08-29 07:01:51 +00:00
|
|
|
QColorSpace* QColorSpace_new6(QColorSpace* colorSpace);
|
2024-09-18 00:12:02 +00:00
|
|
|
QColorSpace* QColorSpace_new7(int primaries, int transferFunction, float gamma);
|
|
|
|
QColorSpace* QColorSpace_new8(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, int transferFunction, float gamma);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColorSpace_OperatorAssign(QColorSpace* self, QColorSpace* colorSpace);
|
|
|
|
void QColorSpace_Swap(QColorSpace* self, QColorSpace* colorSpace);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QColorSpace_Primaries(const QColorSpace* self);
|
|
|
|
int QColorSpace_TransferFunction(const QColorSpace* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
float QColorSpace_Gamma(const QColorSpace* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QColorSpace_SetTransferFunction(QColorSpace* self, int transferFunction);
|
|
|
|
QColorSpace* QColorSpace_WithTransferFunction(const QColorSpace* self, int transferFunction);
|
|
|
|
void QColorSpace_SetPrimaries(QColorSpace* self, int primariesId);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QColorSpace_SetPrimaries2(QColorSpace* self, QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QColorSpace_IsValid(const QColorSpace* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
QColorSpace* QColorSpace_FromIccProfile(QByteArray* iccProfile);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QColorSpace_IccProfile(const QColorSpace* self);
|
|
|
|
QColorTransform* QColorSpace_TransformationToColorSpace(const QColorSpace* self, QColorSpace* colorspace);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QColorSpace_SetTransferFunction2(QColorSpace* self, int transferFunction, float gamma);
|
|
|
|
QColorSpace* QColorSpace_WithTransferFunction2(const QColorSpace* self, int transferFunction, float gamma);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColorSpace_Delete(QColorSpace* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|