1 /* 2 Copyright 2009 Vincent Duvert, vincent.duvert@free.fr 3 All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef ICONS_SAVER_H 6 #define ICONS_SAVER_H 7 8 #include <List.h> 9 #include <ScreenSaver.h> 10 11 12 class IconDisplay; 13 14 15 class IconsSaver: public BScreenSaver { 16 public: 17 IconsSaver(BMessage* archive, image_id); 18 virtual ~IconsSaver(); 19 20 virtual status_t StartSaver(BView *view, bool preview); 21 virtual void StopSaver(); 22 23 virtual void Draw(BView *view, int32 frame); 24 25 virtual void StartConfig(BView* view); 26 27 private: 28 BList fVectorIcons; 29 int32 fVectorIconsCount; 30 IconDisplay* fIcons; 31 32 BBitmap* fBackBitmap; 33 BView* fBackView; 34 35 uint16 fMinSize, fMaxSize; 36 }; 37 38 #endif 39