|
DtkWidget
DTK Widget module
|
控件发散效果,同时也是Dtk默认的窗口特效. 更多...
Public 成员函数 | |
| DGraphicsGlowEffect (QObject *parent=nullptr) | |
| 构造一个DGraphicsGlowEffect对象,并指定其父对象。 | |
| void | draw (QPainter *painter) |
| DGraphicsGlowEffect::draw set a blur effect image to painter. | |
| QRectF | boundingRectFor (const QRectF &rect) const |
| 有效的边界区域 | |
| void | setOffset (qreal dx, qreal dy) |
| void | setXOffset (qreal dx) |
| qreal | xOffset () const |
| void | setYOffset (qreal dy) |
| qreal | yOffset () const |
| void | setDistance (qreal distance) |
| qreal | distance () const |
| void | setBlurRadius (qreal blurRadius) |
| qreal | blurRadius () const |
| void | setColor (const QColor &color) |
| QColor | color () const |
| qreal | opacity () const |
| void | setOpacity (qreal opacity) |
控件发散效果,同时也是Dtk默认的窗口特效.
\inmodule dtkwidget
Draw a glow effect of widget, It's the default border effect of deepin windows.
|
explicit |
构造一个DGraphicsGlowEffect对象,并指定其父对象。
Constructs a new DGraphicsGlowEffect instance having the specified parent.
parent
| QRectF Dtk::Widget::DGraphicsGlowEffect::boundingRectFor | ( | const QRectF & | rect | ) | const |
有效的边界区域
Calc the effective bounding rectangle
rect 为控件的几何区域 rect is the widget rectangle
| void Dtk::Widget::DGraphicsGlowEffect::draw | ( | QPainter * | painter | ) |