QTextLayout Class Reference
#include <qtextlayout.h>
Definition at line 105 of file qtextlayout.h.
|
| | QTextLayout () |
| |
| | QTextLayout (const QString &text) |
| |
| | QTextLayout (const QString &text, const QFont &font, QPaintDevice *paintdevice=0) |
| |
| | QTextLayout (const QTextBlock &b) |
| |
| | ~QTextLayout () |
| |
| void | setFont (const QFont &f) |
| |
| QFont | font () const |
| |
| void | setText (const QString &string) |
| |
| QString | text () const |
| |
| void | setTextOption (const QTextOption &option) |
| |
| QTextOption | textOption () const |
| |
| void | setPreeditArea (int position, const QString &text) |
| |
| int | preeditAreaPosition () const |
| |
| QString | preeditAreaText () const |
| |
| void | setAdditionalFormats (const QList< FormatRange > &overrides) |
| |
| QList< FormatRange > | additionalFormats () const |
| |
| void | clearAdditionalFormats () |
| |
| void | setCacheEnabled (bool enable) |
| |
| bool | cacheEnabled () const |
| |
| void | setCursorMoveStyle (Qt::CursorMoveStyle style) |
| |
| Qt::CursorMoveStyle | cursorMoveStyle () const |
| |
| void | beginLayout () |
| |
| void | endLayout () |
| |
| void | clearLayout () |
| |
| QTextLine | createLine () |
| |
| int | lineCount () const |
| |
| QTextLine | lineAt (int i) const |
| |
| QTextLine | lineForTextPosition (int pos) const |
| |
| bool | isValidCursorPosition (int pos) const |
| |
| int | nextCursorPosition (int oldPos, CursorMode mode=SkipCharacters) const |
| |
| int | previousCursorPosition (int oldPos, CursorMode mode=SkipCharacters) const |
| |
| int | leftCursorPosition (int oldPos) const |
| |
| int | rightCursorPosition (int oldPos) const |
| |
| void | draw (QPainter *p, const QPointF &pos, const QVector< FormatRange > &selections=QVector< FormatRange >(), const QRectF &clip=QRectF()) const |
| |
| void | drawCursor (QPainter *p, const QPointF &pos, int cursorPosition) const |
| |
| void | drawCursor (QPainter *p, const QPointF &pos, int cursorPosition, int width) const |
| |
| QPointF | position () const |
| |
| void | setPosition (const QPointF &p) |
| |
| QRectF | boundingRect () const |
| |
| qreal | minimumWidth () const |
| |
| qreal | maximumWidth () const |
| |
| QList< QGlyphRun > | glyphRuns () const |
| |
| QTextEngine * | engine () const |
| |
| void | setFlags (int flags) |
| |
| Enumerator |
|---|
| SkipCharacters |
|
| SkipWords |
|
Definition at line 153 of file qtextlayout.h.
| int preeditAreaPosition |
( |
| ) |
const |
| void clearAdditionalFormats |
( |
| ) |
|
| void setCacheEnabled |
( |
bool |
enable | ) |
|
| bool cacheEnabled |
( |
| ) |
const |
| bool isValidCursorPosition |
( |
int |
pos | ) |
const |
| int leftCursorPosition |
( |
int |
oldPos | ) |
const |
| int rightCursorPosition |
( |
int |
oldPos | ) |
const |
| qreal minimumWidth |
( |
| ) |
const |
| qreal maximumWidth |
( |
| ) |
const |
| QTextEngine* engine |
( |
| ) |
const |
|
inline |
| friend class QGraphicsSimpleTextItemPrivate |
|
friend |
The documentation for this class was generated from the following file: