|
|
|
|
Location:
FRMTLAY.H
Link against: form.lib
class TCursorPosition;
Cursor position.
The TMovementType enum defined in this class is used to indicate the direction of a scroll or cursor movement. The remainder of this class does not form part of the API.
Defined in TCursorPosition:
CancelHighlight(), DocPos(), DontDrawOldPictureFrame(), DrawHighlight(), DrawNewPictureFrame(), DrawOldPictureFrame(), EFLeft, EFLineBeg, EFLineDown, EFLineEnd, EFLineUp, EFNoMovement, EFPageDown, EFPageUp, EFRight, EInsertStrongL2R, EInsertStrongR2L, EPosHintLast, EPosHintUndefined, EVisualLeft, EVisualRight, IsSelection(), IsSelectionToDraw(), PositioningHint(), SetDocPos(), SetLayout(), SetPositioningHint(), SetToCurrentHighlight(), SetToPreviousHighlight(), TCursorPosition(), TMovementType, TPosHint, TVisualEnd, TmDocPos(), UpdateLatentX()
inline TCursorPosition();
Constructs the TCursorPosition object, initializing its members iAnchor, iOldDocPos, iOldAnchor, iFlags, iLatentX, iLatentY to zero, iLayout to NULL, and iPositioningHint to undefined.
inline void SetLayout(CTextLayout *aLayout);
Sets the text layout which TCursorPosition is related.
|
inline void UpdateLatentX(TInt aX);
Sets the latent horizontal text cursor position. This is the horizontal coordinate to which the text cursor will be moved.
|
inline void SetToPreviousHighlight();
Sets the flag which directs GetSelection() and IsPictureFrame() to operate on the previous highlight instead of the current highlight.
inline void SetToCurrentHighlight();
Clears the special flag set in SetToPreviousHighlight() so that GetSelection() and IsPictureFrame() will operate on the current highlight.
inline void CancelHighlight();
Removes the selection, and redraws the affected part of the screen.
inline void SetDocPos(const TTmDocPos &aDocPos);
Sets the document position, the structure for holding a raw document position that can be converted to or from an x-y position
and compared ordinally, which cannot be done with the more abstract TTmDocPosSpec class.
|
inline TBool IsSelection() const;
Tests whether there is currently a selected region.
|
inline TBool IsSelectionToDraw() const;
Tests whether there is currently a highlighted region being drawn.
|
inline const TTmDocPos &TmDocPos() const;
Gets the document position, the structure for holding a raw document position that can be converted to or from an x-y position
and compared ordinally, which cannot be done with the more abstract TTmDocPosSpec class.
|
inline TInt DocPos() const;
Gets the edge position in the document.
|
inline TBool DrawHighlight() const;
Tests whether the highlighted region needs to be drawn. The function will be called by CTextView::UpdateHighlightL() to correct the highlight after a cursor movement
|
inline TBool DrawOldPictureFrame() const;
Tests whether there is a previous picture frame that needs to be drawn. The function will be called by CTextView::UpdateHighlightL() to correct the highlight after a cursor movement
|
inline TBool DrawNewPictureFrame() const;
Tests whether there is a new picture frame that needs to be drawn. The function will be called by CTextView::UpdateHighlightL() to correct the highlight after a cursor movement
|
TMovementType
Direction of cursor movement.
|
TVisualEnd
Selection of the left end or right end of a run of text.
|
TPosHint
|