Source-highlight Qt Library
srchiliteqt::QtColorMapRGB Class Reference

Map for RGB colors (actually, into the format #RRGGBB) into source-highlight colors. More...

#include <QtColorMap.h>

Inheritance diagram for srchiliteqt::QtColorMapRGB:
Collaboration diagram for srchiliteqt::QtColorMapRGB:

Public Member Functions

std::string getColor (const std::string &color)
 Returns the source-highlight color associated to the passed string of the shape "#RRGGBB"; if a mapping does not exist, then it returns the passed string itself). More...
 

Public Attributes

keys
 STL member.
 
elements
 STL member.
 

Detailed Description

Map for RGB colors (actually, into the format #RRGGBB) into source-highlight colors.

If a map does not exist it simply returns the rgb color.

Since
0.2

Member Function Documentation

std::string srchiliteqt::QtColorMapRGB::getColor ( const std::string &  color)

Returns the source-highlight color associated to the passed string of the shape "#RRGGBB"; if a mapping does not exist, then it returns the passed string itself).

The search is NOT case sensitive.

Parameters
colorthe color in rgb form "#RRGGBB"
Returns
the source-highlight color associated to the passed string, or the passed string if there is no association.

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