OpendTect  7.0
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 ()
 
int ascent () const
 
int avgWidth () const
 
int descent () const
 
FontData fontData () const
 
int height () const
 
const char * key () const
 
int leading () const
 
int maxWidth () const
 
uiFontoperator= (const uiFont &)
 
const QFont & qFont () const
 
void setFontData (const FontData &)
 Updates internal QFont and QFontMetrics. More...
 
int width (const uiString &) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Static Public Member Functions

static QFont * createQFont (const FontData &)
 
static void getFontData (FontData &, const QFont &)
 
static void setFontData (QFont &, const FontData &)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

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 &)
 
void updateMetrics ()
 

Protected Attributes

BufferString key_
 
QFont * qfont_
 
QFontMetrics & qfontmetrics_
 

Friends

class uiFontList
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ ~uiFont()

virtual uiFont::~uiFont ( )
virtual

◆ uiFont() [1/3]

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() [2/3]

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

◆ uiFont() [3/3]

uiFont::uiFont ( const uiFont )
protected

Member Function Documentation

◆ ascent()

int uiFont::ascent ( ) const

◆ avgWidth()

int uiFont::avgWidth ( ) const

◆ createQFont()

static QFont* uiFont::createQFont ( const FontData )
static

◆ descent()

int uiFont::descent ( ) const

◆ fontData()

FontData uiFont::fontData ( ) const

◆ getFontData()

static void uiFont::getFontData ( FontData ,
const QFont &   
)
static

◆ height()

int uiFont::height ( ) const

◆ key()

const char* uiFont::key ( ) const
inline

◆ leading()

int uiFont::leading ( ) const

◆ maxWidth()

int uiFont::maxWidth ( ) const

◆ operator=()

uiFont& uiFont::operator= ( const uiFont )

◆ qFont()

const QFont& uiFont::qFont ( ) const
inline

◆ setFontData() [1/2]

void uiFont::setFontData ( const FontData )

Updates internal QFont and QFontMetrics.

◆ setFontData() [2/2]

static void uiFont::setFontData ( QFont &  ,
const FontData  
)
static

◆ updateMetrics()

void uiFont::updateMetrics ( )
protected

◆ width()

int uiFont::width ( const uiString ) const

Friends And Related Function Documentation

◆ uiFontList

friend class uiFontList
friend

Member Data Documentation

◆ changed

Notifier<uiFont> uiFont::changed

◆ key_

BufferString uiFont::key_
protected

◆ qfont_

QFont* uiFont::qfont_
protected

◆ qfontmetrics_

QFontMetrics& uiFont::qfontmetrics_
protected

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