4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
16 #include "FuncStatus.h"
18 #include <boost/function.hpp>
36 /// are we using the GUI at all
40 * Enter the main event loop (\sa LyX::exec2)
42 int exec(int & argc, char * argv[]);
45 * Synchronise all pending events.
50 * Given col, fills r, g, b in the range 0-255.
51 * The function returns true if successful.
52 * It returns false on failure and sets r, g, b to 0.
54 bool getRGBColor(LColor_color col, lyx::RGBColor & rgbcol);
56 /** Eg, passing LColor::black returns "000000",
57 * passing LColor::white returns "ffffff".
59 std::string const hexname(LColor_color col);
62 * update an altered GUI color
64 void update_color(LColor_color col);
67 * add a callback for socket read notification
68 * @param fd socket descriptor (file/socket/etc)
70 void register_socket_callback(int fd, boost::function<void()> func);
73 * remove a I/O read callback
74 * @param fd socket descriptor (file/socket/etc)
76 void unregister_socket_callback(int fd);
78 } // namespace lyx_gui