Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
nw4hbm::ut::Font Class Referenceabstract

#include <Font.h>

+ Inheritance diagram for nw4hbm::ut::Font:

Public Types

enum  Type { INVALID_CHARACTER_CODE = 0xFFFF , TYPE_NULL = 0 , TYPE_ROM , TYPE_RESOURCE }
 
typedef enum nw4hbm::ut::Font::Type Type
 

Public Member Functions

 Font ()
 
virtual ~Font ()
 
virtual int GetWidth () const =0
 
virtual int GetHeight () const =0
 
virtual int GetAscent () const =0
 
virtual int GetDescent () const =0
 
virtual int GetBaselinePos () const =0
 
virtual int GetCellHeight () const =0
 
virtual int GetCellWidth () const =0
 
virtual int GetMaxCharWidth () const =0
 
virtual Type GetType () const =0
 
virtual GXTexFmt GetTextureFormat () const =0
 
virtual int GetLineFeed () const =0
 
virtual CharWidths GetDefaultCharWidths () const =0
 
virtual void SetDefaultCharWidths (const CharWidths &widths)=0
 
virtual bool SetAlternateChar (u16 c)=0
 
virtual void SetLineFeed (int linefeed)=0
 
virtual int GetCharWidth (u16 c) const =0
 
virtual CharWidths GetCharWidths (u16 c) const =0
 
virtual void GetGlyph (Glyph *glyph, u16 c) const =0
 
virtual FontEncoding GetEncoding () const =0
 
void InitReaderFunc (FontEncoding encoding)
 
CharStrmReader GetCharStrmReader () const NO_INLINE
 

Private Attributes

CharStrmReader::ReadFunc mReaderFunc
 

Member Typedef Documentation

◆ Type

Member Enumeration Documentation

◆ Type

Enumerator
INVALID_CHARACTER_CODE 
TYPE_NULL 
TYPE_ROM 
TYPE_RESOURCE 

Constructor & Destructor Documentation

◆ Font()

nw4hbm::ut::Font::Font ( )
inline

◆ ~Font()

virtual nw4hbm::ut::Font::~Font ( )
inlinevirtual

Member Function Documentation

◆ GetAscent()

virtual int nw4hbm::ut::Font::GetAscent ( ) const
pure virtual

◆ GetBaselinePos()

virtual int nw4hbm::ut::Font::GetBaselinePos ( ) const
pure virtual

◆ GetCellHeight()

virtual int nw4hbm::ut::Font::GetCellHeight ( ) const
pure virtual

◆ GetCellWidth()

virtual int nw4hbm::ut::Font::GetCellWidth ( ) const
pure virtual

◆ GetCharStrmReader()

CharStrmReader nw4hbm::ut::Font::GetCharStrmReader ( ) const
inline

TODO: required to make ut_TextWriterBase.cpp happy

◆ GetCharWidth()

virtual int nw4hbm::ut::Font::GetCharWidth ( u16 c) const
pure virtual

◆ GetCharWidths()

virtual CharWidths nw4hbm::ut::Font::GetCharWidths ( u16 c) const
pure virtual

◆ GetDefaultCharWidths()

virtual CharWidths nw4hbm::ut::Font::GetDefaultCharWidths ( ) const
pure virtual

◆ GetDescent()

virtual int nw4hbm::ut::Font::GetDescent ( ) const
pure virtual

◆ GetEncoding()

virtual FontEncoding nw4hbm::ut::Font::GetEncoding ( ) const
pure virtual

◆ GetGlyph()

virtual void nw4hbm::ut::Font::GetGlyph ( Glyph * glyph,
u16 c ) const
pure virtual

◆ GetHeight()

virtual int nw4hbm::ut::Font::GetHeight ( ) const
pure virtual

◆ GetLineFeed()

virtual int nw4hbm::ut::Font::GetLineFeed ( ) const
pure virtual

◆ GetMaxCharWidth()

virtual int nw4hbm::ut::Font::GetMaxCharWidth ( ) const
pure virtual

◆ GetTextureFormat()

virtual GXTexFmt nw4hbm::ut::Font::GetTextureFormat ( ) const
pure virtual

◆ GetType()

virtual Type nw4hbm::ut::Font::GetType ( ) const
pure virtual

◆ GetWidth()

virtual int nw4hbm::ut::Font::GetWidth ( ) const
pure virtual

◆ InitReaderFunc()

void nw4hbm::ut::Font::InitReaderFunc ( FontEncoding encoding)

◆ SetAlternateChar()

virtual bool nw4hbm::ut::Font::SetAlternateChar ( u16 c)
pure virtual

◆ SetDefaultCharWidths()

virtual void nw4hbm::ut::Font::SetDefaultCharWidths ( const CharWidths & widths)
pure virtual

◆ SetLineFeed()

virtual void nw4hbm::ut::Font::SetLineFeed ( int linefeed)
pure virtual

Member Data Documentation

◆ mReaderFunc

CharStrmReader::ReadFunc nw4hbm::ut::Font::mReaderFunc
private

The documentation for this class was generated from the following files: