| class TCursor |
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.
| Public Member Functions | |
|---|---|
| TCursor(TCursorPosition &, RScreenDisplay &) | |
| void | Draw(TUint) |
| TUint | LineCursorVisibility() |
| void | MatchCursorHeightToAdjacentChar() |
| void | SetAscentAndDescent(TInt, TInt) |
| void | SetExtensions(TInt, TInt) |
| void | SetFlash(TBool) |
| void | SetLineCursorBitmap(const CFbsBitmap *) |
| void | SetPlacement(TTmCursorPlacement) |
| void | SetType(TTextCursor::EType) |
| void | SetVisibility(TVisibility, TVisibility) |
| void | SetWeight(TInt) |
| void | SetXorColor(TRgb) |
| TUint | TextCursorVisibility() |
| Private Member Functions | |
|---|---|
| void | DrawLineCursor(TInt) |
| void | DrawTextCursor(TPoint, TInt, TInt, TInt) |
| void | RemoveLineCursor() |
| void | RemoveTextCursor() |
| Public Member Enumerations | |
|---|---|
| enum | TCursors { EFNeitherCursor = 0, EFTextCursor = 1, EFLineCursor = 2, EFBothCursors = EFTextCursor | EFLineCursor } |
| enum | TVisibility { EFCursorInvisible = 0, EFCursorVisible, EFCursorFlashing } |
| Private Member Enumerations | |
|---|---|
| enum | anonymous { ELineCursorToLabelGap = 2, ETextCursorWeight = 3, ETextCursorInvertColor = 0xFFFFFF } |
| TCursor | ( | TCursorPosition & | aCursorPos, |
| RScreenDisplay & | aDisplay | ||
| ) | |||
| TCursorPosition & aCursorPos | |
| RScreenDisplay & aDisplay |
| void | DrawTextCursor | ( | TPoint | aOrigin, |
| TInt | aWidth, | |||
| TInt | aAscent, | |||
| TInt | aDescent | |||
| ) | [private] | |||
| void | SetLineCursorBitmap | ( | const CFbsBitmap * | aLineCursorBitmap | ) |
| const CFbsBitmap * aLineCursorBitmap |
| void | SetPlacement | ( | TTmCursorPlacement | aPlacement | ) |
| TTmCursorPlacement aPlacement |
| void | SetVisibility | ( | TVisibility | aLineCursor, |
| TVisibility | aTextCursor | |||
| ) | ||||
| TVisibility aLineCursor | |
| TVisibility aTextCursor |
| ELineCursorToLabelGap = 2 | |
| ETextCursorWeight = 3 | |
| ETextCursorInvertColor = 0xFFFFFF |
| EFNeitherCursor = 0 | |
| EFTextCursor = 1 | |
| EFLineCursor = 2 | |
| EFBothCursors = EFTextCursor | EFLineCursor |
Cursor visibility
| 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. |