QPaintDevice Class Reference

#include <qpaintdevice.h>

Class Description

Definition at line 60 of file qpaintdevice.h.

+ Inheritance diagram for QPaintDevice:

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 QPaintEnginepaintEngine () 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

Enumerator
PdmWidth 
PdmHeight 
PdmWidthMM 
PdmHeightMM 
PdmNumColors 
PdmDepth 
PdmDpiX 
PdmDpiY 
PdmPhysicalDpiX 
PdmPhysicalDpiY 

Definition at line 63 of file qpaintdevice.h.

Constructor & Destructor Documentation

virtual ~QPaintDevice ( )
virtual
QPaintDevice ( )
protected

Member Function Documentation

int devType ( ) const
inlinevirtual
bool paintingActive ( ) const
inline

Definition at line 170 of file qpaintdevice.h.

171 { return painters != 0; }
ushort painters
Definition: qpaintdevice.h:109
virtual QPaintEngine* paintEngine ( ) const
pure virtual
int width ( ) const
inline

Definition at line 91 of file qpaintdevice.h.

91 { return metric(PdmWidth); }
virtual int metric(PaintDeviceMetric metric) const
int height ( ) const
inline

Definition at line 92 of file qpaintdevice.h.

92 { return metric(PdmHeight); }
virtual int metric(PaintDeviceMetric metric) const
int widthMM ( ) const
inline

Definition at line 93 of file qpaintdevice.h.

93 { return metric(PdmWidthMM); }
virtual int metric(PaintDeviceMetric metric) const
int heightMM ( ) const
inline

Definition at line 94 of file qpaintdevice.h.

94 { return metric(PdmHeightMM); }
virtual int metric(PaintDeviceMetric metric) const
int logicalDpiX ( ) const
inline

Definition at line 95 of file qpaintdevice.h.

95 { return metric(PdmDpiX); }
virtual int metric(PaintDeviceMetric metric) const
int logicalDpiY ( ) const
inline

Definition at line 96 of file qpaintdevice.h.

96 { return metric(PdmDpiY); }
virtual int metric(PaintDeviceMetric metric) const
int physicalDpiX ( ) const
inline

Definition at line 97 of file qpaintdevice.h.

97 { return metric(PdmPhysicalDpiX); }
virtual int metric(PaintDeviceMetric metric) const
int physicalDpiY ( ) const
inline

Definition at line 98 of file qpaintdevice.h.

98 { return metric(PdmPhysicalDpiY); }
virtual int metric(PaintDeviceMetric metric) const
int colorCount ( ) const
inline

Definition at line 102 of file qpaintdevice.h.

102 { return metric(PdmNumColors); }
virtual int metric(PaintDeviceMetric metric) const
int depth ( ) const
inline

Definition at line 103 of file qpaintdevice.h.

103 { return metric(PdmDepth); }
virtual int metric(PaintDeviceMetric metric) const
virtual int metric ( PaintDeviceMetric  metric) const
protectedvirtual

Friends And Related Function Documentation

friend class QPainter
friend

Definition at line 140 of file qpaintdevice.h.

friend class QFontEngineMac
friend

Definition at line 141 of file qpaintdevice.h.

friend class QX11PaintEngine
friend

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: