2012-09-17 21:01:13 +04:00
|
|
|
#ifndef color_hh_INCLUDED
|
|
|
|
#define color_hh_INCLUDED
|
|
|
|
|
2013-03-26 02:35:59 +04:00
|
|
|
#include <utility>
|
|
|
|
|
2012-09-17 21:01:13 +04:00
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
2013-03-26 02:35:59 +04:00
|
|
|
class String;
|
|
|
|
|
2012-10-24 00:43:12 +04:00
|
|
|
enum class Color : char
|
2012-09-17 21:01:13 +04:00
|
|
|
{
|
|
|
|
Default,
|
|
|
|
Black,
|
|
|
|
Red,
|
|
|
|
Green,
|
|
|
|
Yellow,
|
|
|
|
Blue,
|
|
|
|
Magenta,
|
|
|
|
Cyan,
|
|
|
|
White
|
|
|
|
};
|
|
|
|
|
2013-03-06 23:25:23 +04:00
|
|
|
using ColorPair = std::pair<Color, Color>;
|
|
|
|
|
2013-03-26 02:35:59 +04:00
|
|
|
Color str_to_color(const String& color);
|
|
|
|
String color_to_str(const Color& color);
|
|
|
|
|
2013-03-29 22:31:06 +04:00
|
|
|
String option_to_string(const Color& color);
|
|
|
|
void option_from_string(const String& str, Color& color);
|
|
|
|
|
2012-09-17 21:01:13 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // color_hh_INCLUDED
|
|
|
|
|