Public Methods
Public Slots
Public Members
Detailed Description
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.
KRootPixmap (QWidget *widget)
|
Construct a KRootPixmap.
Parameters:
widget | A pointer to the widget that you want to make pseudo
transparent.
|
void setFadeEffect (double strength, QColor color)
|
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.
|
Start background handling.
Stop background handling.
bool checkAvailable (bool ignored)
|
Check if pseudo-transparency is 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.
|
[slot]
protected: bool eventFilter (QObject *, QEvent *)
|
[virtual slot]
private slots: void slotBackgroundChanged (int)
|
[slot]
[slot]
private: void enableExports ()
|
[slot]
[slot]