#include "qdeclarativetextlayout_p.h"
#include <private/qstatictext_p.h>
#include <private/qfontengine_p.h>
#include <private/qtextengine_p.h>
#include <private/qpainter_p.h>
#include <private/qpaintengineex_p.h>
Go to the source code of this file.
◆ Q_GLOBAL_STATIC()
Q_GLOBAL_STATIC |
( |
InertTextPainter |
, |
|
|
inertTextPainter |
|
|
) |
| |
◆ qt_draw_decoration_for_glyphs()
Definition at line 6820 of file qpainter.cpp.
Referenced by QDeclarativeTextLayout::draw(), QPainter::drawStaticText(), and QDeclarativeTextLayout::prepare().
6831 for (
int i=0; i<glyphCount; ++i) {
6833 if (i == 0 || leftMost > positions[i].x)
6834 leftMost = positions[i].
x;
6839 if (i == 0 || baseLine < positions[i].y)
6840 baseLine = positions[i].
y;
6843 if (i == 0 || rightMost < positions[i].x + gm.
xoff)
6844 rightMost = positions[i].
x + gm.
xoff;
6847 QFixed width = rightMost - leftMost;
6848 QTextItem::RenderFlags flags = 0;
6861 width.
toReal(), charFormat);
bool underline() const
Returns true if underline has been set; otherwise returns false.
The QPointF class defines a point in the plane using floating point precision.
bool overline() const
Returns true if overline has been set; otherwise returns false.
virtual glyph_metrics_t boundingBox(const QGlyphLayout &glyphs)=0
bool strikeOut() const
Returns true if strikeout has been set; otherwise returns false.
static void drawTextItemDecoration(QPainter *painter, const QPointF &pos, const QFontEngine *fe, QTextCharFormat::UnderlineStyle underlineStyle, QTextItem::RenderFlags flags, qreal width, const QTextCharFormat &charFormat)