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;
8
13class J2DPrint {
14public:
15 struct TSize {
16 /* 0x0 */ f32 field_0x0;
17 /* 0x4 */ f32 field_0x4;
18 };
19
22 /* 802F4658 */ static u8* setBuffer(size_t);
23 /* 802F46C4 */ void setFontSize();
24 /* 802F475C */ void locate(f32, f32);
25 /* 802F4778 */ void print(f32, f32, u8, char const*, ...);
26 /* 802F4828 */ void printReturn(char const*, f32, f32, J2DTextBoxHBinding, J2DTextBoxVBinding,
27 f32, f32, u8);
28 /* 802F4B4C */ f32 parse(u8 const*, int, int, u16*, J2DPrint::TSize&, u8, bool);
29 /* 802F52E8 */ void doCtrlCode(int);
30 /* 802F5410 */ u16 doEscapeCode(u8 const**, u8);
31 /* 802F594C */ void initchar();
32 /* 802F59C0 */ s32 getNumberS32(u8 const**, s32, s32, int);
33 /* 802F5AC4 */ f32 getNumberF32(u8 const**, f32, f32, int);
34
35 /* 802F4420 */ virtual ~J2DPrint();
36
38 f32 x;
39 if (sizeX > 0.0f) {
40 x = sizeX;
41 } else {
42 x = 0.0f;
43 }
44 mFontSizeX = x;
45
46 f32 y;
47 if (sizeY > 0.0f) {
48 y = sizeY;
49 } else {
50 y = 0.0f;
51 }
52 mFontSizeY = y;
53 }
54
55 static const u8* mStrBuff;
56 static size_t mStrBuffSize;
57
58private:
61
62 /* 0x04 */ JUTFont* mFont;
65 /* 0x10 */ f32 field_0x10;
66 /* 0x14 */ f32 field_0x14;
67 /* 0x18 */ f32 field_0x18;
68 /* 0x1C */ f32 field_0x1c;
69 /* 0x20 */ s16 field_0x20;
70 /* 0x22 */ bool field_0x22;
71 /* 0x24 */ f32 field_0x24;
72 /* 0x28 */ f32 field_0x28;
73 /* 0x2C */ f32 field_0x2c;
74 /* 0x30 */ f32 mCursorV;
75 /* 0x34 */ f32 field_0x34;
80 /* 0x48 */ f32 field_0x48;
81 /* 0x4C */ f32 field_0x4c;
82 /* 0x50 */ f32 mFontSizeX;
83 /* 0x54 */ f32 mFontSizeY;
84 /* 0x58 */ s16 field_0x58;
85 /* 0x5A */ bool field_0x5a;
86}; // Size: 0x5C
87
89
90#endif /* J2DPRINT_H */
f32 J2DPrint_print_alpha_va(J2DPrint *, u8, const char *, va_list)
Definition J2DPrint.cpp:27
J2DTextBoxVBinding
Definition J2DTextBox.h:10
J2DTextBoxHBinding
Definition J2DTextBox.h:16
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition J2DPrint.h:13
u16 doEscapeCode(u8 const **, u8)
Definition J2DPrint.cpp:400
f32 field_0x18
Definition J2DPrint.h:67
f32 field_0x10
Definition J2DPrint.h:65
f32 field_0x4c
Definition J2DPrint.h:81
JUtility::TColor mCharColor
Definition J2DPrint.h:78
static u8 * setBuffer(size_t)
Definition J2DPrint.cpp:97
f32 mFontSizeX
Definition J2DPrint.h:82
f32 parse(u8 const *, int, int, u16 *, J2DPrint::TSize &, u8, bool)
Definition J2DPrint.cpp:197
void doCtrlCode(int)
Definition J2DPrint.cpp:363
JUtility::TColor field_0xc
Definition J2DPrint.h:64
JUtility::TColor field_0x38
Definition J2DPrint.h:76
bool field_0x5a
Definition J2DPrint.h:85
static const u8 * mStrBuff
Definition J2DPrint.h:55
f32 mFontSizeY
Definition J2DPrint.h:83
void initchar()
Definition J2DPrint.cpp:517
f32 field_0x28
Definition J2DPrint.h:72
bool field_0x22
Definition J2DPrint.h:70
JUtility::TColor mGradColor
Definition J2DPrint.h:79
JUTFont * mFont
Definition J2DPrint.h:62
f32 field_0x2c
Definition J2DPrint.h:73
void setFontSize(f32 sizeX, f32 sizeY)
Definition J2DPrint.h:37
f32 field_0x24
Definition J2DPrint.h:71
JUtility::TColor field_0x3c
Definition J2DPrint.h:77
s32 getNumberS32(u8 const **, s32, s32, int)
Definition J2DPrint.cpp:529
f32 field_0x14
Definition J2DPrint.h:66
void printReturn(char const *, f32, f32, J2DTextBoxHBinding, J2DTextBoxVBinding, f32, f32, u8)
Definition J2DPrint.cpp:138
s16 field_0x58
Definition J2DPrint.h:84
void print(f32, f32, u8, char const *,...)
Definition J2DPrint.cpp:127
f32 mCursorV
Definition J2DPrint.h:74
s16 field_0x20
Definition J2DPrint.h:69
void private_initiate(JUTFont *, f32, f32, JUtility::TColor, JUtility::TColor, JUtility::TColor, JUtility::TColor, bool)
Definition J2DPrint.cpp:56
void setFontSize()
Definition J2DPrint.cpp:110
f32 field_0x1c
Definition J2DPrint.h:68
f32 getNumberF32(u8 const **, f32, f32, int)
Definition J2DPrint.cpp:566
virtual ~J2DPrint()
Definition J2DPrint.cpp:51
f32 field_0x48
Definition J2DPrint.h:80
JUtility::TColor field_0x8
Definition J2DPrint.h:63
void locate(f32, f32)
Definition J2DPrint.cpp:118
f32 field_0x34
Definition J2DPrint.h:75
static size_t mStrBuffSize
Definition J2DPrint.h:56
Definition JUTFont.h:69
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
Definition J2DPrint.h:15
f32 field_0x0
Definition J2DPrint.h:16
f32 field_0x4
Definition J2DPrint.h:17
Definition TColor.h:12
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8