summaryrefslogtreecommitdiff
path: root/noncore/styles/theme/ogfxeffect.h
Unidiff
Diffstat (limited to 'noncore/styles/theme/ogfxeffect.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/theme/ogfxeffect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/styles/theme/ogfxeffect.h b/noncore/styles/theme/ogfxeffect.h
index 45a8482..755537f 100644
--- a/noncore/styles/theme/ogfxeffect.h
+++ b/noncore/styles/theme/ogfxeffect.h
@@ -39,24 +39,27 @@ public:
39 * @param pixmap The pixmap to process. 39 * @param pixmap The pixmap to process.
40 * @param ca Color a. 40 * @param ca Color a.
41 * @param cb Color b. 41 * @param cb Color b.
42 * @param type The type of gradient. 42 * @param type The type of gradient.
43 * @param ncols The number of colors to use when not running on a 43 * @param ncols The number of colors to use when not running on a
44 * truecolor display. The gradient will be dithered to this number of 44 * truecolor display. The gradient will be dithered to this number of
45 * colors. Pass 0 to prevent dithering. 45 * colors. Pass 0 to prevent dithering.
46 * @return Returns the generated pixmap, for convenience. 46 * @return Returns the generated pixmap, for convenience.
47 */ 47 */
48 static QPixmap& gradient(QPixmap& pixmap, const QColor &ca, const QColor &cb, 48 static QPixmap& gradient(QPixmap& pixmap, const QColor &ca, const QColor &cb,
49 GradientType type, int ncols=3); 49 GradientType type, int ncols=3);
50 50
51 static QImage gradient (const QSize &size, const QColor &ca, const QColor &cb,
52 GradientType type, int ncols=3);
53
51 54
52 /** 55 /**
53 * Blend the provided pixmap into a background of the indicated color 56 * Blend the provided pixmap into a background of the indicated color
54 * 57 *
55 * @param pixmap The pixmap to process. 58 * @param pixmap The pixmap to process.
56 * @param initial_intensity this parameter takes values from -1 to 1: 59 * @param initial_intensity this parameter takes values from -1 to 1:
57 * @li If positive, it tells how much to fade the image in its 60 * @li If positive, it tells how much to fade the image in its
58 * less affected spot. 61 * less affected spot.
59 * @li If negative, it tells roughly indicates how much of the image 62 * @li If negative, it tells roughly indicates how much of the image
60 * remains unaffected 63 * remains unaffected
61 * @param bgnd Indicates the color of the background to blend in. 64 * @param bgnd Indicates the color of the background to blend in.
62 * @param eff Lets you choose what kind of blending you like. 65 * @param eff Lets you choose what kind of blending you like.