Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWindowsDirect2DPaintDevice Class Reference

#include <qwindowsdirect2dpaintdevice.h>

+ Inheritance diagram for QWindowsDirect2DPaintDevice:
+ Collaboration diagram for QWindowsDirect2DPaintDevice:

Public Member Functions

 QWindowsDirect2DPaintDevice (QWindowsDirect2DBitmap *bitmap, QInternal::PaintDeviceFlags flags, QWindowsDirect2DPaintEngine::Flags paintFlags=QWindowsDirect2DPaintEngine::NoFlag)
 
 ~QWindowsDirect2DPaintDevice ()
 
QPaintEnginepaintEngine () const override
 
int devType () const override
 
- Public Member Functions inherited from QPaintDevice
virtual ~QPaintDevice ()
 
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
 

Protected Member Functions

int metric (PaintDeviceMetric metric) const override
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice () noexcept
 
virtual void initPainter (QPainter *painter) const
 
virtual QPaintDeviceredirected (QPoint *offset) const
 
virtual QPaintersharedPainter () 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 Attributes inherited from QPaintDevice
ushort painters
 

Detailed Description

Definition at line 16 of file qwindowsdirect2dpaintdevice.h.

Constructor & Destructor Documentation

◆ QWindowsDirect2DPaintDevice()

QWindowsDirect2DPaintDevice::QWindowsDirect2DPaintDevice ( QWindowsDirect2DBitmap * bitmap,
QInternal::PaintDeviceFlags flags,
QWindowsDirect2DPaintEngine::Flags paintFlags = QWindowsDirect2DPaintEngine::NoFlag )

Definition at line 30 of file qwindowsdirect2dpaintdevice.cpp.

◆ ~QWindowsDirect2DPaintDevice()

QWindowsDirect2DPaintDevice::~QWindowsDirect2DPaintDevice ( )

Definition at line 36 of file qwindowsdirect2dpaintdevice.cpp.

Member Function Documentation

◆ devType()

int QWindowsDirect2DPaintDevice::devType ( ) const
overridevirtual

Reimplemented from QPaintDevice.

Definition at line 47 of file qwindowsdirect2dpaintdevice.cpp.

References d.

◆ metric()

int QWindowsDirect2DPaintDevice::metric ( QPaintDevice::PaintDeviceMetric metric) const
overrideprotectedvirtual

Reimplemented from QPaintDevice.

Definition at line 54 of file qwindowsdirect2dpaintdevice.cpp.

References d, QPaintDevice::devicePixelRatioFScale(), QWindowsDirect2DContext::instance(), metric(), QPaintDevice::PdmDepth, QPaintDevice::PdmDevicePixelRatio, QPaintDevice::PdmDevicePixelRatioScaled, QPaintDevice::PdmDpiX, QPaintDevice::PdmDpiY, QPaintDevice::PdmHeight, QPaintDevice::PdmHeightMM, QPaintDevice::PdmNumColors, QPaintDevice::PdmPhysicalDpiX, QPaintDevice::PdmPhysicalDpiY, QPaintDevice::PdmWidth, QPaintDevice::PdmWidthMM, qRound(), QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, and QT_WARNING_PUSH.

Referenced by metric().

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

◆ paintEngine()

QPaintEngine * QWindowsDirect2DPaintDevice::paintEngine ( ) const
overridevirtual

Implements QPaintDevice.

Definition at line 40 of file qwindowsdirect2dpaintdevice.cpp.

References d.


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