Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef PROGRESSBAR_H_
#define PROGRESSBAR_H_
#include "widget.h"
#include "display.h"
#include "common.h"
class ProgressBar : public Widget {
public:
ProgressBar(coords_t size);
void setState(uint8_t state);
private:
void draw(coords_t offset) override;
Widget::Type getType() override { return Widget::Type::Progressbar; };
static constexpr color_t Border = COLOR_BLACK;
static constexpr color_t Bar = COLOR_GREEN;
static constexpr color_t Background = COLOR_BG_DEFAULT;
uint8_t state;
};
#endif
fae49d278This file is pinned to the selected release. Download the original to open it in your design tool.