6#if !defined(QT_NO_RAWFONT)
102void QGlyphRun::detach()
223 return glyphPositions;
446 minX = glyphRect.
left();
451 minX =
qMin(glyphRect.
left(), minX);
T loadRelaxed() const noexcept
void detach()
If the shared data object's reference count is greater than 1, this function creates a deep copy of t...
QList< quint32 > glyphIndexes
QGlyphRun::GlyphRunFlags flags
int glyphPositionDataSize
const quint32 * glyphIndexData
QList< QPointF > glyphPositions
const QPointF * glyphPositionData
QList< qsizetype > stringIndexes
The QGlyphRun class provides direct access to the internal glyphs in a font.
QList< qsizetype > stringIndexes() const
void setRawData(const quint32 *glyphIndexArray, const QPointF *glyphPositionArray, int size)
Sets the glyph indexes and positions of this QGlyphRun to use the first size elements in the arrays g...
void setOverline(bool overline)
Indicates that this QGlyphRun should be painted with an overline decoration if overline is true.
bool overline() const
Returns true if this QGlyphRun should be painted with an overline decoration.
void setSourceString(const QString &sourceString)
void setStringIndexes(const QList< qsizetype > &stringIndexes)
bool strikeOut() const
Returns true if this QGlyphRun should be painted with a strike out decoration.
QGlyphRun()
Constructs an empty QGlyphRun object.
void setPositions(const QList< QPointF > &positions)
Sets the positions of the edge of the baseline for each glyph in this set of glyph indexes to positio...
void setFlag(GlyphRunFlag flag, bool enabled=true)
If enabled is true, then flag is enabled; otherwise, it is disabled.
void setUnderline(bool underline)
Indicates that this QGlyphRun should be painted with an underline decoration if underline is true.
void setRawFont(const QRawFont &rawFont)
Sets the font in which to look up the glyph indexes to the rawFont specified.
QString sourceString() const
QList< quint32 > glyphIndexes() const
Returns the glyph indexes for this QGlyphRun object.
bool operator==(const QGlyphRun &other) const
Compares other to this QGlyphRun object.
void setBoundingRect(const QRectF &boundingRect)
Sets the bounding rect of the glyphs in this QGlyphRun to be boundingRect.
void setRightToLeft(bool on)
Indicates that this QGlyphRun contains glyphs that should be ordered from the right to left if rightT...
QGlyphRun & operator=(const QGlyphRun &other)
Assigns other to this QGlyphRun object.
QRawFont rawFont() const
Returns the font selected for this QGlyphRun object.
GlyphRunFlags flags() const
Returns the flags set for this QGlyphRun.
void setFlags(GlyphRunFlags flags)
Sets the flags of this QGlyphRun to flags.
void clear()
Clears all data in the QGlyphRun object.
void setGlyphIndexes(const QList< quint32 > &glyphIndexes)
Set the glyph indexes for this QGlyphRun object to glyphIndexes.
bool isRightToLeft() const
Returns true if this QGlyphRun contains glyphs that are painted from the right to the left.
bool isEmpty() const
Returns true if the QGlyphRun does not contain any glyphs.
~QGlyphRun()
Destroys the QGlyphRun.
void setStrikeOut(bool strikeOut)
Indicates that this QGlyphRun should be painted with an strike out decoration if strikeOut is true.
QRectF boundingRect() const
Returns the smallest rectangle that contains all glyphs in this QGlyphRun.
QList< QPointF > positions() const
Returns the position of the edge of the baseline for each glyph in this set of glyph indexes.
bool underline() const
Returns true if this QGlyphRun should be painted with an underline decoration.
qsizetype size() const noexcept
const_pointer constData() const noexcept
bool isEmpty() const noexcept
\inmodule QtCore\reentrant
The QRawFont class provides access to a single physical instance of a font.
QRectF boundingRect(quint32 glyphIndex) const
Returns the smallest rectangle containing the glyph with the given glyphIndex.
bool isValid() const
Returns true if the QRawFont is valid and false otherwise.
\inmodule QtCore\reentrant
constexpr qreal bottom() const noexcept
Returns the y-coordinate of the rectangle's bottom edge.
constexpr qreal left() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr bool isNull() const noexcept
Returns true if the rectangle is a null rectangle, otherwise returns false.
constexpr void translate(qreal dx, qreal dy) noexcept
Moves the rectangle dx along the x-axis and dy along the y-axis, relative to the current position.
constexpr qreal top() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr qreal right() const noexcept
Returns the x-coordinate of the rectangle's right edge.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.
static const QCssKnownValue positions[NumKnownPositionModes - 1]
constexpr const T & qMin(const T &a, const T &b)
constexpr const T & qMax(const T &a, const T &b)
GLfloat GLfloat GLfloat GLfloat GLfloat maxY
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLfloat GLfloat GLfloat GLfloat maxX
static const QRectF boundingRect(const QPointF *points, int pointCount)