#include <console.h>
Public Member Functions | |
IC_Console (lua_State *L) | |
constructor | |
virtual | ~IC_Console () |
destructor | |
IC_ConsoleConfig & | getConfig () |
get the console config reference | |
void | initializeConsole (irr::IrrlichtDevice *device) |
(re)initialize the console with current config | |
void | loadDefaultCommands (irr::IrrlichtDevice *device) |
loads a few default commands into the console | |
bool | isVisible () |
should console be visible | |
void | setVisible (bool bV) |
set the visibility of the console | |
void | toggleVisible () |
toggle the visibility of the console | |
void | appendMessage (const stringw message) |
add a unicode message to the sink | |
void | clearMessages () |
clear all the messages in the sink | |
void | renderConsole (irr::gui::IGUIEnvironment *guienv, irr::video::IVideoDriver *videoDriver, const u32 deltaMillis) |
render the console (it internally checks if the console is visible) | |
void | handleKeyPress (wchar_t keyChar, irr::EKEY_CODE keyCode, bool bShiftDown, bool bControlDown) |
handles a key press when console is active/visible | |
Static Public Attributes | |
static const wchar_t | IC_KEY_TILDE = 0xc0 |
the tilde (~/`) key |
Definition at line 171 of file console.h.
IC_Console::IC_Console | ( | lua_State * | L | ) |
virtual IC_Console::~IC_Console | ( | ) | [inline, virtual] |
void IC_Console::appendMessage | ( | const stringw | message | ) | [virtual] |
add a unicode message to the sink
Implements IC_MessageSink.
Definition at line 157 of file console.cpp.
void IC_Console::clearMessages | ( | ) | [virtual] |
clear all the messages in the sink
Implements IC_MessageSink.
Definition at line 165 of file console.cpp.
IC_ConsoleConfig& IC_Console::getConfig | ( | ) | [inline] |
void IC_Console::handleKeyPress | ( | wchar_t | keyChar, | |
irr::EKEY_CODE | keyCode, | |||
bool | bShiftDown, | |||
bool | bControlDown | |||
) |
void IC_Console::initializeConsole | ( | irr::IrrlichtDevice * | device | ) |
bool IC_Console::isVisible | ( | ) |
void IC_Console::loadDefaultCommands | ( | irr::IrrlichtDevice * | device | ) |
void IC_Console::renderConsole | ( | irr::gui::IGUIEnvironment * | guienv, | |
irr::video::IVideoDriver * | videoDriver, | |||
const u32 | deltaMillis | |||
) |
render the console (it internally checks if the console is visible)
Definition at line 172 of file console.cpp.
void IC_Console::setVisible | ( | bool | bV | ) |
void IC_Console::toggleVisible | ( | ) | [virtual] |
toggle the visibility of the console
Implements IC_MessageSink.
Definition at line 150 of file console.cpp.
const wchar_t IC_Console::IC_KEY_TILDE = 0xc0 [static] |