vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / screen_savers / icons / IconsSaver.h
blobd569faf7a0d229510886542ab679a5af859f033e
1 /*
2 * Copyright 2009 Vincent Duvert, vincent.duvert@free.fr
3 * Copyright 2014 Haiku, Inc. All rights reserved.
5 * Distributed under the terms of the MIT License.
7 * Authors:
8 * Vincent Duvert, vincent.duvert@free.fr
9 * John Scipione, jscipione@gmail.com
11 #ifndef ICONS_SAVER_H
12 #define ICONS_SAVER_H
15 #include <ObjectList.h>
16 #include <ScreenSaver.h>
19 struct vector_icon;
22 class IconDisplay;
25 class IconsSaver: public BScreenSaver {
26 public:
27 IconsSaver(BMessage* archive, image_id);
28 virtual ~IconsSaver();
30 virtual status_t StartSaver(BView *view, bool preview);
31 virtual void StopSaver();
33 virtual void Draw(BView *view, int32 frame);
35 virtual void StartConfig(BView* view);
37 private:
38 void _GetVectorIcons();
40 BObjectList<vector_icon> fVectorIcons;
41 IconDisplay* fIcons;
43 BBitmap* fBackBitmap;
44 BView* fBackView;
46 uint16 fMinSize;
47 uint16 fMaxSize;
51 #endif // ICONS_SAVER_H