Qt 4.8
Public Functions | Properties | List of all members
QMacQuartzPaintDevice Class Reference

#include <qpaintengine_mac_p.h>

Inheritance diagram for QMacQuartzPaintDevice:
QPaintDevice

Public Functions

CGContextRef cgContext () const
 
int devType () const
 
int metric (PaintDeviceMetric metric) const
 
QPaintEnginepaintEngine () const
 
 QMacQuartzPaintDevice (CGContextRef cg, int width, int height, int bytesPerLine)
 
- Public Functions inherited from QPaintDevice
int colorCount () const
 
int depth () 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 mBytesPerLine
 
CGContextRef mCG
 
int mHeight
 
int mWidth
 

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 216 of file qpaintengine_mac_p.h.

Constructors and Destructors

◆ QMacQuartzPaintDevice()

QMacQuartzPaintDevice::QMacQuartzPaintDevice ( CGContextRef  cg,
int  width,
int  height,
int  bytesPerLine 
)
inline

Definition at line 219 of file qpaintengine_mac_p.h.

Functions

◆ cgContext()

CGContextRef QMacQuartzPaintDevice::cgContext ( ) const
inline

Definition at line 223 of file qpaintengine_mac_p.h.

223 { return mCG; }

◆ devType()

int QMacQuartzPaintDevice::devType ( ) const
inlinevirtual

Reimplemented from QPaintDevice.

Definition at line 222 of file qpaintengine_mac_p.h.

◆ metric()

int QMacQuartzPaintDevice::metric ( PaintDeviceMetric  metric) const
inlinevirtual

Reimplemented from QPaintDevice.

Definition at line 224 of file qpaintengine_mac_p.h.

224  {
225  switch (metric) {
226  case PdmWidth:
227  return mWidth;
228  case PdmHeight:
229  return mHeight;
230  case PdmWidthMM:
231  return (qt_defaultDpiX() * mWidth) / 2.54;
232  case PdmHeightMM:
233  return (qt_defaultDpiY() * mHeight) / 2.54;
234  case PdmNumColors:
235  return 0;
236  case PdmDepth:
237  return 32;
238  case PdmDpiX:
239  case PdmPhysicalDpiX:
240  return qt_defaultDpiX();
241  case PdmDpiY:
242  case PdmPhysicalDpiY:
243  return qt_defaultDpiY();
244  }
245  return 0;
246  }
Q_GUI_EXPORT int qt_defaultDpiY()
Definition: qfont.cpp:201
Q_GUI_EXPORT int qt_defaultDpiX()
Definition: qfont.cpp:162
int metric(PaintDeviceMetric metric) const

◆ paintEngine()

QPaintEngine* QMacQuartzPaintDevice::paintEngine ( ) const
inlinevirtual

Implements QPaintDevice.

Definition at line 247 of file qpaintengine_mac_p.h.

247 { qWarning("This function should never be called."); return 0; }
Q_CORE_EXPORT void qWarning(const char *,...)

Properties

◆ mBytesPerLine

int QMacQuartzPaintDevice::mBytesPerLine
private

Definition at line 252 of file qpaintengine_mac_p.h.

◆ mCG

CGContextRef QMacQuartzPaintDevice::mCG
private

Definition at line 249 of file qpaintengine_mac_p.h.

◆ mHeight

int QMacQuartzPaintDevice::mHeight
private

Definition at line 251 of file qpaintengine_mac_p.h.

◆ mWidth

int QMacQuartzPaintDevice::mWidth
private

Definition at line 250 of file qpaintengine_mac_p.h.


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