xref: /haiku/src/add-ons/screen_savers/icons/IconsSaver.h (revision 0def0b0d621f3c051375d11826b6143272dcc9b9)
1 /*
2  * Copyright 2009 Vincent Duvert, vincent.duvert@free.fr
3  * Copyright 2014 Haiku, Inc. All rights reserved.
4  *
5  * Distributed under the terms of the MIT License.
6  *
7  * Authors:
8  *		John Scipione, jscipione@gmail.com
9  */
10 #ifndef ICONS_SAVER_H
11 #define ICONS_SAVER_H
12 
13 
14 #include <List.h>
15 #include <ScreenSaver.h>
16 
17 
18 class IconDisplay;
19 
20 
21 class IconsSaver: public BScreenSaver {
22 public:
23 								IconsSaver(BMessage* archive, image_id);
24 	virtual						~IconsSaver();
25 
26 	virtual	status_t			StartSaver(BView *view, bool preview);
27 	virtual	void				StopSaver();
28 
29 	virtual	void				Draw(BView *view, int32 frame);
30 
31 	virtual	void				StartConfig(BView* view);
32 
33 private:
34 			void				_GetVectorIcons();
35 
36 			BList				fVectorIcons;
37 			IconDisplay*		fIcons;
38 
39 			BBitmap*			fBackBitmap;
40 			BView*				fBackView;
41 
42 			uint16				fMinSize;
43 			uint16				fMaxSize;
44 };
45 
46 
47 #endif	// ICONS_SAVER_H
48