TTmLineInfo Class Reference

class TTmLineInfo

A structure for returning information about a line. One of these is returned by all hit-detection functions. Typically, after finding the position in the document that corresponds to given x-y coordinates, you will want some more information like the line's bounding rectangle. When you call, for example, CTmTextLayout::FindXyPos you will receive a TTmLineInfo object that will tell you this, and much more.

Constructor & Destructor Documentation

TTmLineInfo()

TTmLineInfo()[inline]

Constructs a TTmLineInfo object, setting all data members to 0.

Member Enumerations Documentation

Enum anonymous

Enumerators

EParStart = 1
EParEnd = 2
EParRightToLeft = 4
ELineEndsInForcedLineBreak = 8
EPictureButtsLowerEdge = 16
  • no effect, present for compatibility only

EPictureButtsUpperEdge = 32
  • no effect, present for compatibility only

Member Data Documentation

TInt iBaseline

TInt iBaseline

y coordinate of the baseline

TInt iEnd

TInt iEnd

End document position

TUint iFlags

TUint iFlags

Start of paragraph, end of paragraph, etc.

TRect iInnerRect

TRect iInnerRect

Inner enclosing rectangle: the text only

TInt iLineInPar

TInt iLineInPar

Line number in the paragraph

TInt iLineNumber

TInt iLineNumber

Line number

TRect iOuterRect

TRect iOuterRect

Outer enclosing rectangle including margins

TInt iParNumber

TInt iParNumber

Paragraph number

TInt iParTop

TInt iParTop

y coordinate of the top of the paragraph

TInt iStart

TInt iStart

Start document position