![]() |
Qt 6.x
The Qt SDK
|
#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 |
| uchar * | bits () |
| const uchar * | bits () const |
| const uchar * | constBits () const |
| uchar * | scanLine (int) |
| const uchar * | scanLine (int) const |
| const uchar * | constScanLine (int) const |
| QImage | toImage (QImage::Format format=QImage::Format_ARGB32_Premultiplied) const |
Friends | |
| class | QDistanceFieldData |
Definition at line 53 of file qdistancefield_p.h.
| QDistanceField::QDistanceField | ( | ) |
Definition at line 858 of file qdistancefield.cpp.
Referenced by copy().
Here is the caller graph for this function:| QDistanceField::QDistanceField | ( | int | width, |
| int | height | ||
| ) |
Definition at line 863 of file qdistancefield.cpp.
| 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::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::QDistanceField | ( | const QPainterPath & | path, |
| glyph_t | glyph, | ||
| bool | doubleResolution = false |
||
| ) |
Definition at line 878 of file qdistancefield.cpp.
References QPainterPath::boundingRect(), QDistanceFieldData::create(), QDistanceFieldData::glyph, glyph(), QPainterPath::setFillRule(), QRectF::topLeft(), QPainterPath::translate(), and Qt::WindingFill.
Here is the call graph for this function:| uchar * QDistanceField::bits | ( | ) |
Definition at line 997 of file qdistancefield.cpp.
References QDistanceFieldData::data.
| const uchar * QDistanceField::bits | ( | ) | const |
Definition at line 1002 of file qdistancefield.cpp.
References QDistanceFieldData::data.
| 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:| 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:| 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:
|
inline |
Definition at line 72 of file qdistancefield_p.h.
References copy().
Here is the call graph for this function:| 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:| 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:| 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:| 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:| 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:| 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(), QRawFont::pathForGlyph(), QT_DISTANCEFIELD_BASEFONTSIZE(), QT_DISTANCEFIELD_SCALE(), QRawFont::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:| 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:| 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:| 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:
|
friend |
Definition at line 89 of file qdistancefield_p.h.
Referenced by copy().