45 #include <QtCore/qglobal.h> 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); }
76 {
return (r*11+g*16+b*5)/32; }
#define QT_END_NAMESPACE
This macro expands to.
long ASN1_INTEGER_get ASN1_INTEGER * a
int qRed(QRgb rgb)
Returns the red component of the ARGB quadruplet rgb.
int qAlpha(QRgb rgba)
Returns the alpha component of the ARGB quadruplet rgba.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int qGray(int r, int g, int b)
QRgb qRgb(int r, int g, int b)
Returns the ARGB quadruplet (255, {r}, {g}, {b}).
#define Q_GUI_EXPORT_INLINE
int qGreen(QRgb rgb)
Returns the green component of the ARGB quadruplet rgb.
int qBlue(QRgb rgb)
Returns the blue component of the ARGB quadruplet rgb.
QRgb qRgba(int r, int g, int b, int a)
Returns the ARGB quadruplet ({a}, {r}, {g}, {b}).
Q_GUI_EXPORT_INLINE bool qIsGray(QRgb rgb)