Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: TAGMA.H

Class TTmDocPosSpec

class TTmDocPosSpec;

Description

A structure to hold a logical document position that can be converted to a raw document position or an x-y position.

A document position can specify a leading or trailing edge or a text directionality so that bidirectional hit testing can use both these distinctions.

The leading edge at position N is the position before character N in logical order, and the trailing edge is the position after character in logical order.

Specification by directionality works differently. Character N in left-to-right text is preceded by position N (left-to-right) and followed by position N+1 (left-to-right). Character N in right-to-left text is preceded (in display order) by position N+1 (right-to-left) and followed by position N (right-to-left).

Members

Defined in TTmDocPosSpec:
ELeading, ELeftToRight, ERightToLeft, ETrailing, TTmDocPosSpec(), TTmDocPosSpec(), TTmDocPosSpec(), TType, iPos, iType


Construction and destruction


TTmDocPosSpec()

inline TTmDocPosSpec();

Description

Constructs a TTmDocPosSpec, setting the position to 0 and the type to trailing.


TTmDocPosSpec()

inline TTmDocPosSpec(TInt aPos, TType aType);

Description

Constructs a TTmDocPosSpec, setting the position to aPos and the type to aType.

Parameters

TInt aPos

TType aType


TTmDocPosSpec()

inline TTmDocPosSpec(const TTmDocPos &aRawDocPos);

Description

Constructs a TTmDocPosSpec from a TTmDocPos.

Parameters

const TTmDocPos &aRawDocPos

[Top]


Member enumerations


Enum TType

TType

Description

The cursor type.

ETrailing

trailing edge

ELeading

leading edge

ELeftToRight

left-to-right

ERightToLeft

right-to-left

[Top]


Member data


iPos

TInt iPos;

Description

the edge position in the document; 0 ... document length


iType

TType iType;

Description

the type as specified above