Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qcolormap.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef QCOLORMAP_H
5
#define QCOLORMAP_H
6
7
#include <QtWidgets/qtwidgetsglobal.h>
8
#include <QtGui/qrgb.h>
9
#include <QtGui/qwindowdefs.h>
10
#include <QtCore/qatomic.h>
11
#include <QtCore/qlist.h>
12
13
QT_BEGIN_NAMESPACE
14
15
16
class
QColor
;
17
class
QColormapPrivate
;
18
19
class
Q_WIDGETS_EXPORT
QColormap
20
{
21
public
:
22
enum
Mode
{
Direct
, Indexed,
Gray
};
23
24
static
void
initialize
();
25
static
void
cleanup();
26
27
static
QColormap
instance(
int
screen
= -1);
28
29
QColormap
(
const
QColormap
&colormap);
30
~QColormap
();
31
32
QColormap
&operator=(
const
QColormap
&colormap);
33
34
Mode
mode
()
const
;
35
36
int
depth
()
const
;
37
int
size
()
const
;
38
39
uint
pixel(
const
QColor
&
color
)
const
;
40
const
QColor
colorAt(
uint
pixel)
const
;
41
42
const
QList<QColor>
colormap()
const
;
43
44
private
:
45
QColormap
();
46
QColormapPrivate
*
d
;
47
};
48
49
QT_END_NAMESPACE
50
51
#endif
// QCOLORMAP_H
QColor
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition
qcolor.h:31
QColormapPrivate
Definition
qcolormap.cpp:13
QColormap
Definition
qcolormap.h:20
QColormap::Mode
Mode
Definition
qcolormap.h:22
QColormap::Direct
@ Direct
Definition
qcolormap.h:22
QList
Definition
qlist.h:74
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
color
Definition
qssgutils_p.h:103
initialize
static bool initialize()
Definition
qctf.cpp:67
ColorSpaceType::Gray
@ Gray
Mode
Mode
Definition
qmetaobjectbuilder.cpp:1132
depth
GLint GLenum GLsizei GLsizei GLsizei depth
Definition
qopengles2ext.h:603
mode
GLenum mode
Definition
qopengles2ext.h:333
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
screen
QScreen * screen
[1]
Definition
main.cpp:29
uint
unsigned int uint
Definition
qtypes.h:29
d
double d
Definition
src_corelib_text_qlocale.cpp:9
qtbase
src
widgets
util
qcolormap.h
Generated by
1.9.7