57 Q_GUI_EXPORT_INLINE
int qRed(QRgb rgb)
58 {
return ((rgb >> 16) & 0xff); }
61 {
return ((rgb >> 8) & 0xff); }
64 {
return (rgb & 0xff); }
70 {
return (0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
73 {
return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
75 Q_GUI_EXPORT_INLINE
int qGray(
int r,
int g,
int b)
76 {
return (r*11+g*16+b*5)/32; }
GLdouble GLdouble GLdouble r
Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb)
QT_BEGIN_HEADER QT_BEGIN_NAMESPACE typedef unsigned int QRgb
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
#define QT_BEGIN_NAMESPACE
Q_GUI_EXPORT_INLINE QRgb qRgba(int r, int g, int b, int a)
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
Q_GUI_EXPORT_INLINE int qGray(int r, int g, int b)
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
GLubyte GLubyte GLubyte a
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
Q_GUI_EXPORT_INLINE bool qIsGray(QRgb rgb)