1 /* 2 * Copyright 2003, Michael Phipps. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef SCREEN_SAVER_WINDOW_H 6 #define SCREEN_SAVER_WINDOW_H 7 8 9 #include "ScreenSaver.h" 10 11 #include <DirectWindow.h> 12 13 14 class ScreenSaverWindow : public BDirectWindow { 15 public: 16 ScreenSaverWindow(BRect frame); 17 ~ScreenSaverWindow(); 18 19 void SetSaver(BScreenSaver *saver); 20 21 virtual bool QuitRequested(); 22 virtual void DirectConnected(direct_buffer_info *info); 23 24 private: 25 BView *fTopView; 26 BScreenSaver *fSaver; 27 }; 28 29 #endif // SCREEN_SAVER_WINDOW_H 30