#include <qtextengine_p.h>
|
| QTextEngine () |
|
| QTextEngine (const QString &str, const QFont &f) |
|
| ~QTextEngine () |
|
void | invalidate () |
|
void | clearLineData () |
|
void | validate () const |
|
void | itemize () const |
|
bool | isRightToLeft () const |
|
const QCharAttributes * | attributes () const |
|
void | shape (int item) const |
|
void | justify (const QScriptLine &si) |
|
QFixed | alignLine (const QScriptLine &line) |
|
QFixed | width (int charFrom, int numChars) const |
|
glyph_metrics_t | boundingBox (int from, int len) const |
|
glyph_metrics_t | tightBoundingBox (int from, int len) const |
|
int | length (int item) const |
|
int | length (const QScriptItem *si) const |
|
QFontEngine * | fontEngine (const QScriptItem &si, QFixed *ascent=nullptr, QFixed *descent=nullptr, QFixed *leading=nullptr) const |
|
QFont | font (const QScriptItem &si) const |
|
QFont | font () const |
|
unsigned short * | logClusters (const QScriptItem *si) const |
|
QGlyphLayout | availableGlyphs (const QScriptItem *si) const |
|
QGlyphLayout | shapedGlyphs (const QScriptItem *si) const |
|
bool | ensureSpace (int nGlyphs) const |
|
void | freeMemory () |
|
int | findItem (int strPos, int firstItem=0) const |
|
QTextFormatCollection * | formatCollection () const |
|
QTextCharFormat | format (const QScriptItem *si) const |
|
QAbstractTextDocumentLayout * | docLayout () const |
|
int | formatIndex (const QScriptItem *si) const |
|
QFixed | calculateTabWidth (int index, QFixed x) const |
| returns the width of tab at index (in the tabs array) with the tab-start at position x More...
|
|
bool | visualCursorMovement () const |
|
int | preeditAreaPosition () const |
|
QString | preeditAreaText () const |
|
void | setPreeditArea (int position, const QString &text) |
|
bool | hasFormats () const |
|
QList< QTextLayout::FormatRange > | formats () const |
|
void | setFormats (const QList< QTextLayout::FormatRange > &formats) |
|
bool | atWordSeparator (int position) const |
|
QString | elidedText (Qt::TextElideMode mode, const QFixed &width, int flags=0, int from=0, int count=-1) const |
|
void | shapeLine (const QScriptLine &line) |
|
QFixed | leadingSpaceWidth (const QScriptLine &line) |
|
QFixed | offsetInLigature (const QScriptItem *si, int pos, int max, int glyph_pos) |
|
int | positionInLigature (const QScriptItem *si, int end, QFixed x, QFixed edge, int glyph_pos, bool cursorOnCharacter) |
|
int | previousLogicalPosition (int oldPos) const |
|
int | nextLogicalPosition (int oldPos) const |
|
int | lineNumberForTextPosition (int pos) |
|
int | positionAfterVisualMovement (int oldPos, QTextCursor::MoveOperation op) |
|
std::vector< int > | insertionPointsForLine (int lineNum) |
|
void | resetFontEngineCache () |
|
void | enableDelayDecorations (bool enable=true) |
|
void | addUnderline (QPainter *painter, const QLineF &line) |
|
void | addStrikeOut (QPainter *painter, const QLineF &line) |
|
void | addOverline (QPainter *painter, const QLineF &line) |
|
void | drawDecorations (QPainter *painter) |
|
void | clearDecorations () |
|
void | adjustUnderlines () |
|
Definition at line 402 of file qtextengine_p.h.
◆ ItemDecorationList
◆ LayoutState
Enumerator |
---|
LayoutEmpty | |
InLayout | |
LayoutFailed | |
Definition at line 404 of file qtextengine_p.h.
◆ Mode
◆ QTextEngine() [1/2]
QTextEngine::QTextEngine |
( |
| ) |
|
◆ QTextEngine() [2/2]
◆ ~QTextEngine()
QTextEngine::~QTextEngine |
( |
| ) |
|
◆ addOverline()
◆ addStrikeOut()
◆ addUnderline()
◆ adjustUnderlines()
void QTextEngine::adjustUnderlines |
( |
| ) |
|
◆ alignLine()
◆ attributes()
◆ atWordSeparator()
bool QTextEngine::atWordSeparator |
( |
int |
position | ) |
const |
◆ availableGlyphs()
Returns an array of QGlyphLayout items, offset at the script item. Each item in the array matches one glyph in the text, storing the advance, position etc. The returned item's length equals to the number of available glyphs. This may be more than what was actually shaped.
- See also
- logClusters()
Definition at line 505 of file qtextengine_p.h.
◆ bidiReorder()
void QTextEngine::bidiReorder |
( |
int |
numRuns, |
|
|
const quint8 * |
levels, |
|
|
int * |
visualOrder |
|
) |
| |
|
static |
◆ boundingBox()
◆ calculateTabWidth()
QFixed QTextEngine::calculateTabWidth |
( |
int |
index, |
|
|
QFixed |
x |
|
) |
| const |
returns the width of tab at index (in the tabs array) with the tab-start at position x
Definition at line 3169 of file qtextengine.cpp.
◆ clearDecorations()
void QTextEngine::clearDecorations |
( |
| ) |
|
◆ clearLineData()
void QTextEngine::clearLineData |
( |
| ) |
|
◆ docLayout()
◆ drawDecorations()
◆ elidedText()
◆ enableDelayDecorations()
void QTextEngine::enableDelayDecorations |
( |
bool |
enable = true | ) |
|
|
inline |
◆ ensureSpace()
bool QTextEngine::ensureSpace |
( |
int |
nGlyphs | ) |
const |
|
inline |
◆ findItem()
int QTextEngine::findItem |
( |
int |
strPos, |
|
|
int |
firstItem = 0 |
|
) |
| const |
◆ font() [1/2]
QFont QTextEngine::font |
( |
| ) |
const |
|
inline |
◆ font() [2/2]
◆ fontEngine()
◆ format()
◆ formatCollection()
◆ formatIndex()
◆ formats()
◆ freeMemory()
void QTextEngine::freeMemory |
( |
| ) |
|
◆ hasFormats()
bool QTextEngine::hasFormats |
( |
| ) |
const |
|
inline |
◆ insertionPointsForLine()
std::vector< int > QTextEngine::insertionPointsForLine |
( |
int |
lineNum | ) |
|
◆ invalidate()
void QTextEngine::invalidate |
( |
| ) |
|
◆ isRightToLeft()
bool QTextEngine::isRightToLeft |
( |
| ) |
const |
◆ itemize()
void QTextEngine::itemize |
( |
| ) |
const |
◆ justify()
◆ leadingSpaceWidth()
◆ length() [1/2]
◆ length() [2/2]
int QTextEngine::length |
( |
int |
item | ) |
const |
|
inline |
◆ lineNumberForTextPosition()
int QTextEngine::lineNumberForTextPosition |
( |
int |
pos | ) |
|
◆ logClusters()
Returns a pointer to an array of log clusters, offset at the script item. Each item in the array is a unsigned short. For each character in the original string there is an entry in the table so there is a one to one correlation in indexes between the original text and the index in the logcluster. The value of each item is the position in the glyphs array. Multiple similar pointers in the logclusters array imply that one glyph is used for more than one character.
- See also
- glyphs()
Definition at line 496 of file qtextengine_p.h.
◆ nextLogicalPosition()
int QTextEngine::nextLogicalPosition |
( |
int |
oldPos | ) |
const |
◆ offsetInLigature()
◆ positionAfterVisualMovement()
◆ positionInLigature()
◆ preeditAreaPosition()
int QTextEngine::preeditAreaPosition |
( |
| ) |
const |
|
inline |
◆ preeditAreaText()
QString QTextEngine::preeditAreaText |
( |
| ) |
const |
|
inline |
◆ previousLogicalPosition()
int QTextEngine::previousLogicalPosition |
( |
int |
oldPos | ) |
const |
◆ resetFontEngineCache()
void QTextEngine::resetFontEngineCache |
( |
| ) |
|
◆ setFormats()
◆ setPreeditArea()
◆ shape()
void QTextEngine::shape |
( |
int |
item | ) |
const |
◆ shapedGlyphs()
Returns an array of QGlyphLayout items, offset at the script item. Each item in the array matches one glyph in the text, storing the advance, position etc. The returned item's length equals to the number of shaped glyphs.
- See also
- logClusters()
Definition at line 514 of file qtextengine_p.h.
◆ shapeLine()
◆ tightBoundingBox()
◆ validate()
void QTextEngine::validate |
( |
| ) |
const |
◆ visualCursorMovement()
bool QTextEngine::visualCursorMovement |
( |
| ) |
const |
|
inline |
◆ width()
QFixed QTextEngine::width |
( |
int |
charFrom, |
|
|
int |
numChars |
|
) |
| const |
◆ block
◆ cacheGlyphs
uint QTextEngine::cacheGlyphs |
◆ delayDecorations
uint QTextEngine::delayDecorations |
◆ fnt
◆ forceJustification
uint QTextEngine::forceJustification |
◆ ignoreBidi
uint QTextEngine::ignoreBidi |
◆ layoutData
◆ lines
◆ maxWidth
◆ minWidth
◆ option
◆ overlineList
◆ position
◆ rawFont
◆ stackEngine
uint QTextEngine::stackEngine |
◆ strikeOutList
◆ text
◆ underlineList
◆ useRawFont
uint QTextEngine::useRawFont |
◆ visualMovement
uint QTextEngine::visualMovement |
The documentation for this class was generated from the following files: