aboutsummaryrefslogtreecommitdiffstats
path: root/softwarecontext/glyphnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'softwarecontext/glyphnode.h')
-rw-r--r--softwarecontext/glyphnode.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/softwarecontext/glyphnode.h b/softwarecontext/glyphnode.h
new file mode 100644
index 0000000000..1724ef8394
--- /dev/null
+++ b/softwarecontext/glyphnode.h
@@ -0,0 +1,28 @@
+#ifndef GLYPHNODE_H
+#define GLYPHNODE_H
+
+#include <private/qsgadaptationlayer_p.h>
+
+class GlyphNode : public QSGGlyphNode
+{
+public:
+ GlyphNode();
+
+ virtual void setGlyphs(const QPointF &position, const QGlyphRun &glyphs);
+ virtual void setColor(const QColor &color);
+ virtual void setStyle(QQuickText::TextStyle style);
+ virtual void setStyleColor(const QColor &color);
+ virtual QPointF baseLine() const;
+ virtual void setPreferredAntialiasingMode(AntialiasingMode);
+ virtual void update();
+
+ virtual void paint(QPainter *painter);
+
+private:
+ QPointF m_position;
+ QGlyphRun m_glyphRun;
+ QColor m_color;
+ QSGGeometry m_geometry;
+};
+
+#endif // GLYPHNODE_H