teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | List of all members
teditor::ColorMap Class Reference

#include <colors.h>

Public Member Functions

void add (const NameColorPair &ncp)
 populate the map with the name-color pair At first, the color string is assumed to be another key to the already existing map, if that's not the case, then it is assumed to be a named color string More...
 
const AttrColorget (const std::string &name) const
 
void clear ()
 
AttrColor readColor (const std::string &str)
 

Detailed Description

Color map used for highlights/colors by the editor

Member Function Documentation

◆ add()

void teditor::ColorMap::add ( const NameColorPair ncp)

populate the map with the name-color pair At first, the color string is assumed to be another key to the already existing map, if that's not the case, then it is assumed to be a named color string

◆ clear()

void teditor::ColorMap::clear ( )
inline

◆ get()

const AttrColor & teditor::ColorMap::get ( const std::string &  name) const

◆ readColor()

AttrColor teditor::ColorMap::readColor ( const std::string &  str)

convert attribute/color description into AttrColor


The documentation for this class was generated from the following files: