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
QDistanceField Class Reference

#include <qdistancefield_p.h>

+ Collaboration diagram for QDistanceField:

Public Member Functions

 QDistanceField ()
 
 QDistanceField (int width, int height)
 
 QDistanceField (const QRawFont &font, glyph_t glyph, bool doubleResolution=false)
 
 QDistanceField (QFontEngine *fontEngine, glyph_t glyph, bool doubleResolution=false)
 
 QDistanceField (const QPainterPath &path, glyph_t glyph, bool doubleResolution=false)
 
bool isNull () const
 
glyph_t glyph () const
 
void setGlyph (const QRawFont &font, glyph_t glyph, bool doubleResolution=false)
 
void setGlyph (QFontEngine *fontEngine, glyph_t glyph, bool doubleResolution=false)
 
int width () const
 
int height () const
 
QDistanceField copy (const QRect &rect=QRect()) const
 
QDistanceField copy (int x, int y, int w, int h) const
 
ucharbits ()
 
const ucharbits () const
 
const ucharconstBits () const
 
ucharscanLine (int)
 
const ucharscanLine (int) const
 
const ucharconstScanLine (int) const
 
QImage toImage (QImage::Format format=QImage::Format_ARGB32_Premultiplied) const
 

Friends

class QDistanceFieldData
 

Detailed Description

Definition at line 53 of file qdistancefield_p.h.

Constructor & Destructor Documentation

◆ QDistanceField() [1/5]

QDistanceField::QDistanceField ( )

Definition at line 858 of file qdistancefield.cpp.

Referenced by copy().

+ Here is the caller graph for this function:

◆ QDistanceField() [2/5]

QDistanceField::QDistanceField ( int width,
int height )

Definition at line 863 of file qdistancefield.cpp.

◆ QDistanceField() [3/5]

QDistanceField::QDistanceField ( const QRawFont & font,
glyph_t glyph,
bool doubleResolution = false )

Definition at line 868 of file qdistancefield.cpp.

References font, glyph(), and setGlyph().

+ Here is the call graph for this function:

◆ QDistanceField() [4/5]

QDistanceField::QDistanceField ( QFontEngine * fontEngine,
glyph_t glyph,
bool doubleResolution = false )

Definition at line 873 of file qdistancefield.cpp.

References glyph(), and setGlyph().

+ Here is the call graph for this function:

◆ QDistanceField() [5/5]

QDistanceField::QDistanceField ( const QPainterPath & path,
glyph_t glyph,
bool doubleResolution = false )

Definition at line 878 of file qdistancefield.cpp.

References QDistanceFieldData::create(), QDistanceFieldData::glyph, glyph(), and Qt::WindingFill.

+ Here is the call graph for this function:

Member Function Documentation

◆ bits() [1/2]

uchar * QDistanceField::bits ( )

Definition at line 997 of file qdistancefield.cpp.

References QDistanceFieldData::data.

◆ bits() [2/2]

const uchar * QDistanceField::bits ( ) const

Definition at line 1002 of file qdistancefield.cpp.

References QDistanceFieldData::data.

◆ constBits()

const uchar * QDistanceField::constBits ( ) const

Definition at line 1007 of file qdistancefield.cpp.

References QDistanceFieldData::data.

Referenced by QSGRhiDistanceFieldGlyphCache::storeGlyphs().

+ Here is the caller graph for this function:

◆ constScanLine()

const uchar * QDistanceField::constScanLine ( int i) const

Definition at line 1030 of file qdistancefield.cpp.

References QDistanceFieldData::data, i, isNull(), Q_ASSERT, and QDistanceFieldData::width.

+ Here is the call graph for this function:

◆ copy() [1/2]

QDistanceField QDistanceField::copy ( const QRect & rect = QRect()) const

Definition at line 939 of file qdistancefield.cpp.

References QDistanceField(), QDistanceFieldData::data, QDistanceFieldData::glyph, QDistanceFieldData::height, i, isNull(), QDistanceFieldData::nbytes, QDistanceFieldData, qMax(), and QDistanceFieldData::width.

Referenced by QSGRhiDistanceFieldGlyphCache::storeGlyphs().

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

◆ copy() [2/2]

QDistanceField QDistanceField::copy ( int x,
int y,
int w,
int h ) const
inline

Definition at line 72 of file qdistancefield_p.h.

References copy().

+ Here is the call graph for this function:

◆ glyph()

glyph_t QDistanceField::glyph ( ) const

Definition at line 899 of file qdistancefield.cpp.

References QDistanceFieldData::glyph.

Referenced by QDistanceField(), QDistanceField(), QDistanceField(), setGlyph(), setGlyph(), and QSGRhiDistanceFieldGlyphCache::storeGlyphs().

+ Here is the caller graph for this function:

◆ height()

int QDistanceField::height ( ) const

Definition at line 934 of file qdistancefield.cpp.

References QDistanceFieldData::height.

Referenced by QSGRhiDistanceFieldGlyphCache::storeGlyphs().

+ Here is the caller graph for this function:

◆ isNull()

bool QDistanceField::isNull ( ) const

Definition at line 894 of file qdistancefield.cpp.

References QDistanceFieldData::data.

Referenced by constScanLine(), copy(), scanLine(), scanLine(), and toImage().

+ Here is the caller graph for this function:

◆ scanLine() [1/2]

uchar * QDistanceField::scanLine ( int i)

Definition at line 1012 of file qdistancefield.cpp.

References QDistanceFieldData::data, i, isNull(), Q_ASSERT, and QDistanceFieldData::width.

Referenced by QSGRhiDistanceFieldGlyphCache::storeGlyphs(), and toImage().

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

◆ scanLine() [2/2]

const uchar * QDistanceField::scanLine ( int i) const

Definition at line 1021 of file qdistancefield.cpp.

References QDistanceFieldData::data, i, isNull(), Q_ASSERT, and QDistanceFieldData::width.

+ Here is the call graph for this function:

◆ setGlyph() [1/2]

void QDistanceField::setGlyph ( const QRawFont & font,
glyph_t glyph,
bool doubleResolution = false )

Definition at line 904 of file qdistancefield.cpp.

References QDistanceFieldData::create(), font, QDistanceFieldData::glyph, glyph(), QT_DISTANCEFIELD_BASEFONTSIZE(), QT_DISTANCEFIELD_SCALE(), QFont::setPixelSize(), QPainterPath::translate(), and Qt::WindingFill.

Referenced by QDistanceField(), and QDistanceField().

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

◆ setGlyph() [2/2]

void QDistanceField::setGlyph ( QFontEngine * fontEngine,
glyph_t glyph,
bool doubleResolution = false )

Definition at line 917 of file qdistancefield.cpp.

References QFontEngine::addGlyphsToPath(), QDistanceFieldData::create(), QDistanceFieldData::glyph, glyph(), position(), and Qt::WindingFill.

+ Here is the call graph for this function:

◆ toImage()

QImage QDistanceField::toImage ( QImage::Format format = QImage::Format_ARGB32_Premultiplied) const

Definition at line 1039 of file qdistancefield.cpp.

References QDistanceFieldData::data, QImage::Format_ARGB32_Premultiplied, QDistanceFieldData::height, isNull(), qt_depthForFormat(), scanLine(), and QDistanceFieldData::width.

+ Here is the call graph for this function:

◆ width()

int QDistanceField::width ( ) const

Definition at line 929 of file qdistancefield.cpp.

References QDistanceFieldData::width.

Referenced by QSGRhiDistanceFieldGlyphCache::storeGlyphs().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QDistanceFieldData

friend class QDistanceFieldData
friend

Definition at line 89 of file qdistancefield_p.h.

Referenced by copy().


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