![]() |
Qt 6.x
The Qt SDK
|
#include <qtextengine_p.h>
Public Member Functions | |
QTextItemInt ()=default | |
QTextItemInt (const QScriptItem &si, QFont *font, const QTextCharFormat &format=QTextCharFormat()) | |
QTextItemInt (const QGlyphLayout &g, QFont *font, const QChar *chars, int numChars, QFontEngine *fe, const QTextCharFormat &format=QTextCharFormat()) | |
QTextItemInt | midItem (QFontEngine *fontEngine, int firstGlyphIndex, int numGlyphs) const |
void | initWithScriptItem (const QScriptItem &si) |
![]() | |
qreal | descent () const |
Corresponds to the \l{QFontMetrics::descent()}{descent} of the piece of text that is drawn. | |
qreal | ascent () const |
Corresponds to the \l{QFontMetrics::ascent()}{ascent} of the piece of text that is drawn. | |
qreal | width () const |
Specifies the total width of the text to be drawn. | |
RenderFlags | renderFlags () const |
Returns the render flags used. | |
QString | text () const |
Returns the text that should be drawn. | |
QFont | font () const |
Returns the font that should be used to draw the text. | |
Public Attributes | |
QFixed | descent |
QFixed | ascent |
QFixed | width |
RenderFlags | flags |
bool | justified = false |
QTextCharFormat::UnderlineStyle | underlineStyle = QTextCharFormat::NoUnderline |
const QTextCharFormat | charFormat |
int | num_chars = 0 |
const QChar * | chars = nullptr |
const unsigned short * | logClusters = nullptr |
const QFont * | f = nullptr |
QGlyphLayout | glyphs |
QFontEngine * | fontEngine = nullptr |
Additional Inherited Members | |
![]() | |
enum | RenderFlag { RightToLeft = 0x1 , Overline = 0x10 , Underline = 0x20 , StrikeOut = 0x40 , Dummy = 0xffffffff } |
\value RightToLeft Render the text from right to left. More... | |
Internal QTextItem.
Definition at line 267 of file qtextengine_p.h.
|
inlinedefault |
QTextItemInt::QTextItemInt | ( | const QScriptItem & | si, |
QFont * | font, | ||
const QTextCharFormat & | format = QTextCharFormat() |
||
) |
Definition at line 3737 of file qtextengine.cpp.
References fontEngine, initWithScriptItem(), and Q_ASSERT.
QTextItemInt::QTextItemInt | ( | const QGlyphLayout & | g, |
QFont * | font, | ||
const QChar * | chars, | ||
int | numChars, | ||
QFontEngine * | fe, | ||
const QTextCharFormat & | format = QTextCharFormat() |
||
) |
Definition at line 3747 of file qtextengine.cpp.
void QTextItemInt::initWithScriptItem | ( | const QScriptItem & | si | ) |
Definition at line 3758 of file qtextengine.cpp.
References QScriptItem::analysis, ascent, QScriptItem::ascent, QScriptAnalysis::bidiLevel, QTextFormat::boolProperty(), charFormat, descent, QScriptItem::descent, QTextCharFormat::fontOverline(), QTextCharFormat::fontStrikeOut(), QTextFormat::FontUnderline, QTextFormat::hasProperty(), QTextItem::Overline, QTextItem::RightToLeft, QTextCharFormat::SingleUnderline, QTextItem::StrikeOut, QTextFormat::TextUnderlineStyle, QTextItem::Underline, underlineStyle, and QTextCharFormat::underlineStyle().
Referenced by QTextItemInt().
QTextItemInt QTextItemInt::midItem | ( | QFontEngine * | fontEngine, |
int | firstGlyphIndex, | ||
int | numGlyphs | ||
) | const |
copy the structure items, adjusting the glyphs arrays to the right subarrays. the width of the returned QTextItemInt is not adjusted, for speed reasons
Definition at line 3785 of file qtextengine.cpp.
References chars, fontEngine, glyphs, logClusters, QGlyphLayout::mid(), and num_chars.
Referenced by QPainterPrivate::drawTextItem().
QFixed QTextItemInt::ascent |
Definition at line 281 of file qtextengine_p.h.
Referenced by QTextItem::ascent(), QPainterPrivate::drawTextItem(), QEmulationPaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), and initWithScriptItem().
const QTextCharFormat QTextItemInt::charFormat |
Definition at line 287 of file qtextengine_p.h.
Referenced by QPainterPrivate::drawTextItem(), QPdfEnginePrivate::drawTextItem(), and initWithScriptItem().
Definition at line 289 of file qtextengine_p.h.
Referenced by QPainter::drawText(), QRasterPaintEngine::drawTextItem(), QPicturePaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QSvgPaintEngine::drawTextItem(), midItem(), and QTextItem::text().
QFixed QTextItemInt::descent |
Definition at line 280 of file qtextengine_p.h.
Referenced by QTextItem::descent(), QPainterPrivate::drawTextItem(), QEmulationPaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), and initWithScriptItem().
Definition at line 291 of file qtextengine_p.h.
Referenced by draw_text_item_win(), and QTextItem::font().
RenderFlags QTextItemInt::flags |
Definition at line 284 of file qtextengine_p.h.
Referenced by QCoreTextFontEngine::draw(), QFontEngineBox::draw(), draw_text_item_win(), QPaintEnginePrivate::drawBoxTextItem(), QPainterPrivate::drawTextItem(), QPaintEngine::drawTextItem(), QRasterPaintEngine::drawTextItem(), QOpenGL2PaintEngineEx::drawTextItem(), QPdfEnginePrivate::drawTextItem(), and QTextItem::renderFlags().
QFontEngine* QTextItemInt::fontEngine = nullptr |
Definition at line 294 of file qtextengine_p.h.
Referenced by QTextItemInt(), QFontEngineBox::draw(), draw_text_item_win(), QPaintEnginePrivate::drawBoxTextItem(), QPainterPrivate::drawGlyphs(), QPainterPrivate::drawTextItem(), QPaintEngine::drawTextItem(), QRasterPaintEngine::drawTextItem(), QPdfEngine::drawTextItem(), QOpenGL2PaintEngineEx::drawTextItem(), QX11PaintEngine::drawTextItem(), QWin32PrintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), and midItem().
QGlyphLayout QTextItemInt::glyphs |
Definition at line 293 of file qtextengine_p.h.
Referenced by QCoreTextFontEngine::draw(), QFontEngineBox::draw(), draw_text_item_win(), QPaintEnginePrivate::drawBoxTextItem(), QPainterPrivate::drawGlyphs(), QPainter::drawText(), QPainterPrivate::drawTextItem(), QPaintEngine::drawTextItem(), QRasterPaintEngine::drawTextItem(), QOpenGL2PaintEngineEx::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), and midItem().
bool QTextItemInt::justified = false |
Definition at line 285 of file qtextengine_p.h.
Referenced by QPicturePaintEngine::drawTextItem().
const unsigned short* QTextItemInt::logClusters = nullptr |
Definition at line 290 of file qtextengine_p.h.
Referenced by QPainter::drawText(), QPdfEnginePrivate::drawTextItem(), and midItem().
int QTextItemInt::num_chars = 0 |
Definition at line 288 of file qtextengine_p.h.
Referenced by QPainter::drawText(), QRasterPaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QSvgPaintEngine::drawTextItem(), midItem(), and QTextItem::text().
QTextCharFormat::UnderlineStyle QTextItemInt::underlineStyle = QTextCharFormat::NoUnderline |
Definition at line 286 of file qtextengine_p.h.
Referenced by QPainterPrivate::drawTextItem(), and initWithScriptItem().
QFixed QTextItemInt::width |
Definition at line 282 of file qtextengine_p.h.
Referenced by QPainter::drawText(), QPainterPrivate::drawTextItem(), QEmulationPaintEngine::drawTextItem(), QPicturePaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), and QTextItem::width().