miqt/qt6/gen_qcolormap.h

44 lines
1.1 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_GEN_QCOLORMAP_H
#define MIQT_QT6_GEN_QCOLORMAP_H
2024-10-20 05:21:03 +00:00
#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 QColormap;
#else
typedef struct QColor QColor;
typedef struct QColormap QColormap;
#endif
2024-12-07 04:15:57 +00:00
QColormap* QColormap_new(QColormap* colormap);
2024-10-20 05:21:03 +00:00
void QColormap_Initialize();
void QColormap_Cleanup();
QColormap* QColormap_Instance();
void QColormap_OperatorAssign(QColormap* self, QColormap* colormap);
int QColormap_Mode(const QColormap* self);
int QColormap_Depth(const QColormap* self);
int QColormap_Size(const QColormap* self);
unsigned int QColormap_Pixel(const QColormap* self, QColor* color);
QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel);
struct miqt_array /* of QColor* */ QColormap_Colormap(const QColormap* self);
2024-10-20 05:21:03 +00:00
QColormap* QColormap_Instance1(int screen);
2024-11-19 06:29:06 +00:00
void QColormap_Delete(QColormap* self, bool isSubclass);
2024-10-20 05:21:03 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif