Definition at line 103 of file qtextlayout.h.
#include <qtextlayout.h>
Classes |
|
| struct | FormatRange |
Public Types |
|
| enum | CursorMode { SkipCharacters, SkipWords } |
Public Member Functions |
|
| 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 | 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 |
| 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 |
| QTextEngine * | engine () const |
| void | setFlags (int flags) |
Friends |
|
| class | QPainter |
| class | QPSPrinter |
| class | QGraphicsSimpleTextItemPrivate |
| class | QGraphicsSimpleTextItem |
| void | qt_format_text (const QFont &font, const QRectF &_r, int tf, const QTextOption *, const QString &str, QRectF *brect, int tabstops, int *tabarray, int tabarraylen, QPainter *painter) |
| enum CursorMode |
Definition at line 148 of file qtextlayout.h.
{
SkipCharacters,
SkipWords
};
| 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 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 |
| void draw | ( | QPainter * | p, |
| const QPointF & | pos, | ||
| const QVector< FormatRange > & | selections = QVector< FormatRange >(), |
||
| const QRectF & | clip = QRectF() |
||
| ) | const |
| QPointF position | ( | ) | const |
| void setPosition | ( | const QPointF & | p | ) |
| QRectF boundingRect | ( | ) | const |
| qreal minimumWidth | ( | ) | const |
| qreal maximumWidth | ( | ) | const |
| QTextEngine* engine | ( | ) | const [inline] |
| void setFlags | ( | int | flags | ) |
friend class QPainter [friend] |
Definition at line 175 of file qtextlayout.h.
friend class QPSPrinter
[friend] |
Definition at line 176 of file qtextlayout.h.
friend class QGraphicsSimpleTextItemPrivate
[friend] |
Definition at line 177 of file qtextlayout.h.
friend class QGraphicsSimpleTextItem
[friend] |
Definition at line 178 of file qtextlayout.h.