Qt 4.8
Public Functions | Public Variables | List of all members
QFontCache::Key Struct Reference

#include <qfont_p.h>

Public Functions

 Key ()
 
 Key (const QFontDef &d, int c, int s=0)
 
bool operator< (const Key &other) const
 
bool operator== (const Key &other) const
 

Public Variables

QFontDef def
 
int screen
 
int script
 

Detailed Description

Definition at line 230 of file qfont_p.h.

Constructors and Destructors

◆ Key() [1/2]

QFontCache::Key::Key ( )
inline

Definition at line 231 of file qfont_p.h.

231 : script(0), screen(0) { }

◆ Key() [2/2]

QFontCache::Key::Key ( const QFontDef d,
int  c,
int  s = 0 
)
inline

Definition at line 232 of file qfont_p.h.

233  : def(d), script(c), screen(s) { }
unsigned char c[8]
Definition: qnumeric_p.h:62
QFontDef def
Definition: qfont_p.h:235

Functions

◆ operator<()

bool QFontCache::Key::operator< ( const Key other) const
inline

Definition at line 239 of file qfont_p.h.

240  {
241  if (script != other.script) return script < other.script;
242  if (screen != other.screen) return screen < other.screen;
243  return def < other.def;
244  }
QFontDef def
Definition: qfont_p.h:235

◆ operator==()

bool QFontCache::Key::operator== ( const Key other) const
inline

Definition at line 245 of file qfont_p.h.

246  { return def == other.def && script == other.script && screen == other.screen; }
QFontDef def
Definition: qfont_p.h:235

Properties

◆ def

QFontDef QFontCache::Key::def

Definition at line 235 of file qfont_p.h.

Referenced by operator<(), and operator==().

◆ screen

int QFontCache::Key::screen

Definition at line 237 of file qfont_p.h.

Referenced by QFontCache::cleanupPrinterFonts(), operator<(), and operator==().

◆ script

int QFontCache::Key::script

Definition at line 236 of file qfont_p.h.

Referenced by operator<(), and operator==().


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