xref: /haiku/src/apps/haikudepot/util/RatingUtils.h (revision 7cea5bf07ffaec7e25508f3b81a2e5bd989e1b34)
1 /*
2  * Copyright 2020, Andrew Lindesay <apl@lindesay.co.nz>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef RATING_UTILS_H
6 #define RATING_UTILS_H
7 
8 
9 #include <Referenceable.h>
10 
11 
12 #include "SharedBitmap.h"
13 
14 
15 class BView;
16 class BBitmap;
17 
18 
19 class RatingUtils {
20 public:
21 	static	void			Draw(BView* target, BPoint at, float value,
22 								const BBitmap* star);
23 	static	void			Draw(BView* target, BPoint at, float value);
24 private:
25 	static	BReference<SharedBitmap>
26 							sStarBlueBitmap;
27 	static	BReference<SharedBitmap>
28 							sStarGrayBitmap;
29 };
30 
31 
32 #endif // RATING_UTILS_H
33