ProgressBar
 
Loading...
Searching...
No Matches
PBarStyle.hpp
Go to the documentation of this file.
1
9#ifndef PBAR_STYLE_HPP
10#define PBAR_STYLE_HPP
11
12#include <string>
13#include <map>
14
15#include "PBarColor.hpp"
16
19namespace PBarStyle
20{
21 // some symbols are thicker than the width that strlen() returns:
22 // for those \r and empty spaces are used to artificialy inflate the length of the string
24 static std::map<std::string, std::array<std::string, 6>> map =
25 {
26 {"DEFAULT", {"[", "#", "", ".", "]", PBarColor::BOLD_CYAN}},
27 {"IMPROVED", {"⁅", "⁜", "⊳", "~", "⁆", PBarColor::BOLD_CYAN}},
28 {"FANCY", {"◨▣", "▩", "▧", "▫", "▣◧", PBarColor::BOLD_CYAN}},
29 {"FANCY1", {"●", "◎", "○", "◌", "●", PBarColor::BOLD_CYAN}},
30 {"FANCY2", {"\r 「", "※", "※", "※", " 」", PBarColor::BOLD_RED}},
31 {"WAVE", {"\r 「", "₪", " ", " ", " 」", PBarColor::BOLD_CYAN}},
32 {"BLOCK", {"", "▓", "▒", "▒", "", PBarColor::BLUE}},
33 {"BLOCK1", {"█", "▓", "▒", "▒", "█", PBarColor::MAGENTA}},
34 {"BLOCK2", {"◢█", "▓", "▒", "▒", "█◤", PBarColor::BOLD_YELLOW}}
35 };
36 // this is a secret, you're not supposed to see it
37 static std::map<std::string, std::array<std::string, 6>> secretMap =
38 {
39 {"SUS", {"SUS ", "ඞ", "ච", "○", " SUS", PBarColor::BOLD_RED}},
40 {"COMMUNISM", {"☭", "✭", "☆", " ", "☭", PBarColor::BOLD_RED}},
41 {"GACHI", {"CUM ", "♂", "○", "♀", " ASS", PBarColor::BOLD_WHITE}}
42 };
43}
44
45#endif /* PBAR_STYLE_HPP */
Contains aliases for colors for ProgressBar class.
const std::string MAGENTA
magenta text
Definition PBarColor.hpp:31
const std::string BLUE
blue text
Definition PBarColor.hpp:29
const std::string BOLD_CYAN
bold cyan text
Definition PBarColor.hpp:50
const std::string BOLD_YELLOW
bold yellow text
Definition PBarColor.hpp:44
const std::string BOLD_WHITE
bold white text
Definition PBarColor.hpp:52
const std::string BOLD_RED
bold red text
Definition PBarColor.hpp:40
Contains styles for ProgressBar class.