TCursor Class Reference
Visibility of line and text cursor.
The TVisibility enumeration defined in this class is used in calls to CTextView::SetCursorVisibilityL(). The remainder of this class does not form part of the API.
Constructor & Destructor Documentation
TCursor(TCursorPosition &, RScreenDisplay &)
Member Functions Documentation
Draw(TUint)
Draws the specified cursors.
DrawLineCursor(TInt)
| void | DrawLineCursor | ( | TInt | aHeight | ) | [private] |
DrawTextCursor(TPoint, TInt, TInt, TInt)
LineCursorVisibility()
|
TUint
| LineCursorVisibility | ( | ) | [inline] |
MatchCursorHeightToAdjacentChar()
| void | MatchCursorHeightToAdjacentChar | ( | ) | |
Sets the cursor so that when it is next drawn its metrics will match those of adjacent text: cancels any overriding metrics. Does not redraw.
RemoveLineCursor()
| void | RemoveLineCursor | ( | ) | [private] |
RemoveTextCursor()
| void | RemoveTextCursor | ( | ) | [private] |
Removes the text cursor only if it is currently visible in this window.
SetAscentAndDescent(TInt, TInt)
| void | SetAscentAndDescent | ( | TInt | aAscent, |
| | TInt | aDescent |
| | ) | |
Sets the ascent and descent of the text cursor in pixels and redraw it. To use the ascent or descent of the adjacent character pass a value of -1.
SetExtensions(TInt, TInt)
| void | SetExtensions | ( | TInt | aFirstExtension, |
| | TInt | aSecondExtension |
| | ) | |
Parameters
| TInt aFirstExtension | |
| TInt aSecondExtension | |
SetFlash(TBool)
| void | SetFlash | ( | TBool | aEnabled | ) | |
Sets the flashing state of the cursor and redraws it.
SetLineCursorBitmap(const CFbsBitmap *)
| void | SetLineCursorBitmap | ( | const CFbsBitmap * | aLineCursorBitmap | ) | |
SetPlacement(TTmCursorPlacement)
SetType(TTextCursor::EType)
SetVisibility(TVisibility, TVisibility)
SetWeight(TInt)
| void | SetWeight | ( | TInt | aWeight | ) | |
Changes the cursor weight and redraws it.
SetXorColor(TRgb)
| void | SetXorColor | ( | TRgb | aColor | ) | |
Sets the XOR colour of the cursor and redraws it.
TextCursorVisibility()
|
TUint
| TextCursorVisibility | ( | ) | [inline] |
Member Enumerations Documentation
Enum anonymous
Enumerators
| ELineCursorToLabelGap = 2 | |
| ETextCursorWeight = 3 | |
| ETextCursorInvertColor = 0xFFFFFF | |
Enum TCursors
Enumerators
| EFNeitherCursor = 0 | |
| EFTextCursor = 1 | |
| EFLineCursor = 2 | |
| EFBothCursors = EFTextCursor | EFLineCursor | |
Enum TVisibility
Enumerators
| EFCursorInvisible = 0 |
Indicates that the cursor should be invisible.
|
| EFCursorVisible |
Indicates that the cursor should be visible.
|
| EFCursorFlashing |
Indicates a flashing text cursor. When specified for the line cursor, is equivalent to EFCursorVisible, as the line cursor cannot flash. Note that a non-flashing text cursor should only be used when there is to be no editing, reformatting, scrolling or cursor movement.
|
Member Data Documentation
TCursorPosition & iCursorPos
RScreenDisplay & iDisplay
TInt
iFirstExtension
|
TInt
| iFirstExtension | [private] |
const CFbsBitmap * iLineCursorBitmap
TTmCursorPlacement
iPlacement
TInt
iSecondExtension
|
TInt
| iSecondExtension | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.