Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTResFont Class Reference

#include <JUTResFont.h>

+ Inheritance diagram for JUTResFont:
+ Collaboration diagram for JUTResFont:

Public Member Functions

virtual ~JUTResFont ()
 
virtual void setGX ()
 
virtual void setGX (JUtility::TColor, JUtility::TColor)
 
virtual f32 drawChar_scale (f32, f32, f32, f32, int, bool)
 
virtual int getLeading () const
 
virtual s32 getAscent () const
 
virtual s32 getDescent () const
 
virtual s32 getHeight () const
 
virtual s32 getWidth () const
 
virtual void getWidthEntry (int, JUTFont::TWidth *) const
 
virtual s32 getCellWidth () const
 
virtual s32 getCellHeight () const
 
virtual int getFontType () const
 
virtual ResFONTgetResFont () const
 
virtual bool isLeadByte (int) const
 
virtual void loadImage (int, _GXTexMapID)
 
virtual void setBlock ()
 
 JUTResFont (ResFONT const *, JKRHeap *)
 
 JUTResFont ()
 
void deleteMemBlocks_ResFont ()
 
void initialize_state ()
 
bool initiate (ResFONT const *, JKRHeap *)
 
bool protected_initiate (ResFONT const *, JKRHeap *)
 
void countBlock ()
 
void loadFont (int, _GXTexMapID, JUTFont::TWidth *)
 
int getFontCode (int) const
 
int convertSjis (int, u16 *) const
 
void delete_and_initialize ()
 
- Public Member Functions inherited from JUTFont
 JUTFont ()
 
virtual ~JUTFont ()
 
void initialize_state ()
 
void setCharColor (JUtility::TColor col1)
 
void setGradColor (JUtility::TColor col1, JUtility::TColor col2)
 
f32 drawString_size_scale (f32 posX, f32 posY, f32 width, f32 height, const char *str, u32 usz, bool visible)
 
void drawString (int posX, int posY, const char *str, bool visible)
 
void drawString_size (int posX, int posY, const char *str, u32 len, bool visible)
 
void drawString_scale (f32 posX, f32 posY, f32 width, f32 height, const char *str, bool visible)
 
int getWidth (int i_no) const
 
bool isValid () const
 
bool isFixed () const
 
int getFixedWidth () const
 

Public Attributes

int mWidth
 
int mHeight
 
GXTexObj mTexObj
 
int mTexPageIdx
 
const ResFONTmResFont
 
ResFONT::INF1mInf1Ptr
 
void ** mMemBlocks
 
ResFONT::WID1 ** mpWidthBlocks
 
ResFONT::GLY1 ** mpGlyphBlocks
 
ResFONT::MAP1 ** mpMapBlocks
 
u16 mWid1BlockNum
 
u16 mGly1BlockNum
 
u16 mMap1BlockNum
 
u16 field_0x66
 
u16 mMaxCode
 
const IsLeadByte_funcmIsLeadByte
 
- Public Attributes inherited from JUTFont
bool mValid
 
bool mFixed
 
int mFixedWidth
 
JUtility::TColor mColor1
 
JUtility::TColor mColor2
 
JUtility::TColor mColor3
 
JUtility::TColor mColor4
 

Static Public Attributes

static IsLeadByte_func const saoAboutEncoding_ [3]
 

Additional Inherited Members

- Static Public Member Functions inherited from JUTFont
static bool isLeadByte_1Byte (int b)
 
static bool isLeadByte_2Byte (int b)
 
static bool isLeadByte_ShiftJIS (int b)
 
static bool isLeadByte_EUC (int b)
 

Constructor & Destructor Documentation

◆ ~JUTResFont()

JUTResFont::~JUTResFont ( )
virtual

◆ JUTResFont() [1/2]

JUTResFont::JUTResFont ( ResFONT const pFont,
JKRHeap pHeap 
)

◆ JUTResFont() [2/2]

JUTResFont::JUTResFont ( )

Member Function Documentation

◆ convertSjis()

int JUTResFont::convertSjis ( int  inChr,
u16 inLead 
) const

◆ countBlock()

void JUTResFont::countBlock ( )

◆ delete_and_initialize()

void JUTResFont::delete_and_initialize ( )
inline

◆ deleteMemBlocks_ResFont()

void JUTResFont::deleteMemBlocks_ResFont ( )

