#include <qdrawhelper_p.h>
Definition at line 1011 of file qdrawhelper_p.h.
◆ qrgb555() [1/5]
qrgb555::qrgb555 |
( |
int |
v = 0 | ) |
|
|
inline |
◆ qrgb555() [2/5]
◆ qrgb555() [3/5]
Definition at line 1020 of file qdrawhelper_p.h.
1022 const int r =
qRed(v) << 7;
1023 const int g =
qGreen(v) << 2;
1024 const int b =
qBlue(v) >> 3;
1026 data = (r & 0x7c00) | (g & 0x03e0) | (b & 0x001f);
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
◆ qrgb555() [4/5]
◆ qrgb555() [5/5]
◆ alpha() [1/2]
quint8 qrgb555::alpha |
( |
| ) |
const |
|
inline |
◆ alpha() [2/2]
Definition at line 1063 of file qdrawhelper_p.h.
1063 {
return (
a + 1) >> 3; }
long ASN1_INTEGER_get ASN1_INTEGER * a
◆ byte_mul()
Definition at line 1090 of file qdrawhelper_p.h.
1093 t |= (((
data & 0x7c1f) *
a) >> 5) & 0x7c1f;
long ASN1_INTEGER_get ASN1_INTEGER * a
◆ hasAlpha()
◆ ialpha()
◆ operator quint16()
qrgb555::operator quint16 |
( |
| ) |
const |
|
inline |
Definition at line 1049 of file qdrawhelper_p.h.
1051 const int r = ((
data & 0x7c00) << 1) & 0xf800;
1052 const int g = (((
data & 0x03e0) << 1) | ((
data >> 4) & 0x0020)) & 0x07e0;
1053 const int b = (
data & 0x001f);
◆ operator quint32()
qrgb555::operator quint32 |
( |
| ) |
const |
|
inline |
Definition at line 1037 of file qdrawhelper_p.h.
1039 const int r = (
data & 0x7c00);
1040 const int g = (
data & 0x03e0);
1041 const int b = (
data & 0x001f);
1042 const int tr = (r >> 7) | (r >> 12);
1043 const int tg = (g >> 2) | (g >> 7);
1044 const int tb = (b << 3) | (b >> 2);
1046 return qRgb(tr, tg, tb);
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
◆ operator!=()
bool qrgb555::operator!= |
( |
const qrgb555 & |
v | ) |
const |
|
inline |
◆ operator+()
◆ operator==()
bool qrgb555::operator== |
( |
const qrgb555 & |
v | ) |
const |
|
inline |
◆ rawValue()
quint16 qrgb555::rawValue |
( |
| ) |
const |
|
inline |
◆ truncedAlpha()
◆ qargb8555
◆ qbgr555
◆ data
The documentation for this class was generated from the following file: