miqt/qt/gen_qcolor.h
2025-02-01 13:45:22 +13:00

175 lines
8.0 KiB
C++

#pragma once
#ifndef MIQT_QT_GEN_QCOLOR_H
#define MIQT_QT_GEN_QCOLOR_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "../libmiqt/libmiqt.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QColor;
class QRgba64;
class QVariant;
#else
typedef struct QColor QColor;
typedef struct QRgba64 QRgba64;
typedef struct QVariant QVariant;
#endif
QColor* QColor_new();
QColor* QColor_new2(int color);
QColor* QColor_new3(int r, int g, int b);
QColor* QColor_new4(unsigned int rgb);
QColor* QColor_new5(QRgba64* rgba64);
QColor* QColor_new6(struct miqt_string name);
QColor* QColor_new7(const char* aname);
QColor* QColor_new8(int spec);
QColor* QColor_new9(QColor* color);
QColor* QColor_new10(int spec, uint16_t a1, uint16_t a2, uint16_t a3, uint16_t a4);
QColor* QColor_new11(int r, int g, int b, int a);
QColor* QColor_new12(int spec, uint16_t a1, uint16_t a2, uint16_t a3, uint16_t a4, uint16_t a5);
void QColor_operatorAssign(QColor* self, QColor* param1);
void QColor_operatorAssignWithColor(QColor* self, int color);
bool QColor_isValid(const QColor* self);
struct miqt_string QColor_name(const QColor* self);
struct miqt_string QColor_nameWithFormat(const QColor* self, int format);
void QColor_setNamedColor(QColor* self, struct miqt_string name);
struct miqt_array /* of struct miqt_string */ QColor_colorNames();
int QColor_spec(const QColor* self);
int QColor_alpha(const QColor* self);
void QColor_setAlpha(QColor* self, int alpha);
double QColor_alphaF(const QColor* self);
void QColor_setAlphaF(QColor* self, double alpha);
int QColor_red(const QColor* self);
int QColor_green(const QColor* self);
int QColor_blue(const QColor* self);
void QColor_setRed(QColor* self, int red);
void QColor_setGreen(QColor* self, int green);
void QColor_setBlue(QColor* self, int blue);
double QColor_redF(const QColor* self);
double QColor_greenF(const QColor* self);
double QColor_blueF(const QColor* self);
void QColor_setRedF(QColor* self, double red);
void QColor_setGreenF(QColor* self, double green);
void QColor_setBlueF(QColor* self, double blue);
void QColor_getRgb(const QColor* self, int* r, int* g, int* b);
void QColor_setRgb(QColor* self, int r, int g, int b);
void QColor_getRgbF(const QColor* self, double* r, double* g, double* b);
void QColor_setRgbF(QColor* self, double r, double g, double b);
QRgba64* QColor_rgba64(const QColor* self);
void QColor_setRgba64(QColor* self, QRgba64* rgba);
unsigned int QColor_rgba(const QColor* self);
void QColor_setRgba(QColor* self, unsigned int rgba);
unsigned int QColor_rgb(const QColor* self);
void QColor_setRgbWithRgb(QColor* self, unsigned int rgb);
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);
void QColor_setHsv(QColor* self, int h, int s, int v);
void QColor_getHsvF(const QColor* self, double* h, double* s, double* v);
void QColor_setHsvF(QColor* self, double h, double s, double v);
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);
void QColor_getCmyk(QColor* self, int* c, int* m, int* y, int* k);
void QColor_getCmyk2(const QColor* self, int* c, int* m, int* y, int* k);
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);
void QColor_getCmykF2(const QColor* self, double* c, double* m, double* y, double* k);
void QColor_setCmykF(QColor* self, double c, double m, double y, double k);
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);
void QColor_setHsl(QColor* self, int h, int s, int l);
void QColor_getHslF(const QColor* self, double* h, double* s, double* l);
void QColor_setHslF(QColor* self, double h, double s, double l);
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);
QColor* QColor_convertTo(const QColor* self, int colorSpec);
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);
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);
QVariant* QColor_ToQVariant(const QColor* self);
bool QColor_isValidColor(struct miqt_string name);
void QColor_getRgb4(const QColor* self, int* r, int* g, int* b, int* a);
void QColor_setRgb4(QColor* self, int r, int g, int b, int a);
void QColor_getRgbF4(const QColor* self, double* r, double* g, double* b, double* a);
void QColor_setRgbF4(QColor* self, double r, double g, double b, double a);
void QColor_getHsv4(const QColor* self, int* h, int* s, int* v, int* a);
void QColor_setHsv4(QColor* self, int h, int s, int v, int a);
void QColor_getHsvF4(const QColor* self, double* h, double* s, double* v, double* a);
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);
void QColor_getCmyk52(const QColor* self, int* c, int* m, int* y, int* k, int* a);
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);
void QColor_getCmykF52(const QColor* self, double* c, double* m, double* y, double* k, double* a);
void QColor_setCmykF5(QColor* self, double c, double m, double y, double k, double a);
void QColor_getHsl4(const QColor* self, int* h, int* s, int* l, int* a);
void QColor_setHsl4(QColor* self, int h, int s, int l, int a);
void QColor_getHslF4(const QColor* self, double* h, double* s, double* l, double* a);
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);
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);
void QColor_delete(QColor* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif