haiku/headers/private/screen_saver/ScreenSaverThread.h
beveloper bce41d865a Moved here from current/headers/os/add-ons/screen_saver
Original checkin by michaelphipps

Old commit messages:

Revision 1.3
Re-styled and (hopefully) finalized.

Revision 1.2
Minor changes to support code sharing.

Revision 1.1
Promoted to libscreensaver from (what will be) screen_blanker.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-12 22:46:11 +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