]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/lyx_gui.h
do not define boost::throw_exceptions if we are compiling with exceptions
[lyx.git] / src / frontends / lyx_gui.h
index 153c46fa5421b808323ce76791a6bbbb46b4ab5e..f3829b2af3a18c9b1a68ecac259cd4a5cd943a16 100644 (file)
@@ -27,6 +27,9 @@ class LyXComm;
 class LyXDataSocket;
 class LyXServerSocket;
 class FuncRequest;
+namespace lyx {
+struct RGBColor;
+}
 
 /// GUI interaction
 namespace lyx_gui {
@@ -74,6 +77,13 @@ void exit();
  */
 FuncStatus getStatus(FuncRequest const & ev);
 
+/**
+ * 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, lyx::RGBColor & rgbcol);
+
 /** Eg, passing LColor::black returns "000000",
  *      passing LColor::white returns "ffffff".
  */