ClikaRT::progress::Spinner
class
Header: ClikaRT/progress/progress.h
An indeterminate activity spinner for work with no measurable progress.
Member functions
Spinner()
Spinner()
an unstarted spinner (first tick() draws it)
Declared in ClikaRT/progress/progress.h, line 111
~Spinner()
~Spinner()
destructor
Declared in ClikaRT/progress/progress.h, line 112
Spinner(Spinner)
Spinner(Spinner&& other) noexcept
move-construct
Declared in ClikaRT/progress/progress.h, line 113
operator=(Spinner)
move-assign
Declared in ClikaRT/progress/progress.h, line 114
Spinner(Spinner)
Spinner(const Spinner&) =delete
Declared in ClikaRT/progress/progress.h, line 115
operator=(Spinner)
Declared in ClikaRT/progress/progress.h, line 116
prefix()
Spinner& prefix(std::string_view text)
text before the spinner
Declared in ClikaRT/progress/progress.h, line 118
postfix()
Spinner& postfix(std::string_view text)
text after the spinner
Declared in ClikaRT/progress/progress.h, line 119
color()
spinner color
Declared in ClikaRT/progress/progress.h, line 120
ascii()
Spinner& ascii(bool on = true)
force the ASCII glyph set
Declared in ClikaRT/progress/progress.h, line 121
show_elapsed()
Spinner& show_elapsed(bool on = true)
show elapsed time
Declared in ClikaRT/progress/progress.h, line 122
tick()
void tick()
advance the animation one frame and redraw
Declared in ClikaRT/progress/progress.h, line 124
set_postfix()
void set_postfix(std::string_view text)
update the postfix mid-run
Declared in ClikaRT/progress/progress.h, line 125
mark_completed()
void mark_completed()
show the finished glyph
Declared in ClikaRT/progress/progress.h, line 126
done()
void done()
finalize the line
Declared in ClikaRT/progress/progress.h, line 127
completed()
bool completed() const
whether the spinner was finished
Declared in ClikaRT/progress/progress.h, line 128