#include <QtCore/qglobal.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 | |
| 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 typedef unsigned int | QRgb |
| const QRgb | RGB_MASK = 0x00ffffff |
| Q_GUI_EXPORT_INLINE int qAlpha | ( | QRgb | rgb | ) | [related] |
Definition at line 46 of file qrgb.h.
Referenced by QPdfEnginePrivate::addImage(), QImage::alphaChannel(), QFontEngine::alphaMapForGlyph(), GLWidget::draw(), ExtraFiltersPlugin::filterImage(), BasicToolsPlugin::filterImage(), QWindowsXPStylePrivate::fixAlphaChannel(), QRasterBuffer::flushToARGBImage(), QCommonStyle::generatedIconPixmap(), QColorDialog::getRgba(), QPixmap::mask(), QImageSmoothScaler::scale(), QImage::setAlphaChannel(), QImage::setColor(), QImage::setColorTable(), GradientEditor::setGradientStops(), and qdesigner_internal::QtBrushButtonPrivate::slotEditBrush().
00047 { return ((rgb >> 24) & 0xff); }
| Q_GUI_EXPORT_INLINE int qBlue | ( | QRgb | rgb | ) | [related] |
Definition at line 43 of file qrgb.h.
Referenced by QPdfEnginePrivate::addImage(), QAlphaWidget::alphaBlend(), QGLContext::colorIndex(), GLWidget::draw(), QVFbView::drawScreen(), ExtraFiltersPlugin::filterImage(), QGLColormap::findNearest(), QWindowsXPStylePrivate::fixAlphaChannel(), QRasterBuffer::flushToARGBImage(), QVFbView::getBuffer(), QVFbView::getGamma(), QColorDialog::getRgba(), QColorShower::hsvEd(), QImageSmoothScaler::scale(), QImage::setAlphaChannel(), GradientEditor::setGradientStops(), QColorShower::setHsv(), QColorShower::setRgb(), qdesigner_internal::QtBrushButtonPrivate::slotEditBrush(), and QPNGImageWriter::writeImage().
00044 { return (rgb & 0xff); }
| Q_GUI_EXPORT_INLINE int qGray | ( | QRgb | rgb | ) | [related] |
Definition at line 58 of file qrgb.h.
References QColor::qBlue(), QColor::qGray(), QColor::qGreen(), and QColor::qRed().
Here is the call graph for this function:

| Q_GUI_EXPORT_INLINE int qGray | ( | int | r, | |
| int | g, | |||
| int | b | |||
| ) | [related] |
Definition at line 55 of file qrgb.h.
Referenced by QMessageBox::aboutQt(), ImageModel::data(), QX11PaintEngine::drawPixmap(), QPixmap::fill(), BasicToolsPlugin::filterImage(), QBitmap::fromImage(), QCommonStyle::generatedIconPixmap(), QCleanlooksStyle::polish(), QImage::setAlphaChannel(), QX11PaintEngine::updateBrush(), and QX11PaintEngine::updatePen().
| Q_GUI_EXPORT_INLINE int qGreen | ( | QRgb | rgb | ) | [related] |
Definition at line 40 of file qrgb.h.
Referenced by QPdfEnginePrivate::addImage(), QAlphaWidget::alphaBlend(), QRasterBuffer::clipImage(), QGLContext::colorIndex(), GLWidget::draw(), QVFbView::drawScreen(), ExtraFiltersPlugin::filterImage(), QGLColormap::findNearest(), QWindowsXPStylePrivate::fixAlphaChannel(), QRasterBuffer::flushToARGBImage(), QVFbView::getBuffer(), QVFbView::getGamma(), QColorDialog::getRgba(), QColorShower::hsvEd(), QImageSmoothScaler::scale(), QImage::setAlphaChannel(), GradientEditor::setGradientStops(), QColorShower::setHsv(), QColorShower::setRgb(), qdesigner_internal::QtBrushButtonPrivate::slotEditBrush(), and QPNGImageWriter::writeImage().
00041 { return ((rgb >> 8) & 0xff); }
| Q_GUI_EXPORT_INLINE bool qIsGray | ( | QRgb | rgb | ) |
Definition at line 61 of file qrgb.h.
References QColor::qBlue(), QColor::qGreen(), and QColor::qRed().
Referenced by QImage::allGray().
Here is the call graph for this function:

