Location:
e32cons.h
Link against: euser.lib
class CConsoleBase : public CBase;
A base class that defines a console interface.
CBase
- Base class for all classes to be instantiated on the heap
CConsoleBase
- A base class that defines a console interface
Defined in CConsoleBase
:
CConsoleBase()
, ClearScreen()
, ClearToEndOfLine()
, Create()
, CursorPos()
, Extension_()
, Getch()
, KeyCode()
, KeyModifiers()
, Printf()
, Read()
, ReadCancel()
, ScreenSize()
, SetCursorHeight()
, SetCursorPosAbs()
, SetCursorPosRel()
, SetPos()
, SetPos()
, SetTitle()
, WhereX()
, WhereY()
, Write()
, ~CConsoleBase()
Inherited from CBase
:
Delete()
,
operator new()
IMPORT_C TKeyCode Getch();
Gets a character from the console.
|
IMPORT_C void Printf(TRefByValue< const TDesC > aFmt,...);
Prints characters to the console window.
|
IMPORT_C void SetPos(TInt aX);
Sets the cursor's x-position.
|
IMPORT_C void SetPos(TInt aX, TInt aY);
Sets the cursor's x-position and y-position.
|
IMPORT_C TInt WhereX() const;
Gets the cursor's x-position.
|
IMPORT_C TInt WhereY() const;
Gets the cursor's y-position.
|
virtual TInt Create(const TDesC &aTitle, TSize aSize)=0;
Creates a new console window.
|
|
virtual void Read(TRequestStatus &aStatus)=0;
Gets a keystroke from the console window, asynchronously.
|
virtual void ReadCancel()=0;
Cancels any outstanding request to get a keystroke from the console window.
virtual void Write(const TDesC &aDes)=0;
Writes the content of the specified descriptor to the console window.
|
virtual TPoint CursorPos() const=0;
Gets the current cursor position relative to the console window.
|
virtual void SetCursorPosAbs(const TPoint &aPoint)=0;
Puts the cursor at the absolute position in the window.
|
virtual void SetCursorPosRel(const TPoint &aPoint)=0;
Puts the cursor at the specified position relative to the current cursor position.
|
virtual void SetCursorHeight(TInt aPercentage)=0;
Sets the percentage height of the cursor.
|
virtual void SetTitle(const TDesC &aTitle)=0;
Sets a new console title.
|
virtual void ClearToEndOfLine()=0;
Clears the console from the current cursor position to the end of the line.
virtual TKeyCode KeyCode() const=0;
Gets the current key code value.
|
virtual TUint KeyModifiers() const=0;
Gets the current key modifiers.
|