QPixmapData Struct Reference

#include <qpixmap_p.h>

Collaboration diagram for QPixmapData:

Collaboration graph
[legend]
List of all members.

Detailed Description

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
QBitmapmask
QPaintEnginepaintEngine
Qt::HANDLE hd


Constructor & Destructor Documentation

QPixmapData::QPixmapData (  )  [inline]

Definition at line 62 of file qpixmap_p.h.

00062 : count(1) { }

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 }


Member Function Documentation

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]


Member Data Documentation

int QPixmapData::count

Definition at line 67 of file qpixmap_p.h.

Referenced by deref(), QPixmap::detach(), QPixmap::isDetached(), and ref().

QPixmap::Type QPixmapData::type

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 72 of file qpixmap_p.h.

Referenced by QPixmap::grabWindow().

int QPixmapData::ser_no

Definition at line 73 of file qpixmap_p.h.

Referenced by QPixmap::deref(), qt_pixmap_id(), and QPixmap::serialNumber().

int QPixmapData::detach_no

Definition at line 74 of file qpixmap_p.h.

Referenced by QPixmap::detach(), QPixmap::init(), and qt_pixmap_id().

QBitmap* QPixmapData::mask

Definition at line 76 of file qpixmap_p.h.

QPaintEngine* QPixmapData::paintEngine

Definition at line 101 of file qpixmap_p.h.

Referenced by QPixmap::paintEngine(), and ~QPixmapData().

Qt::HANDLE QPixmapData::hd

Definition at line 103 of file qpixmap_p.h.

Referenced by ~QPixmapData().


The documentation for this struct was generated from the following files:
Generated on Thu Mar 15 18:40:44 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1