Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qcoregraphics_p.h File Reference
#include <QtCore/private/qcore_mac_p.h>
#include <QtGui/private/qtguiglobal_p.h>
#include <QtGui/qregion.h>
#include <QtGui/qpalette.h>
#include <CoreGraphics/CoreGraphics.h>
+ Include dependency graph for qcoregraphics_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QMacCGContext
 

Functions

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

Function Documentation

◆ qt_mac_bitmapInfoForImage()

QT_BEGIN_NAMESPACE Q_GUI_EXPORT 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()

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

Definition at line 335 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()

Q_GUI_EXPORT 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_toCGImage()

Q_GUI_EXPORT CGImageRef qt_mac_toCGImage ( const QImage qImage)

Definition at line 47 of file qcoregraphics.mm.

◆ qt_mac_toCGImageMask()

Q_GUI_EXPORT CGImageRef qt_mac_toCGImageMask ( const QImage qImage)

Definition at line 57 of file qcoregraphics.mm.

◆ qt_mac_toQBrush()

Q_GUI_EXPORT QBrush qt_mac_toQBrush ( CGColorRef  color)

Definition at line 241 of file qcoregraphics.mm.

References model, Q_ASSERT, qt_mac_toQColor(), qWarning, QBrush::setColor(), QBrush::setStyle(), 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()

Q_GUI_EXPORT QColor qt_mac_toQColor ( CGColorRef  color)

Definition at line 187 of file qcoregraphics.mm.

References model, Q_ASSERT, qWarning, QColor::setCmykF(), and QColor::setRgbF().

Referenced by QQC2_NAMESPACE::QMacStyle::drawControl(), QMacStyle::drawControl(), QMacStylePrivate::drawFocusRing(), QQuickIOSTheme::initialize(), qt_mac_createRolePalettes(), qt_mac_createSystemPalette(), qt_mac_toQBrush(), QMacStyle::styleHint(), and QQC2_NAMESPACE::QMacStyle::styleHint().

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

◆ qt_mac_toQImage()

Q_GUI_EXPORT QImage qt_mac_toQImage ( CGImageRef  image)

Definition at line 79 of file qcoregraphics.mm.