#include <qpixmap_p.h>
Collaboration diagram for QPixmapData:

Definition at line 61 of file qpixmap_p.h.
Public Member Functions | |
| QPixmapData () | |
| ~QPixmapData () | |
| void | ref () |
| bool | deref () |
Static Public Member Functions | |
| static int | allocCell (const QPixmap *p) |
| static void | freeCell (QPixmapData *data, bool terminate=false) |
Public Attributes | |
| int | count |
| QPixmap::Type | type |
| int | w |
| int | h |
| short | d |
| uint | uninit:1 |
| int | ser_no |
| int | detach_no |
| QBitmap * | mask |
| QPaintEngine * | paintEngine |
| Qt::HANDLE | hd |
| QPixmapData::QPixmapData | ( | ) | [inline] |
| QPixmapData::~QPixmapData | ( | ) |
Definition at line 336 of file qpixmap_x11.cpp.
References hd, paintEngine, qApp, and X11.
00337 { 00338 if (!qApp) 00339 return; 00340 if (x11_mask) { 00341 #ifndef QT_NO_XRENDER 00342 if (mask_picture) 00343 XRenderFreePicture(X11->display, mask_picture); 00344 mask_picture = 0; 00345 #endif 00346 XFreePixmap(X11->display, x11_mask); 00347 x11_mask = 0; 00348 } 00349 if (hd) { 00350 00351 #ifndef QT_NO_XRENDER 00352 if (picture) { 00353 XRenderFreePicture(X11->display, picture); 00354 picture = 0; 00355 } 00356 #endif // QT_NO_XRENDER 00357 00358 if (hd2) { 00359 XFreePixmap(xinfo.display(), hd2); 00360 hd2 = 0; 00361 } 00362 XFreePixmap(xinfo.display(), hd); 00363 hd = 0; 00364 } 00365 delete paintEngine; 00366 }
| void QPixmapData::ref | ( | ) | [inline] |
Definition at line 65 of file qpixmap_p.h.
References count.
Referenced by QPixmap::operator=(), and QPixmap::QPixmap().
00065 { ++count; }
| bool QPixmapData::deref | ( | ) | [inline] |
Definition at line 66 of file qpixmap_p.h.
References count.
Referenced by QPixmap::deref().
00066 { return !--count; }
| static int QPixmapData::allocCell | ( | const QPixmap * | p | ) | [static] |
| static void QPixmapData::freeCell | ( | QPixmapData * | data, | |
| bool | terminate = false | |||
| ) | [static] |
Definition at line 67 of file qpixmap_p.h.
Referenced by deref(), QPixmap::detach(), QPixmap::isDetached(), and ref().
Definition at line 68 of file qpixmap_p.h.
Referenced by QPixmap::copy(), QPixmap::init(), QPixmap::load(), QPixmap::loadFromData(), operator>>(), and QPixmap::QPixmap().
| int QPixmapData::w |
Definition at line 70 of file qpixmap_p.h.
Referenced by QPixmap::isNull(), QPixmap::rect(), QPixmap::size(), and QPixmap::width().
| int QPixmapData::h |
Definition at line 70 of file qpixmap_p.h.
Referenced by QPixmap::height(), QPixmap::rect(), and QPixmap::size().
| short QPixmapData::d |
Definition at line 71 of file qpixmap_p.h.
Referenced by QPixmap::depth(), and QX11PaintEngine::drawPixmap().
| uint QPixmapData::uninit |
Definition at line 73 of file qpixmap_p.h.
Referenced by QPixmap::deref(), qt_pixmap_id(), and QPixmap::serialNumber().
Definition at line 74 of file qpixmap_p.h.
Referenced by QPixmap::detach(), QPixmap::init(), and qt_pixmap_id().
Definition at line 76 of file qpixmap_p.h.
Definition at line 101 of file qpixmap_p.h.
Referenced by QPixmap::paintEngine(), and ~QPixmapData().
| Qt::HANDLE QPixmapData::hd |
1.5.1