]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Color.h
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / Color.h
index a7d7a489389156b80d9993778810180cff878113..b3dbf2a0fed8359b6ac8e6910ab7d19c40a051d5 100644 (file)
@@ -2,9 +2,10 @@
 /**
  * \file Color.h
  * Copyright 1995 Matthias Ettrich
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming 
+ * \author Angus Leeming
  *
  * Full author contact details are available in file CREDITS
  */
 #ifndef COLOR_H
 #define COLOR_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "LString.h"
+#include "LColor.h"
+
+/** Given col, fills r, g, b in the range 0-255.
+    The function returns true if successful.
+    It returns false on failure and sets r, g, b to 0. */
+bool getRGBColor(LColor::color col,
+                unsigned int & r, unsigned int & g, unsigned int & b);
 
 struct RGBColor;
 
@@ -35,11 +40,11 @@ struct HSVColor {
 };
 
 struct RGBColor {
-       int r;
-       int g;
-       int b;
+       unsigned int r;
+       unsigned int g;
+       unsigned int b;
        RGBColor() : r(0), g(0), b(0) {}
-       RGBColor(int red, int green, int blue)
+       RGBColor(unsigned int red, unsigned int green, unsigned int blue)
                : r(red), g(green), b(blue) {}
        RGBColor(HSVColor const &);
 };