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
QFixed Struct Reference

#include <qfixed_p.h>

+ Collaboration diagram for QFixed:

Public Member Functions

constexpr QFixed ()
 
constexpr QFixed (int i)
 
constexpr QFixed (long i)
 
constexpr QFixed (long long i)
 
constexpr int value () const
 
void setValue (int value)
 
constexpr int toInt () const
 
constexpr qreal toReal () const
 
constexpr int truncate () const
 
constexpr QFixed round () const
 
constexpr QFixed floor () const
 
constexpr QFixed ceil () const
 
constexpr QFixed operator+ (int i) const
 
constexpr QFixed operator+ (uint i) const
 
constexpr QFixed operator+ (QFixed other) const
 
QFixedoperator+= (int i)
 
QFixedoperator+= (uint i)
 
QFixedoperator+= (QFixed other)
 
constexpr QFixed operator- (int i) const
 
constexpr QFixed operator- (uint i) const
 
constexpr QFixed operator- (QFixed other) const
 
QFixedoperator-= (int i)
 
QFixedoperator-= (uint i)
 
QFixedoperator-= (QFixed other)
 
constexpr QFixed operator- () const
 
constexpr bool operator! () const
 
QFixedoperator/= (int x)
 
QFixedoperator/= (QFixed o)
 
constexpr QFixed operator/ (int d) const
 
QFixed operator/ (QFixed b) const
 
QFixed operator>> (int d) const
 
QFixedoperator*= (int i)
 
QFixedoperator*= (uint i)
 
QFixedoperator*= (QFixed o)
 
constexpr QFixed operator* (int i) const
 
constexpr QFixed operator* (uint i) const
 
QFixed operator* (QFixed o) const
 

Static Public Member Functions

static constexpr QFixed fromReal (qreal r)
 
static constexpr QFixed fromFixed (int fixed)
 

Detailed Description

Definition at line 26 of file qfixed_p.h.

Constructor & Destructor Documentation

◆ QFixed() [1/4]

constexpr QFixed::QFixed ( )
inlineconstexpr

Definition at line 30 of file qfixed_p.h.

Referenced by fromFixed().

+ Here is the caller graph for this function:

◆ QFixed() [2/4]

constexpr QFixed::QFixed ( int i)
inlineconstexpr

Definition at line 31 of file qfixed_p.h.

◆ QFixed() [3/4]

constexpr QFixed::QFixed ( long i)
inlineconstexpr

Definition at line 32 of file qfixed_p.h.

◆ QFixed() [4/4]

constexpr QFixed::QFixed ( long long i)
inlineconstexpr

Definition at line 33 of file qfixed_p.h.

Member Function Documentation

◆ ceil()

constexpr QFixed QFixed::ceil ( ) const
inlineconstexpr

Definition at line 47 of file qfixed_p.h.

References fromFixed().

Referenced by QFontEngineFT::boundingBox(), QTextLayout::boundingRect(), QTextLine::height(), QCoreTextFontEngine::imageForGlyph(), QFontEngineBox::leading(), and QFontEngine::tightBoundingBox().

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

◆ floor()

constexpr QFixed QFixed::floor ( ) const
inlineconstexpr

Definition at line 46 of file qfixed_p.h.

References fromFixed().

Referenced by QTextEngine::positionInLigature().

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

◆ fromFixed()

static constexpr QFixed QFixed::fromFixed ( int fixed)
inlinestaticconstexpr

Definition at line 36 of file qfixed_p.h.

References QFixed().

Referenced by QFontEngineFT::boundingBox(), QFontEngineFT::capHeight(), ceil(), QGlyphLayout::effectiveAdvance(), floor(), fromReal(), QFontEngine::getGlyphPositions(), QFreetypeFace::getPointInOutline(), QFontEngineFT::getUnscaledGlyph(), QTextLine::glyphRuns(), QFontEngineFT::init(), QFontEngineFT::initializeHeightMetrics(), QFontEngineFT::maxCharWidth(), operator*(), operator*(), operator+(), operator+(), operator+(), operator-(), operator-(), operator-(), operator-(), operator/(), QFreetypeFace::properties(), QFontEngineFT::recalcAdvances(), round(), and QFontEngine::subPixelPositionFor().

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

◆ fromReal()

static constexpr QFixed QFixed::fromReal ( qreal r)
inlinestaticconstexpr

Definition at line 35 of file qfixed_p.h.

References fromFixed().

