![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qcolor.h"
#include "qcolor_p.h"
#include "qdrawhelper_p.h"
#include "qfloat16.h"
#include "qnamespace.h"
#include "qdatastream.h"
#include "qvariant.h"
#include "qdebug.h"
#include "private/qtools_p.h"
#include <algorithm>
#include <optional>
#include <stdio.h>
#include <limits.h>
Go to the source code of this file.
Classes | |
struct | RGBData |
Namespaces | |
namespace | QColorConstants |
\inmodule QtGui |
Macros | |
#define | rgb(r, g, b) |
#define | QCOLOR_INT_RANGE_CHECK(fn, var) |
#define | QCOLOR_REAL_RANGE_CHECK(fn, var) |
#define | QRGB(r, g, b) |
#define | QRGBA(r, g, b, a) |
#define | Q_MAX_3(a, b, c) |
#define | Q_MIN_3(a, b, c) |
Functions | |
static int | hex2int (const char *s, int n) |
static std::optional< QRgba64 > | get_hex_rgb (const char *name, size_t len) |
std::optional< QRgb > | qt_get_hex_rgb (const char *name) |
static std::optional< QRgba64 > | get_hex_rgb (const QChar *str, size_t len) |
static std::optional< QRgba64 > | get_hex_rgb (QAnyStringView name) |
bool | operator< (const char *name, const RGBData &data) |
bool | operator< (const RGBData &data, const char *name) |
static std::optional< QRgb > | get_named_rgb_no_space (const char *name_no_space) |
static std::optional< QRgb > | get_named_rgb (QAnyStringView name) |
static QStringList | get_colornames () |
static qfloat16 & | castF16 (quint16 &v) |
static const qfloat16 & | castF16 (const quint16 &v) |
QDebug | operator<< (QDebug dbg, const QColor &c) |
QDataStream & | operator<< (QDataStream &stream, const QColor &color) |
QDataStream & | operator>> (QDataStream &stream, QColor &color) |
Variables | |
QT_BEGIN_NAMESPACE | |
static constexpr struct RGBData | rgbTbl [] |
static const int | rgbTblSize = sizeof(rgbTbl) / sizeof(RGBData) |
const uint | qt_inv_premul_factor [256] |
Definition at line 2177 of file qcolor.cpp.
#define QCOLOR_INT_RANGE_CHECK | ( | fn, | |
var ) |
Definition at line 579 of file qcolor.cpp.
#define QCOLOR_REAL_RANGE_CHECK | ( | fn, | |
var ) |
Definition at line 587 of file qcolor.cpp.
Definition at line 124 of file qcolor.cpp.
Definition at line 1235 of file qcolor.cpp.
Definition at line 1229 of file qcolor.cpp.
|
static |
Definition at line 333 of file qcolor.cpp.
References RGBData::name, and rgbTblSize.
|
static |
Definition at line 48 of file qcolor.cpp.
Definition at line 97 of file qcolor.cpp.
|
static |
Definition at line 108 of file qcolor.cpp.
|
static |
Definition at line 314 of file qcolor.cpp.
|
static |
Definition at line 300 of file qcolor.cpp.
References operator<(), rgbTblSize, and RGBData::value.
|
inlinestatic |
If s[0..n] is a valid hex number, returns its integer value, otherwise returns -1.
Definition at line 33 of file qcolor.cpp.
|
inline |
Definition at line 295 of file qcolor.cpp.
References RGBData::name.
Referenced by get_named_rgb_no_space().
|
inline |
Definition at line 297 of file qcolor.cpp.
References RGBData::name.
QDataStream & operator<< | ( | QDataStream & | stream, |
const QColor & | color ) |
Definition at line 2975 of file qcolor.cpp.
Definition at line 2945 of file qcolor.cpp.
QDataStream & operator>> | ( | QDataStream & | stream, |
QColor & | color ) |
Definition at line 3011 of file qcolor.cpp.
std::optional< QRgb > qt_get_hex_rgb | ( | const char * | name | ) |
Definition at line 90 of file qcolor.cpp.
|
Definition at line 25 of file qcolor.cpp.
const uint qt_inv_premul_factor |
Definition at line 3047 of file qcolor.cpp.
|
static |
Definition at line 281 of file qcolor.cpp.
Referenced by get_colornames(), and get_named_rgb_no_space().