Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
JUTFont Class Referenceabstract

#include <JUTFont.h>

+ Inheritance diagram for JUTFont:
+ Collaboration diagram for JUTFont:

Classes

struct  TWidth
 

Public Member Functions

 JUTFont ()
 
virtual ~JUTFont ()
 
virtual void setGX ()=0
 
virtual void setGX (JUtility::TColor col1, JUtility::TColor col2)
 
virtual f32 drawChar_scale (f32 a1, f32 a2, f32 a3, f32 a4, int a5, bool a6)=0
 
virtual int getLeading () const =0
 
virtual s32 getAscent () const =0
 
virtual s32 getDescent () const =0
 
virtual s32 getHeight () const =0
 
virtual s32 getWidth () const =0
 
virtual void getWidthEntry (int i_no, TWidth *width) const =0
 
virtual s32 getCellWidth () const
 
virtual s32 getCellHeight () const
 
virtual int getFontType () const =0
 
virtual ResFONTgetResFont () const =0
 
virtual bool isLeadByte (int a1) const =0
 
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
 

Static Public Member Functions

static bool isLeadByte_1Byte (int b)
 
static bool isLeadByte_2Byte (int b)
 
static bool isLeadByte_ShiftJIS (int b)
 
static bool isLeadByte_EUC (int b)
 

Public Attributes

bool mValid
 
bool mFixed
 
int mFixedWidth
 
JUtility::TColor mColor1
 
JUtility::TColor mColor2
 
JUtility::TColor mColor3
 
JUtility::TColor mColor4
 

Constructor & Destructor Documentation

◆ JUTFont()

JUTFont::JUTFont ( )

JUTFont.cpp JUtility - Font Management

◆ ~JUTFont()

virtual JUTFont::~JUTFont ( )
inlinevirtual

Member Function Documentation

◆ drawChar_scale()

virtual f32 JUTFont::drawChar_scale ( f32 a1,
f32 a2,
f32 a3,
f32 a4,
int a5,
bool a6 )
pure virtual

Implemented in JUTResFont, and myFontClass.

◆ drawString()

void JUTFont::drawString ( int posX,
int posY,
const char * str,
bool visible )
inline

◆ drawString_scale()

void JUTFont::drawString_scale ( f32 posX,
f32 posY,
f32 width,
f32 height,
const char * str,
bool visible )
inline

◆ drawString_size()

void JUTFont::drawString_size ( int posX,
int posY,
const char * str,
u32 len,
bool visible )
inline

◆ drawString_size_scale()

f32 JUTFont::drawString_size_scale ( f32 posX,
f32 posY,
f32 width,
f32 height,
const char * str,
u32 usz,
bool visible )

◆ getAscent()

virtual s32 JUTFont::getAscent ( ) const
pure virtual

Implemented in JUTResFont.

◆ getCellHeight()

virtual s32 JUTFont::getCellHeight ( ) const
inlinevirtual

Reimplemented in JUTResFont.

◆ getCellWidth()

virtual s32 JUTFont::getCellWidth ( ) const
inlinevirtual

Reimplemented in JUTResFont.

◆ getDescent()

virtual s32 JUTFont::getDescent ( ) const
pure virtual

Implemented in JUTResFont.

◆ getFixedWidth()

int JUTFont::getFixedWidth ( ) const
inline

◆ getFontType()

virtual int JUTFont::getFontType ( ) const
pure virtual

Implemented in JUTResFont.

◆ getHeight()

virtual s32 JUTFont::getHeight ( ) const
pure virtual

Implemented in JUTResFont.

◆ getLeading()

virtual int JUTFont::getLeading ( ) const
pure virtual

Implemented in JUTResFont.

◆ getResFont()

virtual ResFONT * JUTFont::getResFont ( ) const
pure virtual

Implemented in JUTResFont.

◆ getWidth() [1/2]

virtual s32 JUTFont::getWidth ( ) const
pure virtual

Implemented in JUTResFont.

◆ getWidth() [2/2]

int JUTFont::getWidth ( int i_no) const
inline

◆ getWidthEntry()

virtual void JUTFont::getWidthEntry ( int i_no,
TWidth * width ) const
pure virtual

Implemented in JUTResFont.

◆ initialize_state()

void JUTFont::initialize_state ( )

◆ isFixed()

bool JUTFont::isFixed ( ) const
inline

◆ isLeadByte()

virtual bool JUTFont::isLeadByte ( int a1) const
pure virtual

Implemented in JUTResFont.

◆ isLeadByte_1Byte()

static bool JUTFont::isLeadByte_1Byte ( int b)
inlinestatic

◆ isLeadByte_2Byte()

static bool JUTFont::isLeadByte_2Byte ( int b)
inlinestatic

◆ isLeadByte_EUC()

static bool JUTFont::isLeadByte_EUC ( int b)
inlinestatic

◆ isLeadByte_ShiftJIS()

static bool JUTFont::isLeadByte_ShiftJIS ( int b)
inlinestatic

◆ isValid()

bool JUTFont::isValid ( ) const
inline

◆ setCharColor()

void JUTFont::setCharColor ( JUtility::TColor col1)

◆ setGradColor()

void JUTFont::setGradColor ( JUtility::TColor col1,
JUtility::TColor col2 )

◆ setGX() [1/2]

virtual void JUTFont::setGX ( )
pure virtual

Implemented in JUTResFont.

◆ setGX() [2/2]

virtual void JUTFont::setGX ( JUtility::TColor col1,
JUtility::TColor col2 )
inlinevirtual

Reimplemented in JUTResFont.

Member Data Documentation

◆ mColor1

JUtility::TColor JUTFont::mColor1

◆ mColor2

JUtility::TColor JUTFont::mColor2

◆ mColor3

JUtility::TColor JUTFont::mColor3

◆ mColor4

JUtility::TColor JUTFont::mColor4

◆ mFixed

bool JUTFont::mFixed

◆ mFixedWidth

int JUTFont::mFixedWidth

◆ mValid

bool JUTFont::mValid

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