PixelLightAPI
.
|
Abstract base class for platform specific 'Console' implementations. More...
#include <Console.h>
Public Member Functions | |
virtual void | Print (const String &sString) const =0 |
Print a string to the console. | |
virtual int | IsKeyHit () const =0 |
Checks whether or not there's some keyboard input waiting on the console ('_kbhit()') | |
virtual int | GetCharacter (bool bEcho=false) const =0 |
Reads a single character from the console ('_getch()') | |
virtual void | ClearScreen () const =0 |
Clears the console screen ('clrscr()') | |
virtual void | GetCursorPosition (uint16 &nX, uint16 &nY) const =0 |
Gets the absolute console cursor position ('wherex()' and 'wherey()') | |
virtual void | SetCursorPosition (uint16 nX, uint16 nY) const =0 |
Sets the absolute console cursor position ('gotoxy()') | |
Protected Member Functions | |
Console () | |
Constructor. | |
virtual | ~Console () |
Destructor. |
Abstract base class for platform specific 'Console' implementations.
PLCore::Console::Console | ( | ) | [protected] |
virtual PLCore::Console::~Console | ( | ) | [protected, virtual] |
Destructor.
virtual void PLCore::Console::Print | ( | const String & | sString | ) | const [pure virtual] |
Print a string to the console.
[in] | sString | String that shall be printed |
Implemented in PLCore::ConsoleAndroid, PLCore::ConsoleLinux, and PLCore::ConsoleWindows.
virtual int PLCore::Console::IsKeyHit | ( | ) | const [pure virtual] |
Checks whether or not there's some keyboard input waiting on the console ('_kbhit()')
Implemented in PLCore::ConsoleLinux, and PLCore::ConsoleWindows.
virtual int PLCore::Console::GetCharacter | ( | bool | bEcho = false | ) | const [pure virtual] |
Reads a single character from the console ('_getch()')
[in] | bEcho | Echo on the console? |
Implemented in PLCore::ConsoleLinux, and PLCore::ConsoleWindows.
virtual void PLCore::Console::ClearScreen | ( | ) | const [pure virtual] |
Clears the console screen ('clrscr()')
Implemented in PLCore::ConsoleLinux, and PLCore::ConsoleWindows.
virtual void PLCore::Console::GetCursorPosition | ( | uint16 & | nX, |
uint16 & | nY | ||
) | const [pure virtual] |
Gets the absolute console cursor position ('wherex()' and 'wherey()')
[out] | nX | Receives the absolute x position of the console cursor, (0,0)=(left,top) |
[out] | nY | Receives the absolute y position of the console cursor, (0,0)=(left,top) |
Implemented in PLCore::ConsoleLinux, and PLCore::ConsoleWindows.
virtual void PLCore::Console::SetCursorPosition | ( | uint16 | nX, |
uint16 | nY | ||
) | const [pure virtual] |
Sets the absolute console cursor position ('gotoxy()')
[in] | nX | New x absolute position of the console cursor, (0,0)=(left,top) |
[in] | nY | New y absolute position of the console cursor, (0,0)=(left,top) |
Implemented in PLCore::ConsoleLinux, and PLCore::ConsoleWindows.
|