Console Library 4.7.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::ProgressStyle Namespace Reference

Functions

const ProgressConfignormal ()
 普通样式:宽度 50,填充 '#',空白 '.',前后缀 "[]",显示百分比。
const ProgressConfigsimple ()
 简洁样式:宽度 50,填充 '=',空白 '-',无前后缀,不显示百分比。
const ProgressConfigbeautiful ()
 美观样式(使用 Unicode 块字符):宽度 50,填充 '█',空白 '░',边框 '▒' 和 '▏',显示百分比。

Function Documentation

◆ beautiful()

const ProgressConfig & console::ProgressStyle::beautiful ( )
inline

美观样式(使用 Unicode 块字符):宽度 50,填充 '█',空白 '░',边框 '▒' 和 '▏',显示百分比。

Returns
对应的 ProgressConfig 常量引用。
Note
需要终端支持 UTF-8 编码。

◆ normal()

const ProgressConfig & console::ProgressStyle::normal ( )
inline

普通样式:宽度 50,填充 '#',空白 '.',前后缀 "[]",显示百分比。

Returns
对应的 ProgressConfig 常量引用。

◆ simple()

const ProgressConfig & console::ProgressStyle::simple ( )
inline

简洁样式:宽度 50,填充 '=',空白 '-',无前后缀,不显示百分比。

Returns
对应的 ProgressConfig 常量引用。