| class CConsoleBase : public CBase |
A base class that defines a console interface.
| Public Member Functions | |
|---|---|
| ~CConsoleBase () | |
| void | ClearScreen () |
| void | ClearToEndOfLine () |
| TInt | Create (const TDesC &, TSize ) |
| TPoint | CursorPos () |
| IMPORT_C TKeyCode | Getch () |
| TKeyCode | KeyCode () |
| TUint | KeyModifiers () |
| IMPORT_C void | Printf ( TRefByValue < const TDesC >, ...) |
| void | Read ( TRequestStatus &) |
| void | ReadCancel () |
| TSize | ScreenSize () |
| void | SetCursorHeight ( TInt ) |
| void | SetCursorPosAbs (const TPoint &) |
| void | SetCursorPosRel (const TPoint &) |
| IMPORT_C void | SetPos ( TInt ) |
| IMPORT_C void | SetPos ( TInt , TInt ) |
| void | SetTitle (const TDesC &) |
| IMPORT_C TInt | WhereX () |
| IMPORT_C TInt | WhereY () |
| void | Write (const TDesC &) |
| Protected Member Functions | |
|---|---|
| CConsoleBase () | |
| IMPORT_C TInt | Extension_ ( TUint , TAny *&, TAny *) |
| void | ClearToEndOfLine | ( | ) | [pure virtual] |
Clears the console from the current cursor position to the end of the line.
| TInt | Create | ( | const TDesC & | aTitle, |
| TSize | aSize | |||
| ) | [pure virtual] | |||
Creates a new console window.
| TPoint | CursorPos | ( | ) | const [pure virtual] |
Gets the current cursor position relative to the console window.
| IMPORT_C TInt | Extension_ | ( | TUint | aExtensionId, |
| TAny *& | a0, | |||
| TAny * | a1 | |||
| ) | [protected, virtual] | |||
Extension function
| IMPORT_C void | Printf | ( | TRefByValue < const TDesC > | aFmt, |
| ... | ||||
| ) | ||||
Prints characters to the console window.
| TRefByValue < const TDesC > aFmt | The non-modifiable descriptor containing the format string. The TRefByValue class provides a constructor which takes a TDesC type. |
| ... |
| void | Read | ( | TRequestStatus & | aStatus | ) | [pure virtual] |
Gets a keystroke from the console window, asynchronously.
| TRequestStatus & aStatus | The request status object. |
| void | ReadCancel | ( | ) | [pure virtual] |
Cancels any outstanding request to get a keystroke from the console window.
| void | SetCursorHeight | ( | TInt | aPercentage | ) | [pure virtual] |
Sets the percentage height of the cursor.
| TInt aPercentage | The percentage height. This is a value from 0 to 100. If 0 is specified, then no cursor is displayed. |
| void | SetCursorPosAbs | ( | const TPoint & | aPoint | ) | [pure virtual] |
Puts the cursor at the absolute position in the window.
| const TPoint & aPoint | The cursor position. |
| void | SetCursorPosRel | ( | const TPoint & | aPoint | ) | [pure virtual] |
Puts the cursor at the specified position relative to the current cursor position.
| const TPoint & aPoint | The cursor position. |
| IMPORT_C void | SetPos | ( | TInt | aX | ) |
Sets the cursor's x-position.
| TInt aX | The x-position. |
| IMPORT_C void | SetPos | ( | TInt | aX, |
| TInt | aY | |||
| ) | ||||
Sets the cursor's x-position and y-position.
| void | SetTitle | ( | const TDesC & | aTitle | ) | [pure virtual] |
Sets a new console title.
| const TDesC & aTitle | The title text for the console. This should not be longer than 256 characters. |
| void | Write | ( | const TDesC & | aDes | ) | [pure virtual] |
Writes the content of the specified descriptor to the console window.
| const TDesC & aDes | Descriptor containing the characters to be written to the console window. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.