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

#include <JUTConsole.h>

+ Inheritance diagram for JUTConsole:
+ Collaboration diagram for JUTConsole:

Public Types

enum  EConsoleType { CONSOLE_TYPE_0 = 0 , CONSOLE_TYPE_1 = 1 , CONSOLE_TYPE_2 = 2 }
 
enum  OutputFlag { OUTPUT_NONE , OUTPUT_OSREPORT , OUTPUT_CONSOLE , OUTPUT_OSR_AND_CONSOLE }
 

Public Member Functions

 JUTConsole (unsigned int, unsigned int, bool)
 
void clear ()
 
void doDraw (JUTConsole::EConsoleType) const
 
void print_f (char const *,...)
 
void print (char const *)
 
void dumpToTerminal (unsigned int)
 
void scroll (int)
 
int getUsedLine () const
 
int getLineOffset () const
 
virtual ~JUTConsole ()
 
void setOutput (unsigned int output)
 
void setPosition (int x, int y)
 
void setFontSize (f32 x, f32 y)
 
void setHeight (u32 height)
 
void setFont (JUTFont *p_font)
 
u32 getOutput () const
 
int getPositionY () const
 
int getPositionX () const
 
u32 getHeight () const
 
bool isVisible () const
 
void setVisible (bool visible)
 
u8 getLineAttr (int param_0)
 
void setLineAttr (int param_0, u8 param_1)
 
u8getLinePtr (int param_0) const
 
int diffIndex (int param_0, int param_1) const
 
int prevIndex (int index) const
 
int nextIndex (int index) const
 
void scrollToLastLine ()
 
void scrollToFirstLine ()
 
- Public Member Functions inherited from JKRDisposer
 JKRDisposer ()
 
virtual ~JKRDisposer ()
 

Static Public Member Functions

static JUTConsolecreate (unsigned int, void *, u32)
 
static JUTConsolecreate (unsigned int, unsigned int, JKRHeap *)
 
static size_t getObjectSizeFromBufferSize (unsigned int, unsigned int)
 
static size_t getLineFromObjectSize (u32, unsigned int)
 

Public Attributes

JGadget::TLinkListNode mListNode
 
u32 field_0x20
 
int mMaxLines
 
u8mBuf
 
bool field_0x2c
 
int field_0x30
 
int field_0x34
 
int field_0x38
 
int field_0x3c
 
int mPositionX
 
int mPositionY
 
u32 mHeight
 
JUTFontmFont
 
f32 mFontSizeX
 
f32 mFontSizeY
 
int mOutput
 
JUtility::TColor field_0x5c
 
JUtility::TColor field_0x60
 
int field_0x64
 
bool mVisible
 
bool field_0x69
 
bool field_0x6a
 
bool field_0x6b
 
- Public Attributes inherited from JKRDisposer
JKRHeapmHeap
 
JSULink< JKRDisposermLink
 

Member Enumeration Documentation

◆ EConsoleType

Enumerator
CONSOLE_TYPE_0 
CONSOLE_TYPE_1 
CONSOLE_TYPE_2 

◆ OutputFlag

Enumerator
OUTPUT_NONE 
OUTPUT_OSREPORT 
OUTPUT_CONSOLE 
OUTPUT_OSR_AND_CONSOLE 

Constructor & Destructor Documentation

◆ JUTConsole()

JUTConsole::JUTConsole ( unsigned int  param_0,
unsigned int  maxLines,
bool  param_2 
)

◆ ~JUTConsole()

JUTConsole::~JUTConsole ( )
virtual

Member Function Documentation

◆ clear()

void JUTConsole::clear ( )

◆ create() [1/2]

JUTConsole * JUTConsole::create ( unsigned int  param_0,
unsigned int  maxLines,
JKRHeap p_heap 
)
static

◆ create() [2/2]

JUTConsole * JUTConsole::create ( unsigned int  param_0,
void buffer,
u32  bufferSize 
)
static

◆ diffIndex()

int JUTConsole::diffIndex ( int  param_0,
int  param_1 
) const
inline

