class KRootPixmap

Create pseudo-transparent widgets. More...

Definition#include <krootpixmap.h>
InheritsQObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Protected Methods


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)

KRootPixmap

Construct a KRootPixmap.

Parameters:
widgetA pointer to the widget that you want to make pseudo transparent.

 ~KRootPixmap ()

~KRootPixmap

void  setFadeEffect (double strength, QColor color)

setFadeEffect

Set the fade effect.

This effect will fade the background to the specified color.

Parameters:
strengthA 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.
colorThe color to fade to.

void  start ()

start

Start background handling.

void  stop ()

stop

Stop background handling.

bool  checkAvailable (bool ignored)

checkAvailable

Check if pseudo-transparency is available.

Returns: true if transparency is available, false otherwise.

void  repaint (bool force)

repaint

Repaint the widget background.

Normally, you shouldn't need this.

Parameters:
forceForce a repaint, even if the contents did not change.

void  repaint ()

repaint

[slot]

bool  eventFilter (QObject *, QEvent *)

eventFilter

[protected virtual]

Reimplemented from QObject.