Chesto 0.9
A declarative and element-based library for creating GUIs on homebrew'd consoles
ProgressBar.hpp
1#pragma once
2
3#include "Element.hpp"
4
5class ProgressBar : public Element
6{
7public:
9 void render(Element* parent);
10 float percent = 0;
11
12 int color;
13 bool dimBg = false;
14
15 int width = 0;
16};
Element * parent
the parent element (can sometimes be null if it isn't set)
Definition: Element.hpp:102
void render(Element *parent)
display the current state of the display
Definition: ProgressBar.cpp:12