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 #include <List.h> 14 #include <ScreenSaver.h> 15 16 17 class IconDisplay; 18 19 20 class IconsSaver: public BScreenSaver { 21 public: 22 IconsSaver(BMessage* archive, image_id); 23 virtual ~IconsSaver(); 24 25 virtual status_t StartSaver(BView *view, bool preview); 26 virtual void StopSaver(); 27 28 virtual void Draw(BView *view, int32 frame); 29 30 virtual void StartConfig(BView* view); 31 32 private: 33 BList fVectorIcons; 34 int32 fVectorIconsCount; 35 IconDisplay* fIcons; 36 37 BBitmap* fBackBitmap; 38 BView* fBackView; 39 40 uint16 fMinSize, fMaxSize; 41 }; 42 43 #endif 44