Qt 4.8
Public Functions | Properties | List of all members
QFakeDevice Class Reference
Inheritance diagram for QFakeDevice:
QPaintDevice QPaintDevice

Public Functions

int metric (PaintDeviceMetric m) const
 
int metric (PaintDeviceMetric m) const
 
QPaintEnginepaintEngine () const
 
QPaintEnginepaintEngine () const
 
 QFakeDevice ()
 
 QFakeDevice ()
 
void setDpiX (int dpi)
 
void setDpiX (int dpi)
 
void setDpiY (int dpi)
 
void setDpiY (int dpi)
 
- Public Functions inherited from QPaintDevice
int colorCount () const
 
int depth () const
 
virtual int devType () const
 
virtual HDC getDC () const
 
int height () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
QT_DEPRECATED int numColors () const
 
bool paintingActive () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
virtual void releaseDC (HDC hdc) const
 
int width () const
 
int widthMM () const
 
virtual ~QPaintDevice ()
 

Properties

int dpi_x
 
int dpi_y
 

Additional Inherited Members

- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}
 
- Static Public Functions inherited from QPaintDevice
static QWSDisplayqwsDisplay ()
 
- Protected Functions inherited from QPaintDevice
 QPaintDevice ()
 
- Protected Variables inherited from QPaintDevice
ushort painters
 

Detailed Description

Definition at line 455 of file qpicture.cpp.

Constructors and Destructors

◆ QFakeDevice() [1/2]

QFakeDevice::QFakeDevice ( )
inline

Definition at line 458 of file qpicture.cpp.

Q_GUI_EXPORT int qt_defaultDpiY()
Definition: qfont.cpp:201
Q_GUI_EXPORT int qt_defaultDpiX()
Definition: qfont.cpp:162

◆ QFakeDevice() [2/2]

QFakeDevice::QFakeDevice ( )
inline

Definition at line 1348 of file qpaintbuffer.cpp.

Q_GUI_EXPORT int qt_defaultDpiY()
Definition: qfont.cpp:201
Q_GUI_EXPORT int qt_defaultDpiX()
Definition: qfont.cpp:162

Functions

◆ metric() [1/2]

int QFakeDevice::metric ( PaintDeviceMetric  m) const
inlinevirtual

Reimplemented from QPaintDevice.

Definition at line 462 of file qpicture.cpp.

463  {
464  switch(m) {
465  case PdmPhysicalDpiX:
466  case PdmDpiX:
467  return dpi_x;
468  case PdmPhysicalDpiY:
469  case PdmDpiY:
470  return dpi_y;
471  default:
472  return QPaintDevice::metric(m);
473  }
474  }
virtual int metric(PaintDeviceMetric metric) const

◆ metric() [2/2]

int QFakeDevice::metric ( PaintDeviceMetric  m) const
inlinevirtual

Reimplemented from QPaintDevice.

Definition at line 1352 of file qpaintbuffer.cpp.

1353  {
1354  switch(m) {
1355  case PdmPhysicalDpiX:
1356  case PdmDpiX:
1357  return dpi_x;
1358  case PdmPhysicalDpiY:
1359  case PdmDpiY:
1360  return dpi_y;
1361  default:
1362  return QPaintDevice::metric(m);
1363  }
1364  }
virtual int metric(PaintDeviceMetric metric) const

◆ paintEngine() [1/2]

QPaintEngine* QFakeDevice::paintEngine ( ) const
inlinevirtual

Implements QPaintDevice.

Definition at line 461 of file qpicture.cpp.

461 { return 0; }

◆ paintEngine() [2/2]

QPaintEngine* QFakeDevice::paintEngine ( ) const
inlinevirtual

Implements QPaintDevice.

Definition at line 1351 of file qpaintbuffer.cpp.

1351 { return 0; }

◆ setDpiX() [1/2]

void QFakeDevice::setDpiX ( int  dpi)
inline

Definition at line 459 of file qpicture.cpp.

Referenced by QPicture::exec(), and QPainterReplayer::process().

459 { dpi_x = dpi; }

◆ setDpiX() [2/2]

void QFakeDevice::setDpiX ( int  dpi)
inline

Definition at line 1349 of file qpaintbuffer.cpp.

1349 { dpi_x = dpi; }

◆ setDpiY() [1/2]

void QFakeDevice::setDpiY ( int  dpi)
inline

Definition at line 460 of file qpicture.cpp.

Referenced by QPicture::exec(), and QPainterReplayer::process().

460 { dpi_y = dpi; }

◆ setDpiY() [2/2]

void QFakeDevice::setDpiY ( int  dpi)
inline

Definition at line 1350 of file qpaintbuffer.cpp.

1350 { dpi_y = dpi; }

Properties

◆ dpi_x

int QFakeDevice::dpi_x
private

Definition at line 477 of file qpicture.cpp.

◆ dpi_y

int QFakeDevice::dpi_y
private

Definition at line 478 of file qpicture.cpp.


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