40 #ifndef QPAINTDEVICE_H
41 #define QPAINTDEVICE_H
43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qwindowdefs.h>
45 #include <QtCore/qrect.h>
68 PdmDevicePixelRatioScaled
73 virtual int devType()
const;
74 bool paintingActive()
const;
77 int width()
const {
return metric(PdmWidth); }
78 int height()
const {
return metric(PdmHeight); }
79 int widthMM()
const {
return metric(PdmWidthMM); }
80 int heightMM()
const {
return metric(PdmHeightMM); }
88 int depth()
const {
return metric(PdmDepth); }
93 virtual
int metric(PaintDeviceMetric metric)
const;
104 friend class QFontEngineMac;
117 {
return painters != 0; }
virtual QPaintEngine * paintEngine() const =0
bool paintingActive() const
qreal devicePixelRatio() const
qreal devicePixelRatioF() const
static qreal devicePixelRatioFScale()
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
The QPainter class performs low-level painting on widgets and other paint devices.
The QPoint class defines a point in the plane using integer precision.
auto it unsigned count const
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define Q_DISABLE_COPY(Class)
GLenum GLuint GLintptr offset
Q_GUI_EXPORT int qt_paint_device_metric(const QPaintDevice *device, QPaintDevice::PaintDeviceMetric metric)