Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcolormap_x11_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 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_X11_H
5#define QCOLORMAP_X11_H
6
7#include <QColor>
8#include <QList>
9
11
14{
15public:
16 enum Mode { Direct, Indexed, Gray };
17
18 static void initialize();
19 static void cleanup();
20
21 static QXcbColormap instance(int screen = -1);
22
25
27
28 Mode mode() const;
29
30 int depth() const;
31 int size() const;
32
33 uint pixel(const QColor &color) const;
34 const QColor colorAt(uint pixel) const;
35
36 const QList<QColor> colormap() const;
37
38private:
41};
42
44
45#endif // QCOLORMAP_X11_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
const QList< QColor > colormap() const
int depth() const
Mode mode() const
static QXcbColormap instance(int screen=-1)
static void initialize()
const QColor colorAt(uint pixel) const
static void cleanup()
int size() const
QXcbColormap & operator=(const QXcbColormap &colormap)
uint pixel(const QColor &color) const
Combined button and popup list for selecting options.
GLuint color
[2]
QScreen * screen
[1]
Definition main.cpp:29
unsigned int uint
Definition qtypes.h:34