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.
KErrNone, if successful; otherwise one of the other system wide error codes.
TPoint | CursorPos | ( | ) | const [pure virtual] |
Gets the current cursor position relative to the console window.
The current cursor position.
IMPORT_C TInt | Extension_ | ( | TUint | aExtensionId, |
TAny *& | a0, | |||
TAny * | a1 | |||
) | [protected, virtual] |
TKeyCode | KeyCode | ( | ) | const [pure virtual] |
Gets the current key code value.
The key code value.
TUint | KeyModifiers | ( | ) | const [pure virtual] |
Gets the current key modifiers.
The key modifiers.
IMPORT_C void | Printf | ( | TRefByValue< const TDesC > | aFmt, |
... | ||||
) |
TRefByValue< const TDesC > aFmt | |
... |
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. |