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

(512d35198b726413c151533c8291c6b4b52f0a1d)

#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 28 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 25 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 37 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 40 of file qrgb.h.

◆ qGreen()

int qGreen ( QRgb rgb)
related

Definition at line 22 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 43 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 46 of file qrgb.h.

◆ qRed()

int qRed ( QRgb rgb)
related

Definition at line 19 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 31 of file qrgb.h.

◆ qRgba()

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

Definition at line 34 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 61 of file qrgb.h.

Variable Documentation

◆ QRgb

QT_BEGIN_NAMESPACE typedef unsigned int QRgb
related

Definition at line 14 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 3043 of file qcolor.cpp.

◆ RGB_MASK

QRgb RGB_MASK = 0x00ffffff
inlineconstexpr

Definition at line 17 of file qrgb.h.