miqt/qt/gen_qrgba64.h

52 lines
1.6 KiB
C
Raw Normal View History

#ifndef GEN_QRGBA64_H
#define GEN_QRGBA64_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QRgba64;
#else
typedef struct QRgba64 QRgba64;
#endif
QRgba64* QRgba64_new();
QRgba64* QRgba64_new2(QRgba64* param1);
2024-08-29 07:01:51 +00:00
QRgba64* QRgba64_FromRgba64(unsigned long long c);
QRgba64* QRgba64_FromRgba642(uint16_t red, uint16_t green, uint16_t blue, uint16_t alpha);
2024-08-29 07:01:51 +00:00
QRgba64* QRgba64_FromRgba(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha);
QRgba64* QRgba64_FromArgb32(unsigned int rgb);
bool QRgba64_IsOpaque(QRgba64* self);
bool QRgba64_IsTransparent(QRgba64* self);
uint16_t QRgba64_Red(QRgba64* self);
uint16_t QRgba64_Green(QRgba64* self);
uint16_t QRgba64_Blue(QRgba64* self);
uint16_t QRgba64_Alpha(QRgba64* self);
void QRgba64_SetRed(QRgba64* self, uint16_t _red);
void QRgba64_SetGreen(QRgba64* self, uint16_t _green);
void QRgba64_SetBlue(QRgba64* self, uint16_t _blue);
void QRgba64_SetAlpha(QRgba64* self, uint16_t _alpha);
2024-08-29 07:01:51 +00:00
unsigned char QRgba64_Red8(QRgba64* self);
unsigned char QRgba64_Green8(QRgba64* self);
unsigned char QRgba64_Blue8(QRgba64* self);
unsigned char QRgba64_Alpha8(QRgba64* self);
unsigned int QRgba64_ToArgb32(QRgba64* self);
uint16_t QRgba64_ToRgb16(QRgba64* self);
QRgba64* QRgba64_Premultiplied(QRgba64* self);
QRgba64* QRgba64_Unpremultiplied(QRgba64* self);
2024-08-29 07:01:51 +00:00
void QRgba64_OperatorAssign(QRgba64* self, unsigned long long _rgba);
void QRgba64_Delete(QRgba64* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif