|
||
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()
Default constructor. ClearScreen()
Clears the console.ClearToEndOfLine()
Clears the console from the current cursor position to the end of the line.Create(const TDesC &,TSize)
Creates a new console window.CursorPos()const
Gets the current cursor position relative to the console window.Extension_(TUint,TAny *&,TAny *)
Extension function Getch()
Gets a character from the console.KeyCode()const
Gets the current key code value.KeyModifiers()const
Gets the current key modifiers.Printf(TRefByValue< const TDesC >,...)
Prints characters to the console window.Read(TRequestStatus &)
Gets a keystroke from the console window, asynchronously.ReadCancel()
Cancels any outstanding request to get a keystroke from the console window.ScreenSize()const
Gets the size of the console.SetCursorHeight(TInt)
Sets the percentage height of the cursor.SetCursorPosAbs(const TPoint &)
Puts the cursor at the absolute position in the window.SetCursorPosRel(const TPoint &)
Puts the cursor at the specified position relative to the current cursor positio...SetPos(TInt)
Sets the cursor's x-position.SetPos(TInt,TInt)
Sets the cursor's x-position and y-position.SetTitle(const TDesC &)
Sets a new console title.WhereX()const
Gets the cursor's x-position.WhereY()const
Gets the cursor's y-position.Write(const TDesC &)
Writes the content of the specified descriptor to the console window.~CConsoleBase()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...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.
|