11 #ifndef __KRootPixmap_h_Included__
12 #define __KRootPixmap_h_Included__
16 #include <tdelibs_export.h>
23 class TDESharedPixmap;
24 class KRootPixmapData;
60 KRootPixmap( TQWidget *target,
const char *name=0 );
66 KRootPixmap( TQWidget *target, TQObject *parent,
const char *name=0 );
77 bool isAvailable()
const;
87 int currentDesktop()
const;
106 const TQColor &
color()
const {
return m_FadeColor; }
127 virtual void start();
144 void setFadeEffect(
double opacity,
const TQColor &color);
156 void setBlurEffect(
double radius,
double sigma);
164 void repaint(
bool force );
185 void enableExports();
190 static TQString pixmapName(
int desk);
205 virtual bool eventFilter(TQObject *, TQEvent *);
212 virtual void updateBackground( TDESharedPixmap * );
215 void slotBackgroundChanged(
int);
217 void desktopChanged(
int desktop);
218 void desktopChanged( WId window,
unsigned int properties );
221 bool m_bActive, m_bInit, m_bCustomPaint;
232 TDESharedPixmap *m_pPixmap;
Creates pseudo-transparent widgets.
const double & blurSigma() const
bool customPainting() const
Returns true if custom painting is enabled, false otherwise.
void backgroundUpdated(const TQPixmap &pm)
Emitted when the background needs updating and custom painting (see setCustomPainting(bool) ) is enab...
const TQColor & color() const
void setCustomPainting(bool enable)
Enables custom handling of the background painting.
bool isActive() const
Returns true if the KRootPixmap is active.
TDE_DEPRECATED bool checkAvailable(bool)
Deprecated, use isAvailable() instead.
const double & blurRadius() const