diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-25 21:13:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-25 21:13:21 +0000 |
commit | 2944cdf050c47b9a048b7f0d19741fac23aa77c3 (patch) | |
tree | a60a52ad7403edadb2839096c9530b1fc777ba47 /kdeui/krootpixmap.h | |
parent | eab043fd0dea1332165e5f57f4d7fd8ed0422398 (diff) | |
download | tdelibs-2944cdf050c47b9a048b7f0d19741fac23aa77c3.tar.gz tdelibs-2944cdf050c47b9a048b7f0d19741fac23aa77c3.zip |
Fix KImageEffect blur convolution
Add blur ability to krootpixmap
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1249535 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/krootpixmap.h')
-rw-r--r-- | kdeui/krootpixmap.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kdeui/krootpixmap.h b/kdeui/krootpixmap.h index 60f9ac549..532bc9758 100644 --- a/kdeui/krootpixmap.h +++ b/kdeui/krootpixmap.h @@ -105,6 +105,16 @@ public: */ const TQColor &color() const { return m_FadeColor; } + /** @since 3.5 + * @return the blur radius. + */ + const double &blurRadius() const { return m_BlurRadius; } + + /** @since 3.5 + * @return the blur sigma. + */ + const double &blurSigma() const { return m_BlurSigma; } + /** @since 3.2 * @return the color opacity. */ @@ -134,6 +144,18 @@ public slots: void setFadeEffect(double opacity, const TQColor &color); /** + * Sets the blue effect. + * + * This effect will blur the background with the specified values. + * If both values are set to zero no blur is applied (this is the default). + * @param radius The radius of the gaussian not counting the + * center pixel. Use 0 and a suitable radius will be automatically used. + * @param sigma The standard deviation of the gaussian. Use 1 if you're not + * sure. + */ + void setBlurEffect(double radius, double sigma); + + /** * Repaints the widget background. Normally, you shouldn't need this * as it is handled automatically. * @@ -201,6 +223,8 @@ private: double m_Fade; TQColor m_FadeColor; + double m_BlurRadius; + double m_BlurSigma; TQRect m_Rect; TQWidget *m_pWidget; |