#include
<QtCore/qglobal.h>
Go to the source code of this
file.
Functions
|
|
Q_GUI_EXPORT_INLINE int |
qRed
(QRgb rgb) |
|
Q_GUI_EXPORT_INLINE int |
qGreen
(QRgb rgb) |
|
Q_GUI_EXPORT_INLINE int |
qBlue
(QRgb rgb) |
|
Q_GUI_EXPORT_INLINE int |
qAlpha
(QRgb rgb) |
|
Q_GUI_EXPORT_INLINE QRgb |
qRgb (int r,
int g, int b) |
|
Q_GUI_EXPORT_INLINE QRgb |
qRgba (int r,
int g, int b, int a) |
|
Q_GUI_EXPORT_INLINE int |
qGray (int r,
int g, int b) |
|
Q_GUI_EXPORT_INLINE int |
qGray
(QRgb rgb) |
|
Q_GUI_EXPORT_INLINE bool |
qIsGray
(QRgb rgb) |
Variables
|
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE typedef
unsigned int |
QRgb |
| const QRgb |
RGB_MASK =
0x00ffffff |
Function Documentation
| Q_GUI_EXPORT_INLINE int qRed |
( |
QRgb |
rgb |
) |
|
Definition at line 57 of file qrgb.h.
{ return ((rgb >> 16) & 0xff); }
| Q_GUI_EXPORT_INLINE int qGreen |
( |
QRgb |
rgb |
) |
|
Definition at line 60 of file qrgb.h.
{ return ((rgb >> 8) & 0xff); }
| Q_GUI_EXPORT_INLINE int qBlue |
( |
QRgb |
rgb |
) |
|
| Q_GUI_EXPORT_INLINE int qAlpha |
( |
QRgb |
rgb |
) |
|
| Q_GUI_EXPORT_INLINE QRgb qRgb |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b |
|
) |
|
|
Definition at line 69 of file qrgb.h.
{ return (0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
| Q_GUI_EXPORT_INLINE QRgb
qRgba |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
|
|
Definition at line 72 of file qrgb.h.
{ return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
| Q_GUI_EXPORT_INLINE int qGray |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b |
|
) |
|
|
Definition at line 75 of file qrgb.h.
{ return (r*11+g*16+b*5)/32; }
| Q_GUI_EXPORT_INLINE int qGray |
( |
QRgb |
rgb |
) |
|
| Q_GUI_EXPORT_INLINE bool qIsGray |
( |
QRgb |
rgb |
) |
|
Variable Documentation
| QT_BEGIN_HEADER QT_BEGIN_NAMESPACE typedef
unsigned int QRgb |