Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcolor_p.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 QCOLOR_P_H
5#define QCOLOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtGui/qrgb.h"
20
21#include <optional>
22
23QT_BEGIN_NAMESPACE
24
25Q_DECL_PURE_FUNCTION std::optional<QRgb> qt_get_hex_rgb(const char *);
26
27QT_END_NAMESPACE
28
29#endif // QCOLOR_P_H
\keyword 16-bit Floating Point Support\inmodule QtCore \inheaderfile QFloat16
Definition qfloat16.h:48
static QStringList get_colornames()
Definition qcolor.cpp:333
std::optional< QRgb > qt_get_hex_rgb(const char *name)
Definition qcolor.cpp:90
QDataStream & operator>>(QDataStream &stream, QColor &color)
Definition qcolor.cpp:3011
const uint qt_inv_premul_factor[256]
Definition qcolor.cpp:3047
#define Q_MAX_3(a, b, c)
Definition qcolor.cpp:2177
static const qfloat16 & castF16(const quint16 &v)
Definition qcolor.cpp:1235
QT_BEGIN_NAMESPACE
Definition qcolor.cpp:25
#define rgb(r, g, b)
Definition qcolor.cpp:124
static std::optional< QRgb > get_named_rgb(QAnyStringView name)
Definition qcolor.cpp:314
static std::optional< QRgba64 > get_hex_rgb(QAnyStringView name)
Definition qcolor.cpp:108
static std::optional< QRgba64 > get_hex_rgb(const char *name, size_t len)
Definition qcolor.cpp:48
static std::optional< QRgb > get_named_rgb_no_space(const char *name_no_space)
Definition qcolor.cpp:300
static const int rgbTblSize
Definition qcolor.cpp:281
#define Q_MIN_3(a, b, c)
Definition qcolor.cpp:2178
#define QCOLOR_INT_RANGE_CHECK(fn, var)
Definition qcolor.cpp:579
bool operator<(const RGBData &data, const char *name)
Definition qcolor.cpp:297
static qfloat16 & castF16(quint16 &v)
Definition qcolor.cpp:1229
static std::optional< QRgba64 > get_hex_rgb(const QChar *str, size_t len)
Definition qcolor.cpp:97
#define QRGBA(r, g, b, a)
QDebug operator<<(QDebug dbg, const QColor &c)
Definition qcolor.cpp:2945
#define QCOLOR_REAL_RANGE_CHECK(fn, var)
Definition qcolor.cpp:587
bool operator<(const char *name, const RGBData &data)
Definition qcolor.cpp:295
#define QRGB(r, g, b)
const char name[21]
Definition qcolor.cpp:128
uint value
Definition qcolor.cpp:129