![]() |
Qt 6.x
The Qt SDK
|
#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>
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) |
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().
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().
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().
Definition at line 363 of file qcoregraphics.mm.
References QList< T >::append(), QList< T >::count(), rect, QRegion::rectCount(), QList< T >::reserve(), and QRegion::setRects().
CGImageRef qt_mac_toCGImage | ( | const QImage & | inImage | ) |
Definition at line 47 of file qcoregraphics.mm.
References QImage::convertToFormat(), and QImage::Format_ARGB32_Premultiplied.
Referenced by QMacMimeTiff::convertFromMime(), QCoreGraphicsPaintEngine::drawImage(), QCoreGraphicsPaintEngine::drawPixmap(), qt_mac_draw_pattern(), and QIIOFHelper::writeImage().
CGImageRef qt_mac_toCGImageMask | ( | const QImage & | image | ) |
Definition at line 57 of file qcoregraphics.mm.
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().
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().
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 QIIOFHelper::readImage().