3rdparty/licenseReport: Add seperate LGPL checks
[haiku.git] / src / add-ons / screen_savers / glife / GLifeSaver.h
blobc5cf131b69bef59283392568d549d75c06924454
1 /*
2 * Copyright 2012, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Aaron Hill <serac@hillvisions.com>
7 */
8 #ifndef _GLIFE_GLIFESAVER_H
9 #define _GLIFE_GLIFESAVER_H
12 #include <OS.h>
13 #include <ScreenSaver.h>
14 #include <View.h>
16 #include "GLifeGrid.h"
17 #include "GLifeState.h"
18 #include "GLifeView.h"
21 // Constants
22 const int32 c_iTickSize = 50000;
25 // GLifeSaver Class Declaration
26 class GLifeSaver : public BScreenSaver
28 public:
29 // Constructor
30 GLifeSaver(BMessage*, image_id);
32 // State/Preferences Methods
33 status_t SaveState(BMessage*) const;
34 void RestoreState(BMessage*);
35 void StartConfig(BView*);
37 // Start/Stop Methods
38 status_t StartSaver(BView*, bool);
39 void StopSaver(void);
41 // Graphics Methods
42 void DirectConnected(direct_buffer_info*);
43 void Draw(BView*, int32);
45 private:
46 GLifeState fGLifeState;
47 GLifeView* fGLifeViewport;
51 #endif /* _GLIFE_GLIFESAVER_H */