|
DtkWidget
DTK Widget module
|
Watermark information structure parent 更多...
Public 类型 | |
| enum | WaterMarkType { None , Text , Image } |
| enum | WaterMarkLayout { Center , Tiled } |
Public 成员函数 | |
| WaterMarkData (const WaterMarkData &p) | |
| WaterMarkData & | operator= (const WaterMarkData &p) |
| WaterMarkType | type () const |
| get the current watermark type | |
| void | setType (WaterMarkType type) |
| set the current waternark type | |
| WaterMarkLayout | layout () const |
| get the current watermark layout | |
| void | setLayout (WaterMarkLayout layout) |
| set the current waternark layout | |
| qreal | scaleFactor () const |
| get the current watermark scale factor | |
| void | setScaleFactor (qreal scaleFactor) |
| set the current waternark scaleFactor | |
| int | spacing () const |
| get the current watermark spacing | |
| void | setSpacing (int spacing) |
| set the current waternark spacing | |
| int | lineSpacing () const |
| get the current watermark line spacing | |
| void | setLineSpacing (int lineSpacing) |
| set the current waternark lineSpacing | |
| QString | text () const |
| get the current watermark text | |
| void | setText (const QString &text) |
| set the current waternark text | |
| QFont | font () const |
| get the current watermark font | |
| void | setFont (const QFont &font) |
| set the current waternark font | |
| QColor | color () const |
| get the current watermark color | |
| void | setColor (const QColor &color) |
| set the current waternark color | |
| qreal | rotation () const |
| get the current watermark rotation(0~360) | |
| void | setRotation (qreal rotation) |
| set the current waternark (0~360) rotation | |
| qreal | opacity () const |
| get the current watermark opacity(0~1.0) | |
| void | setOpacity (qreal opacity) |
| set the current waternark (0~1.0) opacity | |
| QImage | image () const |
| get the current watermark image | |
| void | setImage (const QImage &image) |
| set the current waternark image | |
| bool | grayScale () const |
| get the current watermark grayscale of image | |
| void | setGrayScale (bool grayScale) |
| set the current waternark grayScale of image,default value is true | |
Watermark information structure parent
水印信息结构
Assignment constructor parent
coping constructing function parent
\inmodule dtkwidget
@inmodule dtkwidget
| [in] | parent |
| const QColor & WaterMarkData::color | ( | ) | const |
get the current watermark color
当前设置的水印颜色
| const QFont & WaterMarkData::font | ( | ) | const |
get the current watermark font
当前设置的水印字体
| bool WaterMarkData::grayScale | ( | ) | const |
get the current watermark grayscale of image
当前设置的水印图片是否需要灰度化
| const QImage & WaterMarkData::image | ( | ) | const |
get the current watermark image
当前设置的水印图片
| const Dtk::Widget::WaterMarkData::WaterMarkLayout & WaterMarkData::layout | ( | ) | const |
get the current watermark layout
当前设置的水印布局类型
| int WaterMarkData::lineSpacing | ( | ) | const |
get the current watermark line spacing
当前设置的水印行间距
| qreal WaterMarkData::opacity | ( | ) | const |
get the current watermark opacity(0~1.0)
当前设置的水印透明度(0~1.0)
| qreal WaterMarkData::rotation | ( | ) | const |
get the current watermark rotation(0~360)
当前设置的水印旋转角度(0~360)
| qreal WaterMarkData::scaleFactor | ( | ) | const |
get the current watermark scale factor
当前设置的水印整体缩放系数
| void WaterMarkData::setColor | ( | const QColor & | color | ) |
set the current waternark color
设置当前水印的颜色
| [in] | color | 需要设置的水印颜色 |
| void WaterMarkData::setFont | ( | const QFont & | font | ) |
set the current waternark font
设置当前水印的字体
| [in] | font | 需要设置的水印字体 |
| void WaterMarkData::setGrayScale | ( | bool | grayScale | ) |
set the current waternark grayScale of image,default value is true
设置当前水印图片是否需要灰度化,默认为true
| [in] | grayScale | 设置当前水印图片是否需要灰度化 |
| void WaterMarkData::setImage | ( | const QImage & | image | ) |
set the current waternark image
设置当前水印图片
| [in] | 需要设置的水印图片 |
| void WaterMarkData::setLayout | ( | WaterMarkLayout | layout | ) |
set the current waternark layout
设置的水印布局类型
| [in] | layout | 需要设置的水印布局类型 |
| void WaterMarkData::setLineSpacing | ( | int | lineSpacing | ) |
set the current waternark lineSpacing
设置当前水印的行间距
| [in] | lineSpacing | 需要设置的水印行间距 |
| void WaterMarkData::setOpacity | ( | qreal | opacity | ) |
set the current waternark (0~1.0) opacity
设置当前水印透明度(0~1.0)
| [in] | opacity | 需要设置的水印透明度 |
| void WaterMarkData::setRotation | ( | qreal | rotation | ) |
set the current waternark (0~360) rotation
设置当前水印的旋转角度(0~360)
| [in] | rotation | 需要设置的水印旋转角度 |
| void WaterMarkData::setScaleFactor | ( | qreal | scaleFactor | ) |
set the current waternark scaleFactor
设置当前水印的整体缩放系数
| [in] | scaleFactor | 需要设置的水印整体缩放系数 |
| void WaterMarkData::setSpacing | ( | int | spacing | ) |
set the current waternark spacing
设置当前水印的间距
| [in] | spacing | 需要设置的水印的间距 |
| void WaterMarkData::setText | ( | const QString & | text | ) |
set the current waternark text
设置当前水印的文本内容
| [in] | text | 需要设置的水印文本内容 |
| void Dtk::Widget::WaterMarkData::setType | ( | WaterMarkType | type | ) |
set the current waternark type
设置当前水印的类型
| [in] | type | 需要设置的水印类型 |
| int WaterMarkData::spacing | ( | ) | const |
get the current watermark spacing
当前设置的水印间距
| const QString & WaterMarkData::text | ( | ) | const |
get the current watermark text
当前设置的水印文本内容
| const Dtk::Widget::WaterMarkData::WaterMarkType & WaterMarkData::type | ( | ) | const |
get the current watermark type
当前设置的水印类型