Skip to main content

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 107

~Spinner()

~Spinner()

destructor

Declared in ClikaRT/progress/progress.h, line 108

Spinner(Spinner)

Spinner(Spinner&& other) noexcept

move-construct

Declared in ClikaRT/progress/progress.h, line 109

operator=(Spinner)

Spinner& operator=(Spinner&& other) noexcept

move-assign

Declared in ClikaRT/progress/progress.h, line 110

Spinner(Spinner)

Spinner(const Spinner&) =delete

Declared in ClikaRT/progress/progress.h, line 111

operator=(Spinner)

Spinner& operator=(const Spinner&) =delete

Declared in ClikaRT/progress/progress.h, line 112

prefix()

Spinner& prefix(std::string_view text)

text before the spinner

Declared in ClikaRT/progress/progress.h, line 114

postfix()

Spinner& postfix(std::string_view text)

text after the spinner

Declared in ClikaRT/progress/progress.h, line 115

color()

Spinner& color(Color c)

spinner color

Declared in ClikaRT/progress/progress.h, line 116

ascii()

Spinner& ascii(bool on = true)

force the ASCII glyph set

Declared in ClikaRT/progress/progress.h, line 117

show_elapsed()

Spinner& show_elapsed(bool on = true)

show elapsed time

Declared in ClikaRT/progress/progress.h, line 118

tick()

void tick()

advance the animation one frame and redraw

Declared in ClikaRT/progress/progress.h, line 120

set_postfix()

void set_postfix(std::string_view text)

update the postfix mid-run

Declared in ClikaRT/progress/progress.h, line 121

mark_completed()

void mark_completed()

show the finished glyph

Declared in ClikaRT/progress/progress.h, line 122

done()

void done()

finalize the line

Declared in ClikaRT/progress/progress.h, line 123

completed()

bool completed() const

whether the spinner was finished

Declared in ClikaRT/progress/progress.h, line 124