#include <qdrawhelper_p.h>
Definition at line 785 of file qdrawhelper_p.h.
◆ qrgb565() [1/4]
qrgb565::qrgb565 |
( |
int |
v = 0 | ) |
|
|
inline |
◆ qrgb565() [2/4]
◆ qrgb565() [3/4]
Definition at line 910 of file qdrawhelper_p.h.
912 const int r =
qRed(v) << 8;
913 const int g =
qGreen(v) << 3;
914 const int b =
qBlue(v) >> 3;
916 data = (r & 0xf800) | (g & 0x07e0)| (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)
◆ qrgb565() [4/4]
◆ alpha() [1/2]
quint8 qrgb565::alpha |
( |
| ) |
const |
|
inline |
◆ alpha() [2/2]
Definition at line 803 of file qdrawhelper_p.h.
803 {
return (
a + 1) >> 3; }
long ASN1_INTEGER_get ASN1_INTEGER * a
◆ byte_mul()
Definition at line 947 of file qdrawhelper_p.h.
950 result.
data = ((((
data & 0x07e0) >> 5) *
a) & 0x07e0) |
951 ((((
data & 0xf81f) *
a) >> 5) & 0xf81f);
long ASN1_INTEGER_get ASN1_INTEGER * a
◆ hasAlpha()
◆ ialpha()
◆ operator quint16()
qrgb565::operator quint16 |
( |
| ) |
const |
|
inline |
◆ operator quint32()
qrgb565::operator quint32 |
( |
| ) |
const |
|
inline |
Definition at line 924 of file qdrawhelper_p.h.
926 const int r = (
data & 0xf800);
927 const int g = (
data & 0x07e0);
928 const int b = (
data & 0x001f);
929 const int tr = (r >> 8) | (r >> 13);
930 const int tg = (g >> 3) | (g >> 9);
931 const int tb = (b << 3) | (b >> 2);
932 return qRgb(tr, tg, tb);
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
◆ operator+()
◆ operator==()
bool qrgb565::operator== |
( |
const qrgb565 & |
v | ) |
const |
|
inline |
◆ rawValue()
quint16 qrgb565::rawValue |
( |
| ) |
const |
|
inline |
◆ truncedAlpha()
◆ qargb8565
◆ data
The documentation for this class was generated from the following file: