Public Member Functions | Protected Member Functions | Protected Attributes | Friends

uiFont Class Reference

List of all members.

Public Member Functions

virtual ~uiFont ()
 uiFont must be created through the uiFontList
uiFontoperator= (const uiFont &)
FontData fontData () const
void setFontData (const FontData &)
 Updates internal QFont and QFontMetrics.
const QFont & qFont () const
int height () const
int leading () const
int maxWidth () const
int avgWidth () const
int width (const char *str) const
int ascent () const
int descent () const
const char * key () const

Protected Member Functions

 uiFont (const char *key, const char *family, int ps=FontData::defaultPointSize(), FontData::Weight w=FontData::defaultWeight(), bool it=FontData::defaultItalic())
 uiFont (const char *key, FontData fd=FontData())
 uiFont (const uiFont &)
void updateMetrics ()

Protected Attributes

QFont * qfont_
QFontMetrics & qfontmetrics_
BufferString key_

Friends

class uiFontList
bool select (uiFont &, uiParent *, const char *)
 < font stuff that needs Qt.

Constructor & Destructor Documentation

uiFont::uiFont ( const char *  key,
const char *  family,
int  ps = FontData::defaultPointSize(),
FontData::Weight  w = FontData::defaultWeight(),
bool  it = FontData::defaultItalic() 
) [protected]
uiFont::uiFont ( const char *  key,
FontData  fd = FontData() 
) [protected]
uiFont::uiFont ( const uiFont  )  [protected]
virtual uiFont::~uiFont (  )  [virtual]

uiFont must be created through the uiFontList


Member Function Documentation

int uiFont::ascent (  )  const
int uiFont::avgWidth (  )  const
int uiFont::descent (  )  const
FontData uiFont::fontData (  )  const
int uiFont::height (  )  const
const char* uiFont::key (  )  const [inline]
int uiFont::leading (  )  const
int uiFont::maxWidth (  )  const
uiFont& uiFont::operator= ( const uiFont  ) 
const QFont& uiFont::qFont (  )  const [inline]
void uiFont::setFontData ( const FontData  ) 

Updates internal QFont and QFontMetrics.

void uiFont::updateMetrics (  )  [protected]
int uiFont::width ( const char *  str  )  const

Friends And Related Function Documentation

bool select ( uiFont ,
uiParent ,
const char *   
) [friend]

< font stuff that needs Qt.

Returns:
true if new font selected
friend class uiFontList [friend]

Member Data Documentation

QFont* uiFont::qfont_ [protected]
QFontMetrics& uiFont::qfontmetrics_ [protected]