repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haikudepot / ui_generic / RatingView.h
blob3f439ead1ed5fa9cda5f86e29dcfc61a53fc059d
1 /*
2 * Copyright 2013-2014, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #ifndef RATING_VIEW_H
6 #define RATING_VIEW_H
9 #include <View.h>
11 #include "SharedBitmap.h"
14 class RatingView : public BView {
15 public:
16 RatingView(const char* name);
17 virtual ~RatingView();
19 virtual void AttachedToWindow();
20 virtual void Draw(BRect updateRect);
22 virtual BSize MinSize();
23 virtual BSize PreferredSize();
24 virtual BSize MaxSize();
26 void SetRating(float rating);
27 float Rating() const;
29 private:
30 SharedBitmap fStarBitmap;
31 float fRating;
35 #endif // RATING_VIEW_H