CConsoleTextWin Class Reference

class CConsoleTextWin : public CConsoleBase

Inherits from

Constructor & Destructor Documentation

CConsoleTextWin()

CConsoleTextWin()

~CConsoleTextWin()

~CConsoleTextWin()[virtual]

Member Functions Documentation

ClearScreen()

voidClearScreen()[virtual]

Clears the console.

ClearToEndOfLine()

voidClearToEndOfLine()[virtual]

Clears the console from the current cursor position to the end of the line.

Console()

RConsole &Console()

Create(const TDesC &, TSize)

TInt Create(const TDesC &aTitle,
TSizeaSize
)[virtual]

Creates a new console window.

Parameters

const TDesC & aTitleThe title text for the console. This should not be longer than 256 characters.
TSize aSizeThe size of the console window.

CursorPos()

TPoint CursorPos()const [virtual]

Gets the current cursor position relative to the console window.

KeyCode()

TKeyCode KeyCode()const [virtual]

Gets the current key code value.

KeyModifiers()

TUint KeyModifiers()const [virtual]

Gets the current key modifiers.

NewL(const TDesC &, TSize)

CConsoleTextWin *NewL(const TDesC &aTitle,
TSizeaSize
)[static]

Parameters

const TDesC & aTitle
TSize aSize

Read(TRequestStatus &)

voidRead(TRequestStatus &aStatus)[virtual]

Gets a keystroke from the console window, asynchronously.

Parameters

TRequestStatus & aStatusThe request status object.

ReadCancel()

voidReadCancel()[virtual]

Cancels any outstanding request to get a keystroke from the console window.

ScreenSize()

TSize ScreenSize()const [virtual]

Gets the size of the console.

SetCursorHeight(TInt)

voidSetCursorHeight(TIntaPercentage)[virtual]

Sets the percentage height of the cursor.

Parameters

TInt aPercentageThe percentage height. This is a value from 0 to 100. If 0 is specified, then no cursor is displayed.

SetCursorPosAbs(const TPoint &)

voidSetCursorPosAbs(const TPoint &aPoint)[virtual]

Puts the cursor at the absolute position in the window.

Parameters

const TPoint & aPointThe cursor position.

SetCursorPosRel(const TPoint &)

voidSetCursorPosRel(const TPoint &aPoint)[virtual]

Puts the cursor at the specified position relative to the current cursor position.

Parameters

const TPoint & aPointThe cursor position.

SetTextAttribute(TTextAttribute)

voidSetTextAttribute(TTextAttributeanAttribute)[virtual]

Parameters

TTextAttribute anAttribute

SetTitle(const TDesC &)

voidSetTitle(const TDesC &aTitle)[virtual]

Sets a new console title.

Parameters

const TDesC & aTitleThe title text for the console. This should not be longer than 256 characters.

Write(const TDesC &)

voidWrite(const TDesC &aDes)[virtual]

Writes the content of the specified descriptor to the console window.

Parameters

const TDesC & aDesDescriptor containing the characters to be written to the console window.

Member Data Documentation

RConsole iConsole

RConsole iConsole[private]

TConsoleKey iKey

TConsoleKey iKey[private]