![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#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 266 of file qtextengine_p.h.
|
inlinedefault |
QTextItemInt::QTextItemInt | ( | const QScriptItem & | si, |
QFont * | font, | ||
const QTextCharFormat & | format = QTextCharFormat() ) |
Definition at line 3889 of file qtextengine.cpp.
References QTextItemInt(), f, fontEngine, and initWithScriptItem().
Referenced by QTextItemInt().
QTextItemInt::QTextItemInt | ( | const QGlyphLayout & | g, |
QFont * | font, | ||
const QChar * | chars, | ||
int | numChars, | ||
QFontEngine * | fe, | ||
const QTextCharFormat & | format = QTextCharFormat() ) |
Definition at line 3899 of file qtextengine.cpp.
References QTextItemInt(), f, fontEngine, and num_chars.
Referenced by QTextItemInt().
void QTextItemInt::initWithScriptItem | ( | const QScriptItem & | si | ) |
Definition at line 3910 of file qtextengine.cpp.
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 3937 of file qtextengine.cpp.
References fontEngine, logClusters, and num_chars.
QFixed QTextItemInt::ascent |
Definition at line 280 of file qtextengine_p.h.
const QTextCharFormat QTextItemInt::charFormat |
Definition at line 286 of file qtextengine_p.h.
const QChar* QTextItemInt::chars = nullptr |
Definition at line 288 of file qtextengine_p.h.
QFixed QTextItemInt::descent |
Definition at line 279 of file qtextengine_p.h.
const QFont* QTextItemInt::f = nullptr |
Definition at line 290 of file qtextengine_p.h.
Referenced by QTextItemInt(), and QTextItemInt().
RenderFlags QTextItemInt::flags |
Definition at line 283 of file qtextengine_p.h.
QFontEngine* QTextItemInt::fontEngine = nullptr |
Definition at line 293 of file qtextengine_p.h.
Referenced by QTextItemInt(), QTextItemInt(), and midItem().
QGlyphLayout QTextItemInt::glyphs |
Definition at line 292 of file qtextengine_p.h.
bool QTextItemInt::justified = false |
Definition at line 284 of file qtextengine_p.h.
const unsigned short* QTextItemInt::logClusters = nullptr |
Definition at line 289 of file qtextengine_p.h.
Referenced by midItem().
int QTextItemInt::num_chars = 0 |
Definition at line 287 of file qtextengine_p.h.
Referenced by QTextItemInt(), and midItem().
QTextCharFormat::UnderlineStyle QTextItemInt::underlineStyle = QTextCharFormat::NoUnderline |
Definition at line 285 of file qtextengine_p.h.
QFixed QTextItemInt::width |
Definition at line 281 of file qtextengine_p.h.