#include <qtextlayout.h>
Definition at line 197 of file qtextlayout.h.
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 |
class | QTextFragment |
enum Edge |
Enumerator | |
---|---|
Leading | |
Trailing |
Definition at line 219 of file qtextlayout.h.
enum CursorPosition |
Enumerator | |
---|---|
CursorBetweenCharacters | |
CursorOnCharacter |
Definition at line 223 of file qtextlayout.h.
|
inline |
Definition at line 200 of file qtextlayout.h.
|
inline |
Definition at line 201 of file qtextlayout.h.
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 |
Definition at line 230 of file qtextlayout.h.
int xToCursor | ( | qreal | x, |
CursorPosition | = CursorBetweenCharacters |
||
) | const |
void setLineWidth | ( | qreal | width | ) |
QPointF position | ( | ) | const |
int textStart | ( | ) | const |
int textLength | ( | ) | const |
|
inline |
Definition at line 243 of file qtextlayout.h.
void draw | ( | QPainter * | p, |
const QPointF & | point, | ||
const QTextLayout::FormatRange * | selection = 0 |
||
) | const |
|
friend |
Definition at line 255 of file qtextlayout.h.
|
friend |
Definition at line 256 of file qtextlayout.h.