Qt 4.8
Public Functions | Public Variables | List of all members
QFontEngineData Class Reference

#include <qfont_p.h>

Public Functions

 QFontEngineData ()
 
 ~QFontEngineData ()
 

Public Variables

QFontEngineengine
 
QFontCachefontCache
 
QAtomicInt ref
 

Detailed Description

Definition at line 146 of file qfont_p.h.

Constructors and Destructors

◆ QFontEngineData()

QFontEngineData::QFontEngineData ( )

Definition at line 406 of file qfont.cpp.

408 {
409 #if !defined(Q_WS_MAC)
410  memset(engines, 0, QUnicodeTables::ScriptCount * sizeof(QFontEngine *));
411 #else
412  engine = 0;
413 #endif
414 }
QFontCache * fontCache
Definition: qfont_p.h:153
static QFontCache * instance()
Definition: qfont.cpp:2919
static QList< QAxEngineDescriptor > engines
Definition: qaxscript.cpp:69
QAtomicInt ref
Definition: qfont_p.h:152
QFontEngine * engine
Definition: qfont_p.h:158

◆ ~QFontEngineData()

QFontEngineData::~QFontEngineData ( )

Definition at line 416 of file qfont.cpp.

417 {
418 #if !defined(Q_WS_MAC)
419  for (int i = 0; i < QUnicodeTables::ScriptCount; ++i) {
420  if (engines[i])
421  engines[i]->ref.deref();
422  engines[i] = 0;
423  }
424 #else
425  if (engine)
426  engine->ref.deref();
427  engine = 0;
428 #endif // Q_WS_X11 || Q_WS_WIN || Q_WS_MAC
429 }
QAtomicInt ref
static QList< QAxEngineDescriptor > engines
Definition: qaxscript.cpp:69
bool deref()
Atomically decrements the value of this QAtomicInt.
QFontEngine * engine
Definition: qfont_p.h:158

Properties

◆ engine

QFontEngine* QFontEngineData::engine

◆ fontCache

QFontCache* QFontEngineData::fontCache

Definition at line 153 of file qfont_p.h.

Referenced by QFontPrivate::engineForScript().

◆ ref

QAtomicInt QFontEngineData::ref

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