◆ drawChar_scale()

f32 JUTResFont::drawChar_scale ( f32  pos_x,
f32  pos_y,
f32  scale_x,
f32  scale_y,
int  str_int,
bool  flag 
)
virtual

Implements JUTFont.

◆ getAscent()

s32 JUTResFont::getAscent ( ) const
virtual

Implements JUTFont.

◆ getCellHeight()

s32 JUTResFont::getCellHeight ( ) const
virtual

Reimplemented from JUTFont.

◆ getCellWidth()

s32 JUTResFont::getCellWidth ( ) const
virtual

Reimplemented from JUTFont.

◆ getDescent()

s32 JUTResFont::getDescent ( ) const
virtual

Implements JUTFont.

◆ getFontCode()

int JUTResFont::getFontCode ( int  chr) const

◆ getFontType()

int JUTResFont::getFontType ( ) const
virtual

Implements JUTFont.

◆ getHeight()

s32 JUTResFont::getHeight ( ) const
virtual

Implements JUTFont.

◆ getLeading()

int JUTResFont::getLeading ( ) const
virtual

Implements JUTFont.

◆ getResFont()

ResFONT * JUTResFont::getResFont ( ) const
virtual

Implements JUTFont.

◆ getWidth()

s32 JUTResFont::getWidth ( ) const
virtual

Implements JUTFont.

◆ getWidthEntry()

void JUTResFont::getWidthEntry ( int  code,
JUTFont::TWidth i_width 
) const
virtual

Implements JUTFont.

◆ initialize_state()

void JUTResFont::initialize_state ( )

◆ initiate()

bool JUTResFont::initiate ( ResFONT const pFont,
JKRHeap pHeap 
)

◆ isLeadByte()

bool JUTResFont::isLeadByte ( int  chr) const
virtual

Implements JUTFont.

◆ loadFont()

void JUTResFont::loadFont ( int  ,
_GXTexMapID  ,
JUTFont::TWidth  
)

◆ loadImage()

void JUTResFont::loadImage ( int  ,
_GXTexMapID   
)
virtual

Reimplemented in JUTCacheFont.

◆ protected_initiate()

bool JUTResFont::protected_initiate ( ResFONT const pFont,
JKRHeap pHeap 
)

◆ setBlock()

void JUTResFont::setBlock ( )
virtual

Reimplemented in JUTCacheFont.

◆ setGX() [1/2]

void JUTResFont::setGX ( )
virtual

Implements JUTFont.

◆ setGX() [2/2]

void JUTResFont::setGX ( JUtility::TColor  col1,
JUtility::TColor  col2 
)
virtual

Reimplemented from JUTFont.

Member Data Documentation

◆ field_0x66

u16 JUTResFont::field_0x66

◆ mGly1BlockNum

u16 JUTResFont::mGly1BlockNum

◆ mHeight

int JUTResFont::mHeight

◆ mInf1Ptr

ResFONT::INF1* JUTResFont::mInf1Ptr

◆ mIsLeadByte

const IsLeadByte_func* JUTResFont::mIsLeadByte

◆ mMap1BlockNum

u16 JUTResFont::mMap1BlockNum

◆ mMaxCode

u16 JUTResFont::mMaxCode

◆ mMemBlocks

void** JUTResFont::mMemBlocks

◆ mpGlyphBlocks

ResFONT::GLY1** JUTResFont::mpGlyphBlocks

◆ mpMapBlocks

ResFONT::MAP1** JUTResFont::mpMapBlocks

◆ mpWidthBlocks

ResFONT::WID1** JUTResFont::mpWidthBlocks

◆ mResFont

const ResFONT* JUTResFont::mResFont

◆ mTexObj

GXTexObj JUTResFont::mTexObj

◆ mTexPageIdx

int JUTResFont::mTexPageIdx

◆ mWid1BlockNum

u16 JUTResFont::mWid1BlockNum

◆ mWidth

int JUTResFont::mWidth

◆ saoAboutEncoding_

IsLeadByte_func const JUTResFont::saoAboutEncoding_
static
Initial value:
= {
}
static bool isLeadByte_ShiftJIS(int b)
Definition JUTFont.h:100
static bool isLeadByte_1Byte(int b)
Definition JUTFont.h:94
static bool isLeadByte_2Byte(int b)
Definition JUTFont.h:97

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