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