cFont Class Reference

#include <font.h>

Inheritance diagram for cFont:

Inheritance graph
[legend]
Collaboration diagram for cFont:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { NUMCHARS = 256 }
typedef uint32_t tPixelData

Public Member Functions

 cFont (const void *Data)
virtual ~cFont ()
void SetData (const void *Data)
virtual int Width (unsigned char c) const
 Returns the width of the given character.
virtual int Width (const char *s) const
 Returns the width of the given string.
virtual int Height (unsigned char c) const
 Returns the height of the given character.
virtual int Height (const char *s) const
 Returns the height of the given string.
virtual int Height (void) const
 Returns the height of this font (all characters have the same height).
const tCharDataCharData (unsigned char c) const

Static Public Member Functions

static bool SetCode (const char *Code)
static void SetCode (eDvbCode Code)
static void SetFont (eDvbFont Font, const void *Data=NULL)
static const cFontGetFont (eDvbFont Font)

Private Attributes

const tCharDatadata [NUMCHARS]
int height

Static Private Attributes

static eDvbCode code = code_iso8859_1
static cFontfonts [] = { NULL }

Classes

struct  tCharData


Detailed Description

Definition at line 33 of file font.h.


Member Typedef Documentation

typedef uint32_t cFont::tPixelData

Definition at line 36 of file font.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NUMCHARS 

Definition at line 35 of file font.h.


Constructor & Destructor Documentation

cFont::cFont ( const void *  Data  ) 

Definition at line 62 of file font.c.

References SetData().

Referenced by SetFont().

Here is the call graph for this function:

virtual cFont::~cFont (  )  [inline, virtual]

Definition at line 48 of file font.h.


Member Function Documentation

void cFont::SetData ( const void *  Data  ) 

Definition at line 67 of file font.c.

References data, height, and NUMCHARS.

Referenced by cFont(), and SetCode().

virtual int cFont::Width ( unsigned char  c  )  const [inline, virtual]

Returns the width of the given character.

Reimplemented in cCursesFont.

Definition at line 50 of file font.h.

References data, and cFont::tCharData::width.

Referenced by cSkinClassicDisplayChannel::cSkinClassicDisplayChannel(), cSkinClassicDisplayTracks::cSkinClassicDisplayTracks(), cSkinSTTNGDisplayChannel::cSkinSTTNGDisplayChannel(), cSkinSTTNGDisplayTracks::cSkinSTTNGDisplayTracks(), cCursesOsd::DrawText(), cBitmap::DrawText(), cSkinSTTNGDisplayMenu::Flush(), cSkinSTTNGDisplayChannel::Flush(), cSkinClassicDisplayMenu::Flush(), cSkinClassicDisplayChannel::Flush(), cMenuEditStrItem::Set(), cTextWrapper::Set(), cSkinSTTNGDisplayMenu::SetButtons(), cSkinSTTNGDisplayReplay::SetCurrent(), cSkinClassicDisplayReplay::SetCurrent(), cSkinSTTNGDisplayMenu::SetTitle(), cSkinSTTNGDisplayReplay::SetTotal(), cSkinClassicDisplayReplay::SetTotal(), cSkinClassicDisplayVolume::SetVolume(), and Width().

int cFont::Width ( const char *  s  )  const [virtual]

Returns the width of the given string.

Reimplemented in cCursesFont.

Definition at line 78 of file font.c.

References Width().

Here is the call graph for this function:

virtual int cFont::Height ( unsigned char  c  )  const [inline, virtual]

Returns the height of the given character.

Reimplemented in cCursesFont.

Definition at line 54 of file font.h.

References data, and cFont::tCharData::height.

