Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J2DPrint.h
Go to the documentation of this file.
1#ifndef J2DPRINT_H
2#define J2DPRINT_H
3
5#include "__va_arg.h"
6
7class JUTFont;
8class J2DPrint;
9
10extern "C" f32 J2DPrint_print_alpha_va(J2DPrint*, u8, const char*, va_list);
11
16class J2DPrint {
17public:
18 struct TSize {
19 /* 0x0 */ f32 field_0x0;
20 /* 0x4 */ f32 field_0x4;
21 };
22
24
25 void initiate();
26
28 static u8* setBuffer(size_t);
29 void setFontSize();
30 void locate(f32, f32);
31 f32 print(f32, f32, u8, char const*, ...);
33 f32, f32, u8);
34 f32 parse(u8 const*, int, int, u16*, J2DPrint::TSize&, u8, bool);
35 void doCtrlCode(int);
36 u16 doEscapeCode(u8 const**, u8);
37 void initchar();
38 s32 getNumberS32(u8 const**, s32, s32, int);
39 f32 getNumberF32(u8 const**, f32, f32, int);
40
41 virtual ~J2DPrint();
42
43 f32 print_va(u8 alpha, const char* fmt, va_list args) {
44 return J2DPrint_print_alpha_va(this, alpha, fmt, args);
45 }
46
47 void setFontSize(f32 sizeX, f32 sizeY) {
48 f32 x;
49 if (sizeX > 0.0f) {
50 x = sizeX;
51 } else {
52 x = 0.0f;
53 }
54 mFontSizeX = x;
55
56 f32 y;
57 if (sizeY > 0.0f) {
58 y = sizeY;
59 } else {
60 y = 0.0f;
61 }
62 mFontSizeY = y;
63 }
64
65 static char* mStrBuff;
66 static size_t mStrBuffSize;
67
68private:
71
72 /* 0x04 */ JUTFont* mFont;
75 /* 0x10 */ f32 field_0x10;
76 /* 0x14 */ f32 field_0x14;
77 /* 0x18 */ f32 mScaleX;
78 /* 0x1C */ f32 mScaleY;
79 /* 0x20 */ s16 field_0x20;
80 /* 0x22 */ bool field_0x22;
81 /* 0x24 */ f32 field_0x24;
82 /* 0x28 */ f32 field_0x28;
83 /* 0x2C */ f32 mCursorH;
84 /* 0x30 */ f32 mCursorV;
85 /* 0x34 */ f32 field_0x34;
90 /* 0x48 */ f32 mCharSpacing;
91 /* 0x4C */ f32 mLineSpacing;
92 /* 0x50 */ f32 mFontSizeX;
93 /* 0x54 */ f32 mFontSizeY;
94 /* 0x58 */ s16 field_0x58;
95 /* 0x5A */ bool field_0x5a;
96}; // Size: 0x5C
97
98#endif /* J2DPRINT_H */
f32 J2DPrint_print_alpha_va(J2DPrint *, u8, const char *, va_list)
Definition J2DPrint.cpp:17
J2DTextBoxVBinding
Definition J2DTextBox.h:10
J2DTextBoxHBinding
Definition J2DTextBox.h:16
Definition J2DPrint.h:16
u16 doEscapeCode(u8 const **, u8)
Definition J2DPrint.cpp:412
f32 field_0x10
Definition J2DPrint.h:75
JUtility::TColor mCharColor
Definition J2DPrint.h:88
static u8 * setBuffer(size_t)
Definition J2DPrint.cpp:93
void initiate()
Definition J2DPrint.cpp:47
f32 mFontSizeX
Definition J2DPrint.h:92
f32 parse(u8 const *, int, int, u16 *, J2DPrint::TSize &, u8, bool)
Definition J2DPrint.cpp:191
void doCtrlCode(int)
Definition J2DPrint.cpp:376
JUtility::TColor field_0xc
Definition J2DPrint.h:74
bool field_0x5a
Definition J2DPrint.h:95
f32 mFontSizeY
Definition J2DPrint.h:93
void initchar()
Definition J2DPrint.cpp:521
f32 field_0x28
Definition J2DPrint.h:82
f32 mScaleY
Definition J2DPrint.h:78
bool field_0x22
Definition J2DPrint.h:80
JUtility::TColor mGradColor
Definition J2DPrint.h:89
f32 print_va(u8 alpha, const char *fmt, va_list args)
Definition J2DPrint.h:43
JUTFont * mFont
Definition J2DPrint.h:72
f32 mLineSpacing
Definition J2DPrint.h:91
static char * mStrBuff
Definition J2DPrint.h:65
void setFontSize(f32 sizeX, f32 sizeY)
Definition J2DPrint.h:47
f32 field_0x24
Definition J2DPrint.h:81
s32 getNumberS32(u8 const **, s32, s32, int)
Definition J2DPrint.cpp:532
f32 field_0x14
Definition J2DPrint.h:76
f32 print(f32, f32, u8, char const *,...)
Definition J2DPrint.cpp:122
J2DPrint(JUTFont *, JUtility::TColor, JUtility::TColor)
Definition J2DPrint.cpp:33
void printReturn(char const *, f32, f32, J2DTextBoxHBinding, J2DTextBoxVBinding, f32, f32, u8)
Definition J2DPrint.cpp:133
JUtility::TColor mWhiteColor
Definition J2DPrint.h:87
s16 field_0x58
Definition J2DPrint.h:94
f32 mCursorV
Definition J2DPrint.h:84
f32 mScaleX
Definition J2DPrint.h:77
s16 field_0x20
Definition J2DPrint.h:79
void private_initiate(JUTFont *, f32, f32, JUtility::TColor, JUtility::TColor, JUtility::TColor, JUtility::TColor, bool)
Definition J2DPrint.cpp:56
void setFontSize()
Definition J2DPrint.cpp:107
f32 mCharSpacing
Definition J2DPrint.h:90
f32 getNumberF32(u8 const **, f32, f32, int)
Definition J2DPrint.cpp:571
virtual ~J2DPrint()
Definition J2DPrint.cpp:45
f32 mCursorH
Definition J2DPrint.h:83
JUtility::TColor mBlackColor
Definition J2DPrint.h:86
JUtility::TColor field_0x8
Definition J2DPrint.h:73
void locate(f32, f32)
Definition J2DPrint.cpp:114
f32 field_0x34
Definition J2DPrint.h:85
static size_t mStrBuffSize
Definition J2DPrint.h:66
Definition JUTFont.h:69
signed short int s16
Definition types.h:9
float f32
Definition types.h:25
unsigned short int u16
Definition types.h:10
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
Definition J2DPrint.h:18
f32 field_0x0
Definition J2DPrint.h:19
f32 field_0x4
Definition J2DPrint.h:20
Definition TColor.h:12