Added waveform widget and a frequency field in encoders tx

This commit is contained in:
furrtek 2017-01-09 02:45:29 +00:00
parent be3d477352
commit a0c248d567
11 changed files with 180 additions and 72 deletions

View file

@ -481,6 +481,26 @@ private:
int32_t clip_value(const uint32_t index, const uint32_t value);
};
class Waveform : public Widget {
public:
Waveform(Rect parent_rect, int8_t * data, uint32_t length, uint32_t offset, Color color);
Waveform(const Waveform&) = delete;
Waveform(Waveform&&) = delete;
void set_offset(const uint32_t new_offset);
void set_length(const uint32_t new_length);
void paint(Painter& painter) override;
private:
int8_t * data_;
uint32_t length_;
uint32_t offset_;
Color color_;
};
} /* namespace ui */
#endif/*__UI_WIDGET_H__*/