|
|
Create pseudo-transparent widgets.
A pseudo-transparent widget is a widget with its background pixmap set to that part of the desktop background that it is currently obscuring. This gives a transparency effect.
To create a transparent widget, construct a KRootPixmap and pass it a pointer to your widget. That's it! Moving, resizing and background changes are handled automatically.
| |
Construct a KRootPixmap.
Parameters:
| widget | A pointer to the widget that you want to make pseudo transparent. |
| ~ |
| void |
Set the fade effect.
This effect will fade the background to the specified color.
Parameters:
| strength | A value between 0 and 1, indicating the strength of the fade. A value of 0 will not change the image, a value of 1 will make it the fade color everywhere, and in between. |
| color | The color to fade to. |
| void |
Start background handling.
| void |
Stop background handling.
| bool |
Check if pseudo-transparency is available.
Returns: true if transparency is available, false otherwise.
| void |
Repaint the widget background.
Normally, you shouldn't need this.
Parameters:
| force | Force a repaint, even if the contents did not change. |
| void |
[slot]
| bool |
[protected virtual]