X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c0f7642cccc72a0240b87814757debaadd3d44d..217099990c2665d18d352c60058106da9a014ab8:/include/wx/msw/settings.h diff --git a/include/wx/msw/settings.h b/include/wx/msw/settings.h index 1f16e900c2..a940901740 100644 --- a/include/wx/msw/settings.h +++ b/include/wx/msw/settings.h @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: settings.h +// Name: wx/msw/settings.h // Purpose: wxSystemSettings class // Author: Julian Smart // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_SETTINGS_H_ @@ -16,23 +16,32 @@ #pragma interface "settings.h" #endif -#include "wx/setup.h" #include "wx/colour.h" #include "wx/font.h" -class WXDLLEXPORT wxSystemSettings: public wxObject +class WXDLLEXPORT wxSystemSettings : public wxObject { public: - inline wxSystemSettings(void) {} + wxSystemSettings() { } // Get a system colour - static wxColour GetSystemColour(int index); + static wxColour GetSystemColour(int index); // Get a system font - static wxFont GetSystemFont(int index); + static wxFont GetSystemFont(int index); // Get a system metric, e.g. scrollbar size - static int GetSystemMetric(int index); + static int GetSystemMetric(int index); + + // User-customizable hints to wxWindows or associated libraries + // These could also be used to influence GetSystem... calls, indeed + // to implement SetSystemColour/Font/Metric + + static void SetOption(const wxString& name, const wxString& value); + static void SetOption(const wxString& name, int value); + static wxString GetOption(const wxString& name) ; + static int GetOptionInt(const wxString& name) ; + static bool HasOption(const wxString& name) ; }; #endif