summaryrefslogtreecommitdiffstats
path: root/kscreensaver/xsavers/saver.h
blob: 4f4727d023c3532aca4ecacc40de11edb2bb5a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

#ifndef __SAVER_H__
#define __SAVER_H__

#include <qobject.h>
#include <X11/Xlib.h>

extern void startScreenSaver( Drawable d );
extern void stopScreenSaver();
extern int setupScreenSaver();

//-----------------------------------------------------------------------------
class kScreenSaver : public QObject
{
	Q_OBJECT
public:
	kScreenSaver( Drawable drawable );
	virtual ~kScreenSaver();

protected:
	Drawable mDrawable;
	GC mGc;
	unsigned mWidth;
	unsigned mHeight;
};

#endif