QtBase  v6.3.1
Public Member Functions | List of all members
QFakeDevice Class Reference
Inheritance diagram for QFakeDevice:
Inheritance graph
[legend]
Collaboration diagram for QFakeDevice:
Collaboration graph
[legend]

Public Member Functions

 QFakeDevice ()
 
void setDpiX (int dpi)
 
void setDpiY (int dpi)
 
QPaintEnginepaintEngine () const override
 
int metric (PaintDeviceMetric m) const override
 
- Public Member Functions inherited from QPaintDevice
virtual ~QPaintDevice ()
 
virtual int devType () const
 
bool paintingActive () const
 
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
 

Additional Inherited Members

- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric {
  PdmWidth = 1 , PdmHeight , PdmWidthMM , PdmHeightMM ,
  PdmNumColors , PdmDepth , PdmDpiX , PdmDpiY ,
  PdmPhysicalDpiX , PdmPhysicalDpiY , PdmDevicePixelRatio , PdmDevicePixelRatioScaled
}
 
- Static Public Member Functions inherited from QPaintDevice
static qreal devicePixelRatioFScale ()
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice () noexcept
 
virtual void initPainter (QPainter *painter) const
 
virtual QPaintDeviceredirected (QPoint *offset) const
 
virtual QPaintersharedPainter () const
 
- Protected Attributes inherited from QPaintDevice
ushort painters
 

Detailed Description

Definition at line 404 of file qpicture.cpp.

Constructor & Destructor Documentation

◆ QFakeDevice()

QFakeDevice::QFakeDevice ( )
inline

Definition at line 407 of file qpicture.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ metric()

int QFakeDevice::metric ( PaintDeviceMetric  m) const
inlineoverridevirtual

Reimplemented from QPaintDevice.

Definition at line 411 of file qpicture.cpp.

Here is the call graph for this function:

◆ paintEngine()

QPaintEngine* QFakeDevice::paintEngine ( ) const
inlineoverridevirtual

Implements QPaintDevice.

Definition at line 410 of file qpicture.cpp.

◆ setDpiX()

void QFakeDevice::setDpiX ( int  dpi)
inline

Definition at line 408 of file qpicture.cpp.

Here is the call graph for this function:

◆ setDpiY()

void QFakeDevice::setDpiY ( int  dpi)
inline

Definition at line 409 of file qpicture.cpp.

Here is the call graph for this function:

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