diff options
Diffstat (limited to 'src/context2d.h')
-rw-r--r-- | src/context2d.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/context2d.h b/src/context2d.h index 5a8cdaf..dfc3c10 100644 --- a/src/context2d.h +++ b/src/context2d.h @@ -121,6 +121,8 @@ class Context2D : public QObject Q_PROPERTY(qreal shadowOffsetY READ shadowOffsetY WRITE setShadowOffsetY) Q_PROPERTY(qreal shadowBlur READ shadowBlur WRITE setShadowBlur) Q_PROPERTY(QString shadowColor READ shadowColor WRITE setShadowColor) + // fonts + Q_PROPERTY(QString font READ font WRITE setFont) public: Context2D(QObject *parent = 0); @@ -158,6 +160,9 @@ public: void setLineJoin(const QString &s); void setMiterLimit(qreal m); + void setFont(const QString &font); + QString font(); + // shadows qreal shadowOffsetX() const; // (default 0) qreal shadowOffsetY() const; // (default 0) @@ -173,6 +178,8 @@ public slots: void save(); // push state on state stack void restore(); // pop state stack and restore state + void fillText(const QString &text, qreal x, qreal y); + void setInPaint(bool val){m_inPaint = val;} void scale(qreal x, qreal y); void rotate(qreal angle); |