![]() |
Qt 4.8
|
#include <qpixmapdata_gl_p.h>
Public Functions | |
| GLuint | bind (bool copyBack=true) const |
| void | copy (const QPixmapData *data, const QRect &rect) |
| QPixmapData * | createCompatiblePixmapData () const |
| void | fill (const QColor &color) |
| bool | fromData (const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags) |
| bool | fromFile (const QString &filename, const char *format, Qt::ImageConversionFlags flags) |
| void | fromImage (const QImage &image, Qt::ImageConversionFlags flags) |
| void | fromImageReader (QImageReader *imageReader, Qt::ImageConversionFlags flags) |
| QGLPaintDevice * | glDevice () const |
| bool | hasAlphaChannel () const |
| bool | isValidContext (const QGLContext *ctx) const |
| int | metric (QPaintDevice::PaintDeviceMetric metric) const |
| QPaintEngine * | paintEngine () const |
| QGLPixmapData (PixelType type) | |
| void | resize (int width, int height) |
| bool | scroll (int dx, int dy, const QRect &rect) |
| QGLTexture * | texture () const |
| QImage | toImage () const |
| ~QGLPixmapData () | |
Public Functions inherited from QPixmapData | |
| virtual QPixmap | alphaChannel () const |
| virtual QImage * | buffer () |
| qint64 | cacheKey () const |
| ClassId | classId () const |
| int | colorCount () const |
| int | depth () const |
| int | height () const |
| bool | isNull () const |
| virtual QBitmap | mask () const |
| QT_DEPRECATED int | numColors () const |
| PixelType | pixelType () const |
| QPixmapData (PixelType pixelType, int classId) | |
| virtual QPixmapData * | runtimeData () const |
| int | serialNumber () const |
| virtual void | setAlphaChannel (const QPixmap &alphaChannel) |
| virtual void | setMask (const QBitmap &mask) |
| 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 | copyBackFromRenderFbo (bool keepCurrentFboBound) const |
| void | createPixmapForImage (QImage &image, Qt::ImageConversionFlags flags, bool inPlace) |
| out-of-place conversion (inPlace == false) will always detach() More... | |
| void | ensureCreated () const |
| QColor | fillColor () const |
| QImage | fillImage (const QColor &color) const |
| bool | isUninitialized () const |
| bool | isValid () const |
| bool | needsFill () const |
| QGLPixmapData & | operator= (const QGLPixmapData &other) |
| QGLPixmapData (const QGLPixmapData &other) | |
| QSize | size () const |
| bool | useFramebufferObjects () const |
Properties | |
| QGLContext * | m_ctx |
| bool | m_dirty |
| QPaintEngine * | m_engine |
| QColor | m_fillColor |
| QGLPixmapGLPaintDevice | m_glDevice |
| bool | m_hasAlpha |
| bool | m_hasFillColor |
| QGLFramebufferObject * | m_renderFbo |
| QImage | m_source |
| QGLTexture | m_texture |
Friends | |
| class | QGLPixmapGLPaintDevice |
| class | QMeeGoLivePixmapData |
| class | QMeeGoPixmapData |
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 109 of file qpixmapdata_gl_p.h.
| QGLPixmapData::QGLPixmapData | ( | PixelType | type | ) |
Definition at line 254 of file qpixmapdata_gl.cpp.
Referenced by createCompatiblePixmapData().
| QGLPixmapData::~QGLPixmapData | ( | ) |
Definition at line 267 of file qpixmapdata_gl.cpp.
|
private |
| GLuint QGLPixmapData::bind | ( | bool | copyBack = true | ) | const |
Definition at line 764 of file qpixmapdata_gl.cpp.
|
virtual |
Reimplemented from QPixmapData.
Definition at line 522 of file qpixmapdata_gl.cpp.
|
private |
Definition at line 668 of file qpixmapdata_gl.cpp.
Referenced by bind(), and toImage().
|
virtual |
Reimplemented from QPixmapData.
Reimplemented in QMeeGoLivePixmapData, and QMeeGoPixmapData.
Definition at line 281 of file qpixmapdata_gl.cpp.
|
private |
out-of-place conversion (inPlace == false) will always detach()
Definition at line 467 of file qpixmapdata_gl.cpp.
Referenced by fromData(), fromFile(), fromImage(), and fromImageReader().
|
private |
Definition at line 326 of file qpixmapdata_gl.cpp.
Referenced by bind(), copy(), copyBackFromRenderFbo(), toImage(), and QMeeGoPixmapData::updateFromSoftImage().
|
virtual |
Implements QPixmapData.
Definition at line 562 of file qpixmapdata_gl.cpp.
|
inlineprivate |
Definition at line 175 of file qpixmapdata_gl_p.h.
Definition at line 604 of file qpixmapdata_gl.cpp.
Referenced by toImage().
|
virtual |
Reimplemented from QPixmapData.
Definition at line 431 of file qpixmapdata_gl.cpp.
|
virtual |
Reimplemented from QPixmapData.
Definition at line 391 of file qpixmapdata_gl.cpp.
|
virtual |
Implements QPixmapData.
Reimplemented in QMeeGoPixmapData.
Definition at line 374 of file qpixmapdata_gl.cpp.
Referenced by QMeeGoPixmapData::fromImage().
|
virtual |
Reimplemented from QPixmapData.
Definition at line 381 of file qpixmapdata_gl.cpp.
| QGLPaintDevice * QGLPixmapData::glDevice | ( | ) | const |
Definition at line 827 of file qpixmapdata_gl.cpp.
|
virtual |
|
inlineprivate |
Definition at line 172 of file qpixmapdata_gl_p.h.
|
private |
Definition at line 286 of file qpixmapdata_gl.cpp.
Referenced by copyBackFromRenderFbo(), fill(), fromData(), fromFile(), paintEngine(), resize(), and toImage().
| bool QGLPixmapData::isValidContext | ( | const QGLContext * | ctx | ) | const |
Definition at line 291 of file qpixmapdata_gl.cpp.
|
virtual |
Implements QPixmapData.
Definition at line 797 of file qpixmapdata_gl.cpp.
|
inlineprivate |
Definition at line 174 of file qpixmapdata_gl_p.h.
|
private |
|
virtual |
Implements QPixmapData.
Definition at line 718 of file qpixmapdata_gl.cpp.
|
virtual |
Implements QPixmapData.
Definition at line 300 of file qpixmapdata_gl.cpp.
Referenced by copy(), createPixmapForImage(), fromData(), fromFile(), QMeeGoPixmapData::fromTexture(), QMeeGoLivePixmapData::initializeThroughEGLImage(), and QMeeGoGraphicsSystem::pixmapDataWithGLTexture().
|
virtual |
Reimplemented from QPixmapData.
Reimplemented in QMeeGoLivePixmapData.
Definition at line 514 of file qpixmapdata_gl.cpp.
|
inlineprivate |
Definition at line 183 of file qpixmapdata_gl_p.h.
Referenced by fillImage(), fromData(), fromFile(), and paintEngine().
| QGLTexture * QGLPixmapData::texture | ( | ) | const |
Definition at line 792 of file qpixmapdata_gl.cpp.
Referenced by QMeeGoPixmapData::fromEGLSharedImage(), QMeeGoPixmapData::fromTexture(), QMeeGoLivePixmapData::initializeThroughEGLImage(), and QMeeGoLivePixmapData::invalidateSurfaces().
|
virtual |
Implements QPixmapData.
Reimplemented in QMeeGoPixmapData.
Definition at line 630 of file qpixmapdata_gl.cpp.
|
private |
Definition at line 710 of file qpixmapdata_gl.cpp.
Referenced by bind(), copy(), ensureCreated(), fill(), and paintEngine().
|
friend |
Definition at line 219 of file qpixmapdata_gl_p.h.
|
friend |
Definition at line 221 of file qpixmapdata_gl_p.h.
|
friend |
Definition at line 220 of file qpixmapdata_gl_p.h.
|
mutableprivate |
Definition at line 193 of file qpixmapdata_gl_p.h.
Referenced by ensureCreated(), and isValidContext().
|
mutableprivate |
Definition at line 208 of file qpixmapdata_gl_p.h.
Referenced by createPixmapForImage(), ensureCreated(), fill(), fromData(), fromFile(), paintEngine(), resize(), toImage(), and QMeeGoPixmapData::updateFromSoftImage().
|
mutableprivate |
Definition at line 192 of file qpixmapdata_gl_p.h.
Referenced by paintEngine(), and ~QGLPixmapData().
|
mutableprivate |
Definition at line 212 of file qpixmapdata_gl_p.h.
Referenced by bind(), fill(), paintEngine(), and toImage().
|
mutableprivate |
Definition at line 217 of file qpixmapdata_gl_p.h.
Referenced by glDevice(), and QGLPixmapData().
|
mutableprivate |
Definition at line 215 of file qpixmapdata_gl_p.h.
Referenced by copy(), createPixmapForImage(), ensureCreated(), fill(), fillImage(), fromData(), fromFile(), QMeeGoPixmapData::fromTexture(), hasAlphaChannel(), QMeeGoLivePixmapData::initializeThroughEGLImage(), and paintEngine().
|
mutableprivate |
Definition at line 213 of file qpixmapdata_gl_p.h.
Referenced by bind(), copyBackFromRenderFbo(), createPixmapForImage(), fill(), paintEngine(), and toImage().
|
mutableprivate |
Definition at line 191 of file qpixmapdata_gl_p.h.
Referenced by bind(), copy(), copyBackFromRenderFbo(), paintEngine(), and toImage().
|
mutableprivate |
Definition at line 203 of file qpixmapdata_gl_p.h.
Referenced by bind(), createPixmapForImage(), ensureCreated(), fill(), fromData(), fromFile(), paintEngine(), resize(), toImage(), and QMeeGoPixmapData::updateFromSoftImage().
|
mutableprivate |
Definition at line 205 of file qpixmapdata_gl_p.h.
Referenced by bind(), copy(), copyBackFromRenderFbo(), createPixmapForImage(), ensureCreated(), fill(), fromData(), fromFile(), resize(), texture(), toImage(), and ~QGLPixmapData().