![]() |
Qt 6.x
The Qt SDK
|
#include <qcolormap.h>
Public Types | |
enum | Mode { Direct , Indexed , Gray } |
Public Member Functions | |
QColormap (const QColormap &colormap) | |
~QColormap () | |
QColormap & | operator= (const QColormap &colormap) |
Mode | mode () const |
int | depth () const |
int | size () const |
uint | pixel (const QColor &color) const |
const QColor | colorAt (uint pixel) const |
const QList< QColor > | colormap () const |
Static Public Member Functions | |
static void | initialize () |
static void | cleanup () |
static QColormap | instance (int screen=-1) |
Definition at line 19 of file qcolormap.h.
enum QColormap::Mode |
Enumerator | |
---|---|
Direct | |
Indexed | |
Gray |
Definition at line 22 of file qcolormap.h.
QColormap::QColormap | ( | const QColormap & | colormap | ) |
Definition at line 62 of file qcolormap.cpp.
References QColormap(), QBasicAtomicInteger< T >::ref(), and QColormapPrivate::ref.
Referenced by QColormap().
QColormap::~QColormap | ( | ) |
Definition at line 66 of file qcolormap.cpp.
References QBasicAtomicInteger< T >::deref(), and QColormapPrivate::ref.
|
static |
Definition at line 47 of file qcolormap.cpp.
References screenMap.
Referenced by qt_cleanup().
Definition at line 152 of file qcolormap.cpp.
References QColormapPrivate::depth, Direct, QColormapPrivate::mode, pixel(), Q_ASSERT_X, and qt_conv16ToRgb().
Definition at line 174 of file qcolormap.cpp.
Referenced by operator=().
int QColormap::depth | ( | ) | const |
Definition at line 76 of file qcolormap.cpp.
References QColormapPrivate::depth.
Referenced by QApplication::isEffectEnabled().
|
static |
Definition at line 28 of file qcolormap.cpp.
References QScreen::depth, QColormapPrivate::depth, Direct, Indexed, QColormapPrivate::mode, QColormapPrivate::numcolors, QGuiApplication::primaryScreen, Q_UNLIKELY, qWarning, and screenMap.
Referenced by QApplicationPrivate::init().
|
static |
Definition at line 53 of file qcolormap.cpp.
Referenced by QApplication::isEffectEnabled().
QColormap::Mode QColormap::mode | ( | ) | const |
Definition at line 72 of file qcolormap.cpp.
References QColormapPrivate::mode.
Definition at line 179 of file qcolormap.cpp.
References colormap(), and qAtomicAssign().
Definition at line 123 of file qcolormap.cpp.
References QColormapPrivate::depth, Direct, QColormapPrivate::mode, qBlue(), qGreen(), qRed(), QRgb, qt_convRgbTo16(), rgb, and tr.
Referenced by colorAt().
int QColormap::size | ( | ) | const |
Definition at line 80 of file qcolormap.cpp.
References QColormapPrivate::numcolors.