45 #include <QtGui/qcolor.h> 46 #include <QtCore/qvector.h> 58 QGLColormap(
const QGLColormap &);
61 QGLColormap &operator=(
const QGLColormap &);
67 void setEntries(
int count,
const QRgb * colors,
int base = 0);
68 void setEntry(
int idx,
QRgb color);
69 void setEntry(
int idx,
const QColor & color);
70 QRgb entryRgb(
int idx)
const;
71 QColor entryColor(
int idx)
const;
72 int find(
QRgb color)
const;
73 int findNearest(
QRgb color)
const;
105 #endif // QGLCOLORMAP_H The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool isEmpty(const char *str)
void detach()
Detaches this QGLColormap from the shared block.
The QGLColormap class is used for installing custom colormaps into a QGLWidget.
Qt::HANDLE handle()
Returns the handle for this color map.
void setHandle(Qt::HANDLE ahandle)
Sets the handle for this color map to handle.