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>.
|
#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 357 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 385 of file qcoregraphics.mm.
References rect, QRegion::rectCount(), and QRegion::setRects().
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().
CGImageRef qt_mac_toCGImageMask | ( | const QImage & | image | ) |
Definition at line 57 of file qcoregraphics.mm.
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().
QColor qt_mac_toQColor | ( | CGColorRef | color | ) |
Definition at line 209 of file qcoregraphics.mm.
References model, Q_ASSERT, and qWarning.
Referenced by QQuickMacFocusFrame::createFocusFrame(), QQC2_NAMESPACE::QMacStyle::drawControl(), QMacStyle::drawControl(), QMacStylePrivate::drawFocusRing(), QQuickIOSTheme::initialize(), QCocoaColorPicker::pickColor(), 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 NS_IIOF_HELPERS::QIIOFHelper::readImage().