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 * set up GUI parameters. At this point lyxrc may
46 * Enter the main event loop (\sa LyX::exec2)
48 int exec(int & argc, char * argv[]);
51 * Synchronise all pending events.
56 * return the status flag for a given action. This can be used to tell
57 * that a given lfun is not implemented by a frontend
59 FuncStatus getStatus(FuncRequest const & ev);
62 * Given col, fills r, g, b in the range 0-255.
63 * The function returns true if successful.
64 * It returns false on failure and sets r, g, b to 0.
66 bool getRGBColor(LColor_color col, lyx::RGBColor & rgbcol);
68 /** Eg, passing LColor::black returns "000000",
69 * passing LColor::white returns "ffffff".
71 std::string const hexname(LColor_color col);
74 * update an altered GUI color
76 void update_color(LColor_color col);
79 * add a callback for socket read notification
80 * @param fd socket descriptor (file/socket/etc)
82 void register_socket_callback(int fd, boost::function<void()> func);
85 * remove a I/O read callback
86 * @param fd socket descriptor (file/socket/etc)
88 void unregister_socket_callback(int fd);
90 } // namespace lyx_gui