Referenced by QTextLineItemIterator::QTextLineItemIterator(), _hb_qt_font_create(), QFontEngine::addBitmapFontToPath(), QFontEngine::addGlyphsToPath(), QTextDocumentLayoutPrivate::blockIndent(), QWindowsFontEngine::boundingBox(), QCoreTextFontEngine::boundingBox(), QTextureGlyphCache::calculateSubPixelPositionCount(), QTextEngine::calculateTabWidth(), QCoreTextFontEngine::capHeight(), QTextTableData::cellBorderWidth(), QFreetypeFace::computeSize(), QCoreTextFontEngine::doKerning(), QTextLayout::draw(), QTextDocumentLayout::draw(), QTextDocumentLayoutPrivate::drawFlow(), QTextDocumentLayoutPrivate::drawFrame(), QPainter::drawStaticText(), QPainter::drawText(), QFontMetricsF::elidedText(), QQuickTextPrivate::elidedText(), QTextDocumentLayout::ensureLayouted(), flowPosition(), QFixedPoint::fromPointF(), QFixedSize::fromSizeF(), QWindowsFontEngine::getCMap(), QFontEngine::getGlyphPositions(), getLineHeightParams(), QCoreTextFontEngine::getUnscaledGlyph(), QTextDocumentLayout::hitTest(), QCoreTextFontEngine::init(), QCoreTextFontEngine::initializeHeightMetrics(), QTextDocumentLayoutPrivate::layoutBlock(), QTextDocumentLayoutPrivate::layoutCell(), QTextDocumentLayoutPrivate::layoutFlow(), QTextDocumentLayoutPrivate::layoutFrame(), QTextDocumentLayoutPrivate::layoutFrame(), QTextDocumentLayoutPrivate::layoutTable(), QFontEngineBox::leading(), QCoreTextFontEngine::loadAdvancesForGlyphs(), QTextTableData::paddingProperty(), QSGTextMaskMaterial::populate(), QTextureGlyphCache::populate(), QTextDocumentLayoutPrivate::positionFloat(), QFontEngine::processHheaTable(), QFontEngine::processOS2Table(), QCoreTextFontEngine::properties(), qcoretextfontengine_scaleMetrics(), QTextInlineObject::setAscent(), QTextInlineObject::setDescent(), QFont::setLetterSpacing(), QTextLine::setLineWidth(), QTextLine::setNumColumns(), QTextLine::setPosition(), QQuickTextPrivate::setupTextLayout(), QTextInlineObject::setWidth(), QFont::setWordSpacing(), glyph_metrics_t::transformed(), visibleGlyphRange(), QCoreTextFontEngine::xHeight(), and QTextLine::xToCursor().

+ Here is the call graph for this function:

◆ operator!()

constexpr bool QFixed::operator! ( ) const
inlineconstexpr

Definition at line 74 of file qfixed_p.h.

◆ operator*() [1/3]

constexpr QFixed QFixed::operator* ( int i) const
inlineconstexpr

Definition at line 109 of file qfixed_p.h.

References fromFixed(), and i.

+ Here is the call graph for this function:

◆ operator*() [2/3]

QFixed QFixed::operator* ( QFixed o) const
inline

Definition at line 111 of file qfixed_p.h.

References o.

◆ operator*() [3/3]

constexpr QFixed QFixed::operator* ( uint i) const
inlineconstexpr

Definition at line 110 of file qfixed_p.h.

References fromFixed(), and i.

+ Here is the call graph for this function:

◆ operator*=() [1/3]

QFixed & QFixed::operator*= ( int i)
inline

Definition at line 96 of file qfixed_p.h.

References i.

◆ operator*=() [2/3]

QFixed & QFixed::operator*= ( QFixed o)
inline

Definition at line 98 of file qfixed_p.h.

References o.

◆ operator*=() [3/3]

QFixed & QFixed::operator*= ( uint i)
inline

Definition at line 97 of file qfixed_p.h.

References i.

◆ operator+() [1/3]

constexpr QFixed QFixed::operator+ ( int i) const
inlineconstexpr

Definition at line 49 of file qfixed_p.h.

References fromFixed(), and i.

+ Here is the call graph for this function:

◆ operator+() [2/3]

constexpr QFixed QFixed::operator+ ( QFixed other) const
inlineconstexpr

Definition at line 51 of file qfixed_p.h.

References fromFixed(), and other().

+ Here is the call graph for this function:

◆ operator+() [3/3]

constexpr QFixed QFixed::operator+ ( uint i) const
inlineconstexpr

Definition at line 50 of file qfixed_p.h.

References fromFixed(), and i.

+ Here is the call graph for this function:

◆ operator+=() [1/3]

QFixed & QFixed::operator+= ( int i)
inline

Definition at line 52 of file qfixed_p.h.

References i.

◆ operator+=() [2/3]

QFixed & QFixed::operator+= ( QFixed other)
inline

Definition at line 54 of file qfixed_p.h.

References other().

+ Here is the call graph for this function:

◆ operator+=() [3/3]

QFixed & QFixed::operator+= ( uint i)
inline

Definition at line 53 of file qfixed_p.h.

References i.

◆ operator-() [1/4]

constexpr QFixed QFixed::operator- ( ) const
inlineconstexpr

Definition at line 61 of file qfixed_p.h.

References fromFixed().

+ Here is the call graph for this function:

◆ operator-() [2/4]

constexpr QFixed QFixed::operator- ( int i) const
inlineconstexpr

Definition at line 55 of file qfixed_p.h.

References fromFixed(), and i.

+ Here is the call graph for this function:

◆ operator-() [3/4]

constexpr QFixed QFixed::operator- ( QFixed other) const
inlineconstexpr

Definition at line 57 of file qfixed_p.h.

