2024-11-17 19:21:37 +13:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QCOLORMAP_H
|
|
|
|
#define MIQT_QT_GEN_QCOLORMAP_H
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 18:07:56 +13:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-15 10:29:05 +12:00
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QColor;
|
|
|
|
class QColormap;
|
|
|
|
#else
|
|
|
|
typedef struct QColor QColor;
|
|
|
|
typedef struct QColormap QColormap;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QColormap* QColormap_new(QColormap* colormap);
|
2025-02-01 13:45:16 +13: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);
|
|
|
|
QColormap* QColormap_instance1(int screen);
|
|
|
|
void QColormap_delete(QColormap* self);
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2025-02-01 13:45:16 +13:00
|
|
|
#endif
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#endif
|