◆ doDraw()

void JUTConsole::doDraw ( JUTConsole::EConsoleType  consoleType) const

◆ dumpToTerminal()

void JUTConsole::dumpToTerminal ( unsigned int  param_0)

◆ getHeight()

u32 JUTConsole::getHeight ( ) const
inline

◆ getLineAttr()

u8 JUTConsole::getLineAttr ( int  param_0)
inline

◆ getLineFromObjectSize()

size_t JUTConsole::getLineFromObjectSize ( u32  bufferSize,
unsigned int  param_1 
)
static

◆ getLineOffset()

int JUTConsole::getLineOffset ( ) const

◆ getLinePtr()

u8 * JUTConsole::getLinePtr ( int  param_0) const
inline

◆ getObjectSizeFromBufferSize()

size_t JUTConsole::getObjectSizeFromBufferSize ( unsigned int  param_0,
unsigned int  maxLines 
)
static

◆ getOutput()

u32 JUTConsole::getOutput ( ) const
inline

◆ getPositionX()

int JUTConsole::getPositionX ( ) const
inline

◆ getPositionY()

int JUTConsole::getPositionY ( ) const
inline

◆ getUsedLine()

int JUTConsole::getUsedLine ( ) const

◆ isVisible()

bool JUTConsole::isVisible ( ) const
inline

◆ nextIndex()

int JUTConsole::nextIndex ( int  index) const
inline

◆ prevIndex()

int JUTConsole::prevIndex ( int  index) const
inline

◆ print()

void JUTConsole::print ( char const str)

◆ print_f()

void JUTConsole::print_f ( char const fmt,
  ... 
)

◆ scroll()

void JUTConsole::scroll ( int  scrollAmnt)

◆ scrollToFirstLine()

void JUTConsole::scrollToFirstLine ( )
inline

◆ scrollToLastLine()

void JUTConsole::scrollToLastLine ( )
inline

◆ setFont()

void JUTConsole::setFont ( JUTFont p_font)
inline

◆ setFontSize()

void JUTConsole::setFontSize ( f32  x,
f32  y 
)
inline

◆ setHeight()

void JUTConsole::setHeight ( u32  height)
inline

◆ setLineAttr()

void JUTConsole::setLineAttr ( int  param_0,
u8  param_1 
)
inline

◆ setOutput()

void JUTConsole::setOutput ( unsigned int  output)
inline

◆ setPosition()

void JUTConsole::setPosition ( int  x,
int  y 
)
inline

◆ setVisible()

void JUTConsole::setVisible ( bool  visible)
inline

Member Data Documentation

◆ field_0x20

u32 JUTConsole::field_0x20

◆ field_0x2c

bool JUTConsole::field_0x2c

◆ field_0x30

int JUTConsole::field_0x30

◆ field_0x34

int JUTConsole::field_0x34

◆ field_0x38

int JUTConsole::field_0x38

◆ field_0x3c

int JUTConsole::field_0x3c

◆ field_0x5c

JUtility::TColor JUTConsole::field_0x5c

◆ field_0x60

JUtility::TColor JUTConsole::field_0x60

◆ field_0x64

int JUTConsole::field_0x64

◆ field_0x69

bool JUTConsole::field_0x69

◆ field_0x6a

bool JUTConsole::field_0x6a

◆ field_0x6b

bool JUTConsole::field_0x6b

◆ mBuf

u8* JUTConsole::mBuf

◆ mFont

JUTFont* JUTConsole::mFont

◆ mFontSizeX

f32 JUTConsole::mFontSizeX

◆ mFontSizeY

f32 JUTConsole::mFontSizeY

◆ mHeight

u32 JUTConsole::mHeight

◆ mListNode

JGadget::TLinkListNode JUTConsole::mListNode

◆ mMaxLines

int JUTConsole::mMaxLines

◆ mOutput

int JUTConsole::mOutput

◆ mPositionX

int JUTConsole::mPositionX

◆ mPositionY

int JUTConsole::mPositionY

◆ mVisible

bool JUTConsole::mVisible

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