TTmDocPos Class Reference
A 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. Leading edges are distinguished from trailing edges so that bidirectional hit testing and cursor positioning can distinguish between 'after character N', and 'before character N + 1', which may be some distance apart if N and N + 1 are in runs of opposite directionality.
Constructor & Destructor Documentation
TTmDocPos()
Constructs a
TTmDocPos
object, setting iPos to 0 and iLeadingEdge to false. This is the lowest legal value for a
TTmDocPos
object. A trailing edge comes before a leading edge because it is the trailing edge of the character before the position, while the leading edge is that of the character after the position. ('Leading' means the first to be encountered when traversing the document in logical order).
TTmDocPos(TInt, TBool)
TTmDocPos
|
(
|
TInt
|
aPos,
|
|
TBool
|
aLeadingEdge
|
|
)
|
[inline]
|
Constructs a
TTmDocPos
object, setting iPos to aPos and iLeadingEdge to aLeadingEdge.
Member Functions Documentation
operator!=(const TTmDocPos &)
operator<(const TTmDocPos &)
operator<=(const TTmDocPos &)
Smaller than or equal to operator.
operator==(const TTmDocPos &)
operator>(const TTmDocPos &)
operator>=(const TTmDocPos &)
Member Data Documentation
TBool
iLeadingEdge
true if the position is a leading edge
TInt
iPos
the edge position in the document; 0 ... document length
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.