Qt 4.8
|
#include <qpixmap_x11_p.h>
Public Functions | |
QPixmap | alphaChannel () const |
void | convertToARGB32 (bool preserveContents=true) |
void | copy (const QPixmapData *data, const QRect &rect) |
QPixmapData * | createCompatiblePixmapData () const |
void | fill (const QColor &color) |
void | fromImage (const QImage &image, Qt::ImageConversionFlags flags) |
Qt::HANDLE | handle () const |
bool | hasAlphaChannel () const |
QBitmap | mask () const |
QPaintEngine * | paintEngine () const |
QX11PixmapData (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) |
Sets a mask bitmap. More... | |
QImage | toImage () const |
Converts the pixmap to a QImage. More... | |
QImage | toImage (const QRect &rect) const |
QPixmap | transformed (const QTransform &transform, Qt::TransformationMode mode) const |
Returns a copy of the pixmap that is transformed using the given transformation matrix and transformation mode. More... | |
Qt::HANDLE | x11ConvertToDefaultDepth () |
~QX11PixmapData () | |
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 |
int | width () const |
virtual | ~QPixmapData () |
Static Public Functions | |
static Qt::HANDLE | createBitmapFromImage (const QImage &image) |
Static Public Functions inherited from QPixmapData | |
static QPixmapData * | create (int w, int h, PixelType type) |
Public Variables | |
void * | gl_surface |
Protected Functions | |
int | metric (QPaintDevice::PaintDeviceMetric metric) const |
Protected Functions inherited from QPixmapData | |
void | setSerialNumber (int serNo) |
Private Types | |
enum | Flag { NoFlags = 0x0, Uninitialized = 0x1, Readonly = 0x2, InvertedWhenBoundToTexture = 0x4, GlSurfaceCreatedWithAlpha = 0x8 } |
Private Functions | |
void | bitmapFromImage (const QImage &image) |
bool | canTakeQImageFromXImage (const QXImageWrapper &xi) const |
QBitmap | mask_to_bitmap (int screen) const |
void | release () |
QImage | takeQImageFromXImage (const QXImageWrapper &xi) const |
QImage | toImage (const QXImageWrapper &xi, const QRect &rect) const |
Static Private Functions | |
static Qt::HANDLE | bitmap_to_mask (const QBitmap &, int screen) |
Properties | |
uint | flags |
Qt::HANDLE | hd |
Qt::HANDLE | hd2 |
Qt::HANDLE | mask_picture |
QX11PaintEngine * | pengine |
Qt::HANDLE | picture |
QPixmap::ShareMode | share_mode |
Qt::HANDLE | x11_mask |
QX11Info | xinfo |
Additional Inherited Members | |
Public Types inherited from QPixmapData | |
enum | ClassId { RasterClass, X11Class, MacClass, DirectFBClass, OpenGLClass, OpenVGClass, RuntimeClass, BlitterClass, CustomClass = 1024 } |
enum | PixelType { PixmapType, BitmapType } |
Protected Variables inherited from QPixmapData | |
int | d |
int | h |
bool | is_null |
int | w |
Definition at line 67 of file qpixmap_x11_p.h.
|
private |
Enumerator | |
---|---|
NoFlags | |
Uninitialized | |
Readonly | |
InvertedWhenBoundToTexture | |
GlSurfaceCreatedWithAlpha |
Definition at line 134 of file qpixmap_x11_p.h.
QX11PixmapData::QX11PixmapData | ( | PixelType | type | ) |
Definition at line 316 of file qpixmap_x11.cpp.
Referenced by convertToARGB32(), createCompatiblePixmapData(), and transformed().
QX11PixmapData::~QX11PixmapData | ( | ) |
Definition at line 1244 of file qpixmap_x11.cpp.
Referenced by paintEngine(), and transformed().
|
virtual |
Reimplemented from QPixmapData.
Definition at line 1294 of file qpixmap_x11.cpp.
|
staticprivate |
Definition at line 129 of file qpixmap_x11.cpp.
Referenced by setMask().
|
private |
Definition at line 1194 of file qpixmap_x11.cpp.
Referenced by fromImage().
|
private |
void QX11PixmapData::convertToARGB32 | ( | bool | preserveContents = true | ) |
Definition at line 2339 of file qpixmap_x11.cpp.
Referenced by QX11PaintEngine::begin(), QEgl::createSurface(), fill(), and QX11PaintEngine::updateBrush().
|
virtual |
Reimplemented from QPixmapData.
Reimplemented in QX11GLPixmapData.
Definition at line 2266 of file qpixmap_x11.cpp.
Referenced by QX11GLPixmapData::copy().
|
static |
Definition at line 1153 of file qpixmap_x11.cpp.
Referenced by bitmapFromImage(), and QCursor::QCursor().
|
virtual |
|
virtual |
Implements QPixmapData.
Reimplemented in QX11GLPixmapData.
Definition at line 1208 of file qpixmap_x11.cpp.
Referenced by QX11GLPixmapData::fill(), QX11GLSharedContexts::QX11GLSharedContexts(), and setMask().
|
virtual |
Implements QPixmapData.
Definition at line 410 of file qpixmap_x11.cpp.
Referenced by copy(), fill(), QMeeGoLivePixmapData::QMeeGoLivePixmapData(), and setAlphaChannel().
|
inline |
Definition at line 95 of file qpixmap_x11_p.h.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap(), QEgl::createSurface(), and transformed().
|
virtual |
Implements QPixmapData.
Definition at line 2173 of file qpixmap_x11.cpp.
Referenced by alphaChannel(), QGLContextPrivate::bindTextureFromNativePixmap(), QMeeGoLivePixmapData::getSurfaceForBackingPixmap(), and QX11GLPixmapData::paintEngine().
|
virtual |
Reimplemented from QPixmapData.
Definition at line 1314 of file qpixmap_x11.cpp.
Referenced by bitmap_to_mask(), toImage(), and transformed().
|
private |
|
protectedvirtual |
Implements QPixmapData.
Definition at line 1433 of file qpixmap_x11.cpp.
|
virtual |
Implements QPixmapData.
Reimplemented in QX11GLPixmapData.
Definition at line 2200 of file qpixmap_x11.cpp.
|
private |
Definition at line 1255 of file qpixmap_x11.cpp.
Referenced by fill(), setAlphaChannel(), setMask(), and ~QX11PixmapData().
|
virtual |
Implements QPixmapData.
Definition at line 328 of file qpixmap_x11.cpp.
Referenced by QX11GLSharedContexts::QX11GLSharedContexts(), QX11GLWindowSurface::setGeometry(), QX11WindowSurface::setGeometry(), setMask(), and transformed().
|
virtual |
Reimplemented from QPixmapData.
Reimplemented in QX11GLPixmapData.
Definition at line 2328 of file qpixmap_x11.cpp.
Referenced by QX11GLPixmapData::scroll().
|
virtual |
Reimplemented from QPixmapData.
Definition at line 1305 of file qpixmap_x11.cpp.
|
virtual |
Sets a mask bitmap.
The newmask bitmap defines the clip mask for this pixmap. Every pixel in newmask corresponds to a pixel in this pixmap. Pixel value 1 means opaque and pixel value 0 means transparent. The mask must have the same size as this pixmap.
Setting a null mask resets the mask.
The effect of this function is undefined when the pixmap is being painted on.
Reimplemented from QPixmapData.
Definition at line 1353 of file qpixmap_x11.cpp.
Referenced by fromImage().
|
private |
Definition at line 1496 of file qpixmap_x11.cpp.
Referenced by toImage().
|
virtual |
Converts the pixmap to a QImage.
Returns a null image if the conversion fails.
If the pixmap has 1-bit depth, the returned image will also be 1 bit deep. If the pixmap has 2- to 8-bit depth, the returned image has 8-bit depth. If the pixmap has greater than 8-bit depth, the returned image has 32-bit depth.
Note that for the moment, alpha masks on monochrome images are ignored.
Implements QPixmapData.
Definition at line 1582 of file qpixmap_x11.cpp.
Referenced by alphaChannel(), mask(), setAlphaChannel(), toImage(), and transformed().
Reimplemented from QPixmapData.
Definition at line 1549 of file qpixmap_x11.cpp.
|
private |
Definition at line 1587 of file qpixmap_x11.cpp.
|
virtual |
Returns a copy of the pixmap that is transformed using the given transformation matrix and transformation mode.
The original pixmap is not changed.
The transformation matrix is internally adjusted to compensate for unwanted translation; i.e. the pixmap produced is the smallest pixmap that contains all the transformed points of the original pixmap. Use the trueMatrix() function to retrieve the actual matrix used for transforming the pixmap.
This function is slow because it involves transformation to a QImage, non-trivial computations and a transformation back to a QPixmap.
Reimplemented from QPixmapData.
Definition at line 1863 of file qpixmap_x11.cpp.
Qt::HANDLE QX11PixmapData::x11ConvertToDefaultDepth | ( | ) |
Definition at line 2246 of file qpixmap_x11.cpp.
Definition at line 110 of file qpixmap_x11_p.h.
Referenced by mask_to_bitmap().
|
friend |
Definition at line 115 of file qpixmap_x11_p.h.
|
friend |
Definition at line 116 of file qpixmap_x11_p.h.
Referenced by QX11GLPixmapData::paintEngine().
|
friend |
Definition at line 114 of file qpixmap_x11_p.h.
|
friend |
Definition at line 118 of file qpixmap_x11_p.h.
Definition at line 109 of file qpixmap_x11_p.h.
Referenced by convertToARGB32(), mask(), and transformed().
|
friend |
Definition at line 113 of file qpixmap_x11_p.h.
|
friend |
|
friend |
Definition at line 117 of file qpixmap_x11_p.h.
|
friend |
Definition at line 111 of file qpixmap_x11_p.h.
Referenced by paintEngine().
|
friend |
Definition at line 112 of file qpixmap_x11_p.h.
|
private |
Definition at line 141 of file qpixmap_x11_p.h.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap(), convertToARGB32(), copy(), QPixmap::depth(), QPixmap::detach(), QMeeGoLivePixmapData::getSurfaceForBackingPixmap(), paintEngine(), release(), QX11WindowSurface::setGeometry(), and transformed().
void* QX11PixmapData::gl_surface |
Definition at line 100 of file qpixmap_x11_p.h.
Referenced by QX11GLPixmapData::beginPaint(), QGLContextPrivate::bindTextureFromNativePixmap(), QEgl::createSurface(), QGLContextPrivate::eglSurfaceForDevice(), QMeeGoLivePixmapData::getSurfaceForBackingPixmap(), QMeeGoLivePixmapData::invalidateSurfaces(), QX11GLSharedContexts::QX11GLSharedContexts(), and QGLContextPrivate::unbindPixmapFromTexture().
|
private |
Definition at line 132 of file qpixmap_x11_p.h.
Referenced by bitmapFromImage(), convertToARGB32(), copy(), createBitmapFromImage(), fill(), fromImage(), paintEngine(), release(), resize(), scroll(), QX11WindowSurface::setGeometry(), setMask(), toImage(), transformed(), and x11ConvertToDefaultDepth().
|
private |
Definition at line 147 of file qpixmap_x11_p.h.
Referenced by QPixmap::detach(), release(), setMask(), and x11ConvertToDefaultDepth().
|
private |
Definition at line 146 of file qpixmap_x11_p.h.
Referenced by convertToARGB32(), copy(), release(), and setMask().
|
private |
Definition at line 150 of file qpixmap_x11_p.h.
Referenced by paintEngine(), and release().
|
private |
Definition at line 145 of file qpixmap_x11_p.h.
Referenced by bitmapFromImage(), canTakeQImageFromXImage(), convertToARGB32(), copy(), fill(), fromImage(), QPixmap::hasAlpha(), mask(), paintEngine(), release(), resize(), setMask(), transformed(), and x11ConvertToDefaultDepth().
|
private |
Definition at line 148 of file qpixmap_x11_p.h.
Referenced by convertToARGB32(), and paintEngine().
|
private |
Definition at line 144 of file qpixmap_x11_p.h.
Referenced by QX11PaintEngine::begin(), QGLContextPrivate::bindTextureFromNativePixmap(), convertToARGB32(), copy(), QPixmap::depth(), QPixmap::hasAlpha(), mask_to_bitmap(), release(), setMask(), toImage(), and transformed().
|
private |
Definition at line 143 of file qpixmap_x11_p.h.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap(), canTakeQImageFromXImage(), convertToARGB32(), copy(), QPixmap::depth(), fill(), fromImage(), hasAlphaChannel(), mask(), metric(), paintEngine(), release(), resize(), setMask(), toImage(), transformed(), and x11ConvertToDefaultDepth().