QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
QPaintDevice Class Referenceabstract

#include <qpaintdevice.h>

Inheritance diagram for QPaintDevice:
Inheritance graph
[legend]

Public Types

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

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
 
qreal devicePixelRatio () const
 
qreal devicePixelRatioF () const
 
int colorCount () const
 
int depth () const
 

Static Public Member Functions

static qreal devicePixelRatioFScale ()
 

Protected Member Functions

 QPaintDevice () noexcept
 
virtual int metric (PaintDeviceMetric metric) const
 
virtual void initPainter (QPainter *painter) const
 
virtual QPaintDeviceredirected (QPoint *offset) const
 
virtual QPaintersharedPainter () 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, PaintDeviceMetric metric)
 

Detailed Description

Definition at line 53 of file qpaintdevice.h.

Member Enumeration Documentation

◆ PaintDeviceMetric

Enumerator
PdmWidth 
PdmHeight 
PdmWidthMM 
PdmHeightMM 
PdmNumColors 
PdmDepth 
PdmDpiX 
PdmDpiY 
PdmPhysicalDpiX 
PdmPhysicalDpiY 
PdmDevicePixelRatio 
PdmDevicePixelRatioScaled 

Definition at line 56 of file qpaintdevice.h.

Constructor & Destructor Documentation

◆ ~QPaintDevice()

QPaintDevice::~QPaintDevice ( )
virtual

Definition at line 49 of file qpaintdevice.cpp.

Here is the call graph for this function:

◆ QPaintDevice()

QT_BEGIN_NAMESPACE QPaintDevice::QPaintDevice ( )
protectednoexcept

Definition at line 44 of file qpaintdevice.cpp.

Member Function Documentation

◆ colorCount()

int QPaintDevice::colorCount ( ) const
inline

Definition at line 87 of file qpaintdevice.h.

◆ depth()

int QPaintDevice::depth ( ) const
inline

Definition at line 88 of file qpaintdevice.h.

◆ devicePixelRatio()

qreal QPaintDevice::devicePixelRatio ( ) const
inline

Definition at line 85 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ devicePixelRatioF()

qreal QPaintDevice::devicePixelRatioF ( ) const
inline

Definition at line 86 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ devicePixelRatioFScale()

static qreal QPaintDevice::devicePixelRatioFScale ( )
inlinestatic

Definition at line 90 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ devType()

int QPaintDevice::devType ( ) const
inlinevirtual

Reimplemented in QWidget, QPrinter, QWindowsDirect2DPaintDevice, QOpenGLPaintDevice, QPixmap, QPicture, and QImage.

Definition at line 113 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ height()

int QPaintDevice::height ( ) const
inline

Definition at line 78 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ heightMM()

int QPaintDevice::heightMM ( ) const
inline

Definition at line 80 of file qpaintdevice.h.

◆ initPainter()

void QPaintDevice::initPainter ( QPainter painter) const
protectedvirtual

Reimplemented in QWidget.

Definition at line 60 of file qpaintdevice.cpp.

Here is the caller graph for this function:

◆ logicalDpiX()

int QPaintDevice::logicalDpiX ( ) const
inline

Definition at line 81 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ logicalDpiY()

int QPaintDevice::logicalDpiY ( ) const
inline

Definition at line 82 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ metric()

int QPaintDevice::metric ( PaintDeviceMetric  metric) const
protectedvirtual

Reimplemented in QOpenGLWidget, QOpenGLPaintDevice, QWidget, QPrinter, QPixmap, CustomWidget, DummyPaintEngine, QWindowsDirect2DPaintDevice, QOpenGLWindow, QRasterWindow, QPaintDeviceWindow, QImage, QPicture, QFakeDevice, and QPdfWriter.

Definition at line 85 of file qpaintdevice.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ paintEngine()

virtual QPaintEngine* QPaintDevice::paintEngine ( ) const
pure virtual

◆ paintingActive()

bool QPaintDevice::paintingActive ( ) const
inline

Definition at line 116 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ physicalDpiX()

int QPaintDevice::physicalDpiX ( ) const
inline

Definition at line 83 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ physicalDpiY()

int QPaintDevice::physicalDpiY ( ) const
inline

Definition at line 84 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ redirected()

QPaintDevice * QPaintDevice::redirected ( QPoint offset) const
protectedvirtual

Reimplemented in QOpenGLWidget, QWidget, QOpenGLWindow, and QRasterWindow.

Definition at line 67 of file qpaintdevice.cpp.

Here is the caller graph for this function:

◆ sharedPainter()

QPainter * QPaintDevice::sharedPainter ( ) const
protectedvirtual

Reimplemented in QWidget.

Definition at line 75 of file qpaintdevice.cpp.

Here is the caller graph for this function:

◆ width()

int QPaintDevice::width ( ) const
inline

Definition at line 77 of file qpaintdevice.h.

Here is the caller graph for this function:

◆ widthMM()

int QPaintDevice::widthMM ( ) const
inline

Definition at line 79 of file qpaintdevice.h.

Friends And Related Function Documentation

◆ QFontEngineMac

friend class QFontEngineMac
friend

Definition at line 104 of file qpaintdevice.h.

◆ QPainter

friend class QPainter
friend

Definition at line 102 of file qpaintdevice.h.

◆ QPainterPrivate

friend class QPainterPrivate
friend

Definition at line 103 of file qpaintdevice.h.

◆ qt_paint_device_metric

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

Definition at line 80 of file qpaintdevice.cpp.

◆ QX11PaintEngine

friend class QX11PaintEngine
friend

Definition at line 105 of file qpaintdevice.h.

Member Data Documentation

◆ painters

ushort QPaintDevice::painters
protected

Definition at line 98 of file qpaintdevice.h.


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