• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
krootpixmap.h
1/*
2 *
3 * $Id$
4 * This file is part of the KDE project, module kdesktop.
5 * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
6 *
7 * You can Freely distribute this program under the GNU Library General
8 * Public License. See the file "COPYING.LIB" for the exact licensing terms.
9 */
10
11#ifndef __KRootPixmap_h_Included__
12#define __KRootPixmap_h_Included__
13
14#include <tqobject.h>
15#include <tqcolor.h>
16#include <tdelibs_export.h>
17
18#ifndef TQ_WS_QWS //FIXME
19
20class TQRect;
21class TQWidget;
22class TQTimer;
23class TDESharedPixmap;
24class KRootPixmapData;
25
46class TDEUI_EXPORT KRootPixmap: public TQObject
47{
48 TQ_OBJECT
49
50public:
60 KRootPixmap( TQWidget *target, const char *name=0 );
61
66 KRootPixmap( TQWidget *target, TQObject *parent, const char *name=0 );
67
71 virtual ~KRootPixmap();
72
77 bool isAvailable() const;
78
82 bool isActive() const { return m_bActive; }
83
87 int currentDesktop() const;
88
93 bool customPainting() const { return m_bCustomPaint; }
94
95#ifndef KDE_NO_COMPAT
100 TDE_DEPRECATED bool checkAvailable(bool) { return isAvailable(); }
101#endif
102
106 const TQColor &color() const { return m_FadeColor; }
107
111 const double &blurRadius() const { return m_BlurRadius; }
112
116 const double &blurSigma() const { return m_BlurSigma; }
117
121 double opacity() const { return m_Fade; }
122
123public slots:
127 virtual void start();
128
132 virtual void stop();
133
144 void setFadeEffect(double opacity, const TQColor &color);
145
156 void setBlurEffect(double radius, double sigma);
157
164 void repaint( bool force );
165
171 void repaint();
172
179 void setCustomPainting( bool enable ) { m_bCustomPaint = enable; }
180
185 void enableExports();
186
190 static TQString pixmapName(int desk);
191signals:
198 void backgroundUpdated( const TQPixmap &pm );
199
200protected:
205 virtual bool eventFilter(TQObject *, TQEvent *);
206
212 virtual void updateBackground( TDESharedPixmap * );
213
214private slots:
215 void slotBackgroundChanged(int);
216 void slotDone(bool);
217 void desktopChanged(int desktop);
218 void desktopChanged( WId window, unsigned int properties );
219
220private:
221 bool m_bActive, m_bInit, m_bCustomPaint;
222 int m_Desk;
223
224 double m_Fade;
225 TQColor m_FadeColor;
226 double m_BlurRadius;
227 double m_BlurSigma;
228
229 TQRect m_Rect;
230 TQWidget *m_pWidget;
231 TQTimer *m_pTimer;
232 TDESharedPixmap *m_pPixmap;
233 KRootPixmapData *d;
234
235 void init();
236};
237
238#endif // ! TQ_WS_QWS
239#endif // __KRootPixmap_h_Included__
240
KRootPixmap
Creates pseudo-transparent widgets.
Definition: krootpixmap.h:47
KRootPixmap::color
const TQColor & color() const
Definition: krootpixmap.h:106
KRootPixmap::blurSigma
const double & blurSigma() const
Definition: krootpixmap.h:116
KRootPixmap::customPainting
bool customPainting() const
Returns true if custom painting is enabled, false otherwise.
Definition: krootpixmap.h:93
KRootPixmap::backgroundUpdated
void backgroundUpdated(const TQPixmap &pm)
Emitted when the background needs updating and custom painting (see setCustomPainting(bool) ) is enab...
KRootPixmap::blurRadius
const double & blurRadius() const
Definition: krootpixmap.h:111
KRootPixmap::setCustomPainting
void setCustomPainting(bool enable)
Enables custom handling of the background painting.
Definition: krootpixmap.h:179
KRootPixmap::opacity
double opacity() const
Definition: krootpixmap.h:121
KRootPixmap::isActive
bool isActive() const
Returns true if the KRootPixmap is active.
Definition: krootpixmap.h:82
KRootPixmap::checkAvailable
TDE_DEPRECATED bool checkAvailable(bool)
Deprecated, use isAvailable() instead.
Definition: krootpixmap.h:100

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.