2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QCOLOR_H
|
|
|
|
#define GEN_QCOLOR_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 QColor;
|
|
|
|
class QRgba64;
|
|
|
|
#else
|
|
|
|
typedef struct QColor QColor;
|
|
|
|
typedef struct QRgba64 QRgba64;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QColor* QColor_new();
|
2024-09-18 00:12:02 +00:00
|
|
|
QColor* QColor_new2(int color);
|
2024-08-29 07:01:51 +00:00
|
|
|
QColor* QColor_new3(int r, int g, int b);
|
|
|
|
QColor* QColor_new4(unsigned int rgb);
|
|
|
|
QColor* QColor_new5(QRgba64* rgba64);
|
2024-09-14 22:29:05 +00:00
|
|
|
QColor* QColor_new6(struct miqt_string* name);
|
2024-08-29 07:01:51 +00:00
|
|
|
QColor* QColor_new7(const char* aname);
|
2024-09-18 00:12:02 +00:00
|
|
|
QColor* QColor_new8(int spec);
|
2024-08-29 07:01:51 +00:00
|
|
|
QColor* QColor_new9(QColor* color);
|
2024-09-18 00:12:02 +00:00
|
|
|
QColor* QColor_new10(int spec, uint16_t a1, uint16_t a2, uint16_t a3, uint16_t a4);
|
2024-08-29 07:01:51 +00:00
|
|
|
QColor* QColor_new11(int r, int g, int b, int a);
|
2024-09-18 00:12:02 +00:00
|
|
|
QColor* QColor_new12(int spec, uint16_t a1, uint16_t a2, uint16_t a3, uint16_t a4, uint16_t a5);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_OperatorAssign(QColor* self, QColor* param1);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QColor_OperatorAssignWithColor(QColor* self, int color);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QColor_IsValid(const QColor* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QColor_Name(const QColor* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
struct miqt_string* QColor_NameWithFormat(const QColor* self, int format);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QColor_SetNamedColor(QColor* self, struct miqt_string* name);
|
|
|
|
struct miqt_array* QColor_ColorNames();
|
2024-09-18 00:12:02 +00:00
|
|
|
int QColor_Spec(const QColor* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QColor_Alpha(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetAlpha(QColor* self, int alpha);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QColor_AlphaF(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetAlphaF(QColor* self, double alpha);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QColor_Red(const QColor* self);
|
|
|
|
int QColor_Green(const QColor* self);
|
|
|
|
int QColor_Blue(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRed(QColor* self, int red);
|
|
|
|
void QColor_SetGreen(QColor* self, int green);
|
|
|
|
void QColor_SetBlue(QColor* self, int blue);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QColor_RedF(const QColor* self);
|
|
|
|
double QColor_GreenF(const QColor* self);
|
|
|
|
double QColor_BlueF(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRedF(QColor* self, double red);
|
|
|
|
void QColor_SetGreenF(QColor* self, double green);
|
|
|
|
void QColor_SetBlueF(QColor* self, double blue);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetRgb(const QColor* self, int* r, int* g, int* b);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRgb(QColor* self, int r, int g, int b);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetRgbF(const QColor* self, double* r, double* g, double* b);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRgbF(QColor* self, double r, double g, double b);
|
2024-09-11 05:41:09 +00:00
|
|
|
QRgba64* QColor_Rgba64(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRgba64(QColor* self, QRgba64* rgba);
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QColor_Rgba(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRgba(QColor* self, unsigned int rgba);
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QColor_Rgb(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRgbWithRgb(QColor* self, unsigned int rgb);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QColor_Hue(const QColor* self);
|
|
|
|
int QColor_Saturation(const QColor* self);
|
|
|
|
int QColor_HsvHue(const QColor* self);
|
|
|
|
int QColor_HsvSaturation(const QColor* self);
|
|
|
|
int QColor_Value(const QColor* self);
|
|
|
|
double QColor_HueF(const QColor* self);
|
|
|
|
double QColor_SaturationF(const QColor* self);
|
|
|
|
double QColor_HsvHueF(const QColor* self);
|
|
|
|
double QColor_HsvSaturationF(const QColor* self);
|
|
|
|
double QColor_ValueF(const QColor* self);
|
|
|
|
void QColor_GetHsv(const QColor* self, int* h, int* s, int* v);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHsv(QColor* self, int h, int s, int v);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetHsvF(const QColor* self, double* h, double* s, double* v);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHsvF(QColor* self, double h, double s, double v);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QColor_Cyan(const QColor* self);
|
|
|
|
int QColor_Magenta(const QColor* self);
|
|
|
|
int QColor_Yellow(const QColor* self);
|
|
|
|
int QColor_Black(const QColor* self);
|
|
|
|
double QColor_CyanF(const QColor* self);
|
|
|
|
double QColor_MagentaF(const QColor* self);
|
|
|
|
double QColor_YellowF(const QColor* self);
|
|
|
|
double QColor_BlackF(const QColor* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_GetCmyk(QColor* self, int* c, int* m, int* y, int* k);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetCmyk2(const QColor* self, int* c, int* m, int* y, int* k);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetCmyk(QColor* self, int c, int m, int y, int k);
|
|
|
|
void QColor_GetCmykF(QColor* self, double* c, double* m, double* y, double* k);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetCmykF2(const QColor* self, double* c, double* m, double* y, double* k);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetCmykF(QColor* self, double c, double m, double y, double k);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QColor_HslHue(const QColor* self);
|
|
|
|
int QColor_HslSaturation(const QColor* self);
|
|
|
|
int QColor_Lightness(const QColor* self);
|
|
|
|
double QColor_HslHueF(const QColor* self);
|
|
|
|
double QColor_HslSaturationF(const QColor* self);
|
|
|
|
double QColor_LightnessF(const QColor* self);
|
|
|
|
void QColor_GetHsl(const QColor* self, int* h, int* s, int* l);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHsl(QColor* self, int h, int s, int l);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetHslF(const QColor* self, double* h, double* s, double* l);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHslF(QColor* self, double h, double s, double l);
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QColor_ToRgb(const QColor* self);
|
|
|
|
QColor* QColor_ToHsv(const QColor* self);
|
|
|
|
QColor* QColor_ToCmyk(const QColor* self);
|
|
|
|
QColor* QColor_ToHsl(const QColor* self);
|
|
|
|
QColor* QColor_ToExtendedRgb(const QColor* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
QColor* QColor_ConvertTo(const QColor* self, int colorSpec);
|
2024-08-25 04:08:24 +00:00
|
|
|
QColor* QColor_FromRgb(unsigned int rgb);
|
|
|
|
QColor* QColor_FromRgba(unsigned int rgba);
|
|
|
|
QColor* QColor_FromRgb2(int r, int g, int b);
|
|
|
|
QColor* QColor_FromRgbF(double r, double g, double b);
|
|
|
|
QColor* QColor_FromRgba64(uint16_t r, uint16_t g, uint16_t b);
|
|
|
|
QColor* QColor_FromRgba64WithRgba(QRgba64* rgba);
|
|
|
|
QColor* QColor_FromHsv(int h, int s, int v);
|
|
|
|
QColor* QColor_FromHsvF(double h, double s, double v);
|
|
|
|
QColor* QColor_FromCmyk(int c, int m, int y, int k);
|
|
|
|
QColor* QColor_FromCmykF(double c, double m, double y, double k);
|
|
|
|
QColor* QColor_FromHsl(int h, int s, int l);
|
|
|
|
QColor* QColor_FromHslF(double h, double s, double l);
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QColor_Light(const QColor* self);
|
|
|
|
QColor* QColor_Dark(const QColor* self);
|
|
|
|
QColor* QColor_Lighter(const QColor* self);
|
|
|
|
QColor* QColor_Darker(const QColor* self);
|
|
|
|
bool QColor_OperatorEqual(const QColor* self, QColor* c);
|
|
|
|
bool QColor_OperatorNotEqual(const QColor* self, QColor* c);
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QColor_IsValidColor(struct miqt_string* name);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetRgb4(const QColor* self, int* r, int* g, int* b, int* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRgb4(QColor* self, int r, int g, int b, int a);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetRgbF4(const QColor* self, double* r, double* g, double* b, double* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetRgbF4(QColor* self, double r, double g, double b, double a);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetHsv4(const QColor* self, int* h, int* s, int* v, int* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHsv4(QColor* self, int h, int s, int v, int a);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetHsvF4(const QColor* self, double* h, double* s, double* v, double* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHsvF4(QColor* self, double h, double s, double v, double a);
|
|
|
|
void QColor_GetCmyk5(QColor* self, int* c, int* m, int* y, int* k, int* a);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetCmyk52(const QColor* self, int* c, int* m, int* y, int* k, int* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetCmyk5(QColor* self, int c, int m, int y, int k, int a);
|
|
|
|
void QColor_GetCmykF5(QColor* self, double* c, double* m, double* y, double* k, double* a);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetCmykF52(const QColor* self, double* c, double* m, double* y, double* k, double* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetCmykF5(QColor* self, double c, double m, double y, double k, double a);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetHsl4(const QColor* self, int* h, int* s, int* l, int* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHsl4(QColor* self, int h, int s, int l, int a);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QColor_GetHslF4(const QColor* self, double* h, double* s, double* l, double* a);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_SetHslF4(QColor* self, double h, double s, double l, double a);
|
|
|
|
QColor* QColor_FromRgb4(int r, int g, int b, int a);
|
|
|
|
QColor* QColor_FromRgbF4(double r, double g, double b, double a);
|
|
|
|
QColor* QColor_FromRgba644(uint16_t r, uint16_t g, uint16_t b, uint16_t a);
|
|
|
|
QColor* QColor_FromHsv4(int h, int s, int v, int a);
|
|
|
|
QColor* QColor_FromHsvF4(double h, double s, double v, double a);
|
|
|
|
QColor* QColor_FromCmyk5(int c, int m, int y, int k, int a);
|
|
|
|
QColor* QColor_FromCmykF5(double c, double m, double y, double k, double a);
|
|
|
|
QColor* QColor_FromHsl4(int h, int s, int l, int a);
|
|
|
|
QColor* QColor_FromHslF4(double h, double s, double l, double a);
|
2024-09-11 05:41:09 +00:00
|
|
|
QColor* QColor_Light1(const QColor* self, int f);
|
|
|
|
QColor* QColor_Dark1(const QColor* self, int f);
|
|
|
|
QColor* QColor_Lighter1(const QColor* self, int f);
|
|
|
|
QColor* QColor_Darker1(const QColor* self, int f);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QColor_Delete(QColor* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|