![]() |
TinyLib 0.1.1
|
#include <Console.h>
Public Types | |
enum | { Default = 0 , Dec = 1 , Hex = 2 } |
Public Member Functions | |
Console () | |
Opens up a new console window. | |
~Console () | |
Automatically closes the console when object is destroyed. | |
void | create () |
Recreate the console window. | |
void | close () |
Manually close the console window. | |
void | print (String) |
Display a C-string in console. | |
void | println (String) |
Display a C-string in console with a new line after. | |
void | print (u32) |
Display a number in console. | |
void | println (u32) |
Display a number in console with a newline after. | |
void | clear () |
Clear the console. | |
void | set (u8) |
Set certain settings for the console. | |
bit | isOpen () |
Check if console is still open. | |
tl::Console::Console | ( | ) |
Opens up a new console window.
Definition at line 7 of file Console.cpp.
tl::Console::~Console | ( | ) |
Automatically closes the console when object is destroyed.
Definition at line 14 of file Console.cpp.
void tl::Console::clear | ( | ) |
Clear the console.
Definition at line 78 of file Console.cpp.
void tl::Console::close | ( | ) |
Manually close the console window.
Definition at line 29 of file Console.cpp.
void tl::Console::create | ( | ) |
Recreate the console window.
Definition at line 21 of file Console.cpp.
bit tl::Console::isOpen | ( | ) |
Check if console is still open.
Definition at line 107 of file Console.cpp.
void tl::Console::print | ( | String | text | ) |
Display a C-string in console.
text | What text to display. |
Definition at line 37 of file Console.cpp.
void tl::Console::print | ( | u32 | num | ) |
Display a number in console.
num | What number to display. |
Definition at line 57 of file Console.cpp.
void tl::Console::println | ( | String | text | ) |
Display a C-string in console with a new line after.
text | What text to display. |
Definition at line 49 of file Console.cpp.
void tl::Console::println | ( | u32 | num | ) |
Display a number in console with a newline after.
num | What number to display. |
Definition at line 70 of file Console.cpp.
void tl::Console::set | ( | u8 | index | ) |
Set certain settings for the console.
index | Console enum for setting. |
Console has an enum with settings you can pass here to change some settings such as displaying numbers in decimal or hex format.
Definition at line 96 of file Console.cpp.