Location:
eikconso.h
Link against:
eikcoctl.lib
CEikConsoleScreen
Supported from 6.1
Provides functions to enable construction and manipulation of a console screen.
|
Defined in CEikConsoleScreen
:
Att()
, CEikConsoleScreen()
, ClearChars()
, ClearScreen()
, ClearToEndOfLine()
, ConsoleControl()
, ConstructL()
, Create()
, CursorPos()
, Down()
, DrawCursor()
, DrawCursorInSight()
, DrawInSight()
, EEikConsWinInChars
, EEikConsWinInPixels
, ENoInitialCursor
, EUseBackedUpWindow
, FlushChars()
, Font()
, HideCursor()
, HistorySize()
, Left()
, Lf()
, MoveTopLeft()
, Redraw()
, RetrieveL()
, Right()
, ScreenSize()
, ScrollChars()
, SelectCursor()
, Selection()
, SetAllPrintable()
, SetAtt()
, SetConsWin()
, SetCursorHeight()
, SetCursorPosAbs()
, SetCursorPosRel()
, SetFontL()
, SetHistorySizeL()
, SetKeepCursorInSight()
, SetPureCRLF()
, SetScrollBarVisibilityL()
, SetScrollLock()
, SetSelection()
, SetTitle()
, SetTitleL()
, TEikConsWinUnits
, TEikConsoleFlags
, Title()
, Up()
, UpdateScrollBars()
, Write()
, ~CEikConsoleScreen()
void ConstructL(const TDesC &aTitle,TInt aFlags);
Completes construction specifying the title and whether to use
a backed up window and initial cursor. This version of
ConstructL()
places the top left corner of the console window at
position 0,0 and uses the whole screen area.
|
void ConstructL(const TDesC &aTitle,const TSize &aSize,TInt aFlags,TEikConsWinUnits aUnit);
Completes construction specifying the title, window size,
whether to use a backed up window and initial cursor and the console window's
units. This version of ConstructL()
places the top left corner of
the console window at position 0,0 and uses the specified screen area.
|
void ConstructL(const TDesC &aTitle,TPoint aTopLeft,const TSize &aSize,TInt aFlags,TEikConsWinUnits aUnit);
Completes construction specifying the title, window position
and size, whether to use a backed up window and initial cursor and the console
window's units. This version of ConstructL()
places the top left
corner of the console window at the specified position and uses the specified
screen area.
|
TInt Create(const TDesC& aTitle,TSize aSize);
Creates a console window with the specified title and size using a backed up window.
|
|
~CEikConsoleScreen();
Destructor. Deletes the associated console control and frees memory used by the character buffer, attribute buffer and console title.
TUint Att() const;
Gets console screen character attributes.
|
void ClearChars(const TRect &aRect,TUint aCharacterAttributes);
Clears the specified console screen area and specified character attributes.
|
CEikConsoleControl* ConsoleControl() const;
Gets the console control that is set for the console screen.
|
TPoint CursorPos() const;
Gets the cursor's position.
|
void DrawCursor();
Draws the cursor. If the console window has focus, this
function scrolls to the cursor position then draws the cursor blinking. If the
console window does not have focus, clears the ENoInitialCursor
flag if it is set so that the cursor is drawn when the console window next
gains focus.
void DrawInSight(TPoint aPosition);
Draws the cursor at the specified position.
|
void DrawCursorInSight();
Draws the cursor. This function calls the
DrawInSight()
then DrawCursor()
functions.
const TFontSpec& Font() const;
Gets the current font's specifications.
|
TInt HideCursor();
Hides the cursor.
|
TUint HistorySize() const;
Gets the number of extra lines of characters stored.
|
void Left(TUint aCount=1);
Moves the cursor to the left by the specified number of characters.
|
void Right(TUint aCount=1);
Moves the cursor to the right by the specified number of characters.
|
void MoveTopLeft(TPoint aVector);
Sets the specified point as the visible top left position. This
function is called by CEikConsoleControl
.
|
void Redraw(const TRect &aRect);
Redraws the specified rectangle. This function is called by
CEikConsoleControl
.
|
HBufC* RetrieveL(const TRect &aRange);
Gets the specified selection in a newly allocated buffer.
|
|
TSize ScreenSize() const;
Gets the console screen's size.
|
void ScrollChars(const TRect &anArea,const TPoint &aVector);
Scrolls the specified area by a specified amount.
|
void SelectCursor();
Selects the cursor position. This is an empty selection starting and ending at the cursor's position.
void SetAllPrintable(TUint aFlag);
Sets the AllPrintable
flag. If set to
ETrue
all characters are printed, even UNICODE characters 0 to 31.
|
void SetAtt(TUint aCharacterAttributes);
Sets the specified character attributes.
|
void SetAtt(TUint aForegroundGray16,TUint aBackgroundGray16);
Sets the foreground and background colour mask.
|
void SetConsWin(CEikConsoleControl* aConsWin);
Sets the specified console control as a window. Use this function if you do not want to use the whole screen.
This function should be called to update the CEikConsoleScreen
with a new CEikConsoleControl
, which may be a different size.
|
void SetCursorHeight(TInt aPercentage);
Sets the cursor height to a percentage of the font height.
|
void SetCursorPosAbs(const TPoint &aPoint);
Sets the cursor's position to the specified screen position.
|
void SetCursorPosRel(const TPoint &aPoint);
Sets the cursor's position relative to the current position.
|
void SetFontL(const TFontSpec &aFontDesc);
Sets the screen font.
|
void SetHistorySizeL(TUint aMaxChrExtra,TUint aMaxAttExtra);
Sets the number of lines of back-scroll history and coresponding attributes that are stored in memory.
|
void SetKeepCursorInSight(TUint aFlag);
Sets the KeepCursorInSight
flag.
|
void SetPureCRLF(TUint aFlag);
Sets the PureCRLF
flag.
|
TInt SetScrollBarVisibilityL(CEikScrollBarFrame::TScrollBarVisibility aHBarVisibility, CEikScrollBarFrame::TScrollBarVisibility aVBarVisibility);
Sets visibility of the horizontal and vertical scrollbars.
|
|
void SetScrollLock(TUint aFlag);
Sets the scroll lock flag.
|
void SetSelection(const TRect &aRange);
Sets the cursor selection to the specified area.
|
void SetTitle(const TDesC &aTitle);
Sets the console window title.
|
void SetTitleL(const TDesC &aTitle);
Replaces the console window title, deleting the old title.
|
HBufC* Title() const;
Gets the console window title.
|
void Up(TUint aCount);
Moves the cursor up by the specified number of lines.
|
void Down(TUint aCount);
Moves the cursor down by the specified number of lines.
|
TBool UpdateScrollBars();
Updates the scroll bars. This function should be called whenever the data size or top left position changes.
|
void Write(const TDesC &aText);
Writes the specified text to the write buffer.
|
TEikConsoleFlags
Used to set whether the console screen uses a backed up window and whether a cursor is displayed when the window is first drawn.
|
TEikConsWinUnits
Used to set the units used for the console window.
|