Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qrgb.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#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()

int qAlpha ( QRgb rgb)
related

Definition at line 27 of file qrgb.h.

Referenced by load_glyph_image_to_texture(), QColor::qPremultiply(), and QColor::qUnpremultiply().

Here is the caller graph for this function:

◆ qBlue()

int qBlue ( QRgb rgb)
related

Definition at line 24 of file qrgb.h.

Referenced by load_glyph_image_to_texture(), QColor::qGray(), qIsGray(), and QColor::qUnpremultiply().

Here is the caller graph for this function:

◆ qGray() [1/2]

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

Definition at line 36 of file qrgb.h.

Referenced by QColor::qGray().

Here is the caller graph for this function:

◆ qGray() [2/2]

int qGray ( QRgb rgb)
related

Definition at line 39 of file qrgb.h.

◆ qGreen()

int qGreen ( QRgb rgb)
related

Definition at line 21 of file qrgb.h.

Referenced by load_glyph_image_to_texture(), QColor::qGray(), qIsGray(), and QColor::qUnpremultiply().

Here is the caller graph for this function:

◆ qIsGray()

bool qIsGray ( QRgb rgb)
inlineconstexpr

Definition at line 42 of file qrgb.h.

References qBlue(), qGreen(), and qRed().

Here is the call graph for this function:

◆ qPremultiply()

QRgb qPremultiply ( QRgb x)
related

Definition at line 45 of file qrgb.h.

◆ qRed()

int qRed ( QRgb rgb)
related

Definition at line 18 of file qrgb.h.

Referenced by load_glyph_image_to_texture(), QColor::qGray(), qIsGray(), and QColor::qUnpremultiply().

Here is the caller graph for this function:

◆ qRgb()

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

Definition at line 30 of file qrgb.h.

◆ qRgba()

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

Definition at line 33 of file qrgb.h.

Referenced by load_glyph_image_to_texture().

Here is the caller graph for this function:

◆ qUnpremultiply()

QRgb qUnpremultiply ( QRgb p)
related

Definition at line 60 of file qrgb.h.

Variable Documentation

◆ QRgb

QT_BEGIN_NAMESPACE typedef unsigned int QRgb
related

Definition at line 13 of file qrgb.h.

Referenced by load_glyph_image_to_texture().

◆ qt_inv_premul_factor

Q_GUI_EXPORT const uint qt_inv_premul_factor[]
extern

Definition at line 3047 of file qcolor.cpp.

◆ RGB_MASK

QRgb RGB_MASK = 0x00ffffff
inlineconstexpr

Definition at line 16 of file qrgb.h.