![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qpaintdevice.h>
Public Types | |
| enum | PaintDeviceMetric { PdmWidth = 1 , PdmHeight , PdmWidthMM , PdmHeightMM , PdmNumColors , PdmDepth , PdmDpiX , PdmDpiY , PdmPhysicalDpiX , PdmPhysicalDpiY , PdmDevicePixelRatio , PdmDevicePixelRatioScaled , PdmDevicePixelRatioF_EncodedA , PdmDevicePixelRatioF_EncodedB } |
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 |
| qreal | devicePixelRatio () const |
| qreal | devicePixelRatioF () const |
| int | colorCount () const |
| int | depth () const |
Static Public Member Functions | |
| static qreal | devicePixelRatioFScale () |
| static int | encodeMetricF (PaintDeviceMetric metric, double valuevalue) |
Protected Member Functions | |
| QPaintDevice () noexcept | |
| virtual int | metric (PaintDeviceMetric metric) const |
| virtual void | initPainter (QPainter *painter) const |
| virtual QPaintDevice * | redirected (QPoint *offsetoffset) const |
| virtual QPainter * | sharedPainter () const |
| double | getDecodedMetricF (PaintDeviceMetric metricA, PaintDeviceMetric metricB) const |
Protected Attributes | |
| ushort | painters |
Friends | |
| class | QPainter |
| class | QPainterPrivate |
| class | QFontEngineMac |
| class | QX11PaintEngine |
| Q_GUI_EXPORT int | qt_paint_device_metric (const QPaintDevice *device, QPaintDevice::PaintDeviceMetric metric) |
Definition at line 18 of file qpaintdevice.h.
Definition at line 21 of file qpaintdevice.h.
|
virtual |
Definition at line 14 of file qpaintdevice.cpp.
|
protectednoexcept |
Definition at line 9 of file qpaintdevice.cpp.
|
inline |
Definition at line 54 of file qpaintdevice.h.
|
inline |
Definition at line 55 of file qpaintdevice.h.
| qreal QPaintDevice::devicePixelRatio | ( | ) | const |
Definition at line 38 of file qpaintdevice.cpp.
|
inline |
Definition at line 53 of file qpaintdevice.h.
|
inlinestatic |
Definition at line 57 of file qpaintdevice.h.
|
inlinevirtual |
Reimplemented in QImage, QOpenGLPaintDevice, QPicture, QPixmap, QPrinter, QWidget, and QWindowsDirect2DPaintDevice.
Definition at line 82 of file qpaintdevice.h.
|
inlinestatic |
Definition at line 88 of file qpaintdevice.h.
|
protected |
Definition at line 25 of file qpaintdevice.cpp.
|
inline |
Definition at line 45 of file qpaintdevice.h.
|
inline |
Definition at line 47 of file qpaintdevice.h.
Reimplemented in QSvgGenerator, and QWidget.
Definition at line 58 of file qpaintdevice.cpp.
|
inline |
Definition at line 48 of file qpaintdevice.h.
|
inline |
Definition at line 49 of file qpaintdevice.h.
|
protectedvirtual |
Reimplemented in QFakeDevice, QFakeDevice, QImage, QOpenGLPaintDevice, QOpenGLWidget, QOpenGLWindow, QPaintDeviceWindow, QPdfWriter, QPicture, QPixmap, QPrinter, QRasterWindow, QSvgGenerator, QWidget, and QWindowsDirect2DPaintDevice.
Definition at line 83 of file qpaintdevice.cpp.
|
pure virtual |
Implemented in QFakeDevice, QFakeDevice, QImage, QOpenGLPaintDevice, QOpenGLWidget, QPaintDeviceWindow, QPdfWriter, QPicture, QPixmap, QPrinter, QSvgGenerator, QWidget, and QWindowsDirect2DPaintDevice.
|
inline |
Definition at line 85 of file qpaintdevice.h.
|
inline |
Definition at line 50 of file qpaintdevice.h.
|
inline |
Definition at line 51 of file qpaintdevice.h.
|
protectedvirtual |
Reimplemented in QOpenGLWidget, QOpenGLWindow, QRasterWindow, and QWidget.
Definition at line 65 of file qpaintdevice.cpp.
|
protectedvirtual |
Reimplemented in QWidget.
Definition at line 73 of file qpaintdevice.cpp.
|
inline |
Definition at line 44 of file qpaintdevice.h.
|
inline |
Definition at line 46 of file qpaintdevice.h.
|
friend |
Definition at line 73 of file qpaintdevice.h.
|
friend |
Definition at line 71 of file qpaintdevice.h.
|
friend |
Definition at line 72 of file qpaintdevice.h.
|
friend |
Definition at line 78 of file qpaintdevice.cpp.
|
friend |
Definition at line 74 of file qpaintdevice.h.
|
protected |
Definition at line 67 of file qpaintdevice.h.