CConsoleBase Class Reference
class CConsoleBase : public CBase |
Detailed Description
A base class that defines a console interface.
Constructor & Destructor Documentation
CConsoleBase ( )
IMPORT_C | CConsoleBase | ( | ) | [protected] |
~CConsoleBase ( )
IMPORT_C | ~CConsoleBase | ( | ) | [virtual] |
Member Function Documentation
ClearScreen ( )
void | ClearScreen | ( | ) | [pure virtual] |
ClearToEndOfLine ( )
void | ClearToEndOfLine | ( | ) | [pure virtual] |
Clears the console from the current cursor position to the end of the line.
Create ( const TDesC &, TSize )
Creates a new console window.
Parameter | Description | aTitle | The title text for the console. This should not be longer than 256 characters. |
aSize | The size of the console window. |
Returns: KErrNone, if successful; otherwise one of the other system wide error codes.
CursorPos ( )
TPoint
| CursorPos | ( | ) | const [pure virtual] |
Gets the current cursor position relative to the console window.
Returns: The current cursor position.
Extension_ ( TUint, TAny *&, TAny * )
Getch ( )
Gets a character from the console.
Returns: the key code from the console.
KeyCode ( )
Gets the current key code value.
Returns: The key code value.
KeyModifiers ( )
TUint
| KeyModifiers | ( | ) | const [pure virtual] |
Gets the current key modifiers.
Returns: The key modifiers.
Printf ( TRefByValue< const TDesC >, ... )
Prints characters to the console window.
Parameter | Description | aFmt | The non-modifiable descriptor containing the format string. The TRefByValue class provides a constructor which takes a TDesC type. |
Read ( TRequestStatus & )
Gets a keystroke from the console window, asynchronously.
Parameter | Description | aStatus | The request status object. |
ReadCancel ( )
void | ReadCancel | ( | ) | [pure virtual] |
Cancels any outstanding request to get a keystroke from the console window.
ScreenSize ( )
TSize
| ScreenSize | ( | ) | const [pure virtual] |
Gets the size of the console.
SetCursorHeight ( TInt )
void | SetCursorHeight | ( | TInt | aPercentage | ) | [pure virtual] |
Sets the percentage height of the cursor.
Parameter | Description | aPercentage | The percentage height. This is a value from 0 to 100. If 0 is specified, then no cursor is displayed. |
SetCursorPosAbs ( const TPoint & )
void | SetCursorPosAbs | ( | const TPoint & | aPoint | ) | [pure virtual] |
Puts the cursor at the absolute position in the window.
Parameter | Description | aPoint | The cursor position. |
SetCursorPosRel ( const TPoint & )
void | SetCursorPosRel | ( | const TPoint & | aPoint | ) | [pure virtual] |
Puts the cursor at the specified position relative to the current cursor position.
Parameter | Description | aPoint | The cursor position. |
SetPos ( TInt )
IMPORT_C void | SetPos | ( | TInt | aX | ) | |
Sets the cursor's x-position.
Parameter | Description | aX | The x-position. |
SetPos ( TInt, TInt )
Sets the cursor's x-position and y-position.
Parameter | Description | aX | The x-position. |
aY | The y-position. |
SetTitle ( const TDesC & )
void | SetTitle | ( | const TDesC & | aTitle | ) | [pure virtual] |
Sets a new console title.
Parameter | Description | aTitle | The title text for the console. This should not be longer than 256 characters. |
WhereX ( )
IMPORT_C TInt | WhereX | ( | ) | const |
Gets the cursor's x-position.
Returns: The cursor's x-position.
WhereY ( )
IMPORT_C TInt | WhereY | ( | ) | const |
Gets the cursor's y-position.
Returns: The cursor's y-position.
Write ( const TDesC & )
void | Write | ( | const TDesC & | aDes | ) | [pure virtual] |
Writes the content of the specified descriptor to the console window.
Parameter | Description | aDes | Descriptor containing the characters to be written to the console window. |