From eb8207ff1bde8a1e092e60d4b2c15336c78e3a40 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 17 Jan 2016 00:44:07 +0000 Subject: Trying to create a more detaild way to configure the library, added runtime information, added an OpenGL graphics driver that renders a button on top of an OpenGL window (see test/cube). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl.H | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl.H b/FL/Fl.H index 60b50af13..1fabfbe16 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -137,7 +137,35 @@ class FL_EXPORT Fl { private: static int use_high_res_GL_; - + +public: // run time information about compile time configuration + /** \defgroup cfg_gfx runtime graphics driver configuration */ + /** @{ */ + static bool cfg_gfx_xlib; ///< X11 Xlib rendering available, usually on Linux systems + static bool cgf_gfx_quartz; ///< Quartz rendering available, usually on OS X systems + static bool cfg_gfx_gdi; ///< GDI redering available, usually on MSWindows systems + static bool cfg_gfx_opengl; ///< OpenGL redering available, available on many platforms + static bool cfg_gfx_cairo; ///< Cairo redering available, available on many platforms + static bool cfg_gfx_directx;///< DirectX redering available, available on many platforms + /** @} */ + /** \defgroup cfg_prn runtime printer driver configuration */ + /** @{ */ + static bool cfg_prn_ps; ///< PostScript rendering available, usually on Linux systems + static bool cgf_prn_quartz; ///< Quartz rendering available, usually on OS X systems + static bool cfg_prn_gdi; ///< GDI redering available, usually on MSWindows systems + /** @} */ + /** \defgroup cfg_win runtime window and event manager configuration */ + /** @{ */ + static bool cfg_win_x11; ///< X11 window management available, usually on Linux systems + static bool cgf_win_cocoa; ///< Cocoa window management available, usually on OS X systems + static bool cfg_win_win32; ///< WIN32 window management available, on low level MSWindows + /** @} */ + /** \defgroup cfg_sys runtime system configuration */ + /** @{ */ + static bool cfg_sys_posix; ///< Posix system available, usually on Linux and OS X systems, but also Cygwin + static bool cfg_sys_win32; ///< WIN32 system available, on MSWindows + /** @} */ + public: // should be private! #ifndef FL_DOXYGEN static int e_number; -- cgit v1.2.3