namespace Terminal.Gui;
///
/// When implemented by a class, allows mapping to
/// human understandable name (e.g. w3c color names) and vice versa.
///
public interface IColorNameResolver
{
///
/// Returns the names of all known colors.
///
///
IEnumerable GetColorNames ();
///
/// Returns if is a recognized
/// color. In which case will be the name of the color and
/// return value will be true otherwise false.
///
///
///
///
bool TryNameColor (Color color, out string name);
///
/// Returns if is a recognized
/// color. In which case will be the color the name corresponds
/// to otherwise returns false.
///
///
///
///
bool TryParseColor (string name, out Color color);
}