haiku/headers/os/add-ons/screen_saver/ScreenSaverThread.h
Michael Phipps 597515140e Minor changes to support code sharing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-31 00:33:06 +00:00

32 lines
570 B
C++

#ifndef SCREEN_SAVER_THREAD_H
#define SCREEN_SAVER_THREAD_H
#include <SupportDefs.h>
#include <DirectWindow.h>
class BScreenSaver;
class BView;
class ScreenSaverPrefs;
int32 threadFunc(void *data);
class ScreenSaverThread
{
public:
ScreenSaverThread(BWindow *wnd, BView *vw, ScreenSaverPrefs *p);
void thread(void);
BScreenSaver *LoadAddOn(void) ;
void quit(void);
private:
BScreenSaver *saver;
BWindow *win;
BDirectWindow *dwin;
BView *view;
ScreenSaverPrefs *pref;
long frame;
int snoozeCount;
image_id addon_image;
};
#endif //SCREEN_SAVER_THREAD_H