QtBase  v6.3.1
Functions | Variables
qrgb.h File Reference
#include <QtGui/qtguiglobal.h>
#include <QtCore/qprocessordetection.h>
Include dependency graph for qrgb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

constexpr int qRed (QRgb rgb)
 
constexpr int qGreen (QRgb rgb)
 
constexpr int qBlue (QRgb rgb)
 
constexpr int qAlpha (QRgb rgb)
 
constexpr QRgb qRgb (int r, int g, int b)
 
constexpr QRgb qRgba (int r, int g, int b, int a)
 
constexpr int qGray (int r, int g, int b)
 
constexpr int qGray (QRgb rgb)
 
constexpr bool qIsGray (QRgb rgb)
 
constexpr QRgb qPremultiply (QRgb x)
 
QRgb qUnpremultiply (QRgb p)
 

Variables

QT_BEGIN_NAMESPACE typedef unsigned int QRgb
 
constexpr QRgb RGB_MASK = 0x00ffffff
 
Q_GUI_EXPORT const uint qt_inv_premul_factor []
 

Function Documentation

◆ qAlpha()

constexpr int qAlpha ( QRgb  rgb)
related

Definition at line 63 of file qrgb.h.

Here is the caller graph for this function:

◆ qBlue()

constexpr int qBlue ( QRgb  rgb)
related

Definition at line 60 of file qrgb.h.

Here is the caller graph for this function:

◆ qGray() [1/2]

constexpr int qGray ( int  r,
int  g,
int  b 
)
related

Definition at line 72 of file qrgb.h.

Here is the caller graph for this function:

◆ qGray() [2/2]

constexpr int qGray ( QRgb  rgb)
related

Definition at line 75 of file qrgb.h.

◆ qGreen()

constexpr int qGreen ( QRgb  rgb)
related

Definition at line 57 of file qrgb.h.

Here is the caller graph for this function:

◆ qIsGray()

constexpr bool qIsGray ( QRgb  rgb)
inlineconstexpr

Definition at line 78 of file qrgb.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qPremultiply()

constexpr QRgb qPremultiply ( QRgb  x)
related

Definition at line 81 of file qrgb.h.

Here is the caller graph for this function:

◆ qRed()

constexpr int qRed ( QRgb  rgb)
related

Definition at line 54 of file qrgb.h.

Here is the caller graph for this function:

◆ qRgb()

constexpr QRgb qRgb ( int  r,
int  g,
int  b 
)
related

Definition at line 66 of file qrgb.h.

Here is the caller graph for this function:

◆ qRgba()

constexpr QRgb qRgba ( int  r,
int  g,
int  b,
int  a 
)
related

Definition at line 69 of file qrgb.h.

Here is the caller graph for this function:

◆ qUnpremultiply()

QRgb qUnpremultiply ( QRgb  p)
related

Definition at line 96 of file qrgb.h.

Variable Documentation

◆ QRgb

QT_BEGIN_NAMESPACE typedef unsigned int QRgb
related

Definition at line 49 of file qrgb.h.

◆ qt_inv_premul_factor

Q_GUI_EXPORT const uint qt_inv_premul_factor[]
extern

Definition at line 3046 of file qcolor.cpp.

◆ RGB_MASK

constexpr QRgb RGB_MASK = 0x00ffffff
inlineconstexpr

Definition at line 52 of file qrgb.h.