kakoune/src/color.hh

36 lines
501 B
C++
Raw Normal View History

#ifndef color_hh_INCLUDED
#define color_hh_INCLUDED
#include <utility>
namespace Kakoune
{
class String;
2012-10-23 22:43:12 +02:00
enum class Color : char
{
Default,
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White
};
using ColorPair = std::pair<Color, Color>;
Color str_to_color(const String& color);
String color_to_str(const Color& color);
String option_to_string(const Color& color);
void option_from_string(const String& str, Color& color);
}
#endif // color_hh_INCLUDED