00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __XSCREENSAVER_LAYER_H__
00020 #define __XSCREENSAVER_LAYER_H__
00021
00022 #include <config.h>
00023 #ifdef WITH_XSCREENSAVER
00024
00025 #include <layer.h>
00026 #include <vroot.h>
00027
00028 class XScreenSaverLayer: public Layer {
00029
00030 public:
00031 XScreenSaverLayer();
00032 ~XScreenSaverLayer();
00033
00034
00035 bool open(const char *file);
00036 void *feed();
00037 void close();
00038 void pause(bool paused);
00039
00040
00041
00042
00043 protected:
00044 bool _init();
00045
00046 void *output;
00047
00048 private:
00049
00050 Display *dpy;
00051 Window back_win;
00052
00053 XImage *img;
00054 GC gc;
00055 bool paused;
00056
00057 int x_pid;
00058 char *_name;
00059 char *_author;
00060 char *_info;
00061 int _version;
00062
00063 char *_path;
00064
00065 };
00066
00067 #endif // WITH_XSCREENSAVER
00068 #endif // __XSCREENSAVER_LAYER_H__
00069