Fixed LCR and Xylos transmitters

This commit is contained in:
furrtek
2016-05-09 20:42:20 +02:00
parent d55a420dfd
commit d40016ffda
39 changed files with 1614 additions and 151 deletions

View File

@@ -111,6 +111,8 @@ public:
bool highlighted() const;
void set_highlighted(const bool value);
uint16_t id = 0;
protected:
void dirty_overlapping_children_in_rect(const Rect& child_rect);
@@ -195,6 +197,19 @@ private:
std::string text;
};
class ProgressBar : public Widget {
public:
ProgressBar(Rect parent_rect);
void set_value(const uint16_t value);
uint16_t value() const;
void paint(Painter& painter) override;
private:
uint16_t _value = 0;
};
class Checkbox : public Widget {
public:
std::function<void(Checkbox&)> on_select;