Referenced by cSkinClassicDisplayChannel::cSkinClassicDisplayChannel(), cSkinClassicDisplayMenu::cSkinClassicDisplayMenu(), cSkinClassicDisplayMessage::cSkinClassicDisplayMessage(), cSkinClassicDisplayReplay::cSkinClassicDisplayReplay(), cSkinClassicDisplayTracks::cSkinClassicDisplayTracks(), cSkinClassicDisplayVolume::cSkinClassicDisplayVolume(), cSkinSTTNGDisplayChannel::cSkinSTTNGDisplayChannel(), cSkinSTTNGDisplayMenu::cSkinSTTNGDisplayMenu(), cSkinSTTNGDisplayMessage::cSkinSTTNGDisplayMessage(), cSkinSTTNGDisplayReplay::cSkinSTTNGDisplayReplay(), cSkinSTTNGDisplayTracks::cSkinSTTNGDisplayTracks(), cSkinSTTNGDisplayVolume::cSkinSTTNGDisplayVolume(), cCursesOsd::DrawText(), cTextScroller::DrawText(), cBitmap::DrawText(), cSkinSTTNGDisplayMenu::Flush(), cSkinSTTNGDisplayChannel::Flush(), cTextScroller::Set(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinClassicDisplayMenu::SetRecording().

int cFont::Height ( const char *  s  )  const [virtual]

Returns the height of the given string.

Reimplemented in cCursesFont.

Definition at line 86 of file font.c.

References height.

virtual int cFont::Height ( void   )  const [inline, virtual]

Returns the height of this font (all characters have the same height).

Reimplemented in cCursesFont.

Definition at line 58 of file font.h.

References height.

const tCharData* cFont::CharData ( unsigned char  c  )  const [inline]

Definition at line 60 of file font.h.

References data.

Referenced by cBitmap::DrawText().

bool cFont::SetCode ( const char *  Code  )  [static]

Definition at line 94 of file font.c.

References eDvbCodeSize, and FontCode.

Referenced by main(), cMenuSetupOSD::ProcessKey(), and cMenuSetupOSD::~cMenuSetupOSD().

void cFont::SetCode ( eDvbCode  Code  )  [static]

Definition at line 105 of file font.c.

References code, eDvbFontSize, FontData, fonts, and SetData().

Here is the call graph for this function:

void cFont::SetFont ( eDvbFont  Font,
const void *  Data = NULL 
) [static]

Definition at line 116 of file font.c.

References cFont(), code, FontData, and fonts.

Referenced by GetFont().

Here is the call graph for this function:

const cFont * cFont::GetFont ( eDvbFont  Font  )  [static]

Definition at line 122 of file font.c.

References fontOsd, fonts, SetFont(), Setup, and cSetup::UseSmallFont.

Referenced by cSkinClassicDisplayChannel::cSkinClassicDisplayChannel(), cSkinClassicDisplayMenu::cSkinClassicDisplayMenu(), cSkinClassicDisplayMessage::cSkinClassicDisplayMessage(), cSkinClassicDisplayReplay::cSkinClassicDisplayReplay(), cSkinClassicDisplayTracks::cSkinClassicDisplayTracks(), cSkinClassicDisplayVolume::cSkinClassicDisplayVolume(), cSkinSTTNGDisplayChannel::cSkinSTTNGDisplayChannel(), cSkinSTTNGDisplayMenu::cSkinSTTNGDisplayMenu(), cSkinSTTNGDisplayMessage::cSkinSTTNGDisplayMessage(), cSkinSTTNGDisplayReplay::cSkinSTTNGDisplayReplay(), cSkinSTTNGDisplayTracks::cSkinSTTNGDisplayTracks(), cSkinSTTNGDisplayVolume::cSkinSTTNGDisplayVolume(), cSkinSTTNGDisplayMenu::Flush(), cSkinSTTNGDisplayChannel::Flush(), cSkinClassicDisplayMenu::Flush(), cSkinClassicDisplayChannel::Flush(), cSkinSTTNGDisplayMenu::GetTextAreaFont(), cSkinClassicDisplayMenu::GetTextAreaFont(), cMenuEditStrItem::Set(), cSkinSTTNGDisplayMenu::SetButtons(), cSkinClassicDisplayMenu::SetButtons(), cSkinSTTNGDisplayChannel::SetChannel(), cSkinClassicDisplayChannel::SetChannel(), cSkinSTTNGDisplayReplay::SetCurrent(), cSkinClassicDisplayReplay::SetCurrent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinSTTNGDisplayChannel::SetEvents(), cSkinClassicDisplayChannel::SetEvents(), cSkinSTTNGDisplayTracks::SetItem(), cSkinSTTNGDisplayMenu::SetItem(), cSkinClassicDisplayTracks::SetItem(), cSkinClassicDisplayMenu::SetItem(), cSkinSTTNGDisplayReplay::SetJump(), cSkinClassicDisplayReplay::SetJump(), cSkinSTTNGDisplayMessage::SetMessage(), cSkinSTTNGDisplayReplay::SetMessage(), cSkinSTTNGDisplayMenu::SetMessage(), cSkinSTTNGDisplayChannel::SetMessage(), cSkinClassicDisplayMessage::SetMessage(), cSkinClassicDisplayReplay::SetMessage(), cSkinClassicDisplayMenu::SetMessage(), cSkinClassicDisplayChannel::SetMessage(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinSTTNGDisplayReplay::SetTitle(), cSkinSTTNGDisplayMenu::SetTitle(), cSkinClassicDisplayReplay::SetTitle(), cSkinClassicDisplayMenu::SetTitle(), cSkinSTTNGDisplayReplay::SetTotal(), cSkinClassicDisplayReplay::SetTotal(), and cSkinClassicDisplayVolume::SetVolume().

Here is the call graph for this function:


Member Data Documentation

eDvbCode cFont::code = code_iso8859_1 [static, private]

Definition at line 42 of file font.h.

Referenced by SetCode(), and SetFont().

cFont * cFont::fonts = { NULL } [static, private]

Definition at line 43 of file font.h.

Referenced by GetFont(), SetCode(), and SetFont().

const tCharData* cFont::data[NUMCHARS] [private]

Definition at line 44 of file font.h.

Referenced by CharData(), Height(), SetData(), and Width().

int cFont::height [private]

Definition at line 45 of file font.h.

Referenced by Height(), and SetData().


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 20:12:32 2007 for VDR by  doxygen 1.5.3-20071008