#include <kiconeffect.h>
Public Types | |
| enum | Effects |
Public Methods | |
| KIconEffect () | |
| void | init () |
| bool | hasEffect (int group, int state) const |
| QString | fingerprint (int group, int state) const |
| QImage | apply (QImage src, int group, int state) const |
| QImage | apply (QImage src, int effect, float value, const QColor rgb, bool trans) const |
| QPixmap | apply (QPixmap src, int group, int state) const |
| QPixmap | apply (QPixmap src, int effect, float value, const QColor rgb, bool trans) const |
| QImage | doublePixels (QImage src) const |
Static Public Methods | |
| void | visualActivate (QWidget *widget, QRect rect) |
| void | toGray (QImage &image, float value) |
| void | colorize (QImage &image, const QColor &col, float value) |
| void | deSaturate (QImage &image, float value) |
| void | toGamma (QImage &image, float value) |
| void | semiTransparent (QImage &image) |
| void | semiTransparent (QPixmap &pixmap) |
| void | overlay (QImage &src, QImage &overlay) |
This class applies effects to icons depending on their state and group. For example, it can be used to make all disabled icons in a toolbar grey.
Definition at line 35 of file kiconeffect.h.
|
|
This is the enumeration of all possible icon effects. Note that 'LastEffect' is no valid icon effect but only used internally to check for invalid icon effects.
Definition at line 55 of file kiconeffect.h. |
|
|
Create a new KIconEffect. |
|
||||||||||||||||||||||||
|
Applies an effect to a pixmap.
|
|
||||||||||||||||
|
Applies an effect to a pixmap.
|
|
||||||||||||||||||||||||
|
Applies an effect to an image.
|
|
||||||||||||||||
|
Applies an effect to an image. The effect to apply depends on the
|
|
||||||||||||||||
|
Colorizes an image with a specific color.
|
|
||||||||||||
|
Desaturates an image.
|
|
|
Returns an image twice as large, consisting of 2x2 pixels.
|
|
||||||||||||
|
Returns a fingerprint for the effect by encoding the given
|
|
||||||||||||
|
Tests whether an effect has been configured for the given icon group.
|
|
|
Rereads configuration. |
|
||||||||||||
|
Overlays an image with an other image.
|
|
|
Renders a pixmap semi-transparent.
|
|
|
Renders an image semi-transparent.
|
|
||||||||||||
|
Changes the gamma value of an image.
|
|
||||||||||||
|
Tints an image gray.
|
|
||||||||||||
|
Provides visual feedback to show activation of an icon on a widget. Not strictly an 'icon effect', but in practice that's what it looks like. This method does nothing if the global 'Visual feedback on activation' option is not activated (See kcontrol/Peripherals/Mouse).
|
1.2.18