Qt 4.8
|
#include <qpixmap_mac_p.h>
Public Functions | |
QPixmap | alphaChannel () const |
void | copy (const QPixmapData *data, const QRect &rect) |
QPixmapData * | createCompatiblePixmapData () const |
void | fill (const QColor &color) |
void | fromImage (const QImage &image, Qt::ImageConversionFlags flags) |
bool | hasAlphaChannel () const |
QBitmap | mask () const |
int | metric (QPaintDevice::PaintDeviceMetric metric) const |
QPaintEngine * | paintEngine () const |
QMacPixmapData (PixelType type) | |
void | resize (int width, int height) |
bool | scroll (int dx, int dy, const QRect &rect) |
void | setAlphaChannel (const QPixmap &alphaChannel) |
void | setMask (const QBitmap &mask) |
QImage | toImage () const |
~QMacPixmapData () | |
Public Functions inherited from QPixmapData | |
virtual QImage * | buffer () |
qint64 | cacheKey () const |
ClassId | classId () const |
int | colorCount () const |
int | depth () const |
virtual bool | fromData (const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags) |
virtual bool | fromFile (const QString &filename, const char *format, Qt::ImageConversionFlags flags) |
virtual void | fromImageReader (QImageReader *imageReader, Qt::ImageConversionFlags flags) |
int | height () const |
bool | isNull () const |
QT_DEPRECATED int | numColors () const |
PixelType | pixelType () const |
QPixmapData (PixelType pixelType, int classId) | |
virtual QPixmapData * | runtimeData () const |
int | serialNumber () const |
virtual QImage | toImage (const QRect &rect) const |
virtual QPixmap | transformed (const QTransform &matrix, Qt::TransformationMode mode) const |
int | width () const |
virtual | ~QPixmapData () |
Private Functions | |
void | macCreateCGImageRef () |
void | macCreatePixels () |
void | macGetAlphaChannel (QMacPixmapData *, bool asMask) const |
void | macReleaseCGImageRef () |
void | macSetAlphaChannel (const QMacPixmapData *, bool asMask) |
void | macSetHasAlpha (bool b) |
Static Private Attributes | |
static QSet< QMacPixmapData * > | validDataPointers |
Friends | |
QColor | qcolorForThemeTextColor (ThemeTextColor themeColor) |
class | QCoreGraphicsPaintEngine |
class | QPixmap |
class | QRasterBuffer |
class | QRasterPaintEngine |
CGContextRef | qt_mac_cg_context (const QPaintDevice *) |
Returns the CoreGraphics CGContextRef of the paint device. More... | |
void | qt_mac_cgimage_data_free (void *, const void *, size_t) |
IconRef | qt_mac_create_iconref (const QPixmap &) |
CGImageRef | qt_mac_create_imagemask (const QPixmap &, const QRectF &) |
quint32 * | qt_mac_pixmap_get_base (const QPixmap *) |
int | qt_mac_pixmap_get_bytes_per_line (const QPixmap *) |
Additional Inherited Members | |
Public Types inherited from QPixmapData | |
enum | ClassId { RasterClass, X11Class, MacClass, DirectFBClass, OpenGLClass, OpenVGClass, RuntimeClass, BlitterClass, CustomClass = 1024 } |
enum | PixelType { PixmapType, BitmapType } |
Static Public Functions inherited from QPixmapData | |
static QPixmapData * | create (int w, int h, PixelType type) |
Protected Functions inherited from QPixmapData | |
void | setSerialNumber (int serNo) |
Protected Variables inherited from QPixmapData | |
int | d |
int | h |
bool | is_null |
int | w |
Definition at line 62 of file qpixmap_mac_p.h.
QMacPixmapData::QMacPixmapData | ( | PixelType | type | ) |
Definition at line 173 of file qpixmap_mac.cpp.
Referenced by alphaChannel(), createCompatiblePixmapData(), macCreatePixels(), and mask().
QMacPixmapData::~QMacPixmapData | ( | ) |
Definition at line 519 of file qpixmap_mac.cpp.
|
virtual |
Reimplemented from QPixmapData.
Definition at line 442 of file qpixmap_mac.cpp.
|
virtual |
Reimplemented from QPixmapData.
Definition at line 1198 of file qpixmap_mac.cpp.
|
virtual |
|
virtual |
|
virtual |
Implements QPixmapData.
Definition at line 222 of file qpixmap_mac.cpp.
|
virtual |
|
private |
Definition at line 614 of file qpixmap_mac.cpp.
Referenced by QPixmap::grabWindow().
|
private |
Definition at line 650 of file qpixmap_mac.cpp.
Referenced by macReleaseCGImageRef(), and resize().
|
private |
|
private |
|
private |
|
private |
Definition at line 608 of file qpixmap_mac.cpp.
Referenced by fill(), fromImage(), macCreatePixels(), and macSetAlphaChannel().
|
virtual |
Reimplemented from QPixmapData.
Definition at line 460 of file qpixmap_mac.cpp.
Referenced by qt_mac_create_iconref(), and qt_mac_create_imagemask().
|
virtual |
Implements QPixmapData.
Definition at line 488 of file qpixmap_mac.cpp.
|
virtual |
Implements QPixmapData.
Definition at line 1189 of file qpixmap_mac.cpp.
|
virtual |
Implements QPixmapData.
Definition at line 190 of file qpixmap_mac.cpp.
Referenced by alphaChannel(), copy(), fromImage(), mask(), and setMask().
|
virtual |
Reimplemented from QPixmapData.
Definition at line 1231 of file qpixmap_mac.cpp.
|
virtual |
Reimplemented from QPixmapData.
Definition at line 453 of file qpixmap_mac.cpp.
|
virtual |
Reimplemented from QPixmapData.
Definition at line 471 of file qpixmap_mac.cpp.
|
virtual |
Implements QPixmapData.
Definition at line 383 of file qpixmap_mac.cpp.
Referenced by copy().
|
friend |
Definition at line 128 of file qt_mac.cpp.
|
friend |
Definition at line 122 of file qpixmap_mac_p.h.
Referenced by paintEngine().
Definition at line 119 of file qpixmap_mac_p.h.
Referenced by alphaChannel(), QPixmap::grabWindow(), macCreatePixels(), mask(), qt_mac_grabDisplayRect(), qt_mac_grabScreenRect(), and qt_mac_grabScreenRect_10_3().
|
friend |
Definition at line 120 of file qpixmap_mac_p.h.
|
friend |
Definition at line 121 of file qpixmap_mac_p.h.
|
friend |
Returns the CoreGraphics CGContextRef of the paint device.
0 is returned if it can't be obtained. It is the caller's responsiblity to CGContextRelease the context when finished using it.
Definition at line 118 of file qpaintdevice_mac.cpp.
Referenced by QPixmap::fromMacCGImageRef().
|
friend |
Definition at line 91 of file qpixmap_mac.cpp.
Referenced by macCreateCGImageRef(), and qt_mac_create_imagemask().
Definition at line 1109 of file qpixmap_mac.cpp.
|
friend |
Definition at line 1077 of file qpixmap_mac.cpp.
Definition at line 75 of file qpixmap_mac.cpp.
|
friend |
Definition at line 83 of file qpixmap_mac.cpp.
|
private |
Definition at line 112 of file qpixmap_mac_p.h.
Referenced by copy(), fill(), fromImage(), macCreateCGImageRef(), macCreatePixels(), macGetAlphaChannel(), macSetAlphaChannel(), qt_mac_cg_context(), qt_mac_create_imagemask(), resize(), and toImage().
|
private |
Definition at line 114 of file qpixmap_mac_p.h.
Referenced by QPixmap::grabWindow(), macCreateCGImageRef(), macReleaseCGImageRef(), and ~QMacPixmapData().
|
private |
Definition at line 114 of file qpixmap_mac_p.h.
Referenced by macReleaseCGImageRef(), and qt_mac_cgimage_data_free().
|
private |
Definition at line 114 of file qpixmap_mac_p.h.
Referenced by qt_mac_create_imagemask(), and ~QMacPixmapData().
|
private |
Definition at line 113 of file qpixmap_mac_p.h.
Referenced by qt_mac_create_imagemask().
|
private |
Definition at line 89 of file qpixmap_mac_p.h.
Referenced by alphaChannel(), copy(), hasAlphaChannel(), macSetHasAlpha(), mask(), setMask(), and toImage().
|
private |
Definition at line 89 of file qpixmap_mac_p.h.
Referenced by copy(), mask(), setAlphaChannel(), and setMask().
|
private |
Definition at line 117 of file qpixmap_mac_p.h.
Referenced by paintEngine(), and ~QMacPixmapData().
|
private |
Definition at line 109 of file qpixmap_mac_p.h.
Referenced by copy(), fill(), fromImage(), macCreateCGImageRef(), macCreatePixels(), macGetAlphaChannel(), macReleaseCGImageRef(), macSetAlphaChannel(), qt_mac_cg_context(), qt_mac_cgimage_data_free(), qt_mac_create_imagemask(), toImage(), and ~QMacPixmapData().
|
private |
Definition at line 110 of file qpixmap_mac_p.h.
Referenced by macCreatePixels().
|
private |
Definition at line 111 of file qpixmap_mac_p.h.
Referenced by macCreatePixels(), macReleaseCGImageRef(), qt_mac_cgimage_data_free(), and ~QMacPixmapData().
|
private |
Definition at line 89 of file qpixmap_mac_p.h.
Referenced by copy(), QPixmap::depth(), and fromImage().
|
staticprivate |
Definition at line 115 of file qpixmap_mac_p.h.
Referenced by macCreateCGImageRef(), qt_conv16ToRgb(), qt_mac_cgimage_data_free(), and ~QMacPixmapData().