Definition at line 60 of file qpaintdevice.h.
#include <qpaintdevice.h>

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) |
| enum PaintDeviceMetric |
| PdmWidth | |
| PdmHeight | |
| PdmWidthMM | |
| PdmHeightMM | |
| PdmNumColors | |
| PdmDepth | |
| PdmDpiX | |
| PdmDpiY | |
| PdmPhysicalDpiX | |
| PdmPhysicalDpiY |
Definition at line 63 of file qpaintdevice.h.
{
PdmWidth = 1,
PdmHeight,
PdmWidthMM,
PdmHeightMM,
PdmNumColors,
PdmDepth,
PdmDpiX,
PdmDpiY,
PdmPhysicalDpiX,
PdmPhysicalDpiY
};
| virtual ~QPaintDevice | ( | ) | [virtual] |
| QPaintDevice | ( | ) | [protected] |
| int devType | ( | ) | const [inline, virtual] |
Reimplemented in QImage, QPicture, QPixmap, QPrinter, QWidget, QGLFramebufferObject, and QGLPixelBuffer.
Definition at line 167 of file qpaintdevice.h.
{ return QInternal::UnknownDevice; }
| bool paintingActive | ( | ) | const [inline] |
| virtual QPaintEngine* paintEngine | ( | ) | const [pure virtual] |
Implemented in QImage, QPicture, QPixmap, QPrinter, QWidget, QGLWidget, QGLFramebufferObject, and QGLPixelBuffer.
| int width | ( | ) | const [inline] |
Reimplemented in QImage, QPixmap, and QWidget.
Definition at line 91 of file qpaintdevice.h.
| int height | ( | ) | const [inline] |
Reimplemented in QImage, QPixmap, and QWidget.
Definition at line 92 of file qpaintdevice.h.
| 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.
| int logicalDpiY | ( | ) | const [inline] |
Definition at line 96 of file qpaintdevice.h.
| 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.
| virtual int metric | ( | PaintDeviceMetric | metric | ) | const [protected, virtual] |
Reimplemented in QImage, QPicture, QPixmap, QPrinter, QWidget, QGLFramebufferObject, and QGLPixelBuffer.
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] |
ushort painters
[protected] |
Definition at line 109 of file qpaintdevice.h.