Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

QPaintDevice Class Reference

Search for all occurrences

Detailed Description

Definition at line 60 of file qpaintdevice.h.

#include <qpaintdevice.h>

Inheritance diagram for QPaintDevice:
Inheritance graph
[legend]

List of all members.

Public Types

enum   PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}

Public Member Functions

virtual  ~QPaintDevice ()
virtual int  devType () const
bool  paintingActive () const
virtual QPaintEngine paintEngine () const =0
int  width () const
int  height () const
int  widthMM () const
int  heightMM () const
int  logicalDpiX () const
int  logicalDpiY () const
int  physicalDpiX () const
int  physicalDpiY () const
int  colorCount () const
int  depth () const

Protected Member Functions

  QPaintDevice ()
virtual int  metric (PaintDeviceMetric metric) const

Protected Attributes

ushort  painters

Friends

class  QPainter
class  QFontEngineMac
class  QX11PaintEngine
Q_GUI_EXPORT int  qt_paint_device_metric (const QPaintDevice *device, PaintDeviceMetric metric)

Member Enumeration Documentation


Constructor & Destructor Documentation

virtual ~QPaintDevice ( ) [virtual]
QPaintDevice ( ) [protected]

Member Function Documentation

int devType ( ) const [inline, virtual]
bool paintingActive ( ) const [inline]

Definition at line 170 of file qpaintdevice.h.

{ return painters != 0; }
virtual QPaintEngine* paintEngine ( ) const [pure virtual]
int width ( ) const [inline]

Reimplemented in QImage, QPixmap, and QWidget.

Definition at line 91 of file qpaintdevice.h.

{ return metric(PdmWidth); }
int height ( ) const [inline]

Reimplemented in QImage, QPixmap, and QWidget.

Definition at line 92 of file qpaintdevice.h.

{ return metric(PdmHeight); }
int widthMM ( ) const [inline]

Definition at line 93 of file qpaintdevice.h.

{ return metric(PdmWidthMM); }
int heightMM ( ) const [inline]

Definition at line 94 of file qpaintdevice.h.

{ return metric(PdmHeightMM); }
int logicalDpiX ( ) const [inline]

Definition at line 95 of file qpaintdevice.h.

{ return metric(PdmDpiX); }
int logicalDpiY ( ) const [inline]

Definition at line 96 of file qpaintdevice.h.

{ return metric(PdmDpiY); }
int physicalDpiX ( ) const [inline]

Definition at line 97 of file qpaintdevice.h.

{ return metric(PdmPhysicalDpiX); }
int physicalDpiY ( ) const [inline]

Definition at line 98 of file qpaintdevice.h.

{ return metric(PdmPhysicalDpiY); }
int colorCount ( ) const [inline]

Reimplemented in QImage.

Definition at line 102 of file qpaintdevice.h.

{ return metric(PdmNumColors); }
int depth ( ) const [inline]

Reimplemented in QImage, and QPixmap.

Definition at line 103 of file qpaintdevice.h.

{ return metric(PdmDepth); }
virtual int metric ( PaintDeviceMetric  metric ) const [protected, virtual]

Friends And Related Function Documentation

friend class QPainter [friend]

Reimplemented in QPixmap, and QWidget.

Definition at line 140 of file qpaintdevice.h.

friend class QFontEngineMac [friend]

Definition at line 141 of file qpaintdevice.h.

friend class QX11PaintEngine [friend]

Reimplemented in QPixmap, and QWidget.

Definition at line 142 of file qpaintdevice.h.

Q_GUI_EXPORT int qt_paint_device_metric ( const QPaintDevice device,
PaintDeviceMetric  metric 
) [friend]

Member Data Documentation

ushort painters [protected]

Definition at line 109 of file qpaintdevice.h.


The documentation for this class was generated from the following file:

QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice
QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice QPaintDevice