Circular "spinner" ring. Determinate (value in [0,1], drawn as a sweep starting at 12 o'clock) or indeterminate (a fixed-length arc rotates continuously, driven by update()). Both use TinyGPU's ISurface::drawArc.
More...
#include <ProgressIndicator.h>
template<typename RGB_T = TINYMD_DEFAULT_RGB_T>
class tinymd::CircularProgressIndicator< RGB_T >
Circular "spinner" ring. Determinate (value in [0,1], drawn as a sweep starting at 12 o'clock) or indeterminate (a fixed-length arc rotates continuously, driven by update()). Both use TinyGPU's ISurface::drawArc.
◆ CircularProgressIndicator() [1/2]
◆ CircularProgressIndicator() [2/2]
◆ draw()
| void draw |
( |
tinygpu::ISurface< RGB_T > & |
target | ) |
|
|
inlineoverridevirtual |
Renders the widget into target using colors/fonts/tokens from its own theme (see theme()/setTheme()).
Implements Widget< RGB_T >.
◆ setIndeterminate()
| void setIndeterminate |
( |
bool |
indeterminate | ) |
|
|
inline |
◆ setThickness()
| void setThickness |
( |
uint8_t |
thickness | ) |
|
|
inline |
◆ setValue()
| void setValue |
( |
float |
value | ) |
|
|
inline |
◆ update()
| bool update |
( |
uint32_t |
nowMs | ) |
|
|
inlineoverridevirtual |
Called once per frame, before draw(), to advance any time-based animation (ripple fade, indeterminate progress sweep, ...). Returns true if that advance changed anything this widget will draw differently, so Screen can decide whether a redraw is actually needed - see Screen::isDirty(). Default: no-op, not dirty, so widgets that don't animate cost nothing extra.
Reimplemented from Widget< RGB_T >.
◆ value()
The documentation for this class was generated from the following file: