5#include <QtGui/private/qrawfont_p.h>
10 : m_geometry(
QSGGeometry::defaultAttributes_TexturedPoint2D(), 0)
34 for (
int i = 0,
n =
qMin(glyphIndexes.
size(), glyphPositions.
size());
i <
n; ++
i) {
46 minX =
qMin(gm.
x, minX);
The QColor class provides colors based on RGB, HSV or CMYK values.
virtual glyph_metrics_t alphaMapBoundingBox(glyph_t glyph, const QFixedPoint &, const QTransform &matrix, GlyphFormat)
virtual int glyphMargin(GlyphFormat format)
The QGlyphRun class provides direct access to the internal glyphs in a font.
QList< quint32 > glyphIndexes() const
Returns the glyph indexes for this QGlyphRun object.
QRawFont rawFont() const
Returns the font selected for this QGlyphRun object.
QList< QPointF > positions() const
Returns the position of the edge of the baseline for each glyph in this set of glyph indexes.
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
qreal devicePixelRatio() const
The QPainter class performs low-level painting on widgets and other paint devices.
QPaintDevice * device() const
Returns the paint device on which this painter is currently painting, or \nullptr if the painter is n...
void setPen(const QColor &color)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void drawGlyphRun(const QPointF &position, const QGlyphRun &glyphRun)
Draws the glyphs represented by glyphs at position.
void setBrush(const QBrush &brush)
Sets the painter's brush to the given brush.
\inmodule QtCore\reentrant
static QRawFontPrivate * get(const QRawFont &font)
qreal ascent() const
Returns the ascent of this QRawFont in pixel units.
\inmodule QtCore\reentrant
constexpr QRectF translated(qreal dx, qreal dy) const noexcept
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis,...
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
void setMaterial(QSGMaterial *material)
Sets the material of this geometry node to material.
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
The QSGMaterial class encapsulates rendering state for a shader program.
void setStyleColor(const QColor &color) override
void setColor(const QColor &color) override
void setGlyphs(const QPointF &position, const QGlyphRun &glyphs) override
void setStyle(QQuickText::TextStyle style) override
void paint(QPainter *painter)
void setPreferredAntialiasingMode(AntialiasingMode) override
QPointF baseLine() const override
Combined button and popup list for selecting options.
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 offset
GLfloat GLfloat GLfloat GLfloat maxX
static const QRectF boundingRect(const QPointF *points, int pointCount)
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
static constexpr QFixed fromReal(qreal r)
constexpr qreal toReal() const