[DEV] update progressBar
This commit is contained in:
parent
adc4ad0c45
commit
149405880d
2
build
2
build
@ -1 +1 @@
|
||||
Subproject commit 2a0f8bdb02d2f5b117d4fa9bf994a752e8a1f4b2
|
||||
Subproject commit 1a424abd21d9262b1cfc911fcc830d003bf6078b
|
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user