class CircularProgress : public Container
{
public:
CircularProgress();
virtual ~CircularProgress();
int getValue()
{
return currentPercentage;
}
void setBarAngle(int angleInDegrees);
virtual void handleClickEvent(const ClickEvent& evt);
virtual void handleDragEvent(const DragEvent& evt);
protected:
static const int END_DEGREE = 116;
static const int START_DEGREE = -END_DEGREE;
Image background;
Image centerImage;
Circle bar;
#if !defined(USE_BPP) || USE_BPP==16
PainterRGB565Bitmap bitmapPainter;
PainterRGB565 colorPainter;
#elif USE_BPP==24
PainterRGB888Bitmap bitmapPainter;
PainterRGB888 colorPainter;
#elif USE_BPP==4
PainterGRAY4Bitmap bitmapPainter;
PainterGRAY4 colorPainter;
#elif USE_BPP==2
PainterGRAY2Bitmap bitmapPainter;
PainterGRAY2 colorPainter;
#else
#error Unknown USE_BPP
#endif
TextAreaWithOneWildcard percentageText;
Unicode::UnicodeChar percentageTextBuffer[5];
TextArea headlineText;
int currentPercentage;
void updateBar(int newX, int newY);
};