Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
libtdescreensaver
libtdescreensaver
libtdescreensaver
tdescreensaver.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 TDESCREENSAVER_H
22
#define TDESCREENSAVER_H
23
24
#include <tqwidget.h>
25
26
#include <tdelibs_export.h>
27
28
class
TQTimer;
29
class
KScreenSaverPrivate;
30
class
KBlankEffectPrivate;
31
59
class
KDE_EXPORT
KScreenSaver
:
public
TQWidget
60
{
61
TQ_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
TQ_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
KBlankEffect
Blanks a widget using various effects.
Definition
tdescreensaver.h:95
KBlankEffect::doneBlank
void doneBlank()
emitted when a blanking effect has completed.
KBlankEffect::blank
void blank(TQWidget *w, Effect effect=Random)
Blank a widget using the specified effect.
Definition
tdescreensaver.cpp:142
KScreenSaver
Provides a TQWidget for a screensaver to draw into.
Definition
tdescreensaver.h:60
libtdescreensaver
Skip menu "libtdescreensaver"
Main Page
Alphabetical List
Class List
File List
Class Members
libtdescreensaver
Skip menu "libtdescreensaver"
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