![]() |
Qt 6.x
The Qt SDK
|
#include "qtextlayout.h"
#include "qtextengine_p.h"
#include <qthread.h>
#include <qfont.h>
#include <qmath.h>
#include <qpainter.h>
#include <qvarlengtharray.h>
#include <qtextformat.h>
#include <qabstracttextdocumentlayout.h>
#include "qtextdocument_p.h"
#include "qtextformat_p.h"
#include "qpainterpath.h"
#include "qglyphrun.h"
#include "qglyphrun_p.h"
#include "qrawfont.h"
#include "qrawfont_p.h"
#include <limits.h>
#include <qdebug.h>
#include "qfontengine_p.h"
#include <private/qpainter_p.h>
Go to the source code of this file.
Macros | |
#define | ObjectSelectionBrush (QTextFormat::ForegroundBrush + 1) |
#define | SuppressText 0x5012 |
#define | SuppressBackground 0x513 |
#define | LB_DEBUG if (0) qDebug |
Functions | |
static void | addSelectedRegionsToPath (QTextEngine *eng, int lineNumber, const QPointF &pos, QTextLayout::FormatRange *selection, QPainterPath *region, const QRectF &boundingRect) |
static QRectF | clipIfValid (const QRectF &rect, const QRectF &clip) |
static void | addNextCluster (int &pos, int end, QScriptLine &line, int &glyphCount, const QScriptItem ¤t, const unsigned short *logClusters, const QGlyphLayout &glyphs, QFixed *clusterWidth=nullptr) |
static void | setPenAndDrawBackground (QPainter *p, const QPen &defaultPen, const QTextCharFormat &chf, const QRectF &r) |
static QGlyphRun | glyphRunWithInfo (QFontEngine *fontEngine, const QString &text, const QGlyphLayout &glyphLayout, const QPointF &pos, const QGlyphRun::GlyphRunFlags &flags, QTextLayout::GlyphRunRetrievalFlags retrievalFlags, QFixed selectionX, QFixed selectionWidth, int glyphsStart, int glyphsEnd, unsigned short *logClusters, int textPosition, int textLength) |
Definition at line 1668 of file qtextlayout.cpp.
#define ObjectSelectionBrush (QTextFormat::ForegroundBrush + 1) |
Definition at line 30 of file qtextlayout.cpp.
#define SuppressBackground 0x513 |
Definition at line 32 of file qtextlayout.cpp.
#define SuppressText 0x5012 |
Definition at line 31 of file qtextlayout.cpp.
|
inlinestatic |
Definition at line 1805 of file qtextlayout.cpp.
References QGlyphLayout::advances, QGlyphLayout::attributes, QGlyphAttributes::clusterStart, QGlyphAttributes::dontPrint, QString::length(), line, QScriptItem::num_glyphs, pos, and Q_ASSERT.
|
static |
Definition at line 942 of file qtextlayout.cpp.
References QPainterPath::addRect(), boundingRect(), line, QTextEngine::lines, pos, rect, selection, and QFixed::toReal().
Referenced by QTextLayout::draw().
Definition at line 982 of file qtextlayout.cpp.
References QRectF::isValid(), and rect.
Referenced by QTextLayout::draw().
|
static |
Definition at line 2252 of file qtextlayout.cpp.
References QList< T >::append(), QVarLengthArray< T, Prealloc >::at(), d, font, QGlyphRunPrivate::get(), QRawFontPrivate::get(), QFontEngine::getGlyphPositions(), i, QTextItem::Overline, QGlyphRun::Overline, pos, position(), positions, Q_ASSERT, qMax(), qMin(), QList< T >::reserve(), QTextLayout::RetrieveGlyphIndexes, QTextLayout::RetrieveGlyphPositions, QTextLayout::RetrieveString, QTextLayout::RetrieveStringIndexes, QTextItem::RightToLeft, QGlyphRun::RightToLeft, QGlyphRun::setBoundingRect(), QGlyphRun::setFlags(), QRawFontPrivate::setFontEngine(), QGlyphRun::setGlyphIndexes(), QGlyphRun::setPositions(), QGlyphRun::setRawFont(), QGlyphRun::setSourceString(), QGlyphRun::setStringIndexes(), QVLABaseBase::size(), QTextItem::StrikeOut, QGlyphRun::StrikeOut, text, QFixed::toReal(), QTextItem::Underline, and QGlyphRun::Underline.
Referenced by QTextLine::glyphRuns().
|
static |
Definition at line 2235 of file qtextlayout.cpp.
References QTextFormat::background(), QTextFormat::foreground(), Qt::NoBrush, QTextFormat::property(), QBrush::style(), SuppressBackground, and QVariant::toBool().