| Q_GUI_EXPORT_INLINE int qRed | ( | QRgb | rgb | ) | [related] |
Definition at line 37 of file qrgb.h.
Referenced by QPdfEnginePrivate::addImage(), QAlphaWidget::alphaBlend(), QGLContext::colorIndex(), GLWidget::draw(), QVFbView::drawScreen(), ExtraFiltersPlugin::filterImage(), QGLColormap::findNearest(), QWindowsXPStylePrivate::fixAlphaChannel(), QRasterBuffer::flushToARGBImage(), QVFbView::getBuffer(), QVFbView::getGamma(), QColorDialog::getRgba(), QColorShower::hsvEd(), QImageSmoothScaler::scale(), QImage::setAlphaChannel(), GradientEditor::setGradientStops(), QColorShower::setHsv(), QColorShower::setRgb(), qdesigner_internal::QtBrushButtonPrivate::slotEditBrush(), and QPNGImageWriter::writeImage().
00038 { return ((rgb >> 16) & 0xff); }
| Q_GUI_EXPORT_INLINE QRgb qRgb | ( | int | r, | |
| int | g, | |||
| int | b | |||
| ) | [related] |
Definition at line 49 of file qrgb.h.
Referenced by QAlphaWidget::alphaBlend(), QImage::alphaChannel(), ScribbleArea::clearImage(), QRasterBuffer::clipImage(), QGIFFormat::decode(), QWindowsXPStyle::drawComplexControl(), QWindowsXPStyle::drawControl(), QWindowsXPStyle::drawPrimitive(), QVFbView::drawScreen(), QVFbView::getBuffer(), QVFbView::getGamma(), QImage::isGrayscale(), BackTabTextEdit::loadResource(), QGLContext::overlayTransparentColor(), PaintArea::PaintArea(), PreviewDialog::paintPreview(), QWindowsXPStyle::polish(), QColorShower::QColorShower(), QPngHandlerPrivate::readPngImage(), ScribbleArea::resizeImage(), QColorShower::rgbEd(), RenderThread::rgbFromWaveLength(), RenderThread::run(), QImageSmoothScaler::scale(), jpegSmoothScaler::scanLine(), and QVFbView::setGamma().
| Q_GUI_EXPORT_INLINE QRgb qRgba | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| int | a | |||
| ) | [related] |
Definition at line 52 of file qrgb.h.
Referenced by QFontEngine::alphaMapForGlyph(), QFontEngineFT::alphaMapForGlyph(), QAnimationWriter::appendFrame(), DocumentShape::DocumentShape(), QPaintEngine::drawTiledPixmap(), QPixmap::fill(), ExtraFiltersPlugin::filterImage(), BasicToolsPlugin::filterImage(), GLWidget::formatInstructions(), QCommonStyle::generatedIconPixmap(), QColorDialog::getRgba(), DocumentShape::redraw(), ImageShape::redraw(), QColorShower::rgbEd(), and QImageSmoothScaler::scale().
QT_BEGIN_HEADER typedef unsigned int QRgb [related] |
Definition at line 33 of file qrgb.h.
Referenced by QPdfEnginePrivate::addImage(), QImage::allGray(), QImage::alphaChannel(), QAnimationWriter::appendFrame(), QRasterBuffer::clipImage(), QImage::color(), QGIFFormat::color(), QGLContext::colorIndex(), QRasterBuffer::colorizeBitmap(), QImage::createHeuristicMask(), QPixmap::createMaskFromColor(), QGIFFormat::decode(), QGIFFormat::disposePrevious(), QVFbView::drawScreen(), TetrixBoard::drawSquare(), Ui3Reader::embed(), QGIFFormat::fillRect(), QGLColormap::findNearest(), QRasterBuffer::flushToARGBImage(), QBitmap::fromImage(), QCommonStyle::generatedIconPixmap(), QVFbView::getBuffer(), QColorDialog::getRgba(), QColorDialogPrivate::init(), QPixmap::mask(), QGIFFormat::nextY(), Q3Table::paintCell(), QColorLuminancePicker::paintEvent(), QImage::pixel(), QColorDialog::QColorDialog(), QColorShower::QColorShower(), QPngHandlerPrivate::readPngImage(), QImage::rgbSwapped(), QImageSmoothScaler::scale(), QImageSmoothScaler::scanLine(), jpegSmoothScaler::scanLine(), QColorDialog::selectColor(), QImage::setAlphaChannel(), QVFbView::setGamma(), GradientEditor::setGradientStops(), QPixmap::setMask(), qdesigner_internal::QtBrushButtonPrivate::slotEditBrush(), qdesigner_internal::QtColorButtonPrivate::slotEditColor(), QCleanlooksStyle::standardPalette(), QPlastiqueStyle::standardPalette(), and QPNGImageWriter::writeImage().
1.5.1