35 class UIPluginInterface;
47 namespace user_feedback
107 static std::atomic<u32> s_depth;
144 void report(
float progress,
const std::string& detail =
"");
161 static int get_terminal_width();
167 std::string m_message;
170 std::string m_last_detail;
173 u32 m_printed_progress;
179 u32 m_max_detail_size;
182 int m_last_percentage;
185 int m_terminal_width;
LayoutLocker & operator=(const LayoutLocker &)=delete
LayoutLocker(const LayoutLocker &)=delete
ProgressPrinter & operator=(const ProgressPrinter &)=delete
void set_message(const std::string &message)
ProgressPrinter(const ProgressPrinter &)=delete
ProgressPrinter(const std::string &message, u32 max_detail_size=0)
void report(float progress, const std::string &detail="")
ProgressScope(const std::string &message)
ProgressScope & operator=(const ProgressScope &)=delete
ProgressScope(const ProgressScope &)=delete
void report_progress(int percent, const std::string &message)