2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 *======================================================*/
15 #include<utility> // for pair
30 HSV() : h(0.0), s(0.0), v(0.0) {}
31 HSV(double hue, double sat, double val) : h(hue), s(sat), v(val) {}
39 RGB() : r(0), g(0), b(0) {}
40 RGB(int red, int green, int blue) : r(red), g(green), b(blue) {}
44 typedef std::pair<string, RGB> X11Color;
46 /// struct holding xform-specific colors
51 XFormColor() : colorID(0) {}
52 string const getname() { return name; }
56 bool operator==(RGB const & c1, RGB const & c2)
58 return (c1.r == c2.r && c1.g == c2.g && c1.b == c2.b);
63 bool operator!=(RGB const & c1, RGB const & c2)