X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FGUIRunTime.h;h=5bfc5c57cbded9e664f023b34999acb8c66b875a;hb=1070702ea46b36ec5016bad2fe97649cec5e6148;hp=4f489728eece1b0ce63e195bc67aa0bca59fdf7d;hpb=b9d61343fc76a681b0264d65703ef2119647df56;p=lyx.git diff --git a/src/frontends/GUIRunTime.h b/src/frontends/GUIRunTime.h index 4f489728ee..5bfc5c57cb 100644 --- a/src/frontends/GUIRunTime.h +++ b/src/frontends/GUIRunTime.h @@ -15,6 +15,7 @@ #pragma interface #endif +#include class LyXView; /** The LyX GUI independent guiruntime class @@ -25,7 +26,7 @@ class GUIRunTime { public: /// initialise the toolkit static - int initApplication(int argc, char * argv[]); + int initApplication(int & argc, char * argv[]); /// process pending events static void processEvents(); @@ -38,5 +39,22 @@ public: /// static LyXView * createMainView(int w, int h); + +/* the following entries are X11 specific and should eventually go away */ + /// The display on which LyX is running + static + Display * x11Display(); + /// The screen on which LyX is running + static + int x11Screen(); + /// The current colormap + static + Colormap x11Colormap(); + /// The current visual depth + static + int x11VisualDepth(); + /// the server's DPI estimate + static + float getScreenDPI(); }; #endif