5#ifndef WATERMARKWIDGET_H
6#define WATERMARKWIDGET_H
10#include <dtkwidget_global.h>
13DWIDGET_BEGIN_NAMESPACE
15class WaterMarkDataPrivate;
34 WaterMarkType type()
const;
35 void setType(WaterMarkType type);
37 WaterMarkLayout layout()
const;
38 void setLayout(WaterMarkLayout layout);
40 qreal scaleFactor()
const;
41 void setScaleFactor(qreal scaleFactor);
44 void setSpacing(
int spacing);
46 int lineSpacing()
const;
47 void setLineSpacing(
int lineSpacing);
50 void setText(
const QString &text);
53 void setFont(
const QFont &font);
56 void setColor(
const QColor &color);
58 qreal rotation()
const;
59 void setRotation(qreal rotation);
61 qreal opacity()
const;
62 void setOpacity(qreal opacity);
65 void setImage(
const QImage &image);
67 bool grayScale()
const;
68 void setGrayScale(
bool grayScale);
85 void paintEvent(QPaintEvent *)
override;
86 bool eventFilter(QObject *watched, QEvent *event)
override;