![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qcolormap.h"
#include "qcolor.h"
#include "qpaintdevice.h"
#include "qscreen.h"
#include "qguiapplication.h"
Go to the source code of this file.
Classes | |
class | QColormapPrivate |
Macros | |
#define | QT_QWS_DEPTH16_RGB 565 |
Functions | |
ushort | qt_convRgbTo16 (QRgb c) |
QRgb | qt_conv16ToRgb (ushort c) |
Variables | |
static QColormapPrivate * | screenMap = nullptr |
static const int | qt_rbits = (QT_QWS_DEPTH16_RGB/100) |
static const int | qt_gbits = (QT_QWS_DEPTH16_RGB/10%10) |
static const int | qt_bbits = (QT_QWS_DEPTH16_RGB%10) |
static const int | qt_red_shift = qt_bbits+qt_gbits-(8-qt_rbits) |
static const int | qt_green_shift = qt_bbits-(8-qt_gbits) |
static const int | qt_neg_blue_shift = 8-qt_bbits |
static const int | qt_blue_mask = (1<<qt_bbits)-1 |
static const int | qt_green_mask = (1<<(qt_gbits+qt_bbits))-(1<<qt_bbits) |
static const int | qt_red_mask = (1<<(qt_rbits+qt_gbits+qt_bbits))-(1<<(qt_gbits+qt_bbits)) |
static const int | qt_red_rounding_shift = qt_red_shift + qt_rbits |
static const int | qt_green_rounding_shift = qt_green_shift + qt_gbits |
static const int | qt_blue_rounding_shift = qt_bbits - qt_neg_blue_shift |
#define QT_QWS_DEPTH16_RGB 565 |
Definition at line 86 of file qcolormap.cpp.
Definition at line 111 of file qcolormap.cpp.
References qt_blue_mask, qt_blue_rounding_shift, qt_green_mask, qt_green_rounding_shift, qt_green_shift, qt_neg_blue_shift, qt_red_mask, qt_red_rounding_shift, and qt_red_shift.
Definition at line 102 of file qcolormap.cpp.
References qt_blue_mask, qt_green_mask, qt_green_shift, qt_neg_blue_shift, qt_red_mask, and qt_red_shift.
|
static |
Definition at line 90 of file qcolormap.cpp.
|
static |
Definition at line 94 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb(), and qt_convRgbTo16().
|
static |
Definition at line 100 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb().
|
static |
Definition at line 89 of file qcolormap.cpp.
Definition at line 95 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb(), and qt_convRgbTo16().
|
static |
Definition at line 99 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb().
Definition at line 92 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb(), and qt_convRgbTo16().
|
static |
Definition at line 93 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb(), and qt_convRgbTo16().
|
static |
Definition at line 88 of file qcolormap.cpp.
Definition at line 96 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb(), and qt_convRgbTo16().
|
static |
Definition at line 98 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb().
Definition at line 91 of file qcolormap.cpp.
Referenced by qt_conv16ToRgb(), and qt_convRgbTo16().
|
static |
Definition at line 26 of file qcolormap.cpp.