Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTDbPrint.h
Go to the documentation of this file.
1#ifndef JUTDBPRINT_H
2#define JUTDBPRINT_H
3
5
6class JKRHeap;
7
8// TODO: fix struct
13struct unk_print {
14 /* 0x00 */ unk_print* mNext;
15 /* 0x04 */ s16 unk_0x04;
16 /* 0x06 */ s16 unk_0x06;
17 /* 0x08 */ s16 unk_0x08;
18 /* 0x0A */ s16 unk_0x0A;
19 /* 0x0C */ char unk_0x0C[0];
20};
21
27public:
29 static JUTDbPrint* start(JUTFont*, JKRHeap*);
31 void enter(int, int, int, const char*, int);
32 void flush(int, int, int, int);
33 void flush();
34 void drawString(int, int, int, const u8*);
35
36 static JUTDbPrint* getManager() { return sDebugPrint; }
37
38 void setVisible(bool visible) { mVisible = visible; }
39 JUTFont* getFont() const { return mFont; }
40
41 void setCharColor(JUtility::TColor color) { mColor = color; };
42
44
45private:
46 /* 0x00 */ unk_print* mFirst;
47 /* 0x04 */ JUTFont* mFont;
49 /* 0x0C */ bool mVisible;
50 /* 0x10 */ JKRHeap* mHeap;
51};
52
53#endif /* JUTDBPRINT_H */
Definition JKRHeap.h:23
Definition JUTDbPrint.h:26
void drawString(int, int, int, const u8 *)
Definition JUTDbPrint.cpp:94
JUTFont * getFont() const
Definition JUTDbPrint.h:39
JUTDbPrint(JUTFont *, JKRHeap *)
Definition JUTDbPrint.cpp:9
JKRHeap * mHeap
Definition JUTDbPrint.h:50
static JUTDbPrint * sDebugPrint
Definition JUTDbPrint.h:43
JUTFont * changeFont(JUTFont *)
Definition JUTDbPrint.cpp:30
void flush()
Definition JUTDbPrint.cpp:62
unk_print * mFirst
Definition JUTDbPrint.h:46
bool mVisible
Definition JUTDbPrint.h:49
JUtility::TColor mColor
Definition JUTDbPrint.h:48
JUTFont * mFont
Definition JUTDbPrint.h:47
void setVisible(bool visible)
Definition JUTDbPrint.h:38
void setCharColor(JUtility::TColor color)
Definition JUTDbPrint.h:41
static JUTDbPrint * getManager()
Definition JUTDbPrint.h:36
void enter(int, int, int, const char *, int)
Definition JUTDbPrint.cpp:38
Definition JUTFont.h:69
signed short int s16
Definition types.h:9
unsigned char u8
Definition types.h:8
@ start
Definition strtold.c:23
Definition TColor.h:12
Definition JUTDbPrint.h:13
char unk_0x0C[0]
Definition JUTDbPrint.h:19
s16 unk_0x04
Definition JUTDbPrint.h:15
s16 unk_0x0A
Definition JUTDbPrint.h:18
s16 unk_0x06
Definition JUTDbPrint.h:16
s16 unk_0x08
Definition JUTDbPrint.h:17
unk_print * mNext
Definition JUTDbPrint.h:14