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

libkscreensaver

  • libkscreensaver
kscreensaver.h
1 /* This file is part of the KDE libraries
2 
3  Copyright (c) 2001 Martin R. Jones <mjones@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KSCREENSAVER_H
22 #define KSCREENSAVER_H
23 
24 #include <tqwidget.h>
25 
26 #include <kdelibs_export.h>
27 
28 class TQTimer;
29 class KScreenSaverPrivate;
30 class KBlankEffectPrivate;
31 
59 class KDE_EXPORT KScreenSaver : public TQWidget
60 {
61  Q_OBJECT
62 public:
66  KScreenSaver( WId id=0 );
67  ~KScreenSaver();
68 
69 protected:
78  void embed( TQWidget *widget );
79 
80  bool eventFilter( TQObject *o, TQEvent * );
81 
82 private:
83  KScreenSaverPrivate *d;
84 };
85 
86 
94 class KBlankEffect : public TQObject
95 {
96  Q_OBJECT
97 public:
98  KBlankEffect( TQObject *parent=0 );
99  ~KBlankEffect();
100 
101  enum Effect { Random=-1, Blank=0, SweepRight, SweepDown, Blocks,
102  MaximumEffects };
103 
112  void blank( TQWidget *w, Effect effect=Random );
113 
114  typedef void (KBlankEffect::*BlankEffect)();
115 
116 signals:
120  void doneBlank();
121 
122 protected slots:
123  void timeout();
124 
125 protected:
126  void finished();
127 
128  void blankNormal();
129  void blankSweepRight();
130  void blankSweepDown();
131  void blankBlocks();
132 
133 protected:
134  static BlankEffect effects[];
135  KBlankEffectPrivate *d;
136 };
137 #endif
138 
KScreenSaver
Provides a TQWidget for a screensaver to draw into.
Definition: kscreensaver.h:59
KBlankEffect
Blanks a widget using various effects.
Definition: kscreensaver.h:94

libkscreensaver

Skip menu "libkscreensaver"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

libkscreensaver

Skip menu "libkscreensaver"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for libkscreensaver by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |