[DEV] update progressBar

This commit is contained in:
Edouard DUPIN 2013-11-06 21:26:37 +01:00
parent adc4ad0c45
commit 149405880d
3 changed files with 6 additions and 8 deletions

2
build

@ -1 +1 @@
Subproject commit 2a0f8bdb02d2f5b117d4fa9bf994a752e8a1f4b2
Subproject commit 1a424abd21d9262b1cfc911fcc830d003bf6078b

View File

@ -57,15 +57,11 @@ void widget::ProgressBar::calculateMinMaxSize(void) {
markToRedraw();
}
void widget::ProgressBar::valueSet(float _val) {
void widget::ProgressBar::setValue(float _val) {
m_value = etk_avg(0, _val, 1);
markToRedraw();
}
float widget::ProgressBar::valueGet(void) {
return m_value;
}
void widget::ProgressBar::onDraw(void) {
m_draw.draw();
}

View File

@ -30,8 +30,10 @@ namespace widget {
public:
ProgressBar(void);
virtual ~ProgressBar(void);
void valueSet(float _val);
float valueGet(void);
void setValue(float _val);
float getValue(void) const {
return m_value;
};
void setColor(etk::Color<> _newColor) {
m_textColorFg = _newColor;
};