(a0a598e405e2252e488616932e45a3e9d91d1f89)
#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.
◆ QCOLOR_INT_RANGE_CHECK
| #define QCOLOR_INT_RANGE_CHECK |
( |
| fn, |
|
|
| var ) |
Value:do { \
if (var < 0 || var > 255) { \
qWarning(#fn": invalid value %d", var); \
} \
} while (0)
static int qMax(int i1, int i2, int i3)
QT_BEGIN_NAMESPACE constexpr const T & qMin(const T &a, const T &b)
Definition at line 579 of file qcolor.cpp.
◆ QCOLOR_REAL_RANGE_CHECK
| #define QCOLOR_REAL_RANGE_CHECK |
( |
| fn, |
|
|
| var ) |
Value:do { \
if (var < 0.0f || var > 1.0f) { \
qWarning(#fn": invalid value %g", var); \
} \
} while (0)
Definition at line 587 of file qcolor.cpp.
◆ QRGB
Value:QRgb(((0xffu << 24) | ((
r & 0xff) << 16) | ((
g & 0xff) << 8) | (
b & 0xff)))
GLboolean GLboolean GLboolean b
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
◆ QRGBA
| #define QRGBA |
( |
| r, |
|
|
| g, |
|
|
| b, |
|
|
| a ) |
Value:QRgb(((
a & 0xff) << 24) | ((
r & 0xff) << 16) | ((
g & 0xff) << 8) | (
b & 0xff))
GLboolean GLboolean GLboolean GLboolean a
◆ rgb
Value:(0xff000000 | (
r << 16) | (
g << 8) |
b)
Definition at line 124 of file qcolor.cpp.
◆ castF16() [1/2]
◆ castF16() [2/2]
◆ get_colornames()
◆ get_hex_rgb() [1/3]
| std::optional< QRgba64 > get_hex_rgb |
( |
const char * | name, |
|
|
size_t | len ) |
|
static |
◆ get_hex_rgb() [2/3]
| std::optional< QRgba64 > get_hex_rgb |
( |
const QChar * | str, |
|
|
size_t | len ) |
|
static |
◆ get_hex_rgb() [3/3]
◆ get_named_rgb()
◆ get_named_rgb_no_space()
| std::optional< QRgb > get_named_rgb_no_space |
( |
const char * | name_no_space | ) |
|
|
static |
◆ hex2int()
| int hex2int |
( |
const char * | s, |
|
|
int | n ) |
|
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.
◆ operator<() [1/2]
| bool operator< |
( |
const char * | name, |
|
|
const RGBData & | data ) |
|
inline |
◆ operator<() [2/2]
| bool operator< |
( |
const RGBData & | data, |
|
|
const char * | name ) |
|
inline |
◆ operator<<() [1/2]
◆ operator<<() [2/2]
◆ operator>>()
◆ qt_get_hex_rgb()
| std::optional< QRgb > qt_get_hex_rgb |
( |
const char * | name | ) |
|
◆ QT_BEGIN_NAMESPACE
◆ qt_inv_premul_factor
| const uint qt_inv_premul_factor |
◆ rgbTbl
◆ rgbTblSize