Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcoregraphics.mm File Reference

(d5bf42f75b0ae35b7f02bb9211787ae1d44a98ba)

#include "qcoregraphics_p.h"
#include <private/qcore_mac_p.h>
#include <qpa/qplatformpixmap.h>
#include <QtGui/qicon.h>
#include <QtGui/private/qpaintengine_p.h>
#include <QtCore/qdebug.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qoperatingsystemversion.h>
+ Include dependency graph for qcoregraphics.mm:

Go to the source code of this file.

Functions

QT_USE_NAMESPACE QT_BEGIN_NAMESPACE CGBitmapInfo qt_mac_bitmapInfoForImage (const QImage &image)
 
CGImageRef qt_mac_toCGImage (const QImage &inImage)
 
CGImageRef qt_mac_toCGImageMask (const QImage &image)
 
void qt_mac_drawCGImage (CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage)
 
QImage qt_mac_toQImage (CGImageRef image)
 
QColor qt_mac_toQColor (CGColorRef color)
 
QBrush qt_mac_toQBrush (CGColorRef color)
 
void qt_mac_clip_cg (CGContextRef hd, const QRegion &rgn, CGAffineTransform *orig_xform)
 
void qt_mac_scale_region (QRegion *region, qreal scaleFactor)
 

Function Documentation

◆ qt_mac_bitmapInfoForImage()

QT_USE_NAMESPACE QT_BEGIN_NAMESPACE CGBitmapInfo qt_mac_bitmapInfoForImage ( const QImage & image)

Definition at line 20 of file qcoregraphics.mm.

References QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_RGB32, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, and QImage::Format_RGBX8888.

Referenced by QCoreTextFontEngine::imageForGlyph().

+ Here is the caller graph for this function:

◆ qt_mac_clip_cg()

void qt_mac_clip_cg ( CGContextRef hd,
const QRegion & rgn,
CGAffineTransform * orig_xform )

Definition at line 357 of file qcoregraphics.mm.

References QRegion::isEmpty().

Referenced by QCoreGraphicsPaintEnginePrivate::setClip().

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

◆ qt_mac_drawCGImage()

void qt_mac_drawCGImage ( CGContextRef inContext,
const CGRect * inBounds,
CGImageRef inImage )

Definition at line 68 of file qcoregraphics.mm.

Referenced by QCoreGraphicsPaintEngine::drawImage(), QCoreGraphicsPaintEngine::drawPixmap(), qt_mac_draw_pattern(), and qt_mac_toQImage().

+ Here is the caller graph for this function:

◆ qt_mac_scale_region()

void qt_mac_scale_region ( QRegion * region,
qreal scaleFactor )

Definition at line 385 of file qcoregraphics.mm.

References rect, QRegion::rectCount(), and QRegion::setRects().

+ Here is the call graph for this function:

◆ qt_mac_toCGImage()

CGImageRef qt_mac_toCGImage ( const QImage & inImage)

Definition at line 47 of file qcoregraphics.mm.

References QImage::Format_ARGB32_Premultiplied.

Referenced by QMacMimeTiff::convertFromMime(), QCoreGraphicsPaintEngine::drawImage(), QCoreGraphicsPaintEngine::drawPixmap(), qt_mac_draw_pattern(), and NS_IIOF_HELPERS::QIIOFHelper::writeImage().

+ Here is the caller graph for this function:

◆ qt_mac_toCGImageMask()

CGImageRef qt_mac_toCGImageMask ( const QImage & image)

Definition at line 57 of file qcoregraphics.mm.

◆ qt_mac_toQBrush()

QBrush qt_mac_toQBrush ( CGColorRef color)

Definition at line 263 of file qcoregraphics.mm.

References model, Q_ASSERT, qt_mac_toQColor(), qWarning, and Qt::SolidPattern.

Referenced by QIOSTheme::initializeSystemPalette(), qt_mac_createRolePalettes(), and qt_mac_createSystemPalette().

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

◆ qt_mac_toQColor()

QColor qt_mac_toQColor ( CGColorRef color)

◆ qt_mac_toQImage()

QImage qt_mac_toQImage ( CGImageRef image)

Definition at line 79 of file qcoregraphics.mm.

References QImage::Format_ARGB32_Premultiplied, qt_mac_drawCGImage(), rect, ret, and Qt::transparent.

Referenced by QMacMimeTiff::convertToMime(), QCocoaScreen::grabWindow(), QIOSScreen::grabWindow(), and NS_IIOF_HELPERS::QIIOFHelper::readImage().

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