OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
uiFont Class Reference
Inheritance diagram for uiFont:
[legend]

Public Member Functions

virtual ~uiFont ()
 
uiFontoperator= (const uiFont &)
 
FontData fontData () const
 
void setFontData (const FontData &)
 Updates internal QFont and QFontMetrics. More...
 
const mQtclass (QFont &) qFont() const
 
int height () const
 
int leading () const
 
int maxWidth () const
 
int avgWidth () const
 
int width (const uiString &) const
 
int ascent () const
 
int descent () const
 
const char * key () const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static void setFontData (mQtclass(QFont)&, const FontData &)
 
static void getFontData (FontData &, const mQtclass(QFont)&)
 
static mQtclass (QFont)*createQFont(const FontData &)
 

Public Attributes

Notifier< uiFontchanged
 

Protected Member Functions

 uiFont (const char *ky, const char *family, int ps=FontData::defaultPointSize(), FontData::Weight w=FontData::defaultWeight(), bool it=FontData::defaultItalic())
 uiFont must be created through the uiFontList More...
 
 uiFont (const char *ky, FontData fd=FontData())
 
 uiFont (const uiFont &)
 
 mQtclass (QFont *) qfont_
 
 mQtclass (QFontMetrics &) qfontmetrics_
 
void updateMetrics ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

BufferString key_
 

Friends

class uiFontList
 

Detailed Description

Constructor & Destructor Documentation

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

uiFont must be created through the uiFontList

uiFont::uiFont ( const char *  ky,
FontData  fd = FontData() 
)
protected
uiFont::uiFont ( const uiFont )
protected

Member Function Documentation

int uiFont::ascent ( ) const
int uiFont::avgWidth ( ) const
int uiFont::descent ( ) const
FontData uiFont::fontData ( ) const
static void uiFont::getFontData ( FontData ,
const mQtclass(QFont)&   
)
static
int uiFont::height ( ) const
const char* uiFont::key ( ) const
inline
int uiFont::leading ( ) const
int uiFont::maxWidth ( ) const
static uiFont::mQtclass ( QFont  ) const
static
const uiFont::mQtclass ( QFont &  ) const
inline
uiFont::mQtclass ( QFont *  )
protected
uiFont::mQtclass ( QFontMetrics &  )
protected
uiFont& uiFont::operator= ( const uiFont )
void uiFont::setFontData ( const FontData )

Updates internal QFont and QFontMetrics.

static void uiFont::setFontData ( mQtclass(QFont)&  ,
const FontData  
)
static
void uiFont::updateMetrics ( )
protected
int uiFont::width ( const uiString ) const

Friends And Related Function Documentation

friend class uiFontList
friend

Member Data Documentation

Notifier<uiFont> uiFont::changed
BufferString uiFont::key_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019