class KRootPixmap
|
Implements pseudo transparent widgets. More... |
|
|
Public Methods
Public Slots
Protected Methods
Detailed Description
Implements pseudo transparent widgets.
A pseudo transparent widget is a widget with its background pixmap set to
that part of the desktop background which 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 setFadeEffect (double strength, QColor color)
|
Sets 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.
|
Start background handling.
Stop background handling.
bool checkAvailable (bool show_warning)
|
Check if pseudo transparency is available.
Parameters:
show_warning | Show a warning message when transparent
backgrounds are not available.
|
Returns: True if transparency is available, false otherwise.
void repaint (bool force)
|
Repaint the widget background. Normally, you shouldn't need this.
Parameters:
force | Force a repaint, even if the contents did not change.
|
Generated by: dfaure@faure on Sun Mar 26 14:24:24 2000, using kdoc 2.0a35. |