Go to the documentation of this file.
9 #ifndef EAGINE_PROGRESS_BAR_HPP
10 #define EAGINE_PROGRESS_BAR_HPP
17 template <
typename Putter>
18 void format_progress_bar(
28 progress_bar() noexcept = default;
30 auto set_width(
int w) noexcept -> auto& {
31 _width = w < 0 ? 0 : w;
35 auto set_min(
float min) noexcept ->
auto& {
40 auto set_max(
float max) noexcept ->
auto& {
45 auto reformat() noexcept -> progress_bar&;
47 auto update(
float value) noexcept -> progress_bar&;
65 #include <eagine/progress_bar.inl>
67 #endif // EAGINE_PROGRESS_BAR_HPP
std::ptrdiff_t span_size_t
Signed span size type used by eagine.
Definition: types.hpp:36
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
Common code is placed in this namespace.
Definition: eagine.hpp:21