QtBase  v6.3.1
qcolor.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2020 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the QtGui module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 3 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 3 requirements
23 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24 **
25 ** GNU General Public License Usage
26 ** Alternatively, this file may be used under the terms of the GNU
27 ** General Public License version 2.0 or (at your option) the GNU General
28 ** Public license version 3 or any later version approved by the KDE Free
29 ** Qt Foundation. The licenses are as published by the Free Software
30 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31 ** included in the packaging of this file. Please review the following
32 ** information to ensure the GNU General Public License requirements will
33 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34 ** https://www.gnu.org/licenses/gpl-3.0.html.
35 **
36 ** $QT_END_LICENSE$
37 **
38 ****************************************************************************/
39 
40 #ifndef QCOLOR_H
41 #define QCOLOR_H
42 
43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qrgb.h>
45 #include <QtCore/qnamespace.h>
46 #include <QtCore/qstringlist.h>
47 #include <QtGui/qrgba64.h>
48 
49 #include <limits.h>
50 
52 
53 
54 class QColor;
55 class QColormap;
56 class QVariant;
57 
58 #ifndef QT_NO_DEBUG_STREAM
59 Q_GUI_EXPORT QDebug operator<<(QDebug, const QColor &);
60 #endif
61 #ifndef QT_NO_DATASTREAM
62 Q_GUI_EXPORT QDataStream &operator<<(QDataStream &, const QColor &);
63 Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QColor &);
64 #endif
65 
66 class Q_GUI_EXPORT QColor
67 {
68 public:
69  // ### Qt7: make this "enum Spec: quint8 {...}" and reorder the members below for tighter
70  // struct packing. QColor could fit into the inline storage of a QVariant on 32bit.
71  enum Spec { Invalid, Rgb, Hsv, Cmyk, Hsl, ExtendedRgb };
72  enum NameFormat { HexRgb, HexArgb };
73 
74  constexpr QColor() noexcept
75  : cspec(Invalid), ct(USHRT_MAX, 0, 0, 0, 0) {}
76  QColor(Qt::GlobalColor color) noexcept;
77  constexpr QColor(int r, int g, int b, int a = 255) noexcept
78  : cspec(isRgbaValid(r, g, b, a) ? Rgb : Invalid),
79  ct(ushort(cspec == Rgb ? a * 0x0101 : 0),
80  ushort(cspec == Rgb ? r * 0x0101 : 0),
81  ushort(cspec == Rgb ? g * 0x0101 : 0),
82  ushort(cspec == Rgb ? b * 0x0101 : 0),
83  0) {}
84  QColor(QRgb rgb) noexcept;
85  QColor(QRgba64 rgba64) noexcept;
86  inline QColor(const QString& name);
87  explicit inline QColor(QStringView name);
88  inline QColor(const char *aname) : QColor(QLatin1String(aname)) {}
89  inline QColor(QLatin1String name);
90  QColor(Spec spec) noexcept;
91 
92  QColor &operator=(Qt::GlobalColor color) noexcept;
93 
94  bool isValid() const noexcept;
95 
96  QString name(NameFormat format = HexRgb) const;
97 
98  void setNamedColor(const QString& name);
99  void setNamedColor(QStringView name);
100  void setNamedColor(QLatin1String name);
101 
102  static QStringList colorNames();
103 
104  inline Spec spec() const noexcept
105  { return cspec; }
106 
107  int alpha() const noexcept;
108  void setAlpha(int alpha);
109 
110  float alphaF() const noexcept;
111  void setAlphaF(float alpha);
112 
113  int red() const noexcept;
114  int green() const noexcept;
115  int blue() const noexcept;
116  void setRed(int red);
117  void setGreen(int green);
118  void setBlue(int blue);
119 
120  float redF() const noexcept;
121  float greenF() const noexcept;
122  float blueF() const noexcept;
123  void setRedF(float red);
124  void setGreenF(float green);
125  void setBlueF(float blue);
126 
127  void getRgb(int *r, int *g, int *b, int *a = nullptr) const;
128  void setRgb(int r, int g, int b, int a = 255);
129 
130  void getRgbF(float *r, float *g, float *b, float *a = nullptr) const;
131  void setRgbF(float r, float g, float b, float a = 1.0);
132 
133  QRgba64 rgba64() const noexcept;
134  void setRgba64(QRgba64 rgba) noexcept;
135 
136  QRgb rgba() const noexcept;
137  void setRgba(QRgb rgba) noexcept;
138 
139  QRgb rgb() const noexcept;
140  void setRgb(QRgb rgb) noexcept;
141 
142  int hue() const noexcept; // 0 <= hue < 360
143  int saturation() const noexcept;
144  int hsvHue() const noexcept; // 0 <= hue < 360
145  int hsvSaturation() const noexcept;
146  int value() const noexcept;
147 
148  float hueF() const noexcept; // 0.0 <= hueF < 360.0
149  float saturationF() const noexcept;
150  float hsvHueF() const noexcept; // 0.0 <= hueF < 360.0
151  float hsvSaturationF() const noexcept;
152  float valueF() const noexcept;
153 
154  void getHsv(int *h, int *s, int *v, int *a = nullptr) const;
155  void setHsv(int h, int s, int v, int a = 255);
156 
157  void getHsvF(float *h, float *s, float *v, float *a = nullptr) const;
158  void setHsvF(float h, float s, float v, float a = 1.0);
159 
160  int cyan() const noexcept;
161  int magenta() const noexcept;
162  int yellow() const noexcept;
163  int black() const noexcept;
164 
165  float cyanF() const noexcept;
166  float magentaF() const noexcept;
167  float yellowF() const noexcept;
168  float blackF() const noexcept;
169 
170  void getCmyk(int *c, int *m, int *y, int *k, int *a = nullptr) const;
171  void setCmyk(int c, int m, int y, int k, int a = 255);
172 
173  void getCmykF(float *c, float *m, float *y, float *k, float *a = nullptr) const;
174  void setCmykF(float c, float m, float y, float k, float a = 1.0);
175 
176  int hslHue() const noexcept; // 0 <= hue < 360
177  int hslSaturation() const noexcept;
178  int lightness() const noexcept;
179 
180  float hslHueF() const noexcept; // 0.0 <= hueF < 360.0
181  float hslSaturationF() const noexcept;
182  float lightnessF() const noexcept;
183 
184  void getHsl(int *h, int *s, int *l, int *a = nullptr) const;
185  void setHsl(int h, int s, int l, int a = 255);
186 
187  void getHslF(float *h, float *s, float *l, float *a = nullptr) const;
188  void setHslF(float h, float s, float l, float a = 1.0);
189 
190  QColor toRgb() const noexcept;
191  QColor toHsv() const noexcept;
192  QColor toCmyk() const noexcept;
193  QColor toHsl() const noexcept;
194  QColor toExtendedRgb() const noexcept;
195 
196  [[nodiscard]] QColor convertTo(Spec colorSpec) const noexcept;
197 
198  static QColor fromRgb(QRgb rgb) noexcept;
199  static QColor fromRgba(QRgb rgba) noexcept;
200 
201  static QColor fromRgb(int r, int g, int b, int a = 255);
202  static QColor fromRgbF(float r, float g, float b, float a = 1.0);
203 
204  static QColor fromRgba64(ushort r, ushort g, ushort b, ushort a = USHRT_MAX) noexcept;
205  static QColor fromRgba64(QRgba64 rgba) noexcept;
206 
207  static QColor fromHsv(int h, int s, int v, int a = 255);
208  static QColor fromHsvF(float h, float s, float v, float a = 1.0);
209 
210  static QColor fromCmyk(int c, int m, int y, int k, int a = 255);
211  static QColor fromCmykF(float c, float m, float y, float k, float a = 1.0);
212 
213  static QColor fromHsl(int h, int s, int l, int a = 255);
214  static QColor fromHslF(float h, float s, float l, float a = 1.0);
215 
216  [[nodiscard]] QColor lighter(int f = 150) const noexcept;
217  [[nodiscard]] QColor darker(int f = 200) const noexcept;
218 
219  bool operator==(const QColor &c) const noexcept;
220  bool operator!=(const QColor &c) const noexcept;
221 
222  operator QVariant() const;
223 
224  static bool isValidColor(const QString &name);
225  static bool isValidColor(QStringView) noexcept;
226  static bool isValidColor(QLatin1String) noexcept;
227 
228 private:
229 
230  void invalidate() noexcept;
231  template <typename String>
232  bool setColorFromString(String name);
233 
234  static constexpr bool isRgbaValid(int r, int g, int b, int a = 255) noexcept Q_DECL_CONST_FUNCTION
235  {
236  return uint(r) <= 255 && uint(g) <= 255 && uint(b) <= 255 && uint(a) <= 255;
237  }
238 
239  Spec cspec;
240  union CT {
241 #ifdef Q_COMPILER_UNIFORM_INIT
242  CT() {} // doesn't init anything, thus can't be constexpr
243  constexpr explicit CT(ushort a1, ushort a2, ushort a3, ushort a4, ushort a5) noexcept
244  : array{a1, a2, a3, a4, a5} {}
245 #endif
246  struct {
247  ushort alpha;
248  ushort red;
249  ushort green;
250  ushort blue;
251  ushort pad;
252  } argb;
253  struct {
254  ushort alpha;
255  ushort hue;
256  ushort saturation;
257  ushort value;
258  ushort pad;
259  } ahsv;
260  struct {
261  ushort alpha;
262  ushort cyan;
263  ushort magenta;
264  ushort yellow;
265  ushort black;
266  } acmyk;
267  struct {
268  ushort alpha;
269  ushort hue;
270  ushort saturation;
271  ushort lightness;
272  ushort pad;
273  } ahsl;
274  struct {
275  ushort alphaF16;
276  ushort redF16;
277  ushort greenF16;
278  ushort blueF16;
279  ushort pad;
280  } argbExtended;
281  ushort array[5];
282  } ct;
283 
284  friend class QColormap;
285 #ifndef QT_NO_DATASTREAM
286  friend Q_GUI_EXPORT QDataStream &operator<<(QDataStream &, const QColor &);
287  friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QColor &);
288 #endif
289 
290 #ifdef Q_COMPILER_UNIFORM_INIT
291 public: // can't give friendship to a namespace, so it needs to be public
292  constexpr explicit QColor(Spec spec, ushort a1, ushort a2, ushort a3, ushort a4, ushort a5=0) noexcept
293  : cspec(spec), ct(a1, a2, a3, a4, a5) {}
294 #endif // Q_COMPILER_UNIFORM_INIT
295 };
297 
299 { setNamedColor(aname); }
300 
302 { setNamedColor(aname); }
303 
304 inline QColor::QColor(const QString& aname)
305 { setNamedColor(aname); }
306 
307 inline bool QColor::isValid() const noexcept
308 { return cspec != Invalid; }
309 
310 namespace QColorConstants
311 {
312  // Qt::GlobalColor names
313  constexpr inline QColor Color0 {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0x00 * 0x101};
314  constexpr inline QColor Color1 {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101};
315  constexpr inline QColor Black {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0x00 * 0x101};
316  constexpr inline QColor White {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101};
317  constexpr inline QColor DarkGray {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x80 * 0x101, 0x80 * 0x101};
318  constexpr inline QColor Gray {QColor::Rgb, 0xff * 0x101, 0xa0 * 0x101, 0xa0 * 0x101, 0xa4 * 0x101};
319  constexpr inline QColor LightGray {QColor::Rgb, 0xff * 0x101, 0xc0 * 0x101, 0xc0 * 0x101, 0xc0 * 0x101};
320  constexpr inline QColor Red {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101};
321  constexpr inline QColor Green {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101, 0x00 * 0x101};
322  constexpr inline QColor Blue {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0xff * 0x101};
323  constexpr inline QColor Cyan {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101, 0xff * 0x101};
324  constexpr inline QColor Magenta {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101};
325  constexpr inline QColor Yellow {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101, 0x00 * 0x101};
326  constexpr inline QColor DarkRed {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x00 * 0x101, 0x00 * 0x101};
327  constexpr inline QColor DarkGreen {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x80 * 0x101, 0x00 * 0x101};
328  constexpr inline QColor DarkBlue {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0x80 * 0x101};
329  constexpr inline QColor DarkCyan {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x80 * 0x101, 0x80 * 0x101};
330  constexpr inline QColor DarkMagenta {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x00 * 0x101, 0x80 * 0x101};
331  constexpr inline QColor DarkYellow {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x80 * 0x101, 0x00 * 0x101};
332  constexpr inline QColor Transparent {QColor::Rgb, 0x00 * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0x00 * 0x101};
333 
334  // SVG names supported by QColor (see qcolor.cpp).
335 namespace Svg {
336  constexpr inline QColor aliceblue {QColor::Rgb, 0xff * 0x101, 0xf0 * 0x101, 0xf8 * 0x101, 0xff * 0x101};
337  constexpr inline QColor antiquewhite {QColor::Rgb, 0xff * 0x101, 0xfa * 0x101, 0xeb * 0x101, 0xd7 * 0x101};
338  constexpr inline QColor aqua {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101, 0xff * 0x101};
339  constexpr inline QColor aquamarine {QColor::Rgb, 0xff * 0x101, 0x7f * 0x101, 0xff * 0x101, 0xd4 * 0x101};
340  constexpr inline QColor azure {QColor::Rgb, 0xff * 0x101, 0xf0 * 0x101, 0xff * 0x101, 0xff * 0x101};
341  constexpr inline QColor beige {QColor::Rgb, 0xff * 0x101, 0xf5 * 0x101, 0xf5 * 0x101, 0xdc * 0x101};
342  constexpr inline QColor bisque {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xe4 * 0x101, 0xc4 * 0x101};
343  constexpr inline QColor black {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0x00 * 0x101};
344  constexpr inline QColor blanchedalmond {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xeb * 0x101, 0xcd * 0x101};
345  constexpr inline QColor blue {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0xff * 0x101};
346  constexpr inline QColor blueviolet {QColor::Rgb, 0xff * 0x101, 0x8a * 0x101, 0x2b * 0x101, 0xe2 * 0x101};
347  constexpr inline QColor brown {QColor::Rgb, 0xff * 0x101, 0xa5 * 0x101, 0x2a * 0x101, 0x2a * 0x101};
348  constexpr inline QColor burlywood {QColor::Rgb, 0xff * 0x101, 0xde * 0x101, 0xb8 * 0x101, 0x87 * 0x101};
349  constexpr inline QColor cadetblue {QColor::Rgb, 0xff * 0x101, 0x5f * 0x101, 0x9e * 0x101, 0xa0 * 0x101};
350  constexpr inline QColor chartreuse {QColor::Rgb, 0xff * 0x101, 0x7f * 0x101, 0xff * 0x101, 0x00 * 0x101};
351  constexpr inline QColor chocolate {QColor::Rgb, 0xff * 0x101, 0xd2 * 0x101, 0x69 * 0x101, 0x1e * 0x101};
352  constexpr inline QColor coral {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x7f * 0x101, 0x50 * 0x101};
353  constexpr inline QColor cornflowerblue {QColor::Rgb, 0xff * 0x101, 0x64 * 0x101, 0x95 * 0x101, 0xed * 0x101};
354  constexpr inline QColor cornsilk {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xf8 * 0x101, 0xdc * 0x101};
355  constexpr inline QColor crimson {QColor::Rgb, 0xff * 0x101, 0xdc * 0x101, 0x14 * 0x101, 0x3c * 0x101};
356  constexpr inline QColor cyan {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101, 0xff * 0x101};
357  constexpr inline QColor darkblue {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0x8b * 0x101};
358  constexpr inline QColor darkcyan {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x8b * 0x101, 0x8b * 0x101};
359  constexpr inline QColor darkgoldenrod {QColor::Rgb, 0xff * 0x101, 0xb8 * 0x101, 0x86 * 0x101, 0x0b * 0x101};
360  constexpr inline QColor darkgray {QColor::Rgb, 0xff * 0x101, 0xa9 * 0x101, 0xa9 * 0x101, 0xa9 * 0x101};
361  constexpr inline QColor darkgreen {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x64 * 0x101, 0x00 * 0x101};
362  constexpr inline QColor darkgrey {QColor::Rgb, 0xff * 0x101, 0xa9 * 0x101, 0xa9 * 0x101, 0xa9 * 0x101};
363  constexpr inline QColor darkkhaki {QColor::Rgb, 0xff * 0x101, 0xbd * 0x101, 0xb7 * 0x101, 0x6b * 0x101};
364  constexpr inline QColor darkmagenta {QColor::Rgb, 0xff * 0x101, 0x8b * 0x101, 0x00 * 0x101, 0x8b * 0x101};
365  constexpr inline QColor darkolivegreen {QColor::Rgb, 0xff * 0x101, 0x55 * 0x101, 0x6b * 0x101, 0x2f * 0x101};
366  constexpr inline QColor darkorange {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x8c * 0x101, 0x00 * 0x101};
367  constexpr inline QColor darkorchid {QColor::Rgb, 0xff * 0x101, 0x99 * 0x101, 0x32 * 0x101, 0xcc * 0x101};
368  constexpr inline QColor darkred {QColor::Rgb, 0xff * 0x101, 0x8b * 0x101, 0x00 * 0x101, 0x00 * 0x101};
369  constexpr inline QColor darksalmon {QColor::Rgb, 0xff * 0x101, 0xe9 * 0x101, 0x96 * 0x101, 0x7a * 0x101};
370  constexpr inline QColor darkseagreen {QColor::Rgb, 0xff * 0x101, 0x8f * 0x101, 0xbc * 0x101, 0x8f * 0x101};
371  constexpr inline QColor darkslateblue {QColor::Rgb, 0xff * 0x101, 0x48 * 0x101, 0x3d * 0x101, 0x8b * 0x101};
372  constexpr inline QColor darkslategray {QColor::Rgb, 0xff * 0x101, 0x2f * 0x101, 0x4f * 0x101, 0x4f * 0x101};
373  constexpr inline QColor darkslategrey {QColor::Rgb, 0xff * 0x101, 0x2f * 0x101, 0x4f * 0x101, 0x4f * 0x101};
374  constexpr inline QColor darkturquoise {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xce * 0x101, 0xd1 * 0x101};
375  constexpr inline QColor darkviolet {QColor::Rgb, 0xff * 0x101, 0x94 * 0x101, 0x00 * 0x101, 0xd3 * 0x101};
376  constexpr inline QColor deeppink {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x14 * 0x101, 0x93 * 0x101};
377  constexpr inline QColor deepskyblue {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xbf * 0x101, 0xff * 0x101};
378  constexpr inline QColor dimgray {QColor::Rgb, 0xff * 0x101, 0x69 * 0x101, 0x69 * 0x101, 0x69 * 0x101};
379  constexpr inline QColor dimgrey {QColor::Rgb, 0xff * 0x101, 0x69 * 0x101, 0x69 * 0x101, 0x69 * 0x101};
380  constexpr inline QColor dodgerblue {QColor::Rgb, 0xff * 0x101, 0x1e * 0x101, 0x90 * 0x101, 0xff * 0x101};
381  constexpr inline QColor firebrick {QColor::Rgb, 0xff * 0x101, 0xb2 * 0x101, 0x22 * 0x101, 0x22 * 0x101};
382  constexpr inline QColor floralwhite {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xfa * 0x101, 0xf0 * 0x101};
383  constexpr inline QColor forestgreen {QColor::Rgb, 0xff * 0x101, 0x22 * 0x101, 0x8b * 0x101, 0x22 * 0x101};
384  constexpr inline QColor fuchsia {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101};
385  constexpr inline QColor gainsboro {QColor::Rgb, 0xff * 0x101, 0xdc * 0x101, 0xdc * 0x101, 0xdc * 0x101};
386  constexpr inline QColor ghostwhite {QColor::Rgb, 0xff * 0x101, 0xf8 * 0x101, 0xf8 * 0x101, 0xff * 0x101};
387  constexpr inline QColor gold {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xd7 * 0x101, 0x00 * 0x101};
388  constexpr inline QColor goldenrod {QColor::Rgb, 0xff * 0x101, 0xda * 0x101, 0xa5 * 0x101, 0x20 * 0x101};
389  constexpr inline QColor gray {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x80 * 0x101, 0x80 * 0x101};
390  constexpr inline QColor green {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x80 * 0x101, 0x00 * 0x101};
391  constexpr inline QColor greenyellow {QColor::Rgb, 0xff * 0x101, 0xad * 0x101, 0xff * 0x101, 0x2f * 0x101};
392  constexpr inline QColor grey {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x80 * 0x101, 0x80 * 0x101};
393  constexpr inline QColor honeydew {QColor::Rgb, 0xff * 0x101, 0xf0 * 0x101, 0xff * 0x101, 0xf0 * 0x101};
394  constexpr inline QColor hotpink {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x69 * 0x101, 0xb4 * 0x101};
395  constexpr inline QColor indianred {QColor::Rgb, 0xff * 0x101, 0xcd * 0x101, 0x5c * 0x101, 0x5c * 0x101};
396  constexpr inline QColor indigo {QColor::Rgb, 0xff * 0x101, 0x4b * 0x101, 0x00 * 0x101, 0x82 * 0x101};
397  constexpr inline QColor ivory {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101, 0xf0 * 0x101};
398  constexpr inline QColor khaki {QColor::Rgb, 0xff * 0x101, 0xf0 * 0x101, 0xe6 * 0x101, 0x8c * 0x101};
399  constexpr inline QColor lavender {QColor::Rgb, 0xff * 0x101, 0xe6 * 0x101, 0xe6 * 0x101, 0xfa * 0x101};
400  constexpr inline QColor lavenderblush {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xf0 * 0x101, 0xf5 * 0x101};
401  constexpr inline QColor lawngreen {QColor::Rgb, 0xff * 0x101, 0x7c * 0x101, 0xfc * 0x101, 0x00 * 0x101};
402  constexpr inline QColor lemonchiffon {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xfa * 0x101, 0xcd * 0x101};
403  constexpr inline QColor lightblue {QColor::Rgb, 0xff * 0x101, 0xad * 0x101, 0xd8 * 0x101, 0xe6 * 0x101};
404  constexpr inline QColor lightcoral {QColor::Rgb, 0xff * 0x101, 0xf0 * 0x101, 0x80 * 0x101, 0x80 * 0x101};
405  constexpr inline QColor lightcyan {QColor::Rgb, 0xff * 0x101, 0xe0 * 0x101, 0xff * 0x101, 0xff * 0x101};
406  constexpr inline QColor lightgoldenrodyellow {QColor::Rgb, 0xff * 0x101, 0xfa * 0x101, 0xfa * 0x101, 0xd2 * 0x101};
407  constexpr inline QColor lightgray {QColor::Rgb, 0xff * 0x101, 0xd3 * 0x101, 0xd3 * 0x101, 0xd3 * 0x101};
408  constexpr inline QColor lightgreen {QColor::Rgb, 0xff * 0x101, 0x90 * 0x101, 0xee * 0x101, 0x90 * 0x101};
409  constexpr inline QColor lightgrey {QColor::Rgb, 0xff * 0x101, 0xd3 * 0x101, 0xd3 * 0x101, 0xd3 * 0x101};
410  constexpr inline QColor lightpink {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xb6 * 0x101, 0xc1 * 0x101};
411  constexpr inline QColor lightsalmon {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xa0 * 0x101, 0x7a * 0x101};
412  constexpr inline QColor lightseagreen {QColor::Rgb, 0xff * 0x101, 0x20 * 0x101, 0xb2 * 0x101, 0xaa * 0x101};
413  constexpr inline QColor lightskyblue {QColor::Rgb, 0xff * 0x101, 0x87 * 0x101, 0xce * 0x101, 0xfa * 0x101};
414  constexpr inline QColor lightslategray {QColor::Rgb, 0xff * 0x101, 0x77 * 0x101, 0x88 * 0x101, 0x99 * 0x101};
415  constexpr inline QColor lightslategrey {QColor::Rgb, 0xff * 0x101, 0x77 * 0x101, 0x88 * 0x101, 0x99 * 0x101};
416  constexpr inline QColor lightsteelblue {QColor::Rgb, 0xff * 0x101, 0xb0 * 0x101, 0xc4 * 0x101, 0xde * 0x101};
417  constexpr inline QColor lightyellow {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101, 0xe0 * 0x101};
418  constexpr inline QColor lime {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101, 0x00 * 0x101};
419  constexpr inline QColor limegreen {QColor::Rgb, 0xff * 0x101, 0x32 * 0x101, 0xcd * 0x101, 0x32 * 0x101};
420  constexpr inline QColor linen {QColor::Rgb, 0xff * 0x101, 0xfa * 0x101, 0xf0 * 0x101, 0xe6 * 0x101};
421  constexpr inline QColor magenta {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101};
422  constexpr inline QColor maroon {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x00 * 0x101, 0x00 * 0x101};
423  constexpr inline QColor mediumaquamarine {QColor::Rgb, 0xff * 0x101, 0x66 * 0x101, 0xcd * 0x101, 0xaa * 0x101};
424  constexpr inline QColor mediumblue {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0xcd * 0x101};
425  constexpr inline QColor mediumorchid {QColor::Rgb, 0xff * 0x101, 0xba * 0x101, 0x55 * 0x101, 0xd3 * 0x101};
426  constexpr inline QColor mediumpurple {QColor::Rgb, 0xff * 0x101, 0x93 * 0x101, 0x70 * 0x101, 0xdb * 0x101};
427  constexpr inline QColor mediumseagreen {QColor::Rgb, 0xff * 0x101, 0x3c * 0x101, 0xb3 * 0x101, 0x71 * 0x101};
428  constexpr inline QColor mediumslateblue {QColor::Rgb, 0xff * 0x101, 0x7b * 0x101, 0x68 * 0x101, 0xee * 0x101};
429  constexpr inline QColor mediumspringgreen {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xfa * 0x101, 0x9a * 0x101};
430  constexpr inline QColor mediumturquoise {QColor::Rgb, 0xff * 0x101, 0x48 * 0x101, 0xd1 * 0x101, 0xcc * 0x101};
431  constexpr inline QColor mediumvioletred {QColor::Rgb, 0xff * 0x101, 0xc7 * 0x101, 0x15 * 0x101, 0x85 * 0x101};
432  constexpr inline QColor midnightblue {QColor::Rgb, 0xff * 0x101, 0x19 * 0x101, 0x19 * 0x101, 0x70 * 0x101};
433  constexpr inline QColor mintcream {QColor::Rgb, 0xff * 0x101, 0xf5 * 0x101, 0xff * 0x101, 0xfa * 0x101};
434  constexpr inline QColor mistyrose {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xe4 * 0x101, 0xe1 * 0x101};
435  constexpr inline QColor moccasin {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xe4 * 0x101, 0xb5 * 0x101};
436  constexpr inline QColor navajowhite {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xde * 0x101, 0xad * 0x101};
437  constexpr inline QColor navy {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101, 0x80 * 0x101};
438  constexpr inline QColor oldlace {QColor::Rgb, 0xff * 0x101, 0xfd * 0x101, 0xf5 * 0x101, 0xe6 * 0x101};
439  constexpr inline QColor olive {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x80 * 0x101, 0x00 * 0x101};
440  constexpr inline QColor olivedrab {QColor::Rgb, 0xff * 0x101, 0x6b * 0x101, 0x8e * 0x101, 0x23 * 0x101};
441  constexpr inline QColor orange {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xa5 * 0x101, 0x00 * 0x101};
442  constexpr inline QColor orangered {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x45 * 0x101, 0x00 * 0x101};
443  constexpr inline QColor orchid {QColor::Rgb, 0xff * 0x101, 0xda * 0x101, 0x70 * 0x101, 0xd6 * 0x101};
444  constexpr inline QColor palegoldenrod {QColor::Rgb, 0xff * 0x101, 0xee * 0x101, 0xe8 * 0x101, 0xaa * 0x101};
445  constexpr inline QColor palegreen {QColor::Rgb, 0xff * 0x101, 0x98 * 0x101, 0xfb * 0x101, 0x98 * 0x101};
446  constexpr inline QColor paleturquoise {QColor::Rgb, 0xff * 0x101, 0xaf * 0x101, 0xee * 0x101, 0xee * 0x101};
447  constexpr inline QColor palevioletred {QColor::Rgb, 0xff * 0x101, 0xdb * 0x101, 0x70 * 0x101, 0x93 * 0x101};
448  constexpr inline QColor papayawhip {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xef * 0x101, 0xd5 * 0x101};
449  constexpr inline QColor peachpuff {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xda * 0x101, 0xb9 * 0x101};
450  constexpr inline QColor peru {QColor::Rgb, 0xff * 0x101, 0xcd * 0x101, 0x85 * 0x101, 0x3f * 0x101};
451  constexpr inline QColor pink {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xc0 * 0x101, 0xcb * 0x101};
452  constexpr inline QColor plum {QColor::Rgb, 0xff * 0x101, 0xdd * 0x101, 0xa0 * 0x101, 0xdd * 0x101};
453  constexpr inline QColor powderblue {QColor::Rgb, 0xff * 0x101, 0xb0 * 0x101, 0xe0 * 0x101, 0xe6 * 0x101};
454  constexpr inline QColor purple {QColor::Rgb, 0xff * 0x101, 0x80 * 0x101, 0x00 * 0x101, 0x80 * 0x101};
455  constexpr inline QColor red {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x00 * 0x101, 0x00 * 0x101};
456  constexpr inline QColor rosybrown {QColor::Rgb, 0xff * 0x101, 0xbc * 0x101, 0x8f * 0x101, 0x8f * 0x101};
457  constexpr inline QColor royalblue {QColor::Rgb, 0xff * 0x101, 0x41 * 0x101, 0x69 * 0x101, 0xe1 * 0x101};
458  constexpr inline QColor saddlebrown {QColor::Rgb, 0xff * 0x101, 0x8b * 0x101, 0x45 * 0x101, 0x13 * 0x101};
459  constexpr inline QColor salmon {QColor::Rgb, 0xff * 0x101, 0xfa * 0x101, 0x80 * 0x101, 0x72 * 0x101};
460  constexpr inline QColor sandybrown {QColor::Rgb, 0xff * 0x101, 0xf4 * 0x101, 0xa4 * 0x101, 0x60 * 0x101};
461  constexpr inline QColor seagreen {QColor::Rgb, 0xff * 0x101, 0x2e * 0x101, 0x8b * 0x101, 0x57 * 0x101};
462  constexpr inline QColor seashell {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xf5 * 0x101, 0xee * 0x101};
463  constexpr inline QColor sienna {QColor::Rgb, 0xff * 0x101, 0xa0 * 0x101, 0x52 * 0x101, 0x2d * 0x101};
464  constexpr inline QColor silver {QColor::Rgb, 0xff * 0x101, 0xc0 * 0x101, 0xc0 * 0x101, 0xc0 * 0x101};
465  constexpr inline QColor skyblue {QColor::Rgb, 0xff * 0x101, 0x87 * 0x101, 0xce * 0x101, 0xeb * 0x101};
466  constexpr inline QColor slateblue {QColor::Rgb, 0xff * 0x101, 0x6a * 0x101, 0x5a * 0x101, 0xcd * 0x101};
467  constexpr inline QColor slategray {QColor::Rgb, 0xff * 0x101, 0x70 * 0x101, 0x80 * 0x101, 0x90 * 0x101};
468  constexpr inline QColor slategrey {QColor::Rgb, 0xff * 0x101, 0x70 * 0x101, 0x80 * 0x101, 0x90 * 0x101};
469  constexpr inline QColor snow {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xfa * 0x101, 0xfa * 0x101};
470  constexpr inline QColor springgreen {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0xff * 0x101, 0x7f * 0x101};
471  constexpr inline QColor steelblue {QColor::Rgb, 0xff * 0x101, 0x46 * 0x101, 0x82 * 0x101, 0xb4 * 0x101};
472  constexpr inline QColor tan {QColor::Rgb, 0xff * 0x101, 0xd2 * 0x101, 0xb4 * 0x101, 0x8c * 0x101};
473  constexpr inline QColor teal {QColor::Rgb, 0xff * 0x101, 0x00 * 0x101, 0x80 * 0x101, 0x80 * 0x101};
474  constexpr inline QColor thistle {QColor::Rgb, 0xff * 0x101, 0xd8 * 0x101, 0xbf * 0x101, 0xd8 * 0x101};
475  constexpr inline QColor tomato {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0x63 * 0x101, 0x47 * 0x101};
476  constexpr inline QColor turquoise {QColor::Rgb, 0xff * 0x101, 0x40 * 0x101, 0xe0 * 0x101, 0xd0 * 0x101};
477  constexpr inline QColor violet {QColor::Rgb, 0xff * 0x101, 0xee * 0x101, 0x82 * 0x101, 0xee * 0x101};
478  constexpr inline QColor wheat {QColor::Rgb, 0xff * 0x101, 0xf5 * 0x101, 0xde * 0x101, 0xb3 * 0x101};
479  constexpr inline QColor white {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101};
480  constexpr inline QColor whitesmoke {QColor::Rgb, 0xff * 0x101, 0xf5 * 0x101, 0xf5 * 0x101, 0xf5 * 0x101};
481  constexpr inline QColor yellow {QColor::Rgb, 0xff * 0x101, 0xff * 0x101, 0xff * 0x101, 0x00 * 0x101};
482  constexpr inline QColor yellowgreen {QColor::Rgb, 0xff * 0x101, 0x9a * 0x101, 0xcd * 0x101, 0x32 * 0x101};
483 } // namespace Svg
484 } // namespace QColorLiterals
485 
487 
488 #endif // QCOLOR_H
#define value
[5]
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition: qcolor.h:67
Spec
Definition: qcolor.h:71
@ Cmyk
Definition: qcolor.h:71
@ Invalid
Definition: qcolor.h:71
@ Rgb
Definition: qcolor.h:71
constexpr QColor() noexcept
Definition: qcolor.h:74
QColor(const char *aname)
Definition: qcolor.h:88
constexpr QColor(int r, int g, int b, int a=255) noexcept
Definition: qcolor.h:77
NameFormat
Definition: qcolor.h:72
bool isValid() const noexcept
Definition: qcolor.h:307
void setNamedColor(const QString &name)
Definition: qcolor.cpp:900
The QDataStream class provides serialization of binary data to a QIODevice.
Definition: qdatastream.h:66
operator>>(QDataStream &ds, qfloat16 &f)
Definition: qfloat16.cpp:344
operator<<(QDataStream &ds, qfloat16 f)
Definition: qfloat16.cpp:327
The QDebug class provides an output stream for debugging information.
Definition: qdebug.h:65
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal.
Definition: qstring.h:84
The QString class provides a Unicode character string.
Definition: qstring.h:388
The QStringList class provides a list of strings.
The QStringView class provides a unified view on UTF-16 strings with a read-only subset of the QStrin...
Definition: qstringview.h:122
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:95
auto it unsigned count const
Definition: hb-iter.hh:848
#define inline
Definition: md4c.c:45
constexpr QColor wheat
Definition: qcolor.h:478
constexpr QColor saddlebrown
Definition: qcolor.h:458
constexpr QColor firebrick
Definition: qcolor.h:381
constexpr QColor darkorange
Definition: qcolor.h:366
constexpr QColor ivory
Definition: qcolor.h:397
constexpr QColor lightslategrey
Definition: qcolor.h:415
constexpr QColor lightslategray
Definition: qcolor.h:414
constexpr QColor brown
Definition: qcolor.h:347
constexpr QColor forestgreen
Definition: qcolor.h:383
constexpr QColor antiquewhite
Definition: qcolor.h:337
constexpr QColor sandybrown
Definition: qcolor.h:460
constexpr QColor orangered
Definition: qcolor.h:442
constexpr QColor darkgray
Definition: qcolor.h:360
constexpr QColor indigo
Definition: qcolor.h:396
constexpr QColor darkturquoise
Definition: qcolor.h:374
constexpr QColor mediumslateblue
Definition: qcolor.h:428
constexpr QColor sienna
Definition: qcolor.h:463
constexpr QColor lightskyblue
Definition: qcolor.h:413
constexpr QColor lawngreen
Definition: qcolor.h:401
constexpr QColor purple
Definition: qcolor.h:454
constexpr QColor mediumvioletred
Definition: qcolor.h:431
constexpr QColor dodgerblue
Definition: qcolor.h:380
constexpr QColor tan
Definition: qcolor.h:472
constexpr QColor lightgrey
Definition: qcolor.h:409
constexpr QColor deepskyblue
Definition: qcolor.h:377
constexpr QColor palegoldenrod
Definition: qcolor.h:444
constexpr QColor magenta
Definition: qcolor.h:421
constexpr QColor mediumspringgreen
Definition: qcolor.h:429
constexpr QColor mediumorchid
Definition: qcolor.h:425
constexpr QColor maroon
Definition: qcolor.h:422
constexpr QColor lightcyan
Definition: qcolor.h:405
constexpr QColor gold
Definition: qcolor.h:387
constexpr QColor mediumaquamarine
Definition: qcolor.h:423
constexpr QColor darkcyan
Definition: qcolor.h:358
constexpr QColor lightgray
Definition: qcolor.h:407
constexpr QColor darkslateblue
Definition: qcolor.h:371
constexpr QColor lightgreen
Definition: qcolor.h:408
constexpr QColor azure
Definition: qcolor.h:340
constexpr QColor salmon
Definition: qcolor.h:459
constexpr QColor khaki
Definition: qcolor.h:398
constexpr QColor steelblue
Definition: qcolor.h:471
constexpr QColor dimgray
Definition: qcolor.h:378
constexpr QColor gainsboro
Definition: qcolor.h:385
constexpr QColor oldlace
Definition: qcolor.h:438
constexpr QColor midnightblue
Definition: qcolor.h:432
constexpr QColor palevioletred
Definition: qcolor.h:447
constexpr QColor fuchsia
Definition: qcolor.h:384
constexpr QColor rosybrown
Definition: qcolor.h:456
constexpr QColor lightpink
Definition: qcolor.h:410
constexpr QColor bisque
Definition: qcolor.h:342
constexpr QColor crimson
Definition: qcolor.h:355
constexpr QColor darkred
Definition: qcolor.h:368
constexpr QColor peru
Definition: qcolor.h:450
constexpr QColor navy
Definition: qcolor.h:437
constexpr QColor royalblue
Definition: qcolor.h:457
constexpr QColor darkgoldenrod
Definition: qcolor.h:359
constexpr QColor slategray
Definition: qcolor.h:467
constexpr QColor cornflowerblue
Definition: qcolor.h:353
constexpr QColor aqua
Definition: qcolor.h:338
constexpr QColor blanchedalmond
Definition: qcolor.h:344
constexpr QColor white
Definition: qcolor.h:479
constexpr QColor darkslategray
Definition: qcolor.h:372
constexpr QColor mediumblue
Definition: qcolor.h:424
constexpr QColor coral
Definition: qcolor.h:352
constexpr QColor olive
Definition: qcolor.h:439
constexpr QColor limegreen
Definition: qcolor.h:419
constexpr QColor grey
Definition: qcolor.h:392
constexpr QColor aquamarine
Definition: qcolor.h:339
constexpr QColor violet
Definition: qcolor.h:477
constexpr QColor paleturquoise
Definition: qcolor.h:446
constexpr QColor yellow
Definition: qcolor.h:481
constexpr QColor linen
Definition: qcolor.h:420
constexpr QColor mintcream
Definition: qcolor.h:433
constexpr QColor darkblue
Definition: qcolor.h:357
constexpr QColor mediumpurple
Definition: qcolor.h:426
constexpr QColor orchid
Definition: qcolor.h:443
constexpr QColor cornsilk
Definition: qcolor.h:354
constexpr QColor lightsalmon
Definition: qcolor.h:411
constexpr QColor greenyellow
Definition: qcolor.h:391
constexpr QColor darkmagenta
Definition: qcolor.h:364
constexpr QColor gray
Definition: qcolor.h:389
constexpr QColor yellowgreen
Definition: qcolor.h:482
constexpr QColor navajowhite
Definition: qcolor.h:436
constexpr QColor slategrey
Definition: qcolor.h:468
constexpr QColor powderblue
Definition: qcolor.h:453
constexpr QColor lemonchiffon
Definition: qcolor.h:402
constexpr QColor whitesmoke
Definition: qcolor.h:480
constexpr QColor plum
Definition: qcolor.h:452
constexpr QColor snow
Definition: qcolor.h:469
constexpr QColor mistyrose
Definition: qcolor.h:434
constexpr QColor aliceblue
Definition: qcolor.h:336
constexpr QColor peachpuff
Definition: qcolor.h:449
constexpr QColor seagreen
Definition: qcolor.h:461
constexpr QColor teal
Definition: qcolor.h:473
constexpr QColor cyan
Definition: qcolor.h:356
constexpr QColor darkslategrey
Definition: qcolor.h:373
constexpr QColor deeppink
Definition: qcolor.h:376
constexpr QColor darkolivegreen
Definition: qcolor.h:365
constexpr QColor slateblue
Definition: qcolor.h:466
constexpr QColor tomato
Definition: qcolor.h:475
constexpr QColor honeydew
Definition: qcolor.h:393
constexpr QColor papayawhip
Definition: qcolor.h:448
constexpr QColor lime
Definition: qcolor.h:418
constexpr QColor darkkhaki
Definition: qcolor.h:363
constexpr QColor ghostwhite
Definition: qcolor.h:386
constexpr QColor cadetblue
Definition: qcolor.h:349
constexpr QColor thistle
Definition: qcolor.h:474
constexpr QColor lavenderblush
Definition: qcolor.h:400
constexpr QColor turquoise
Definition: qcolor.h:476
constexpr QColor darkorchid
Definition: qcolor.h:367
constexpr QColor moccasin
Definition: qcolor.h:435
constexpr QColor orange
Definition: qcolor.h:441
constexpr QColor lightblue
Definition: qcolor.h:403
constexpr QColor floralwhite
Definition: qcolor.h:382
constexpr QColor lightsteelblue
Definition: qcolor.h:416
constexpr QColor mediumseagreen
Definition: qcolor.h:427
constexpr QColor lightcoral
Definition: qcolor.h:404
constexpr QColor silver
Definition: qcolor.h:464
constexpr QColor blueviolet
Definition: qcolor.h:346
constexpr QColor skyblue
Definition: qcolor.h:465
constexpr QColor darkgrey
Definition: qcolor.h:362
constexpr QColor lightyellow
Definition: qcolor.h:417
constexpr QColor indianred
Definition: qcolor.h:395
constexpr QColor olivedrab
Definition: qcolor.h:440
constexpr QColor darksalmon
Definition: qcolor.h:369
constexpr QColor beige
Definition: qcolor.h:341
constexpr QColor lightseagreen
Definition: qcolor.h:412
constexpr QColor lavender
Definition: qcolor.h:399
constexpr QColor mediumturquoise
Definition: qcolor.h:430
constexpr QColor chocolate
Definition: qcolor.h:351
constexpr QColor lightgoldenrodyellow
Definition: qcolor.h:406
constexpr QColor dimgrey
Definition: qcolor.h:379
constexpr QColor chartreuse
Definition: qcolor.h:350
constexpr QColor palegreen
Definition: qcolor.h:445
constexpr QColor red
Definition: qcolor.h:455
constexpr QColor darkviolet
Definition: qcolor.h:375
constexpr QColor darkgreen
Definition: qcolor.h:361
constexpr QColor burlywood
Definition: qcolor.h:348
constexpr QColor goldenrod
Definition: qcolor.h:388
constexpr QColor springgreen
Definition: qcolor.h:470
constexpr QColor black
Definition: qcolor.h:343
constexpr QColor seashell
Definition: qcolor.h:462
constexpr QColor hotpink
Definition: qcolor.h:394
constexpr QColor pink
Definition: qcolor.h:451
constexpr QColor darkseagreen
Definition: qcolor.h:370
The QColorConstants namespace contains QColor predefined constants.
constexpr QColor Red
Definition: qcolor.h:320
constexpr QColor DarkYellow
Definition: qcolor.h:331
constexpr QColor Blue
Definition: qcolor.h:322
constexpr QColor DarkGreen
Definition: qcolor.h:327
constexpr QColor DarkGray
Definition: qcolor.h:317
constexpr QColor Gray
Definition: qcolor.h:318
constexpr QColor DarkBlue
Definition: qcolor.h:328
constexpr QColor LightGray
Definition: qcolor.h:319
constexpr QColor Color0
Definition: qcolor.h:313
constexpr QColor DarkMagenta
Definition: qcolor.h:330
constexpr QColor White
Definition: qcolor.h:316
constexpr QColor Color1
Definition: qcolor.h:314
constexpr QColor DarkCyan
Definition: qcolor.h:329
constexpr QColor Cyan
Definition: qcolor.h:323
constexpr QColor DarkRed
Definition: qcolor.h:326
constexpr QColor Green
Definition: qcolor.h:321
constexpr QColor Transparent
Definition: qcolor.h:332
constexpr QColor Yellow
Definition: qcolor.h:325
constexpr QColor Black
Definition: qcolor.h:315
constexpr QColor Magenta
Definition: qcolor.h:324
GlobalColor
Definition: qnamespace.h:58
png_structrp int png_fixed_point red
Definition: png.h:1081
#define rgb(r, g, b)
Definition: qcolor.cpp:157
Q_GUI_EXPORT QDebug operator<<(QDebug, const QColor &)
Definition: qcolor.cpp:2944
Q_DECLARE_TYPEINFO(QColor, Q_RELOCATABLE_TYPE)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QColor &)
Definition: qcolor.cpp:3010
#define Q_DECL_CONST_FUNCTION
EGLOutputLayerEXT EGLint EGLAttrib value
unsigned int uint
Definition: qglobal.h:334
unsigned short ushort
Definition: qglobal.h:333
@ Invalid
Definition: qmetaobject_p.h:68
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
const GLfloat * m
GLboolean r
[2]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLfloat GLfloat f
GLuint color
[2]
GLboolean GLboolean g
GLuint name
GLint GLsizei GLsizei GLenum format
GLint y
GLfloat GLfloat GLfloat GLfloat h
GLbyte GLbyte blue
Definition: qopenglext.h:385
const GLubyte * c
Definition: qopenglext.h:12701
GLenum array
Definition: qopenglext.h:7028
GLdouble s
[6]
Definition: qopenglext.h:235
GLfloat GLfloat GLfloat alpha
Definition: qopenglext.h:418
GLbyte green
Definition: qopenglext.h:385
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
Definition: qrgb.h:49
#define a3
#define a2
#define a1
@ Q_RELOCATABLE_TYPE
Definition: qtypeinfo.h:156
#define private
Definition: main.cpp:37
#define CT(E)