Angus Leeming <[EMAIL PROTECTED]> writes:

| I don't thing the LColor entries need know about the colour name at all. Why 
| not just have LColour::color containing a list of coloured elements 
| (background, foreground, latex etc) and change LColour::ColorEntry to
| 
|       struct ColorEntry {
|               LColor::color lcolor;
|               string guiname;
|               vector<int> rgb(3);
|       };
| 
|       Eg: (latex, "LaTeX", vector<int>(255,0,0)).

Eh now ... make a RGB class to hole the rgb values.

struct RGB {
        int r;
        int g;
        int b;
        RGB(int red, int green, int blue) : r(red), g(green), b(blue) {}
};

so {latex, "LaTeX", RGB(255, 0, 0)}

        Lgb

Reply via email to