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 15class BView; 16class BBitmap; 17 18 19class RatingUtils { 20public: 21 static void Draw(BView* target, BPoint at, float value, 22 const BBitmap* star); 23 static void Draw(BView* target, BPoint at, float value); 24private: 25 static BReference<SharedBitmap> 26 sStarBlueBitmap; 27 static BReference<SharedBitmap> 28 sStarGrayBitmap; 29}; 30 31 32#endif // RATING_UTILS_H 33