Class block_progress_bar_t¶
Defined in File progressbar.hpp
Class Documentation¶
-
class block_progress_bar_t¶
Public Functions
-
explicit block_progress_bar_t(colour foreground_colour, std::optional<font_style> style = {}, std::uint32_t barwidth = 100, bool show_percentage = true, bool show_elapsed_time = false, bool show_remaining_time = false, std::string prefix = "", std::string postfix = "", std::string start = "[", std::string end = "]")¶
-
inline void set_progress(float value) noexcept¶
-
inline float current() noexcept¶
-
inline bool is_completed() const¶
-
inline void mark_as_completed()¶
-
inline const auto &get_foreground_colour() const noexcept¶
-
inline const auto &get_prefix() const noexcept¶
-
inline const auto &get_postfix() const noexcept¶
-
inline void set_prefix(std::string v) noexcept¶
-
inline void set_postfix(std::string v) noexcept¶
-
inline void set_show_elapsed_time(bool v) noexcept¶
-
inline void set_show_remaining_time(bool v) noexcept¶
-
inline const auto &get_start_time() const noexcept¶
-
void print_progress(std::ostream *os, bool from_multi_progress = false)¶
Public Static Attributes
-
static constexpr auto max_progress = 1.f¶
-
explicit block_progress_bar_t(colour foreground_colour, std::optional<font_style> style = {}, std::uint32_t barwidth = 100, bool show_percentage = true, bool show_elapsed_time = false, bool show_remaining_time = false, std::string prefix = "", std::string postfix = "", std::string start = "[", std::string end = "]")¶