#include <frmtview.h>
Link against: form.lib
class TCursor |
Public Member Enumerations | |
---|---|
enum | TCursors { EFNeitherCursor, EFTextCursor, EFLineCursor, EFBothCursors } |
enum | TVisibility { EFCursorInvisible, EFCursorVisible, EFCursorFlashing } |
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() |
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.
Enumerator | Value | Description |
---|---|---|
EFNeitherCursor | 0 | |
EFTextCursor | 1 | |
EFLineCursor | 2 | |
EFBothCursors | EFTextCursor | EFLineCursor |
Cursor visibility
Enumerator | Value | Description |
---|---|---|
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. |
TCursor | ( | TCursorPosition & | aCursorPos, |
RScreenDisplay & | aDisplay | ||
) |
TUint | LineCursorVisibility | ( | ) | [inline] |
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.
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.
void | SetLineCursorBitmap | ( | const CFbsBitmap * | aLineCursorBitmap | ) |
void | SetPlacement | ( | TTmCursorPlacement | aPlacement | ) |
void | SetType | ( | TTextCursor::EType | aType | ) |
void | SetVisibility | ( | TVisibility | aLineCursor, |
TVisibility | aTextCursor | |||
) |