Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QStaticTextPrivate Class Reference

#include <qstatictext_p.h>

+ Collaboration diagram for QStaticTextPrivate:

Public Member Functions

 QStaticTextPrivate ()
 
 QStaticTextPrivate (const QStaticTextPrivate &other)
 
 ~QStaticTextPrivate ()
 
void init ()
 
void paintText (const QPointF &pos, QPainter *p, const QColor &pen)
 
void invalidate ()
 

Static Public Member Functions

static QStaticTextPrivateget (const QStaticText *q)
 

Public Attributes

QAtomicInt ref
 
QString text
 
QFont font
 
qreal textWidth
 
QSizeF actualSize
 
QPointF position
 
QTransform matrix
 
QStaticTextItemitems
 
int itemCount
 
glyph_tglyphPool
 
QFixedPointpositionPool
 
QTextOption textOption
 
unsigned char needsRelayout: 1
 
unsigned char useBackendOptimizations: 1
 
unsigned char textFormat: 2
 
unsigned char untransformedCoordinates: 1
 

Detailed Description

Definition at line 89 of file qstatictext_p.h.

Constructor & Destructor Documentation

◆ QStaticTextPrivate() [1/2]

QStaticTextPrivate::QStaticTextPrivate ( )

Definition at line 371 of file qstatictext.cpp.

◆ QStaticTextPrivate() [2/2]

QStaticTextPrivate::QStaticTextPrivate ( const QStaticTextPrivate & other)

Definition at line 378 of file qstatictext.cpp.

◆ ~QStaticTextPrivate()

QStaticTextPrivate::~QStaticTextPrivate ( )

Definition at line 386 of file qstatictext.cpp.

References glyphPool, items, and positionPool.

Member Function Documentation

◆ get()

QStaticTextPrivate * QStaticTextPrivate::get ( const QStaticText * q)
static

Definition at line 393 of file qstatictext.cpp.

Referenced by QPainter::drawStaticText().

+ Here is the caller graph for this function:

◆ init()

void QStaticTextPrivate::init ( )

Definition at line 636 of file qstatictext.cpp.

References device, font, QStaticTextItem::glyphOffset, glyphPool, QStaticTextItem::glyphPositions, QStaticTextItem::glyphs, i, itemCount, items, needsRelayout, painter, paintText(), position, QStaticTextItem::positionOffset, positionPool, positions, QPainter::setFont(), QPainter::setTransform(), untransformedCoordinates, and useBackendOptimizations.

+ Here is the call graph for this function:

◆ invalidate()

void QStaticTextPrivate::invalidate ( )
inline

Definition at line 99 of file qstatictext_p.h.

◆ paintText()

void QStaticTextPrivate::paintText ( const QPointF & pos,
QPainter * p,
const QColor & pen )

Definition at line 569 of file qstatictext.cpp.

References actualSize, QColor::alpha(), Qt::AutoText, QTextLayout::beginLayout(), QColor::blue(), QTextLayout::boundingRect(), QTextLayout::createLine(), QTextLayout::draw(), QTextLayout::endLayout(), font, QString::fromLatin1(), QColor::green(), line, Qt::mightBeRichText(), QString::number(), qCeil(), QFIXED_MAX, QColor::red(), Qt::RichText, QTextLayout::setCacheEnabled(), QTextLayout::setFont(), QTextLayout::setText(), QTextLayout::setTextOption(), QRectF::size(), QPalette::Text, text, textFormat, textOption, and textWidth.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ actualSize

QSizeF QStaticTextPrivate::actualSize

Definition at line 109 of file qstatictext_p.h.

Referenced by paintText().

◆ font

QFont QStaticTextPrivate::font

Definition at line 107 of file qstatictext_p.h.

Referenced by init(), and paintText().

◆ glyphPool

glyph_t* QStaticTextPrivate::glyphPool

Definition at line 116 of file qstatictext_p.h.

Referenced by ~QStaticTextPrivate(), and init().

◆ itemCount

int QStaticTextPrivate::itemCount

Definition at line 114 of file qstatictext_p.h.

Referenced by init().

◆ items

QStaticTextItem* QStaticTextPrivate::items

Definition at line 113 of file qstatictext_p.h.

Referenced by ~QStaticTextPrivate(), and init().

◆ matrix

QTransform QStaticTextPrivate::matrix

Definition at line 112 of file qstatictext_p.h.

◆ needsRelayout

unsigned char QStaticTextPrivate::needsRelayout

Definition at line 121 of file qstatictext_p.h.

Referenced by init().

◆ position

QPointF QStaticTextPrivate::position

Definition at line 110 of file qstatictext_p.h.

Referenced by init().

◆ positionPool

QFixedPoint* QStaticTextPrivate::positionPool

Definition at line 117 of file qstatictext_p.h.

Referenced by ~QStaticTextPrivate(), and init().

◆ ref

QAtomicInt QStaticTextPrivate::ref

Definition at line 104 of file qstatictext_p.h.

◆ text

QString QStaticTextPrivate::text

Definition at line 106 of file qstatictext_p.h.

Referenced by paintText().

◆ textFormat

unsigned char QStaticTextPrivate::textFormat

Definition at line 123 of file qstatictext_p.h.

Referenced by paintText().

◆ textOption

QTextOption QStaticTextPrivate::textOption

Definition at line 119 of file qstatictext_p.h.

Referenced by paintText().

◆ textWidth

qreal QStaticTextPrivate::textWidth

Definition at line 108 of file qstatictext_p.h.

Referenced by paintText().

◆ untransformedCoordinates

unsigned char QStaticTextPrivate::untransformedCoordinates

Definition at line 124 of file qstatictext_p.h.

Referenced by init().

◆ useBackendOptimizations

unsigned char QStaticTextPrivate::useBackendOptimizations

Definition at line 122 of file qstatictext_p.h.

Referenced by init().


The documentation for this class was generated from the following files: