66dee31a87
added ScreenSaver.cpp to ScreenSaver preferences to have Matrix working git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13828 a95241bf-73f2-0310-859d-f6bbb57e9c96
32 lines
573 B
C++
32 lines
573 B
C++
#ifndef SCREEN_SAVER_THREAD_H
|
|
#define SCREEN_SAVER_THREAD_H
|
|
#include <SupportDefs.h>
|
|
#include <DirectWindow.h>
|
|
|
|
class BScreenSaver;
|
|
class BView;
|
|
class ScreenSaverPrefs;
|
|
|
|
class ScreenSaverThread
|
|
{
|
|
public:
|
|
ScreenSaverThread(BWindow *wnd, BView *vw, ScreenSaverPrefs *p);
|
|
void Thread();
|
|
BScreenSaver *LoadAddOn() ;
|
|
void Quit();
|
|
|
|
static int32 ThreadFunc(void *data);
|
|
private:
|
|
BScreenSaver *fSaver;
|
|
BWindow *fWin;
|
|
BDirectWindow *fDWin;
|
|
BView *fView;
|
|
ScreenSaverPrefs *fPref;
|
|
|
|
long fFrame;
|
|
int fSnoozeCount;
|
|
image_id fAddonImage;
|
|
};
|
|
|
|
#endif //SCREEN_SAVER_THREAD_H
|