tcp: Add APICall trace entry and move TRACEs into locked parts.
[haiku.git] / src / add-ons / screen_savers / icons / IconDisplay.h
blob17bec7095bb62071e41e2e902bb05d7dad346100
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 ICON_DISPLAY_H
12 #define ICON_DISPLAY_H
15 #include <Rect.h>
18 struct vector_icon;
21 class BBitmap;
22 class BView;
25 class IconDisplay {
26 public:
27 IconDisplay();
28 ~IconDisplay();
30 void Run(vector_icon* icon, BRect frame);
31 inline bool IsRunning() const { return fIsRunning; };
32 inline BRect GetFrame() const { return fFrame; };
34 void ClearOn(BView* view);
35 void DrawOn(BView* view, uint32 delta);
37 private:
38 bool fIsRunning;
39 uint8 fState;
41 int32 fTicks;
42 int32 fDelay;
44 BBitmap* fBitmap;
45 BRect fFrame;
49 #endif // ICON_DISPLAY_H