Qt 4.8
|
#include "qcolor.h"
#include "qcolor_p.h"
#include "qnamespace.h"
#include "qcolormap.h"
#include "qdatastream.h"
#include "qvariant.h"
#include "qdebug.h"
#include "qapplication.h"
#include "qx11info_x11.h"
#include "private/qt_x11_p.h"
#include <math.h>
#include <stdio.h>
#include <limits.h>
Go to the source code of this file.
Macros | |
#define | Q_MAX_3(a, b, c) ( ( a > b && a > c) ? a : (b > c ? b : c) ) |
#define | Q_MIN_3(a, b, c) ( ( a < b && a < c) ? a : (b < c ? b : c) ) |
#define | QCOLOR_INT_RANGE_CHECK(fn, var) |
#define | QCOLOR_REAL_RANGE_CHECK(fn, var) |
#define | QRGB(r, g, b) QRgb(((0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff))) |
#define | QRGBA(r, g, b, a) QRgb(((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff)) |
Functions | |
QDebug | operator<< (QDebug dbg, const QColor &c) |
QDataStream & | operator<< (QDataStream &stream, const QColor &color) |
QDataStream & | operator>> (QDataStream &stream, QColor &color) |
Variables | |
static bool | allowX11ColorNames = false |
Definition at line 1773 of file qcolor.cpp.
Referenced by QColor::toHsl(), and QColor::toHsv().
Definition at line 1774 of file qcolor.cpp.
Referenced by QColor::toHsl(), and QColor::toHsv().
#define QCOLOR_INT_RANGE_CHECK | ( | fn, | |
var | |||
) |
Definition at line 281 of file qcolor.cpp.
Referenced by QColor::setAlpha(), QColor::setBlue(), QColor::setGreen(), and QColor::setRed().
#define QCOLOR_REAL_RANGE_CHECK | ( | fn, | |
var | |||
) |
Definition at line 289 of file qcolor.cpp.
Referenced by QColor::setAlphaF(), QColor::setBlueF(), QColor::setGreenF(), and QColor::setRedF().
#define QRGB | ( | r, | |
g, | |||
b | |||
) | QRgb(((0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff))) |
Referenced by QColor::QColor().
#define QRGBA | ( | r, | |
g, | |||
b, | |||
a | |||
) | QRgb(((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff)) |
Referenced by QColor::QColor().
Definition at line 2602 of file qcolor.cpp.
QDataStream& operator<< | ( | QDataStream & | stream, |
const QColor & | color | ||
) |
Definition at line 2638 of file qcolor.cpp.
QDataStream& operator>> | ( | QDataStream & | stream, |
QColor & | color | ||
) |
Definition at line 2677 of file qcolor.cpp.
|
static |
Definition at line 55 of file qcolor.cpp.
Referenced by QColor::allowX11ColorNames(), qt_set_x11_resources(), and QColor::spec().