equal
deleted
inserted
replaced
62 |
62 |
63 Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb) // get blue part of RGB |
63 Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb) // get blue part of RGB |
64 { return (rgb & 0xff); } |
64 { return (rgb & 0xff); } |
65 |
65 |
66 Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb) // get alpha part of RGBA |
66 Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb) // get alpha part of RGBA |
67 { return ((rgb >> 24) & 0xff); } |
67 { return rgb >> 24; } |
68 |
68 |
69 Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)// set RGB value |
69 Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)// set RGB value |
70 { return (0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); } |
70 { return (0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); } |
71 |
71 |
72 Q_GUI_EXPORT_INLINE QRgb qRgba(int r, int g, int b, int a)// set RGBA value |
72 Q_GUI_EXPORT_INLINE QRgb qRgba(int r, int g, int b, int a)// set RGBA value |