PixelLightAPI
.
|
Linux 'Console' implementation. More...
#include <ConsoleLinux.h>
Public Member Functions | |
virtual void | Print (const String &sString) const override |
Print a string to the console. | |
virtual int | IsKeyHit () const override |
Checks whether or not there's some keyboard input waiting on the console ('_kbhit()') | |
virtual int | GetCharacter (bool bEcho=false) const override |
Reads a single character from the console ('_getch()') | |
virtual void | ClearScreen () const override |
Clears the console screen ('clrscr()') | |
virtual void | GetCursorPosition (uint16 &nX, uint16 &nY) const override |
Gets the absolute console cursor position ('wherex()' and 'wherey()') | |
virtual void | SetCursorPosition (uint16 nX, uint16 nY) const override |
Sets the absolute console cursor position ('gotoxy()') | |
Protected Member Functions | |
ConsoleLinux () | |
Constructor. | |
virtual | ~ConsoleLinux () |
Destructor. |
Linux 'Console' implementation.
PLCore::ConsoleLinux::ConsoleLinux | ( | ) | [protected] |
virtual PLCore::ConsoleLinux::~ConsoleLinux | ( | ) | [protected, virtual] |
Destructor.
virtual void PLCore::ConsoleLinux::Print | ( | const String & | sString | ) | const [override, virtual] |
Print a string to the console.
[in] | sString | String that shall be printed |
Implements PLCore::Console.
Reimplemented in PLCore::ConsoleAndroid.
virtual int PLCore::ConsoleLinux::IsKeyHit | ( | ) | const [override, virtual] |
Checks whether or not there's some keyboard input waiting on the console ('_kbhit()')
Implements PLCore::Console.
virtual int PLCore::ConsoleLinux::GetCharacter | ( | bool | bEcho = false | ) | const [override, virtual] |
Reads a single character from the console ('_getch()')
[in] | bEcho | Echo on the console? |
Implements PLCore::Console.
virtual void PLCore::ConsoleLinux::ClearScreen | ( | ) | const [override, virtual] |
Clears the console screen ('clrscr()')
Implements PLCore::Console.
virtual void PLCore::ConsoleLinux::GetCursorPosition | ( | uint16 & | nX, |
uint16 & | nY | ||
) | const [override, 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) |
Implements PLCore::Console.
virtual void PLCore::ConsoleLinux::SetCursorPosition | ( | uint16 | nX, |
uint16 | nY | ||
) | const [override, 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) |
Implements PLCore::Console.
|