QtGui/qrgb.h File Reference
Q_GUI_EXPORT_INLINE int qRed |
( |
QRgb |
rgb | ) |
|
Definition at line 57 of file qrgb.h.
58 {
return ((rgb >> 16) & 0xff); }
Q_GUI_EXPORT_INLINE int qGreen |
( |
QRgb |
rgb | ) |
|
Definition at line 60 of file qrgb.h.
61 {
return ((rgb >> 8) & 0xff); }
Q_GUI_EXPORT_INLINE int qBlue |
( |
QRgb |
rgb | ) |
|
Definition at line 63 of file qrgb.h.
64 {
return (rgb & 0xff); }
Q_GUI_EXPORT_INLINE int qAlpha |
( |
QRgb |
rgb | ) |
|
Definition at line 69 of file qrgb.h.
70 {
return (0xffu << 24) | ((
r & 0xff) << 16) | ((
g & 0xff) << 8) | (
b & 0xff); }
GLdouble GLdouble GLdouble r
Definition at line 72 of file qrgb.h.
73 {
return ((
a & 0xff) << 24) | ((
r & 0xff) << 16) | ((
g & 0xff) << 8) | (
b & 0xff); }
GLdouble GLdouble GLdouble r
GLubyte GLubyte GLubyte a
Definition at line 75 of file qrgb.h.
76 {
return (
r*11+
g*16+
b*5)/32; }
GLdouble GLdouble GLdouble r
Q_GUI_EXPORT_INLINE int qGray |
( |
QRgb |
rgb | ) |
|
Definition at line 78 of file qrgb.h.
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
Q_GUI_EXPORT_INLINE int qGray(int r, int g, int b)
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
Q_GUI_EXPORT_INLINE bool qIsGray |
( |
QRgb |
rgb | ) |
|
Definition at line 81 of file qrgb.h.
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
const QRgb RGB_MASK = 0x00ffffff |
Go to the source code of this file.