1 #ifndef COLORS_H_DEFINED 2 #define COLORS_H_DEFINED 8 typedef chtype ColorPair;
10 #define COLOR_DEFAULT -1 17 Color rgb(
short r,
short g,
short b);
19 Color hex(std::string hex);
21 ColorPair pair(Color foreground, Color background,
bool is_bold=
false);
23 Color fromString(std::string str);
25 ColorPair pairFromString(std::string foreground, std::string background,
bool is_bold=
false);
27 void activate(WINDOW* window, Color foreground, Color background);
29 void pairActivate(WINDOW* window, ColorPair color);
32 extern bool hasColors;
35 #endif //COLORS_H_DEFINED
void init()
Allocates necessary variables.