2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QRGBA64_H
|
|
|
|
#define MIQT_QT_GEN_QRGBA64_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QRgba64;
|
|
|
|
#else
|
|
|
|
typedef struct QRgba64 QRgba64;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QRgba64_new(QRgba64** outptr_QRgba64);
|
|
|
|
void QRgba64_new2(QRgba64* param1, QRgba64** outptr_QRgba64);
|
2024-08-29 07:01:51 +00:00
|
|
|
QRgba64* QRgba64_FromRgba64(unsigned long long c);
|
2024-08-25 04:08:24 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
QRgba64* QRgba64_FromArgb32(unsigned int rgb);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QRgba64_IsOpaque(const QRgba64* self);
|
|
|
|
bool QRgba64_IsTransparent(const QRgba64* self);
|
|
|
|
uint16_t QRgba64_Red(const QRgba64* self);
|
|
|
|
uint16_t QRgba64_Green(const QRgba64* self);
|
|
|
|
uint16_t QRgba64_Blue(const QRgba64* self);
|
|
|
|
uint16_t QRgba64_Alpha(const QRgba64* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
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-09-11 05:41:09 +00:00
|
|
|
unsigned char QRgba64_Red8(const QRgba64* self);
|
|
|
|
unsigned char QRgba64_Green8(const QRgba64* self);
|
|
|
|
unsigned char QRgba64_Blue8(const QRgba64* self);
|
|
|
|
unsigned char QRgba64_Alpha8(const QRgba64* self);
|
|
|
|
unsigned int QRgba64_ToArgb32(const QRgba64* self);
|
|
|
|
uint16_t QRgba64_ToRgb16(const QRgba64* self);
|
|
|
|
QRgba64* QRgba64_Premultiplied(const QRgba64* self);
|
|
|
|
QRgba64* QRgba64_Unpremultiplied(const QRgba64* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QRgba64_OperatorAssign(QRgba64* self, unsigned long long _rgba);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QRgba64_Delete(QRgba64* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|