References fromFixed(), and other().

+ Here is the call graph for this function:

◆ operator-() [4/4]

constexpr QFixed QFixed::operator- ( uint i) const
inlineconstexpr

Definition at line 56 of file qfixed_p.h.

References fromFixed(), and i.

+ Here is the call graph for this function:

◆ operator-=() [1/3]

QFixed & QFixed::operator-= ( int i)
inline

Definition at line 58 of file qfixed_p.h.

References i.

◆ operator-=() [2/3]

QFixed & QFixed::operator-= ( QFixed other)
inline

Definition at line 60 of file qfixed_p.h.

References other().

+ Here is the call graph for this function:

◆ operator-=() [3/3]

QFixed & QFixed::operator-= ( uint i)
inline

Definition at line 59 of file qfixed_p.h.

References i.

◆ operator/() [1/2]

constexpr QFixed QFixed::operator/ ( int d) const
inlineconstexpr

Definition at line 93 of file qfixed_p.h.

References d, and fromFixed().

+ Here is the call graph for this function:

◆ operator/() [2/2]

QFixed QFixed::operator/ ( QFixed b) const
inline

Definition at line 94 of file qfixed_p.h.

◆ operator/=() [1/2]

QFixed & QFixed::operator/= ( int x)
inline

Definition at line 76 of file qfixed_p.h.

◆ operator/=() [2/2]

QFixed & QFixed::operator/= ( QFixed o)
inline

Definition at line 77 of file qfixed_p.h.

References o.

◆ operator>>()

QFixed QFixed::operator>> ( int d) const
inline

Definition at line 95 of file qfixed_p.h.

References d.

◆ round()

constexpr QFixed QFixed::round ( ) const
inlineconstexpr

Definition at line 45 of file qfixed_p.h.

References fromFixed().

Referenced by QFontEngine::initializeHeightMetrics().

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

◆ setValue()

void QFixed::setValue ( int value)
inline

Definition at line 39 of file qfixed_p.h.

References value().

+ Here is the call graph for this function:

◆ toInt()

constexpr int QFixed::toInt ( ) const
inlineconstexpr

Definition at line 41 of file qfixed_p.h.

Referenced by QWindowsFontEngineDirectWrite::QWindowsFontEngineDirectWrite(), QCoreTextFontEngine::init(), and QFontSubset::widthArray().

+ Here is the caller graph for this function:

◆ toReal()

constexpr qreal QFixed::toReal ( ) const
inlineconstexpr

Definition at line 42 of file qfixed_p.h.

Referenced by QFontEngineMulti::addOutlineToPath(), QPainterPath::addText(), QTextItem::ascent(), QTextInlineObject::ascent(), QTextLine::ascent(), QFontEngineFT::bitmapForGlyph(), QTextLayout::boundingRect(), cellClipTest(), QTextTableData::cellRect(), QTextItem::descent(), QTextInlineObject::descent(), QTextLine::descent(), QCoreTextFontEngine::draw(), QTextLayout::draw(), draw_text_item_win(), QTextDocumentLayoutPrivate::drawTableCell(), QTextDocumentLayoutPrivate::drawTableCellBorder(), QPicturePaintEngine::drawTextItem(), QCoreTextFontEngine::getUnscaledGlyph(), QTextDocumentLayoutPrivate::hitTest(), QTextLine::horizontalAdvance(), QFontMetricsF::horizontalAdvance(), QCoreTextFontEngine::imageForGlyph(), QTextDocumentLayoutPrivate::layoutFrame(), QTextDocumentLayoutPrivate::layoutTable(), QTextLine::leading(), QFont::letterSpacing(), QCoreTextFontEngine::maxCharWidth(), QFontEngineFT::maxCharWidth(), QWindowsFontEngineDirectWrite::maxCharWidth(), QTextLayout::maximumWidth(), QTextLayout::minimumWidth(), QFontEngine::minRightBearing(), QTextLine::naturalTextWidth(), qcoretextfontengine_scaleMetrics(), qt_draw_decoration_for_glyphs(), QTextInlineObject::rect(), QFontSubset::toTruetype(), glyph_metrics_t::transformed(), QTextItem::width(), QTextInlineObject::width(), QTextLine::width(), QFont::wordSpacing(), QTextLine::x(), and QTextLine::y().

+ Here is the caller graph for this function:

◆ truncate()

constexpr int QFixed::truncate ( ) const
inlineconstexpr

Definition at line 44 of file qfixed_p.h.

Referenced by QCoreTextFontEngine::imageForGlyph(), and QTextDocumentLayoutPrivate::layoutTable().

+ Here is the caller graph for this function:

◆ value()

constexpr int QFixed::value ( ) const
inlineconstexpr

Definition at line 38 of file qfixed_p.h.

Referenced by _hb_qt_font_get_glyph_contour_point(), _hb_qt_font_get_glyph_h_advance(), _hb_qt_font_get_glyph_h_kerning(), QFontEngineFT::loadGlyph(), QWindowsFontEngine::recalcAdvances(), and setValue().

+ Here is the caller graph for this function:

The documentation for this struct was generated from the following file: