#ifndef PAINTERSHADOWTEXT_H #define PAINTERSHADOWTEXT_H #include #include #include #include #include "Glass_global.h" class GLASSSHARED_EXPORT PainterShadowText : public QObject { Q_OBJECT public: PainterShadowText(); void setFont(const QFont font); void setRadius(qreal radius); void setAntialias(bool antialias); void setTextColor(QColor color); void setShadowColor(QColor color); void drawTextPen(int x, int y, QImage &image, const QString string); void drawTextPen(QPoint pos, QImage &image, const QString string); void drawTextBitmap(int x, int y, QImage &image, const QString string); void drawTextBitmap(QPoint pos, QImage &image, const QString string); private: QFont _font; QColor _text; QColor _shadow; qreal _radius; bool _antialias; }; #endif // PAINTERSHADOWTEXT_H