Public Types | Public Member Functions | Friends

QTextLine Class Reference

Search for all occurrences

Detailed Description

Definition at line 186 of file qtextlayout.h.

#include <qtextlayout.h>

List of all members.

Public Types

enum   Edge { Leading, Trailing }
enum   CursorPosition { CursorBetweenCharacters, CursorOnCharacter }

Public Member Functions

  QTextLine ()
bool  isValid () const
QRectF  rect () const
qreal  x () const
qreal  y () const
qreal  width () const
qreal  ascent () const
qreal  descent () const
qreal  height () const
qreal  leading () const
void  setLeadingIncluded (bool included)
bool  leadingIncluded () const
qreal  naturalTextWidth () const
qreal  horizontalAdvance () const
QRectF  naturalTextRect () const
qreal  cursorToX (int *cursorPos, Edge edge=Leading) const
qreal  cursorToX (int cursorPos, Edge edge=Leading) const
int  xToCursor (qreal x, CursorPosition=CursorBetweenCharacters) const
void  setLineWidth (qreal width)
void  setNumColumns (int columns)
void  setNumColumns (int columns, qreal alignmentWidth)
void  setPosition (const QPointF &pos)
QPointF  position () const
int  textStart () const
int  textLength () const
int  lineNumber () const
void  draw (QPainter *p, const QPointF &point, const QTextLayout::FormatRange *selection=0) const

Friends

class  QTextLayout

Member Enumeration Documentation

enum Edge
Enumerator:
CursorBetweenCharacters 
CursorOnCharacter 

Definition at line 212 of file qtextlayout.h.


Constructor & Destructor Documentation

QTextLine ( ) [inline]

Definition at line 189 of file qtextlayout.h.

: i(0), eng(0) {}

Member Function Documentation

bool isValid ( ) const [inline]

Definition at line 190 of file qtextlayout.h.

{ return eng; }
QRectF rect ( ) const
qreal x ( ) const
qreal y ( ) const
qreal width ( ) const
qreal ascent ( ) const
qreal descent ( ) const
qreal height ( ) const
qreal leading ( ) const
void setLeadingIncluded ( bool  included )
bool leadingIncluded ( ) const
qreal naturalTextWidth ( ) const
qreal horizontalAdvance ( ) const
QRectF naturalTextRect ( ) const
qreal cursorToX ( int *  cursorPos,
Edge  edge = Leading 
) const
qreal cursorToX ( int  cursorPos,
Edge  edge = Leading 
) const [inline]

Definition at line 219 of file qtextlayout.h.

{ return cursorToX(&cursorPos, edge); }
int xToCursor ( qreal  x,
CursorPosition  = CursorBetweenCharacters 
) const
void setLineWidth ( qreal  width )
void setNumColumns ( int  columns )
void setNumColumns ( int  columns,
qreal  alignmentWidth 
)
void setPosition ( const QPointF pos )
QPointF position ( ) const
int textStart ( ) const
int textLength ( ) const
int lineNumber ( ) const [inline]

Definition at line 232 of file qtextlayout.h.

{ return i; }
void draw ( QPainter p,
const QPointF point,
const QTextLayout::FormatRange selection = 0 
) const

Friends And Related Function Documentation

friend class QTextLayout [friend]

Definition at line 239 of file qtextlayout.h.


The documentation for this class was generated from the following file:

QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine
QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine QTextLine